/* ====================================================================
   NANMAYIL "SAGE GLASS" THEME (High Contrast v2.1)
   ==================================================================== */

:root {
    --bg-sage: #c8dad3;
    /* Darker sage for better glass contrast */
    --glass-surface: rgba(255, 255, 255, 0.20);
    /* Significantly more transparent */
    --glass-border: 1px solid rgba(255, 255, 255, 0.40);
    --brand-green: #0D9488;
    --text-main: #073B3B;
}

/* 1. THE DARKER BACKGROUND (Crucial for Glass) */
body {
    background-color: var(--bg-sage) !important;
    background-image:
        radial-gradient(at 0% 0%, rgba(13, 148, 136, 0.22) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(11, 112, 112, 0.18) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.6) 0%, transparent 80%) !important;
    background-attachment: fixed !important;
    color: var(--text-main) !important;
    font-family: 'Inter', sans-serif !important;
}

/* 2. THE GLASS CARDS (High Specificity Overrides) */
/* Targeted specificity to override modern-theme.css */
.products-modern,
.products-grid,
#products-grid-container {
    background: transparent !important;
}

/* The Card Container - High Specificity */
.products-modern .product-card,
.products-modern .card,
.card,
.product-card,
.product-item {
    background: var(--glass-surface) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: var(--glass-border) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

/* 3. THE X-RAY FIX (Crucial: Make inner elements transparent) */
/* Override widely used white backgrounds from modern-theme */
.products-modern .product-card>div,
.products-modern .product-gallery,
.products-modern .product-info,
.products-modern .gallery-image-box,
.product-card .product-gallery,
.product-card .product-info,
.product-card .gallery-image-box,
.card-body,
.card-footer,
.card-img-top {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: none !important;
    /* Remove internal borders */
}

/* Hover Effect */
.products-modern .product-card:hover,
.card:hover,
.product-card:hover {
    transform: translateY(-8px) !important;
    background: rgba(255, 255, 255, 0.70) !important;
    /* Whiter on hover */
    box-shadow: 0 14px 40px -5px rgba(0, 50, 30, 0.15) !important;
    border-color: #ffffff !important;
}

/* 4. CONTENT VISIBILITY */
.card h3,
.product-title,
.product-name,
.product-title a {
    color: #0B6E6E !important;
    /* Deep teal */
    font-weight: 700 !important;
    text-decoration: none !important;
}

.card .price,
.product-price {
    color: #0B7070 !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
}

/* 5. BUTTONS */
.products-modern .product-btn,
button,
.btn,
.add-to-cart,
.add-to-cart-btn {
    background: linear-gradient(135deg, #0D9488, #085A5A) !important;
    color: white !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4) !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

button:hover,
.btn:hover,
.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.6) !important;
}

/* 6. NAVBAR & SIDEBAR */
.navbar,
.sidebar {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* 7. USP STRIP & HEADERS */
.usp-strip {
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.section-title {
    color: #134e4a !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* 8. HERO NAVIGATION (Glass Fix - Ultra Specificity) */
#home .hero-nav,
#home button.hero-nav {
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    color: #111827 !important;
    box-shadow: none !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
    opacity: 0.7 !important;
}

#home .hero-nav:hover,
#home button.hero-nav:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.05) !important;
}

#home .hero-dots {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(4px) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 4px 8px !important;
    gap: 6px !important;
    bottom: 12px !important;
}

#home .hero-dots .hero-dot {
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
}

/* Only the active dot gets the brand green */
#home .hero-dots .hero-dot[aria-selected="true"] {
    background: #0D9488 !important;
    transform: scale(1.2) !important;
    box-shadow: none !important;
    opacity: 1 !important;
}