/* --- Global Styles & Variables --- */
:root {
    /* --- Existing Variables --- */
    --primary-color: #007BFF; /* Puthu Primary Blue */
    --secondary-color: #E6F2FF; /* Puthu Light Blue */
    --accent-color: #0056b3; /* Puthu Dark Blue (Hover) */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white-color: #fff;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    /* --- New Color Variables (Extracted from hardcoded values) --- */
    --border-color: #ccc;           /* Used for inputs, borders */
    --border-light: #ddd;           /* Used for tables, dividers */
    --border-lighter: #eee;         /* Used for cart rows */
    --bg-off-white: #f9f9f9;        /* Used for dropdowns mobile */
    --scroll-track: #f1f1f1;        /* Scrollbar track */
    --text-muted: #666;             /* Muted text */
    --text-light-muted: #888;       /* Lighter muted text */
    --text-disabled: #aaa;          /* Disabled states */
    --toast-bg: #333;               /* Toast background */
    
    /* Status Colors */
    --success-color: #28a745;       /* Success messages, In-stock */
    --error-color: #dc3545;         /* Error messages */
    --remove-btn-color: #e74c3c;    /* Remove button */
    --remove-btn-hover: #c0392b;    /* Remove button hover */
    --star-color: #f39c12;          /* Rating stars */
    
    /* Stock Status Colors */
    --stock-in-text: #27ae60;
    --stock-in-bg: #e6f7ec;
    --stock-low-text: #d35400;
    --stock-low-bg: #fbeee0;
    --stock-out-text: #c0392b;
    --stock-out-bg: #f9ebea;

    /* --- Font Variables --- */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;

    /* --- Border Radius Variables --- */
    --border-radius: 8px;           /* Standard card radius */
    --border-radius-sm: 4px;        /* Small labels */
    --border-radius-md: 5px;        /* Toasts, input groups */
    --border-radius-lg: 10px;       /* Scrollbar thumb */
    --border-radius-pill: 50px;     /* Buttons, search bars */
    --border-radius-circle: 50%;    /* Icons, badges */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white-color);
    overflow-x: hidden; /* Prevents horizontal scroll */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--scroll-track);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--border-radius-lg);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   UNIQUE MODERN NAVBAR STYLES
   ========================================= */

/* 1. Navbar Container (The Floating Island) */
.modern-navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px); /* Glass Effect */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px; /* Pill Shape */
    padding: 0.8rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.5);
}

/* Scroll Effect: Sticks to top and becomes full width */
.modern-navbar.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    padding: 10px 20px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 2. Logo */
.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo-dot { color: var(--primary-color); font-size: 2.5rem; line-height: 0; }

/* 3. Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active { color: var(--primary-color); }

/* Animated Underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Dropdown */
.nav-dropdown-group { position: relative; }
.modern-dropdown {
    position: absolute;
    top: 150%;
    left: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    list-style: none;
    padding: 15px;
    border-radius: 12px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.nav-dropdown-group:hover .modern-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.modern-dropdown li a {
    display: block;
    padding: 8px 10px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}
.modern-dropdown li a:hover { background: var(--secondary-color); color: var(--primary-color); }

/* 4. Search & Icons */
.nav-icons { display: flex; align-items: center; gap: 20px; }

.modern-search {
    background: #f1f1f1;
    border-radius: 30px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}
.modern-search:focus-within {
    background: white;
    box-shadow: 0 0 0 2px var(--primary-color);
    width: 250px;
}
.modern-search input {
    border: none; background: transparent; outline: none;
    width: 120px; transition: width 0.3s;
}
.modern-search:focus-within input { width: 100%; }
.modern-search button { background: none; border: none; cursor: pointer; color: #666; }

.icon-item {
    font-size: 1.3rem;
    color: #333;
    position: relative;
    transition: transform 0.2s;
}
.icon-item:hover { color: var(--primary-color); transform: scale(1.1); }

.nav-badge {
    position: absolute;
    top: -5px; right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    width: 18px; height: 18px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
    font-weight: bold;
}

/* 5. Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none; border: none;
    cursor: pointer;
    flex-direction: column; gap: 5px;
}
.bar { width: 25px; height: 3px; background: #333; transition: 0.3s; border-radius: 3px;}

/* 6. Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0; visibility: hidden;
    transition: 0.3s;
}
.mobile-menu-sidebar {
    position: absolute;
    top: 0; left: -300px;
    width: 280px; height: 100%;
    background: white;
    transition: 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    box-shadow: 5px 0 25px rgba(0,0,0,0.1);
    overflow: hidden; /* PUDHIYA SLIDING DESIGN-KAGA */
}

/* --- PUDHIYA SLIDING PANELS STYLES --- */
.mobile-panel {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    background: white;
    transition: transform 0.3s ease-in-out;
}

.mobile-main-panel { transform: translateX(0); }
.mobile-sub-panel { transform: translateX(100%); }

.mobile-menu-sidebar.show-sub .mobile-main-panel { transform: translateX(-100%); }
.mobile-menu-sidebar.show-sub .mobile-sub-panel { transform: translateX(0); }

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.back-menu-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}
.back-menu-btn:hover { color: var(--primary-color); }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-overlay.active .mobile-menu-sidebar { left: 0; }

.mobile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-logo { font-size: 1.5rem; font-weight: bold; }
.close-menu-btn { font-size: 2rem; background: none; border: none; cursor: pointer; }

.mobile-links { list-style: none; padding: 0; }
.mobile-links li { margin-bottom: 20px; }
.mobile-links a { font-size: 1.2rem; color: #333; text-decoration: none; font-weight: 600; }

/* 7. Responsive Breakpoints */
@media (max-width: 992px) {
    .modern-navbar { width: 95%; top: 15px; padding: 0.8rem 1.5rem; }
    .desktop-nav { display: none; }
    .mobile-toggle { display: flex; }
    .modern-search { display: none; }
    .nav-icons { gap: 15px; }
}


/* --- Main Content Area --- */
#app-container, .page-section {
    padding: 2rem 0; /* Reduced default padding */
    min-height: 70vh;
}
#home-section, #about-section, #contact-section {
    padding: 0;
}


.page-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--accent-color);
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: var(--border-radius-pill);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--accent-color);
}


.hero {
    /* Puthu Gradient - Blue Theme */
    background: no-repeat center center/cover;
    background-color: var(--primary-color);
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 20px;
}

/* --- PUDHIYA GLASSMORPHISM HERO BOX --- */
.hero-content {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white glass */
    backdrop-filter: blur(15px); /* Frosted glass blur effect */
    -webkit-backdrop-filter: blur(15px); /* Safari support */
    padding: 3rem 5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Glass edge shine */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Readability-kaga text mela chinna shadow */
}

.hero-content p {
    font-size: 1.2rem;
    margin-top: 1rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* Mobile-ku konjam size kuraikkanum */
@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1.5rem;
        margin: 0 15px; /* Mobile screen edge-la idikkama irukka */
    }
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.category-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.category-card:hover img {
    transform: scale(1.1);
}
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    font-size: 1.8rem;
    font-weight: 600;
}

.why-choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}
.feature-item .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* --- About & Contact Pages --- */
.about-layout, .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-layout img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.about-content h2 {
    font-family: var(--font-secondary);
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.contact-info-item .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.contact-form .form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}
.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* --- Products Page --- */
.products-layout {
    display: flex;
    gap: 2rem;
}
#filters {
    flex: 0 0 250px;
}
#filters h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}
.filter-group {
    margin-bottom: 1.5rem;
}
.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

#products-grid, #featured-products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    position: relative;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.view-product-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .view-product-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}


.product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
}
.product-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem 1rem;
}
.action-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--accent-color);
    transition: color 0.3s ease;
}
.action-btn:hover, .action-btn.active {
    color: var(--primary-color);
}


/* --- Individual Product Page --- */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.product-detail-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.product-detail-info h1 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-detail-info .price {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-detail-info .description {
    margin-bottom: 1.5rem;
}

.add-to-cart-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius-pill);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* --- New Buttons Styling (Add, Buy Now, Share) --- */
.cart-action-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
    flex-wrap: nowrap; /* Force all buttons to stay on the same row */
}

.add-to-cart-btn, .buy-now-btn, .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.8rem 1.2rem; /* Slightly reduced padding to ensure they fit */
    border: none;
    border-radius: var(--border-radius-pill);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap; /* Prevents text from breaking into two lines */
    transition: background-color 0.3s ease, transform 0.2s;
}
.add-to-cart-btn {
    background: var(--primary-color);
    color: var(--white-color);
}
.add-to-cart-btn:hover { background: var(--accent-color); transform: translateY(-2px); }

.buy-now-btn {
    background: #FF9900; /* Distinct color for Buy Now */
    color: #fff;
}
.buy-now-btn:hover { background: #e68a00; transform: translateY(-2px); }

.share-btn {
    background: var(--light-gray);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.share-btn:hover { background: #e2e8f0; transform: translateY(-2px); }

/* --- Sticky Bar Quantity Controller --- */
.sticky-quantity-controller {
    align-items: center;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-pill);
    overflow: hidden;
    height: 40px;
}
.sticky-qty-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 35px;
    height: 100%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
}
.sticky-qty-input {
    width: 40px;
    height: 100%;
    text-align: center;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    background: transparent;
}

/* --- Mobile Specific Adjustments for Buttons --- */
@media (max-width: 576px) {
    .cart-action-container {
        gap: 8px;
    }
    .add-to-cart-btn, .buy-now-btn {
        flex: 1; /* Stretch to fill available width evenly */
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
    .sticky-add-btn{
        background: var(--primary-color);
    color: var(--white-color);

    }
    .share-btn {
        flex: 0 0 45px; /* Fixed width */
        height: 45px;
        border-radius: 50%; /* Circle shape */
        padding: 0;
    }
    .share-btn span {
        display: none; /* Hide 'Share' text, show only icon */
    }
    
    /* Remove 'View Product' overlay on Mobile grid */
    .product-card:hover .view-product-btn {
        display: none !important;
    }
    .view-product-btn {
        display: none !important;
    }
}

/* --- Related Products Section --- */

.related-products-section {
    margin-top: 4rem; /* Main product-kum related-kum idaiyila gap */
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray); /* Oru siriya line */
}

/* Neenga ketta underline style */
.section-title-underline {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 2.5rem; /* Title-kum cards-kum gap */
    text-align: center;
    position: relative;
    padding-bottom: 10px; /* Underline-ku keezha konjam gap */
}

/* Intha pseudo-element thaan antha underline-a create pannudhu */
.section-title-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); /* Center-la veikka */
    width: 80px; /* Underline neelam */
    height: 4px; /* Underline thicknes */
    background-color: var(--primary-color);
    border-radius: 2px;
}


/* --- Cart & Wishlist Page --- */
.cart-items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem; /* Add space before summary */
}

.cart-items th, .cart-items td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.cart-items th {
    background: var(--light-gray);
}
.cart-product {
    display: flex;
    align-items: center;
}
.cart-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: var(--border-radius);
}
.quantity-controls {
    display: flex;
    align-items: center;
}
.quantity-btn {
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.cart-summary {
    margin-top: 2rem;
    float: right;
    width: 100%;
    max-width: 350px;
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}
.cart-summary h3 {
    margin-bottom: 1rem;
}

/* =========================================
   UNIQUE MODERN FOOTER STYLES
   ========================================= */

.modern-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    padding-top: 4rem;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    font-family: 'Segoe UI', sans-serif;
}

/* Glassy Decorative Circle */
.modern-footer::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

/* Column 1: Brand Info */
.footer-brand h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 800;
}
.footer-brand p {
    color: #a0a0a0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Columns 2 & 3: Links */
.footer-links h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.footer-links h3::after {
    content: '';
    position: absolute;
    left: 0; bottom: -5px;
    width: 40px; height: 2px;
    background: var(--primary-color, #4a90e2);
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

/* Column 4: Newsletter */
.footer-newsletter h3 { margin-bottom: 1rem; color: white; }
.footer-newsletter p { color: #a0a0a0; margin-bottom: 1rem; font-size: 0.9rem; }

.newsletter-form {
    display: flex;
    background: rgba(255,255,255,0.05);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}
.newsletter-form input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    padding: 10px 15px;
    outline: none;
}
.newsletter-form button {
    background: var(--primary-color, #4a90e2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
.newsletter-form button:hover { background: #357abd; }

/* Social Icons */
.social-links { margin-top: 20px; display: flex; gap: 15px; }
.social-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--primary-color, #4a90e2);
    transform: translateY(-3px);
}

/* Bottom Bar */
.footer-bottom {
    margin-top: 4rem;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-links h3::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }
}
/* --- Utility Classes --- */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top: 5px solid var(--primary-color);
    border-radius: var(--border-radius-circle);
    animation: spin 1s linear infinite;
    margin: 4rem auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%; /* 'right: 20px' -ku pathila itha maathunga */
    transform: translateX(-50%); /* Itha pudhusa serkavum (center panna) */
    z-index: 2000;
}
.toast {
    background-color: var(--toast-bg);
    color: var(--white-color);
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    transform: translateY(100%); /* 'translateX(100%)' -ku pathila itha maathunga (keezha irundhu vara) */
}
.toast.show {
    opacity: 1;
    transform: translateY(0); /* 'translateX(0)' -ku pathila itha maathunga */
}
.toast.success {
    background-color: var(--success-color);
}
.toast.error {
    background-color: var(--error-color);
}

/* --- Individual Product Page Quantity Badge --- */
.cart-action-container {
    display: flex;
    align-items: center;
    gap: 1rem; /* பட்டனுக்கும் வட்டத்திற்கும் இடையில் இடைவெளி */
    margin-top: 1.5rem;
}

.item-quantity-badge {
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-circle);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Container for badge and minus button on detail page */
.quantity-controls-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Space between badge and minus button */
}

/* Style for the minus button */
.quantity-minus-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-circle);
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 4px; /* Adjusts the minus sign position */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.quantity-minus-btn:hover {
    background-color: var(--accent-color);
}

/* --- Quantity Controller on Detail Page --- */
.quantity-controller {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
}

.quantity-btn-detail {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    transition: color 0.3s ease;
}

.quantity-btn-detail:hover {
    color: var(--accent-color);
}

.quantity-input {
    width: 50px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 0 5px;
    background-color: transparent;
}

/* Hides the arrows from the number input */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}

/*
==============================================
--- RESPONSIVE DESIGN (Media Queries) ---
==============================================
*/

/* --- Large Laptops (Optional) --- */
@media (max-width: 1200px) {
    .container {
        padding: 10px;
    }
}


/* --- Tablets & Small Laptops --- */
@media (max-width: 992px) {
    .logo {
        font-size: 1.6rem;
    }
    .search-container {
        margin-right: 0;
    }
    #search-bar { width: 120px; }
    #search-bar:focus { width: 150px; }
    
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white-color);
        box-shadow: var(--box-shadow);
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    .main-nav li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid var(--light-gray);
    }
    .main-nav a {
        padding: 1rem;
        display: block;
    }
    .hero{
        margin-top: 100px;
    }
    /* Mobile Dropdown Logic */
    .dropdown .dropdown-menu {
        position: static;
        display: none; 
        box-shadow: none;
        border-radius: 0;
        min-width: 100%;
        padding: 0;
        background-color: var(--bg-off-white);
    }
    .dropdown:hover .dropdown-menu { display: none; }
    .dropdown.open .dropdown-menu { display: block; }
    
    #mobile-menu-btn {
        display: block;
    }

    .hero-content h1 { font-size: 2.8rem; }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #products-grid, #featured-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .product-detail-layout, .about-layout, .contact-layout {
        grid-template-columns: 1fr;
    }
    .about-layout img {
        grid-row: 1; /* Puts image on top on mobile */
    }

    .products-layout {
        flex-direction: column;
    }
    #filters {
        flex: 0 0 auto;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 1rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Large Phones & Small Tablets --- */
@media (max-width: 768px) {
    .section, #app-container, .page-section {
        padding: 2rem 0;
    }

    .page-title { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }

    .category-grid {
        grid-template-columns: 1fr;
    }
    .category-card img {
        height: 250px;
    }

    .why-choose-us-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        float: none;
        max-width: none;
        margin: 2rem auto 0;
    }

    /* Make cart table more responsive */
    .cart-items thead {
        display: none; /* Hide table headers */
    }
    .cart-items, .cart-items tbody, .cart-items tr, .cart-items td {
        display: block;
        width: 100%;
    }
    .cart-items tr {
        margin-bottom: 1.5rem;
        border: 1px solid var(--border-lighter);
        padding: 1rem;
    }
    .cart-items td {
        text-align: right;
        padding: 0.5rem;
        border: none;
        position: relative;
    }
    .cart-items td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        font-weight: bold;
        text-align: left;
    }
    .cart-items .cart-product {
        justify-content: flex-end;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}

/* --- Small Phones --- */
@media (max-width: 576px) {
    .header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .header-icons {
        order: 2;
    }
    .logo {
        order: 1;
    }
    .search-container {
        order: 3;
        width: 100%;
        margin: 10px 0 0;
        display: none;
    }
    #search-bar, #search-bar:focus {
        width: 100%;
    }

    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }

    .product-detail-info h1 { font-size: 2rem; }
    .product-detail-info .price { font-size: 1.8rem; }

    .btn-primary, .add-to-cart-btn {
        width: 100%;
        text-align: center;
    }
    
    .cart-items .cart-product { 
        flex-direction: column; 
        align-items: flex-end; 
    }
    .cart-product img {
        margin: 0 0 10px;
        width: 100px;
        height: 100px;
    }

    #toast-container {
        width: 90%;
    }
    /* --- PUDHIYA THIRUTHAM INGIRUNDHU --- */
    #products-grid, 
    #featured-products-grid,
    .related-products-section #products-grid {
        /* Card-oda minimum size-a 150px-a koraikkirom */
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem; /* Gap-aiyum konjam koraikkirom */
    }
    /* --- MUDINDHADHU --- */
}

/* --- HERO IMAGE MOBILE FIX --- */
@media (max-width: 576px) {
    .hero {
        height: 45vh; /* Reduced height for mobile screens */
        background-position: center center; /* Ensures the middle of the banner is visible */
        background-attachment: scroll; /* Prevents background issues on some mobile browsers */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.8rem; /* Slightly smaller heading for better fit */
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
}

/* ==============================================
--- NEW PRODUCT DETAIL PAGE (PDP) STYLES ---
==============================================
*/

/* 1. New 3-Column Grid Layout */
.pdp-new-layout {
    display: grid;
    /* 1fr = thumbnail column, 5fr = main image, 4fr = info */
    grid-template-columns: 1fr 5fr 4fr;
    gap: 2rem;
    align-items: flex-start;
}

/* 2. Column 1: Vertical Thumbnail Gallery */
.pdp-image-gallery {
    position: sticky;
    top: 100px; /* Header height + 20px gap */
    align-self: start; /* Ithu grid-la sticky work aaga mukkiyam */

    display: flex;
    flex-direction: column;
    gap: 10px;
    
    /* Viewport-ku ulla mattum irukka */
    max-height: calc(100vh - 120px); /* 100px top + 20px bottom gap */
    overflow-y: auto; 

    /* --- PUDHIYA MAATRANGAL (SCROLLBAR-AI MARAIKKA) --- */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

/* Webkit (Chrome, Safari, etc.) scrollbar-ai maraikka */
.pdp-image-gallery::-webkit-scrollbar {
    display: none;
}

.pdp-thumbnail-img {
    width: 100%;
    height: auto;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.pdp-thumbnail-img:hover,
.pdp-thumbnail-img.active {
    border-color: var(--primary-color);
}

/* 3. Column 2: Main Image */
.pdp-main-image {
    width: 100%;

    /* PUTHU MAATRANGAL: Sticky panninga */
    position: sticky;
    top: 100px; /* Header height + 20px gap */
    align-self: start; /* Ithu grid-la sticky work aaga mukkiyam */
}
#pdp-main-image-tag {
    width: 100%;
    height: auto;
    max-height: 500px; /* Main image height */
    object-fit: contain; /* Image cut aagaamal irukka */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* 4. Column 3: Product Info */
.pdp-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.pdp-info h1 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 5. Price & Discount Badge */
.pdp-price-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}
.pdp-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}
.pdp-original-price {
    font-size: 1.2rem;
    color: var(--text-light-muted);
    text-decoration: line-through;
}
.pdp-discount-badge {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 10px;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    font-weight: 600;
}

/* 6. Short Description (from 'content' key) */
.pdp-short-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* 7. Out of Stock Button */
.add-to-cart-btn.disabled {
    background-color: var(--text-disabled);
    cursor: not-allowed;
}
.add-to-cart-btn.disabled:hover {
    background-color: var(--text-disabled);
}

/* 8. Dynamic Tabs */
.pdp-tabs-container {
    margin-top: 2rem;
    width: 100%;
}
.pdp-tabs-nav {
    list-style: none;
    display: flex;
    border-bottom: 2px solid var(--light-gray);
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    
    /* --- PUDHIYA MAATRANGAL (SCROLLBAR-AI MARAIKKA) --- */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

/* Webkit (Chrome, Safari, etc.) scrollbar-ai maraikka */
.pdp-tabs-nav::-webkit-scrollbar {
    display: none;
}
.pdp-tab-trigger {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light-muted);
    position: relative;
    bottom: -2px; /* Bottom border-la touch aagura maari */
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.pdp-tab-trigger:hover {
    color: var(--text-color);
}
.pdp-tab-trigger.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.pdp-tabs-content {
    padding: 1.5rem 0;
}
.pdp-tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}
.pdp-tab-panel.active {
    display: block;
}
.pdp-tab-panel ul {
    list-style: disc; /* Bullet points */
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px; /* List items-ku idaiyila gap */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 9. Related Products (Underline Title) */
.related-products-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
    /* Make it span all 3 columns */
    grid-column: 1 / -1; 
}
.section-title-underline {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}
.section-title-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 10. Responsive Adjustments */
@media (max-width: 992px) {
    .pdp-new-layout {
        /* Stack image gallery on top of main image, info on the side */
        grid-template-columns: 1fr 1fr; /* 2 column */
    }
    .pdp-image-gallery {
        grid-row: 2; /* Move thumbnails below main image */
        grid-column: 1 / 2;
        flex-direction: row; /* Horizontal thumbnails on tablet */
        overflow-x: auto;
        overflow-y: hidden;
        max-height: 100px;
    }
    .pdp-thumbnail-img {
        max-width: 90px;
    }
    .pdp-main-image {
        grid-row: 1;
        grid-column: 1 / 2;
    }
    .pdp-info {
        grid-row: 1 / span 2; /* Info spans 2 rows */
        grid-column: 2 / 3;
    }
    .related-products-section {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .pdp-new-layout {
        grid-template-columns: 1fr; /* Single column */
    }
    /* All items stack vertically */
    .pdp-main-image {
        grid-row: 1;
        grid-column: 1;
    }
    .pdp-image-gallery {
        grid-row: 2;
        grid-column: 1;
    }
    .pdp-info {
        grid-row: 3;
        grid-column: 1;
    }
    .pdp-info h1 {
        font-size: 2rem;
    }
    .pdp-main-image,
    .pdp-image-gallery {
        /* Mobile-la sticky vendam, stack aaguradhaala */
        position: static;
        max-height: none; /* Max-height-ai reset pannidalam */
    }
    /* --- PUTHU RULES MUDINDHADHU --- */

    /* All items stack vertically */
    .pdp-main-image {
        grid-row: 1;
        grid-column: 1;
    }
}


/* ==============================================
--- PUDHIYA CART PAGE STYLES ---
==============================================
*/

/* Pazhaya table styles-a override pannidalam (illana delete pannidalam) */
.cart-items {
    /* Intha class ippo use aagathu, aana safety-ku vechikkalam */
    width: 100%;
    border-collapse: collapse;
}

/* --- Pudhiya Layout --- */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 66% items, 33% summary */
    gap: 2rem;
    align-items: flex-start; /* Summary top-la irukka */
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Oru oru card-ku idaiyila gap */
}

/* --- Pudhiya Cart Item Card --- */
.cart-item-card {
    display: grid;
    /* Columns: Image | Details | Quantity | Total | Remove */
    grid-template-columns: 80px 2fr 1.2fr 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--light-gray);
    transition: box-shadow 0.3s ease;
}
.cart-item-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
}
.cart-item-name:hover {
    color: var(--primary-color);
}

.cart-item-price {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cart-item-quantity .quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    padding: 5px;
}
.cart-item-quantity .quantity-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    width: 30px;
}
.cart-item-quantity span {
    padding: 0 10px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.cart-item-total {
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
    color: var(--primary-color);
}

.cart-item-remove .action-btn {
    color: var(--remove-btn-color); /* Red color for remove */
    font-size: 1.3rem;
}
.cart-item-remove .action-btn:hover {
    color: var(--remove-btn-hover);
}


/* --- Pudhiya Cart Summary Style --- */
.cart-summary-wrapper {
    /* Desktop-la scroll pannaalum, summary anga-ve irukka */
    position: sticky;
    top: 100px; /* Header-oda height-a poruthu (header 80px + gap 20px) */
}

.cart-summary {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}
.cart-summary h3 {
    font-family: var(--font-secondary);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}
.cart-summary .summary-row,
.cart-summary .summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.cart-summary .summary-total {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}


/* ==============================================
--- MOBILE RESPONSIVE (Grid View) ---
==============================================
*/

@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr; /* Oru column-a maathuradhu */
    }
    .cart-summary-wrapper {
        position: static; /* Sticky-a remove pannuradhu */
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    /* Mobile-la, pazhaya table-oda responsive problem */
    .cart-items thead { display: none; }
    .cart-items, .cart-items tbody, .cart-items tr, .cart-items td {
        display: block; width: 100%;
    }
    .cart-items tr { margin-bottom: 1rem; }
    .cart-items td { text-align: right; position: relative; }
    .cart-items td::before { content: attr(data-label); position: absolute; left: 10px; font-weight: bold; }

    /* --- PUDHIYA MOBILE GRID VIEW --- */
    .cart-item-card {
        /* 2-column grid-a maathuradhu */
        grid-template-columns: 80px 1fr 1fr 20px;
        /* Grid areas define pannuradhu */
        grid-template-areas:
            "image details details remove"
            "image quantity total total";
        gap: 0.5rem 1rem; /* Gap-a korachikuradhu */
        padding: 1rem;
    }

    /* Oru oru element-ayum correct-aana idathula vekkuradhu */
    .cart-item-image {
        grid-area: image;
        align-self: flex-start; /* Image-a top-la align pannuradhu */
    }
    .cart-item-details {
        grid-area: details;
    }
    .cart-item-quantity {
        grid-area: quantity;
        justify-self: flex-start; /* Left-la align pannuradhu */
    }
    .cart-item-total {
        grid-area: total;
        align-self: center; /* Vertically center */
        text-align: right; /* Right-la align pannuradhu */
        font-size: 1.2rem;
    }
    .cart-item-remove {
        grid-area: remove;
        align-self: center; /* Vertically center */
        justify-self: flex-start; /* Left-la align pannuradhu */
    }

    .cart-item-quantity .quantity-controls {
        padding: 2px; /* Mobile-la controls-a sirusaakkuradhu */
    }
}

/* ==============================================
--- PUDHIYA CART HEADER & MODAL STYLES ---
==============================================
*/

/* 1. Cart Page Header (Title + Mobile Button) */
.cart-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.cart-header .page-title {
    margin-bottom: 0; /* Title-ku keezha irundha margin-a neekkuradhu */
    width: 100%;
}

/* 2. Top Checkout Button (Mobile-la mattum) */
.top-checkout-container {
    display: none; /* Desktop-la maraikkavum */
}

/* 900px-ku keezha pona, top button-a kaattavum */
@media (max-width: 900px) {
    .cart-header {
        /* Mobile-la title-ku keezha button-a kondu vara */
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .top-checkout-container {
        display: flex;
        width: 100%;
        justify-content: flex-end;
    }
    #top-checkout-btn {
        width: 30%;
    }
    .btn-primary{
        padding: 10px;
    }
}


/* 3. Modal Styles (Overlay, Content, Form) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* Default-a maraikkavum */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-content {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: zoomIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    color: var(--text-disabled);
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover {
    color: var(--text-color);
}

.modal-content h3 {
    font-family: var(--font-secondary);
    color: var(--accent-color);
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.order-form-group {
    margin-bottom: 1rem;
}
.order-form-group label {
    display: none;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.order-form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}
.form-error-label {
    color: var(--error-color); /* Sivantha niram */
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
    
    /* ITHU THAAN MUKKIYAM */
    display: none; /* Default-a marachirukkum */
}

/* 4. Success Modal (Green Tick) */
.success-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}
.success-icon-tick {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-circle);
    background: var(--success-color); /* Green */
    color: var(--white-color);
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: pulse 0.5s ease-out;
}

/* Modal-ku oru siriya animation */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
@keyframes pulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- PUDHIYA STYLES (ITHAI KADAISIYIL SERKAVUM) --- */

/* 1. Filter Layout Styles */
.products-layout {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
}

.filters-sidebar {
    flex: 0 0 250px; /* Filter sidebar width */
    position: sticky;
    top: 100px; /* Header height + gap */
    align-self: flex-start; /* Stays at the top */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1rem;
    border-right: 1px solid var(--light-gray);
}

.products-grid-container {
    flex: 1; /* Takes remaining space */
    min-width: 0; /* Prevents overflow */
}

#products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    font-size: 1.2rem;
    font-family: var(--font-secondary);
    color: var(--accent-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

/* 2. Tags & Rating Styles */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}
.filter-option {
    display: block;
    cursor: pointer;
    font-size: 0.9rem;
}
.filter-option input {
    margin-right: 8px;
}
.filter-option.rating-option {
    display: flex;
    align-items: center;
}
.rating-stars {
    color: var(--star-color); /* Star color */
    margin-left: 5px;
}

/* 3. Mobile Filter Responsive Styles */
.filter-open-btn {
    display: none; /* Desktop-la hide pannu */
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1.5rem;
    width: 100%;
}
.filter-open-btn i {
    margin-right: 8px;
}

.filter-close-btn {
    display: none; /* Desktop-la hide pannu */
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
}
#price-range-slider{
    width: 100%;
}

@media (max-width: 992px) {
    .products-layout {
        flex-direction: column;
    }
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%; /* Screen-ku veliya marachirukkum */
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: var(--white-color);
        z-index: 1200; /* Header-ku mela */
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        transition: left 0.3s ease-in-out;
        border-right: none;
        padding: 2rem;
        max-height: 100vh;
        overflow-y: auto;
    }
    .filters-sidebar.active {
        left: 0;
    }
    .filter-open-btn {
        display: block;
    }
    .filter-close-btn {
        display: block;
    }
    .filters-sidebar {
        border-right: none;
        position: fixed;
    }
}

/* 4. PDP Rating & Stock Styles */
.pdp-meta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.pdp-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.pdp-rating i {
    color: var(--star-color);
}
.pdp-rating span {
    font-weight: 600;
    color: var(--text-color);
}
.pdp-stock-divider {
    width: 1px;
    height: 1.2rem;
    background-color: var(--border-color);
}
.pdp-stock {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
}
.pdp-stock.in-stock {
    color: var(--stock-in-text);
    background-color: var(--stock-in-bg);
}
.pdp-stock.low-stock {
    color: var(--stock-low-text);
    background-color: var(--stock-low-bg);
}
.pdp-stock.out-of-stock {
    color: var(--stock-out-text);
    background-color: var(--stock-out-bg);
}

/* ==============================================
--- PUDHIYA PDP OPTIONS (COLORS & SIZES) ---
==============================================
*/

.pdp-options-container {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pdp-options-group {
    display: flex;
    flex-direction: column;
}

.pdp-options-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.color-swatch-list,
.size-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Color Swatches */
.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-circle);
    cursor: pointer;
    border: 3px solid var(--light-gray);
    transition: border-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.color-swatch:hover {
    border-color: var(--accent-color);
}

.color-swatch.active {
    border-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Size Options */
.size-option {
    padding: 8px 14px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.size-option.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* =========================================
   NOXLAY THEME WIDGET STYLES (Copy & Paste)
   ========================================= */

/* --- 1. Theme Definitions (Overrides Root) --- */




/* Modal Overlay */
.nox-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.nox-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Box */
.nox-modal-box {
    background: var(--white-color);
    color: var(--text-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.nox-modal-overlay.active .nox-modal-box {
    transform: translateY(0);
}

/* Settings Icon (Gear) */
#nox-settings-trigger {
    position: fixed;
    left: -60px; /* Hidden initially */
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 10px 10px 0; /* Rounded right side */
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 9990;
    transition: left 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
#nox-settings-trigger.visible {
    left: 0; /* Slide in */
}
#nox-settings-trigger i {
    font-size: 1.5rem;
    animation: spin-slow 4s linear infinite;
}
@keyframes spin-slow { 100% { transform: rotate(360deg); } }

/* Theme Selection Grid */
.nox-theme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 1.5rem;
}
.nox-theme-btn {
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
}
.nox-theme-btn:hover, .nox-theme-btn.active {
    border-color: var(--primary-color);
    background: var(--secondary-color);
    color: var(--primary-color);
}
.color-preview {
    width: 20px; height: 20px;
    border-radius: 50%;
    margin-bottom: 5px;
    border: 1px solid #ccc;
}


/* --- PUDHIYA THIRUTHAM (MOBILE 2-COLUMN GRID) --- */


@media (max-width: 992px){
/* --- PUDHIYA THIRUTHAM (MOBILE 2-COLUMN GRID) --- */
#products-grid, 
#featured-products-grid,
.related-products-section #products-grid {
    /* Forces exactly two columns per row */
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; /* Reduced gap to save space on small screens */
    padding: 0 5px;
}
}

/* Adjusting card elements to look better in a smaller width */
@media (max-width: 576px) {
    #products-grid, 
#featured-products-grid,
.related-products-section #products-grid {
    /* Forces exactly two columns per row */
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; /* Reduced gap to save space on small screens */
    padding: 0 5px;
}
    .product-image {
        height: 180px; /* Reduced height so images don't look too tall */
    }

    .product-info {
        padding: 10px 8px; /* Slightly less padding */
    }

    .product-name {
        font-size: 0.9rem; /* Smaller text for 2-column layout */
    }

    .product-price {
        font-size: 1rem;
    }

    .product-actions {
        padding: 0 8px 8px;
    }

    .view-product-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        bottom: 5px;
    }
}
/* --- RESPONSIVE & HAMBURGER MENU FIXES --- */

/* 1. Default State (Desktop) */
.mobile-toggle {
    display: none; /* Hide hamburger on desktop */
}

.desktop-nav {
    display: flex; /* Show normal links on desktop */
}

.modern-search {
    display: flex; /* Show search on desktop */
}

/* 2. Mobile View (Tablets & Phones - Below 992px) */
@media (max-width: 992px) {
    
    /* Hide Desktop Elements */
    .desktop-nav {
        display: none !important;
    }
    
    .modern-search {
        display: none !important;
    }

    /* Show Hamburger Icon */
    .mobile-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001; /* Ensure it's on top */
    }

    /* Style the 3 Lines (Bars) */
    .mobile-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: #333; /* Dark color for visibility */
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Navbar Container Adjustments */
    .modern-navbar {
        top: 0;
        width: 100%;
        border-radius: 0;
        padding: 1rem 1.5rem;
        justify-content: space-between;
    }

    /* Fix Icons Spacing */
    .nav-icons {
        gap: 15px;
    }
}

/* 3. Sidebar (Drawer) Styles */
.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -100%; /* Hide off-screen */
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 2001;
    padding: 2rem;
    transition: left 0.3s ease-in-out;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* Show Sidebar when Active */
.mobile-menu-overlay.active .mobile-menu-sidebar {
    left: 0; /* Slide in */
}

/* Mobile Links Styling */
.mobile-links {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.mobile-links li {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.mobile-links a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
}

.mobile-links a:hover {
    color: var(--primary-color);
    padding-left: 5px; /* Slide effect */
    transition: 0.2s;
}

/* Close Button in Sidebar */
.close-menu-btn {
    align-self: flex-end;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}



/* --- Stylish View All Button --- */
.view-all-container {
    text-align: center;
    margin-top: 3.5rem; /* Space between products and button */
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white-color);
    padding: 1rem 2.8rem;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.btn-view-all:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    background: var(--white-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-view-all i {
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(5px); /* Arrow moves slightly to the right on hover */
}

/* Adjust for mobile screens */
@media (max-width: 576px) {
    .btn-view-all {
        width: 80%;
        justify-content: center;
        padding: 0.9rem 2rem;
    }
 
}

.new-arrivals-grid{
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 576px){
   .new-arrivals-grid{
    grid-template-columns: repeat(2, 1fr);
}
}

/* --- Combo Offer Styles --- */
.combo-badge {
    display: inline-block;
    background: #e0f2fe; /* Light Blue */
    color: #0284c7; /* Dark Blue */
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 5px;
    border: 1px solid #bae6fd;
}

/* --- Offer Badge & Cart Notifications --- */
.offer-badge-tag {
    position: absolute;
    top: 10px;
    right: 10px; /* Opposite side of NEW badge */
    background: #FFD700; /* Gold color */
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
}

.cart-notices-container {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.cart-notice-box {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    animation: slideInNotice 0.5s ease-out;
}

.delivery-notice {
    background: #fff8e1;
    color: #856404;
    border-color: #ffeeba;
}

.combo-notice {
    background: #e3f2fd;
    color: #0d47a1;
    border-color: #bbdefb;
}

.cart-notice-box i {
    font-size: 1.2rem;
}

@keyframes slideInNotice {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- Offer Notice & Links Styles --- */
.cart-notices-container {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-notice-box {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    line-height: 1.4;
    animation: slideInNotice 0.5s ease-out;
}

.delivery-notice { background: #fff8e1; color: #856404; border-color: #ffeeba; }
.combo-notice { background: #e3f2fd; color: #0d47a1; border-color: #bbdefb; }

.notice-link {
    color: inherit;
    text-decoration: underline;
    font-weight: 700;
    transition: opacity 0.2s;
}

.notice-link:hover { opacity: 0.7; }

/* Mobile Optimization */
@media (max-width: 576px) {
    .cart-notice-box {
        font-size: 0.85rem;
        padding: 10px;
    }
}

@keyframes slideInNotice {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MODERN VERTICAL SLIDER ANNOUNCEMENT BAR --- */
.modern-announcement-bar {
    display: block;
    width: 100%;
    height: 40px; /* Fixed height for neatness */
    text-decoration: none !important;
    position: relative;
    z-index: 1001;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ann-slider-container {
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ann-slide-msg {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px); /* Start slightly below */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Active Message State */
.ann-slide-msg.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Position Adjustment */
.modern-announcement-bar + .modern-navbar {
    top: 55px; /* Push navbar down slightly */
}

.modern-announcement-bar + .modern-navbar.scrolled {
    top: 0; /* Reset on scroll */
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .modern-announcement-bar { height: 35px; font-size: 0.75rem; }
    .modern-announcement-bar + .modern-navbar { top: 0; position: sticky; }
}

/* --- GLOBAL SMART SEARCH DROPDOWN --- */
.search-dropdown-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 300px; /* Wider than search bar for better view */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 10000;
    max-height: 400px;
    overflow-y: auto;
    display: none; /* Hidden by default */
    margin-top: 10px;
}

/* Right align for desktop to prevent overflow */
@media (min-width: 993px) {
    .search-dropdown-results {
        right: 0;
        left: auto;
    }
}

/* Individual Result Item */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
    gap: 15px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-result-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin-bottom: 3px;
}

.search-result-price {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
}

.no-results-msg {
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Scrollbar for dropdown */
.search-dropdown-results::-webkit-scrollbar {
    width: 6px;
}
.search-dropdown-results::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* --- MOBILE FILTER SEARCH BOX --- */
.mobile-filter-search {
    display: none; /* Desktop-il maraithu vaikkavum */
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.mobile-filter-search input {
    width: 100%;
    padding: 12px 15px 12px 40px; /* Icon-kku idam */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #f9f9f9;
    outline: none;
    transition: all 0.3s;
}

.mobile-filter-search input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.mobile-filter-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

/* Mobile-il mattum kaatta */
@media (max-width: 992px) {
    .mobile-filter-search {
        display: block;
    }
}

/* --- STICKY BOTTOM BAR (MOBILE ONLY) --- */
.sticky-product-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white-color);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    padding: 10px 15px;
    z-index: 9999;
    display: none; /* Hidden by default (Desktop) */
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transform: translateY(100%); /* Initially hidden below screen */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-top: 1px solid var(--border-lighter);
}

.sticky-product-bar.visible {
    transform: translateY(0); /* Slide up */
}

/* --- PUDHIYA LOGIC: Sticky Bar Left & Right Layout --- */
.sticky-bar-left, .sticky-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.sticky-bar-left {
    justify-content: flex-start;
}

.sticky-bar-right {
    justify-content: flex-end;
}

/* Global Cart View Button Style */
.sticky-btn.sticky-cart-view-btn {
    background: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: var(--border-radius-pill);
}

/* Buy Now Button Style */
.sticky-btn.sticky-buy-now-btn {
    background: #FF9900; /* Distinct Orange for Buy Now */
    color: var(--white-color);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: var(--border-radius-pill);
    box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
}

/* Pazhaya styles-ai மறைக்க/நீக்க தேவை இல்லை என்றால் விட்டுவிடலாம், ஆனால் முந்தைய டிசைன் உடையாமல் இருக்க இதை சேர்க்கிறோம் */
.sticky-bar-info { display: none; }
.sticky-bar-actions { display: none; }

.sticky-btn {
    flex: 1;
    padding: 10px 0;
    border-radius: var(--border-radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.sticky-btn.add-cart {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.sticky-btn.buy-now {
    background: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Ensure it creates space at bottom of page so content isn't covered */
@media (max-width: 768px) {
    .sticky-product-bar {
        display: flex;
    }
    body.has-sticky-bar {
        padding-bottom: 80px; /* Space for the bar */
    }
}

/* --- LIKO SUPER CTA BUTTON (CLIENT SIDE) --- */
.liko-super-cta {
    background: linear-gradient(270deg, #2563eb, #8b5cf6, #3b82f6, #a855f7);
    background-size: 300% 300%;
    color: #ffffff !important;
    border: none;
    padding: 12px 28px;
    border-radius: 50px; /* Modern Pill Shape */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: likoGradientMove 5s ease infinite;
}

.liko-super-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

@keyframes likoGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Unique Footer Policy Styles --- */
.footer-policy-box-unique h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-policy-box-unique h3::after {
    content: '';
    position: absolute;
    left: 0; bottom: -5px;
    width: 40px; height: 2px;
    background: var(--primary-color);
}

.policy-links-list-unique {
    list-style: none;
    padding: 0;
}

.policy-links-list-unique li {
    margin-bottom: 12px;
}

.policy-links-list-unique a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.policy-links-list-unique a i {
    font-size: 0.85rem;
    color: var(--primary-color);
}

.policy-links-list-unique a:hover {
    color: white;
    transform: translateX(5px);
}

/* Mobile Responsive Fix */
@media (max-width: 576px) {
    .footer-policy-box-unique {
        text-align: center;
        margin-top: 20px;
    }
    .footer-policy-box-unique h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .policy-links-list-unique a {
        justify-content: center;
    }
}