/*
Theme Name: Leya Organics
Theme URI: http://leyaorganics.com
Author: Antigravity
Author URI: 
Description: A custom e-commerce theme inspired by RCM World, built specifically for Leya Organics.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: leya-organics
Tags: e-commerce, custom-colors, custom-logo, woocommerce
*/

@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');

:root {
    --primary-color: #32125e; /* Dark Purple from Logo Text */
    --secondary-color: #bf00ec; /* Vibrant Purple from Logo Feather */
    --accent-color: #f7e6fa; /* Very Light Purple/Pink */
    --background-light: #faf0f6; /* Changed to match menu bar exactly */
    --text-color: #333333;
    --font-family: 'Questrial', sans-serif;
    --border-color: #eaeaea;
}

/* Hide the first menu on mobile devices */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Increase logo size in mobile view */
@media (max-width: 768px) {
    .mobile-only img {
        height: 120px !important; /* Increase this value if you want it even bigger */
        max-width: 100%;
    }
}
/* Hide the second menu (hamburger) on desktop screens */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--background-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Banner */
.top-banner {
    background: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    padding: 8px 0;
}
.top-banner a {
    color: white;
    margin: 0 5px;
}
.top-banner a:hover {
    color: var(--accent-color);
}

/* Header Styles */
.site-header {
    background: #faf0f6; /* Light pink/purple matched with logo */
    border-bottom: 1px solid var(--border-color);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.main-logo {
    max-height: 100px;
    width: auto;
}

.header-search {
    flex-grow: 1;
    margin: 0 40px;
}

.header-search form {
    display: flex;
    width: 100%;
    max-width: 700px;
}

.header-search input[type="search"] {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--primary-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-family: inherit;
}

.header-search button {
    padding: 10px 25px;
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
}
.header-search button:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 500;
}
.action-item .icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--secondary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}
.cart-customlocation {
    position: relative;
}

/* Navigation Bar */
.main-navigation {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 2px solid var(--primary-color);
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu li a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-menu li a:hover {
    color: var(--secondary-color);
}

/* Front Page Specific Layout like RCM */
.hero-slider-mockup {
    background: #e8e8e8;
    border-radius: 8px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 40px;
    background-image: linear-gradient(135deg, rgba(216,0,177,0.1), rgba(255,178,0,0.1));
}
.hero-slider-mockup h1 {
    font-size: 3rem;
    color: var(--primary-color);
}

.category-circles {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}
.category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    cursor: pointer;
}
.category-circle .img-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 10px;
    transition: transform 0.2s;
}
.category-circle:hover .img-wrapper {
    transform: scale(1.05);
    border: 2px solid var(--secondary-color);
}
.category-circle span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* WooCommerce Overrides to look like RCM Grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}
.woocommerce ul.products li.product {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: box-shadow 0.3s;
    width: 100% !important;
    margin: 0 !important;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.woocommerce ul.products li.product img {
    border-radius: 4px;
    margin-bottom: 15px;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 500;
}
.woocommerce ul.products li.product .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}
.woocommerce ul.products li.product .button {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 8px 15px;
    font-weight: 600;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    display: block;
    margin-top: 15px;
}
.woocommerce ul.products li.product .button:hover {
    background: var(--primary-color);
    color: #fff;
}


@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap');
.section-title { font-family: 'Kaushan Script', cursive; text-align: center; font-size: 2.5rem; color: var(--primary-color); margin: 60px 0 30px 0; font-weight: normal; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.square-card { text-align: left; text-decoration: none; display: block; }
.square-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.square-card h3 { font-size: 1.3rem; color: var(--primary-color); margin: 0; font-weight: normal; font-family: 'Kaushan Script', cursive; }
.pink-strip { background-color: var(--accent-color); padding: 50px 0; margin: 40px 0; }
.split-section { display: flex; align-items: stretch; gap: 0; border-radius: 12px; overflow: hidden; margin-bottom: 60px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.split-section > div { flex: 1; }
.split-section img { width: 100%; height: 100%; object-fit: cover; }
.gmp-certification {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 820px;
    margin: 55px auto;
    padding: 28px 36px;
    border: 1px solid #d9cfae;
    border-radius: 16px;
    background: #fffdf6;
    box-shadow: 0 8px 22px rgba(50, 18, 94, 0.08);
}
.gmp-certification__seal {
    flex: 0 0 118px;
    aspect-ratio: 1;
    overflow: hidden;
}
.gmp-certification__seal img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gmp-certification__content { text-align: left; }
.gmp-certification__eyebrow { margin: 0 0 6px; color: #8a6b24; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gmp-certification__content h2 { margin: 0 0 9px; color: var(--primary-color); font-size: 1.7rem; }
.gmp-certification__content p:last-child { margin: 0; color: #555; line-height: 1.6; }
.btn-solid { background-color: var(--secondary-color); color: white; padding: 12px 40px; border: none; border-radius: 30px; font-size: 1.1rem; cursor: pointer; text-transform: uppercase; font-weight: bold; display: inline-block; text-decoration: none; }
.masonry-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.masonry-left img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; display: block; }
.masonry-right { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.masonry-right img { width: 100%; flex: 1; object-fit: cover; border-radius: 12px; min-height: 0; display: block; }
.circle-card { text-align: left; text-decoration: none; display: block; }
.circle-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; margin: 0 auto 15px auto; display: block; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: transform 0.3s; background: #fff; }
.circle-card:nth-child(1) img { border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%; }
.circle-card:nth-child(2) img { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.circle-card:nth-child(3) img { border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%; }
.circle-card:nth-child(4) img { border-radius: 60% 40% 70% 30% / 40% 60% 40% 60%; }
.circle-card:nth-child(5) img { border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%; }
.circle-card:nth-child(6) img { border-radius: 30% 70% 50% 50% / 40% 40% 60% 60%; }
.circle-card:hover img { transform: scale(1.05); }
.circle-card h3 { font-size: 1rem; color: var(--primary-color); margin: 5px 0; font-family: 'Kaushan Script', cursive; font-weight: normal; }
.circle-card .price { font-weight: normal; color: #555; font-size: 0.95rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.reviews-grid img { width: 100%; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.dark-card { background: #333; color: white; padding: 20px; border-radius: 12px; text-align: left; }
.dark-card .stars { color: #ffb200; font-size: 1.2rem; margin-bottom: 10px; }

/* Layout Utility Classes */
.whatsapp-slider {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    margin-bottom: 60px;
}
.whatsapp-review-img {
    width: 100%; 
    border-radius: 12px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.product-slider {
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px; 
    margin-bottom: 30px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container { padding: 0 15px; width: 100%; box-sizing: border-box; overflow: hidden; }

    .site-footer .footer-social {
        display: flex !important;
        justify-content: center !important;
        align-items: center;
        gap: 15px !important;
        width: 100%;
        margin: 20px auto !important;
    }

    /* Sliders */
    .grid-4, .whatsapp-slider, .product-slider { 
        display: flex !important; 
        flex-wrap: nowrap !important; 
        overflow-x: auto; 
        scroll-snap-type: x mandatory; 
        gap: 15px; 
        padding-bottom: 20px; 
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .grid-4::-webkit-scrollbar, .whatsapp-slider::-webkit-scrollbar, .product-slider::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .grid-4 > * { 
        flex: 0 0 45%; 
        scroll-snap-align: start; 
    }
    .whatsapp-slider > * {
        flex: 0 0 85% !important;
        scroll-snap-align: center;
    }
    .product-slider > a.circle-card {
        flex: 0 0 45% !important;
        scroll-snap-align: start;
    }

    /* Masonry Layout: Fully vertically stacked */
    .masonry-gallery {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    .masonry-left { height: auto !important; }
    .masonry-left img, .masonry-right img {
        aspect-ratio: auto !important;
        height: auto !important;
    }
    .masonry-right {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Why Choose Us -> Stack vertically! */
    .why-choose-us {
        display: grid !important;
        grid-template-columns: 1fr !important;
        padding-bottom: 0;
        gap: 20px;
    }
    .pink-strip .square-card {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Embrace the Magic (Split Section) -> Stack vertically! */
    .split-section {
        flex-direction: column !important;
    }
    .split-section > div {
        padding: 40px 30px !important;
        text-align: center;
    }
    .split-section > div:last-child {
        padding: 0 !important;
    }
    /* Footer Mobile Tweaks */
    .site-footer .container { text-align: center; }
    .site-footer form { flex-direction: column; width: 100%; }
    .site-footer form input, .site-footer form button { width: 100%; box-sizing: border-box; }
    .site-footer img { margin: 0 auto 10px auto !important; display: block; }
    .site-footer div[style*=\'display: flex; gap: 10px;\'] { justify-content: center !important; }
}

    .site-footer form {
        flex-direction: column;
        width: 100%;
    }
    .site-footer form input, .site-footer form button {
        width: 100%;
        box-sizing: border-box;
    }
    .site-footer img {
        margin: 0 auto 10px auto !important;
        display: block;
    }
    .site-footer div[style*="display: flex; gap: 10px;"] {
        justify-content: center !important;
    }
}


/* Smooth Scrolling Global and Sliders */
html { scroll-behavior: smooth; }
.grid-4, .whatsapp-slider, .product-slider, .skin-problems-slider, .collection-carousel {
    scroll-behavior: smooth;
}


/* Mobile Menu Updates */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only img { height: 90px !important; max-width: 100%; }
}

/* Homepage hero: 100% full width edge-to-edge banner display */
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 0 40px 0;
    padding: 0;
    overflow: hidden;
    background: #faf0f6;
}

.carousel-track {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.carousel-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Arrows */
.carousel-prev,
.carousel-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    cursor: pointer !important;
    font-size: 1.2rem !important;
    color: var(--primary-color, #32125e) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
}

.carousel-prev {
    left: 20px !important;
}

.carousel-next {
    right: 20px !important;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #ffffff !important;
    transform: translateY(-50%) scale(1.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

/* Dots */
.carousel-dots {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 10px !important;
    z-index: 10 !important;
}

.carousel-dots .dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    border: 2px solid white !important;
    background: transparent !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
}

.carousel-dots .dot.active {
    background: white !important;
    transform: scale(1.2) !important;
}

@media (max-width: 768px) {
    .hero-carousel {
        margin-bottom: 25px;
    }

    .carousel-prev,
    .carousel-next {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.9rem !important;
    }

    .carousel-prev {
        left: 8px !important;
    }

    .carousel-next {
        right: 8px !important;
    }

    .carousel-dots {
        bottom: 10px !important;
        gap: 6px !important;
    }

    .carousel-dots .dot {
        width: 8px !important;
        height: 8px !important;
    }

    .gmp-certification {
        flex-direction: column;
        gap: 18px;
        margin: 35px 0;
        padding: 26px 22px;
        text-align: center;
    }

    .gmp-certification__seal {
        flex-basis: 104px;
        width: 104px;
    }

    .gmp-certification__content { text-align: center; }
    .gmp-certification__content h2 { font-size: 1.45rem; }
}
@media (min-width: 769px) {
    .mobile-only { display: none !important; }
}


/* Shop Page Product Grid */
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .shop-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .shop-filters-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .shop-filters-bar > div {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

