/*
Theme Name: GeneratePress Child
Template: generatepress
Description: Custom WooCommerce Flowers & Gifts Shop - Lebanon
Version: Final Complete 4.0
Author: Your Shop
*/

/* ==================== CORE VARIABLES ==================== */
:root {
    /* Reference Site Color Palette */
    --primary: #c32b2b;           /* Red accent color (from reference) */
    --primary-hover: #a81f1f;     /* Darker Red */
    --sale-price: #c32b2b;        /* Sale Price Red - ADDED */
    --text-dark: #222222;         /* Main Text */
    --text-gray: #666666;         /* Secondary Text */
    --light-bg: #F8F9FA;          /* Light Background */
    --border-color: #E0E0E0;      /* Borders */
    --white: #FFFFFF;
    
    /* Spacing */
    --space-sm: 15px;
    --space-md: 30px;
    --space-lg: 60px;
    
    /* Effects */
    --transition: all 0.3s ease;
}

/* ==================== GLOBAL RESETS ==================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px !important; /* Space for fixed header */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* ==================== HEADER - REFERENCE SITE STYLE ==================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    flex-direction: column; /* CHANGED: Stack children vertically */
    position: relative;
}

/* Logo on LEFT */
.site-branding {
    flex: 0 0 auto;
    min-width: 150px;
}

.site-branding .custom-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.site-title {
    margin: 0;
    font-size: 24px;
    line-height: 1;
}

.site-title a {
    color: #c32b2b;
    text-decoration: none;
    font-weight: 700;
    display: block;
}

/* Menu in CENTER - Adjusted for TWO-ROW DESKTOP LAYOUT */
/* Desktop: Center the menu in the second row */
@media (min-width: 993px) {
    #site-navigation {
        position: static;     /* Removes old absolute positioning */
        transform: none;      /* Removes old centering transform */
        left: auto;           /* Removes old left offset */
        order: 3;             /* Makes nav the third/last item in .nav-container column */
        margin-top: 15px;     /* Adds space between top row and menu row */
        width: 100%;          /* Makes nav fill its container */
        display: flex;        /* Enables flexbox for the container */
        justify-content: center; /* Centers the .primary-menu inside */
    }
    
    /* ONLY add extra centering for desktop. REMOVE all other duplicate properties. */
    .primary-menu {
        justify-content: center; /* Only this line is needed inside the media query */
    }
}

/* GENERAL Primary Menu Styles - Applies to ALL screen sizes */
.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.primary-menu li {
    margin: 0;
    position: relative;
}

.primary-menu a {
    color: #222222;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.primary-menu a:hover {
    color: #c32b2b;
}

.primary-menu .current-menu-item a,
.primary-menu .current_page_item a {
    color: #c32b2b;
}

.primary-menu .current-menu-item a:after,
.primary-menu .current_page_item a:after,
.primary-menu a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #c32b2b;
}

/* Keep original position on mobile */
@media (max-width: 992px) {
    #site-navigation {
        left: 50%; /* Reset to original on mobile */
        transform: translateX(-50%);
    }
}

/* Header Actions on RIGHT */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    min-width: 150px;
    justify-content: flex-end;
}

/* Hide mobile actions by default */
.mobile-actions {
    display: none;
}

/* WhatsApp Button - Green */
.whatsapp-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.whatsapp-button:hover {
    background: #128C7E;
    color: white;
}

.whatsapp-button i {
    font-size: 18px;
}

/* Header Icons */
.header-icon {
    color: #222222;
    font-size: 18px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.header-icon:hover {
    color: #c32b2b;
}

/* Cart */
.cart-contents {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #c32b2b;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #222;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
}


/* NEW: Create the top row layout (Logo, Search, Icons) */

@media (min-width: 993px) {
    .header-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        order: 1;
    }
    
    /* Make search bar take available space in the middle */
    .header-search {
        flex: 1;
        max-width: 500px;
        margin: 0 20px;
    }
    
    /* Show desktop actions, hide mobile actions on desktop */
    .desktop-actions {
        display: flex !important;
    }
    .mobile-actions {
        display: none !important;
    }
}

    /* Ensure the logo and actions don't shrink */
    .site-branding {
        flex-shrink: 0;
    }
    .header-actions {
        flex-shrink: 0;
    }


/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .primary-menu {
        gap: 25px;
    }
    
    .whatsapp-button span {
        display: none;
    }
    
    .whatsapp-button {
        padding: 10px 15px;
    }
}

@media (max-width: 992px) {
    /* Mobile Layout */
    #site-navigation {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 300px;
        max-width: 85%;
        background: white;
        padding: 30px 20px;
        box-shadow: 2px 0 20px rgba(0,0,0,0.15);
        transition: left 0.3s ease;
        z-index: 999;
        transform: none;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    #site-navigation.active {
        left: 0;
    }
    
    .primary-menu {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        text-align: left;
        padding: 0;
        margin: 0;
    }
    
    .primary-menu li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
        display: block;
        width: 100%;
    }
    
    .primary-menu li:last-child {
        border-bottom: none;
    }
    
    .primary-menu a {
        display: block;
        color: #222222 !important;
        font-weight: 600;
        font-size: 16px;
        padding: 15px 0;
        text-decoration: none;
        text-transform: none;
        letter-spacing: normal;
    }
    
    .primary-menu a:hover {
        color: #c32b2b !important;
    }
    
    .primary-menu .current-menu-item a {
        color: #c32b2b !important;
    }
    
    /* Show mobile toggle */
    .mobile-toggle {
        display: block;
    }
    
    .site-branding {
        min-width: auto;
    }
    
    .header-actions {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 0;
    }
    
    .site-branding .custom-logo {
        height: 40px;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .whatsapp-button {
        padding: 8px 12px;
    }
}

/* Body padding for fixed header */
body {
    padding-top: 80px !important;
}
/* ==================== HOMEPAGE HERO ==================== */
.homepage-hero {
   background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://awfaronline.com/site/wp-content/themes/generatepress_child/images/hero_image.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: var(--space-lg);
}
.homepage-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.homepage-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}
.hero-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
}
.hero-button:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    color: white;
}

/* ==================== TRUST BADGES ==================== */
.trust-badges {
    background: var(--white);
    padding: var(--space-md) 0;
    margin: 0 0 var(--space-lg) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.badges-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.badge {
    text-align: center;
    padding: 15px;
}
.badge div {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.badge h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.badge p {
    font-size: 14px;
    color: var(--text-gray);
}

/* ==================== 3-COLUMN PRODUCT SECTIONS (Featured/Best Sellers/New Arrivals) ==================== */
/* This creates the 3 side-by-side columns like the reference site */

.three-column-section {
    margin: var(--space-lg) 0;
}

.three-column-section .section-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 0;
}

.product-column-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: 100%;
}

/* Column titles - matches reference site style */
.column-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.column-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #c32b2b; /* Sale red color for consistency */
}

/* Product grid inside each column - single column layout */
.product-column-box .products-grid {
    display: grid !important;
    grid-template-columns: 1fr !important; /* Single column inside boxes */
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Product items inside columns - optimized for vertical layout */
.product-column-box .products-grid li.product {
    padding-bottom: 16px;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 0 !important;
}

.product-column-box .products-grid li.product:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Adjust image size for column layout */
.product-column-box .products-grid li.product a img {
    margin-bottom: 12px !important;
}

/* Adjust title size for column layout */
.product-column-box .products-grid li.product h2.woocommerce-loop-product__title {
    font-size: 13px !important;
    margin-bottom: 8px !important;
    line-height: 1.4;
}

/* Adjust price size for column layout */
.product-column-box .products-grid li.product .price {
    font-size: 14px !important;
    margin-bottom: 5px !important;
}

.product-column-box .products-grid li.product .price del {
    font-size: 13px !important;
}

.product-column-box .products-grid li.product .price ins {
    font-size: 15px !important;
}

/* Hide add to cart button in column layout (like reference) */
.product-column-box .products-grid li.product a.button {
    display: none !important;
}

/* Sale badge in columns - smaller version */
.product-column-box .products-grid li.product .onsale {
    padding: 2px 5px !important;
    font-size: 8px !important;
    top: 8px;
    left: 8px;
    max-width: 25%;
}

/* Responsive: 3 columns → 1 column on mobile */
@media (max-width: 992px) {
    .three-column-section .section-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .three-column-section .section-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-column-box {
        padding: 20px 15px;
    }
}

/* ==================== HOMEPAGE PRODUCT SECTIONS (4-COLUMN) ==================== */
.home-section {
    margin-bottom: 70px;
}
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--primary);
}

/* HOMEPAGE PRODUCT GRID - 4 COLUMNS */
.home-section .products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* 4 COLUMNS ON HOMEPAGE */
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

/* HOMEPAGE PRODUCT CARD */
.home-section .products-grid li.product {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    position: relative;
    box-shadow: none !important;
    transition: transform 0.3s ease;
}

/* HOMEPAGE PRODUCT IMAGE */
.home-section .products-grid li.product a img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.home-section .products-grid li.product:hover a img {
    transform: scale(1.03);
    border-color: #ddd;
}

/* HOMEPAGE PRODUCT TITLE */
.home-section .products-grid li.product h2.woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--text-dark) !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4;
    padding: 0;
    min-height: auto !important;
    height: auto !important;
}

/* HOMEPAGE PRICE */
.home-section .products-grid li.product .price {
    display: block;
    margin: 0 0 15px 0;
    font-size: 16px !important;
    font-weight: 700;
    color: var(--text-dark);
}
.home-section .products-grid li.product .price del {
    color: var(--text-gray) !important;
    font-weight: 400;
    font-size: 14px;
    opacity: 0.8;
    margin-right: 8px;
}
.home-section .products-grid li.product .price ins {
    background: transparent !important;
    color: var(--sale-price) !important;
    font-weight: 700;
    text-decoration: none;
}

/* HOMEPAGE ADD TO CART BUTTON */
.home-section .products-grid li.product a.button {
    display: inline-block !important;
    background: var(--primary) !important;
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 14px;
    border: none;
    transition: var(--transition);
    width: auto !important;
    margin: 0;
}
.home-section .products-grid li.product a.button:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
}

/* HOMEPAGE SALE BADGE */
.home-section .products-grid li.product .onsale {
    background: var(--sale-price) !important;
    color: white !important;
    border-radius: 3px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

/* ==================== SHOP PAGE PRODUCT GRID ==================== */
/* 4-COLUMN GRID TO MATCH REFERENCE SALE PAGE */
body.woocommerce-shop .site-main ul.products,
body.post-type-archive-product .site-main ul.products,
.woocommerce ul.products:not(.home-section .products-grid) {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* 4 COLUMNS */
    gap: 25px !important; /* Tighter spacing like reference */
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

/* PRODUCT CARD - Minimalist, no borders */
body.woocommerce-shop .site-main ul.products li.product,
.woocommerce ul.products:not(.home-section .products-grid) li.product {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    position: relative;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* PRODUCT IMAGE - Square */
body.woocommerce-shop .site-main ul.products li.product a img,
.woocommerce ul.products:not(.home-section .products-grid) li.product a img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important; /* Perfect square */
    object-fit: cover !important;
    display: block;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    margin-bottom: 12px !important;
    transition: all 0.3s ease;
}
body.woocommerce-shop .site-main ul.products li.product:hover a img,
.woocommerce ul.products:not(.home-section .products-grid) li.product:hover a img {
    transform: scale(1.03);
    border-color: #ddd;
}

/* PRODUCT TITLE */
body.woocommerce-shop .site-main ul.products li.product h2.woocommerce-loop-product__title,
.woocommerce ul.products:not(.home-section .products-grid) li.product h2.woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #222 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.4;
    padding: 0;
    min-height: auto !important;
}

/* PRICE - On one line with dash */
body.woocommerce-shop .site-main ul.products li.product .price,
.woocommerce ul.products:not(.home-section .products-grid) li.product .price {
    display: block;
    margin: 0 0 10px 0 !important;
    font-size: 15px !important;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    white-space: nowrap; /* Keep prices on one line */
}

/* Original price with dash after */
body.woocommerce-shop .site-main ul.products li.product .price del,
.woocommerce ul.products:not(.home-section .products-grid) li.product .price del {
    color: #888 !important;
    font-weight: 400;
    font-size: 14px !important;
    margin-right: 5px;
}
body.woocommerce-shop .site-main ul.products li.product .price del:after,
.woocommerce ul.products:not(.home-section .products-grid) li.product .price del:after {
    content: " - ";
    color: #888;
    margin: 0 3px;
}

/* Sale price */
body.woocommerce-shop .site-main ul.products li.product .price ins,
.woocommerce ul.products:not(.home-section .products-grid) li.product .price ins {
    background: transparent !important;
    color: #c32b2b !important; /* Red sale price */
    font-weight: 800 !important;
    text-decoration: none;
    font-size: 16px !important;
}

/* SALE BADGE STYLING */
.woocommerce span.onsale {
    background: #c32b2b !important;
    color: white !important;
    border-radius: 0 !important;
    padding: 2px 6px !important;
    font-size: 9px !important;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 20;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    max-width: 22%;
    text-align: center;
    white-space: nowrap;
}

/* SHOW ADD TO CART BUTTON ON SHOP PAGE */
body.woocommerce-shop .site-main ul.products li.product a.button,
.woocommerce ul.products:not(.home-section .products-grid) li.product a.button {
    display: inline-block !important; /* ← CHANGE "none" to "inline-block" */
}

/* RESPONSIVE: 4 → 3 → 2 → 1 columns */
@media (max-width: 1200px) {
    body.woocommerce-shop .site-main ul.products,
    .woocommerce ul.products:not(.home-section .products-grid) {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 992px) {
    body.woocommerce-shop .site-main ul.products,
    .woocommerce ul.products:not(.home-section .products-grid) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 576px) {
    body.woocommerce-shop .site-main ul.products,
    .woocommerce ul.products:not(.home-section .products-grid) {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: #F7FcFe !important;
    color: #F7FcFe;
    padding: 60px 0 25px;
    margin-top: 80px;
    border-top: 3px solid #c32b2b;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

/* Footer Widget Common */
.footer-widget {
    color: #cccccc;
}

/* Logo in Footer */
.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 30px;
    filter: brightness(1) invert(0);
}

.site-title-footer {
    color: #2e2d2b;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Widget Titles */
.footer-widget h4,
.footer-widget-title {
    color: #2e2d2b;
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    position: relative;
    font-weight: 600;
    border-bottom: 2px solid #c32b2b;
}

.footer-widget p,
.footer-description {
    color: #aaaaaa;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 15px;
}

/* Contact Info */
.footer-contact-info {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
}

.contact-item i {
    color: #c32b2b;
    width: 20px;
    text-align: center;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.whatsapp-icon {
    background: #25D366;
}

.facebook-icon {
    background: #3b5998;
}

.instagram-icon {
    background: #E1306C;
}

/* Footer Menu */
#footer-menu,
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer-menu li,
.footer-menu li {
    margin-bottom: 12px;
}

#footer-menu a,
.footer-menu a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

#footer-menu a:hover,
.footer-menu a:hover {
    color: #ffffff;
    padding-left: 8px;
}

/* Newsletter Form */
.footer-subscribe-form {
    margin: 25px 0 30px;
}

.form-group {
    position: relative;
    display: flex;
}

.form-group input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 1px solid #444;
    border-radius: 50px;
    background: #c2c2c2;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #c32b2b;
}

.form-group input::placeholder {
    color: #888;
}

.subscribe-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: #c32b2b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-btn:hover {
    background: #a81f1f;
}

/* Payment Methods */
.payment-methods {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.payment-methods h5 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.payment-icons {
    display: flex;
    gap: 20px;
    font-size: 28px;
    color: #666;
}

.payment-icons i {
    transition: color 0.3s ease;
}

.payment-icons i:hover {
    color: #c32b2b;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-info {
    text-align: left;
    padding-top: 0;
    border-top: none;
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-legal {
    font-size: 14px;
    color: #888;
}

.footer-legal a {
    color: #aaa;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffffff;
}
/* ==================== RESPONSIVE FOOTER ==================== */
@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .site-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-widget h4,
    .footer-widget-title {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    #footer-menu a:hover,
    .footer-menu a:hover {
        padding-left: 0;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .payment-icons {
        justify-content: center;
    }
    
    .footer-legal {
        text-align: center;
        line-height: 1.8;
    }
}
/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .home-section .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    /* Tablet: 2 columns for both */
    .home-section .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    body.woocommerce-shop .site-main ul.products,
    .woocommerce ul.products:not(.home-section .products-grid) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .badges-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
} /* ← ADDED MISSING CLOSING BRACE HERE */

@media (max-width: 768px) {
    /* Mobile: 2 columns for BOTH homepage AND shop */
    .home-section .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
     /* === ADD THESE 3 LINES HERE === */
    .is-right-sidebar {
        display: none !important;
    }
    
    .site-content .content-area {
        width: 100% !important;
    }
    
    body.woocommerce-shop .site-main ul.products,
    .woocommerce ul.products:not(.home-section .products-grid) {
        grid-template-columns: repeat(2, 1fr) !important; /* This is correct for 2 columns */
        gap: 15px !important; /* Add this for consistency */
    }
    .homepage-hero h1 {
        font-size: 2.2rem;
    }
    .homepage-hero {
        padding: 70px 0;
    }
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    #primary-menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .badges-container {
        grid-template-columns: 1fr;
    }
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    /* Additional mobile optimizations for 2-column layout */
    .home-section .products-grid li.product a img {
        margin-bottom: 10px !important;
    }
    .home-section .products-grid li.product h2.woocommerce-loop-product__title {
        font-size: 12px !important; /* Smaller font for 2 columns */
        line-height: 1.3;
        min-height: 32px; /* Fixed height for consistency */
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Show max 2 lines */
        -webkit-box-orient: vertical;
    }
    .home-section .products-grid li.product .price {
        font-size: 14px !important;
    }
    .home-section .products-grid li.product .price del {
        font-size: 12px !important;
    }
    .home-section .products-grid li.product .price ins {
        font-size: 14px !important;
    }
    .home-section .products-grid li.product a.button {
        padding: 8px 15px !important;
        font-size: 12px !important;
    }
        .home-section .products-grid li.product .onsale {
        padding: 2px 6px !important;
        font-size: 10px !important;
        top: 5px;
        left: 5px;
} /* ← ONLY ONE closing brace here */


/* Hide sidebar on homepage desktop */
.home .is-right-sidebar {
    display: none !important;
}

.home .site-content .content-area {
    width: 100% !important;
}
/* ==================== HEADER SEARCH ==================== */
.header-search {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-field {
    width: 500px;
    padding: 8px 40px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 14px;
    color: #333;
    background: #f9f9f9;
    transition: all 0.3s ease;
    outline: none;
}

.search-field:focus {
    width: 500px;
    border-color: #c32b2b;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(195, 43, 43, 0.1);
}


/* Make search bar flexible on desktop two-row layout */
@media (min-width: 993px) {
    .header-search {
        flex: 1;
        max-width: 500px;
        margin: 0 20px;
    }
    
    /* Show desktop actions, hide mobile actions */
    .desktop-actions {
        display: flex !important;
    }
    .mobile-actions {
        display: none !important;
    }
    
    .search-field {
        width: 100%;          /* Makes the input fill the .header-search container */
    }
    
    .search-field:focus {
        width: 100%;          /* Keep it at 100% when focused */
    }
}

.search-submit {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    transition: color 0.3s ease;
}

.search-submit:hover {
    color: #c32b2b;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: #f9f9f9;
}

.search-result-image {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    font-size: 15px;
    font-weight: 700;
    color: #c32b2b;
}

.search-result-price del {
    color: #888;
    font-weight: 400;
    font-size: 13px;
    margin-right: 5px;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Mobile Search */
@media (max-width: 992px) {
    /* TOP ROW: Logo + Search */
    .header-top-row {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    /* Logo - takes needed space only */
    .site-branding {
        flex: 0 0 auto !important;
        min-width: 120px !important;
        margin-right: 10px !important;
    }
    
    /* Search - takes remaining space */
    .header-search {
        flex: 1 !important;
        margin: 0 !important;
        min-width: 0 !important;
    }
    
    /* Make search form fill container */
    .search-form {
        width: 100% !important;
    }
    
    .search-field {
        width: 100% !important;
    }
    
    .search-field:focus {
        width: 100% !important;
    }
    
    .search-results {
        width: 100%;
        max-width: 100%;
    }
    
    /* HIDE desktop actions (.desktop-actions) from top row */
    .desktop-actions {
        display: none !important;
    }
    

    /* BOTTOM ROW: Toggle + WhatsApp/Account/Cart */
    .header-bottom-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 15px !important;
    }
    
    /* Toggle button - RIGHT SIDE */
    .mobile-toggle {
        display: block !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
        order: 2 !important; /* RIGHT SIDE */
    }
    
    /* Mobile actions - LEFT SIDE */
    .mobile-actions {
        display: flex !important;
        gap: 15px !important;
        justify-content: flex-start !important; /* LEFT ALIGN */
        flex: 1 !important; /* Take available space */
        order: 1 !important; /* LEFT SIDE */
    }
    
    /* Individual items */
    .whatsapp-button,
    .account-icon,
    .cart-contents {
        flex: 0 0 auto !important;
    }
}

/* ==================== 3-COLUMN SLIDER LAYOUT ==================== */
.special-products-section {
    margin: 60px 0;
}

.special-products-section .special-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 0;
}

/* Column wrapper styling */
.featured-products-wrapper,
.bestsellers-wrapper,
.newarrivals-wrapper {
    background: var(--light-bg);
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    height: 100%;
}

/* Section title with line */
.section-title.slider-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title.slider-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary);
}

/* Remove the .inline-title and .line styles since we're using :after */
.section-title .inline-title,
.section-title .line {
    display: none;
}

/* Owl Carousel container */
.slider-wrapper {
    position: relative;
    overflow: hidden;
}

.products-slider.owl-carousel {
    position: relative;
    min-height: 350px;
}

.products-slider .item {
    padding: 10px 5px;
}

/* Navigation arrows - SIMPLIFIED */
.products-slider .owl-nav {
    position: absolute;
    top: -45px;
    right: 0;
    display: flex;
    gap: 5px;
}

.products-slider .owl-nav button {
    background: var(--light-bg) !important;
    border: 1px solid var(--border-color) !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--text-gray) !important;
    font-size: 16px !important;
    transition: all 0.3s ease;
}

.products-slider .owl-nav button:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

/* Product styling inside slider */
.products-slider .product {
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    margin: 0;
    transition: transform 0.3s ease;
}

.products-slider .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.products-slider .product a img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    margin-bottom: 15px !important;
    border-radius: 4px;
}

.products-slider h2.woocommerce-loop-product__title {
    font-size: 14px !important;
    margin-bottom: 10px !important;
    line-height: 1.4;
    min-height: 40px;
    color: var(--text-dark) !important;
}

.products-slider .price {
    font-size: 16px !important;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px !important;
}

.products-slider .price del {
    color: var(--text-gray) !important;
    font-size: 14px !important;
    margin-right: 5px;
}

.products-slider .price ins {
    color: var(--primary) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* Add to cart button in sliders */
.products-slider .product a.button {
    display: inline-block !important;
    background: var(--primary) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-top: 10px !important;
    border: none !important;
    transition: var(--transition);
}

.products-slider .product a.button:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
}

/* Sale badge in sliders */
.products-slider .product .onsale {
    background: var(--primary) !important;
    color: white !important;
    padding: 3px 8px !important;
    font-size: 10px !important;
    font-weight: 700;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 992px) {
    .special-products-section .special-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .special-products-section .special-products {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-products-wrapper,
    .bestsellers-wrapper,
    .newarrivals-wrapper {
        padding: 20px 15px;
    }
    
    .products-slider .product a img {
        height: 150px !important;
    }
}
/* ==================== FLOATING WHATSAPP ICON - MOBILE ONLY ==================== */

.floating-whatsapp {
    display: none; /* Hidden by default, only show on mobile */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    color: white;
}

/* Show only on mobile */
@media (max-width: 992px) {
    .floating-whatsapp {
        display: block !important;
    }
}

/* Even smaller screens */
@media (max-width: 768px) {
    .floating-whatsapp {
        width: 55px;
        height: 55px;
        line-height: 55px;
        font-size: 28px;
        bottom: 15px;
        right: 15px;
    }
}