/**
 * SHREE KARUNMART - ULTRA LUXURY FRONTEND EDITORIAL THEME OVERRIDE
 * Designed with a curated Beige, Cream, Ivory, Champagne background palette,
 * Satin Gold accents, clean minimal borders, and Vogue/Dior serif typography.
 */

/* Custom Google fonts loaded parallelly via header link tag to optimize rendering performance */

/* Global Variables Overrides just in case */
:root {
    --primary-color: #1c1917 !important;
    --primary-hover: #333333 !important;
    --salmon-pink: #1c1917 !important;
    --eerie-black: #1c1917 !important;
    --onyx: #1c1917 !important;
    --cultured: #FAF6F0 !important;
    --white: #ffffff !important;
    --sonic-silver: #78716c !important;
    --border-color: #E7E5E4 !important;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    --serif-font: 'Playfair Display', serif;
}

/* Base Body Styles */
body {
    background-color: var(--cultured) !important;
    color: var(--eerie-black) !important;
    font-family: var(--font-family) !important;
    font-weight: 400 !important; /* Perfect standard readable weight */
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.015em;
    line-height: 1.6 !important;
}

/* Large Editorial Serif Headings (Highly legible weight 600) */
h1, h2, .hero-title, .home-hero-title, .section-title, .page-title {
    font-family: var(--serif-font) !important;
    font-weight: 600 !important; /* Semi-bold structure so lines are never thin or light */
    letter-spacing: 0.02em !important;
    color: var(--eerie-black) !important;
}

/* Clean, modern, extremely readable geometric headings (Poppins weight 450) */
h3, h4, h5, h6, 
.product-title, 
.product-name, 
.title, 
.site-footer h3,
.site-footer h2,
.menu-title,
.cart-title,
.category-title,
.checkout-title {
    font-family: var(--font-family) !important;
    font-weight: 430 !important; /* Balanced, highly legible weight above regular but below medium */
    letter-spacing: 0.03em !important;
    color: var(--eerie-black) !important;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header, .header {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02) !important;
}

.desktop-navigation-menu {
    background-color: transparent !important;
}

.menu-title, .menu-category-link {
    font-family: var(--font-family) !important;
    font-weight: 430 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    font-size: 11px !important;
    transition: color 0.3s ease;
}

.menu-title:hover, .menu-category-link:hover {
    color: var(--primary-color) !important;
}

/* Announcement Bar */
.announcement-bar, .header-top {
    background-color: var(--eerie-black) !important;
    color: #FAF6F0 !important;
    font-family: var(--font-family) !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 10px !important;
    font-weight: 400;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.announcement-bar a, .header-top a {
    color: #FAF6F0 !important;
    transition: all 0.3s ease !important;
}

.announcement-bar a:hover, .header-top a:hover {
    color: #ffffff !important;
    opacity: 0.85 !important;
}

.header-action-btn {
    color: #ffffff !important;
}

.header-action-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Search Bar refinements */
.search-form-wrapper, .header-search {
    border-radius: 30px !important;
    border: 1px solid var(--border-color) !important;
    background-color: #ffffff !important;
    transition: all 0.3s ease;
}

.search-form-wrapper:focus-within, .header-search:focus-within {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1) !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn, button, input[type="submit"], .btn-primary, .btn-secondary {
    font-family: var(--font-family) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.btn-primary, 
.btn-primary-accent, 
.btn-primary-color,
.add-to-cart-btn,
.add-to-cart-section .btn,
.cart-totals .btn-primary,
.checkout-btn,
.checkout-actions .btn {
    background-color: var(--eerie-black) !important;
    color: #ffffff !important;
    border: 1px solid var(--eerie-black) !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover, 
.btn-primary-accent:hover, 
.btn-primary-color:hover,
.add-to-cart-btn:hover,
.add-to-cart-section .btn:hover,
.cart-totals .btn-primary:hover,
.checkout-btn:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

.btn-secondary {
    background-color: transparent !important;
    color: var(--eerie-black) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
}

.btn-secondary:hover {
    background-color: var(--eerie-black) !important;
    border-color: var(--eerie-black) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   PRODUCT DETAILS & CARDS
   ========================================================================== */
.product-card {
    background-color: #ffffff !important;
    border: 1px solid rgba(231, 229, 228, 0.6) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01) !important;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.06) !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
}

.product-image-wrapper {
    background-color: #FAF6F0 !important;
    overflow: hidden;
}

.product-image {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    background-color: var(--eerie-black) !important;
    color: #ffffff !important; /* Premium high-contrast white text */
    font-family: var(--font-family) !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 9px !important;
    font-weight: 500;
    border-radius: 2px !important;
    padding: 4px 8px !important;
}

.product-category, .product-brand {
    font-family: var(--font-family) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    font-size: 10px !important;
    color: #57534e !important; /* Elegant dark stone gray for readability */
    margin-bottom: 4px !important;
    font-weight: 500 !important;
}

.product-title {
    font-size: 18px !important;
    margin-top: 4px !important;
    line-height: 1.3 !important;
}

.product-price {
    font-family: var(--serif-font) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--primary-color) !important;
}

/* ==========================================================================
   HOMEPAGE & HERO SECTION
   ========================================================================== */
.hero, .home-hero {
    background-color: #FAF6F0 !important;
}

.hero-title, .home-hero-title {
    font-size: 48px !important;
    font-family: var(--serif-font) !important;
    line-height: 1.15 !important;
}

.section-title {
    font-size: 36px !important;
    font-family: var(--serif-font) !important;
    text-align: center !important;
    margin-bottom: 40px !important;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

/* Shop Stories Section styling */
.shop-stories-container, .story-card {
    background-color: #ffffff;
    border-radius: 12px;
}

/* ==========================================================================
   CART & CHECKOUT
   ========================================================================== */
.cart-table, .checkout-summary {
    background-color: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    overflow: hidden;
}

.cart-header, .table-header {
    background-color: #FAF6F0 !important;
    font-family: var(--font-family) !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 11px !important;
}

.checkout-card {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 30px !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--eerie-black) !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.site-footer h3, .site-footer h2 {
    color: #ffffff !important;
    font-size: 20px !important;
    margin-bottom: 20px !important;
}

/* Ensure all footer text, logo, icons, and links are clean premium white and never turn black on hover */
.site-footer, 
.site-footer p, 
.site-footer span, 
.site-footer .footer-logo,
.site-footer .footer-logo ion-icon,
.footer-column h3,
.footer-payments,
.footer-payments span {
    color: #ffffff !important;
}

.site-footer a, 
.footer-column a, 
.footer-support-stack a, 
.footer-contact a,
.footer-bottom-left a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-family: var(--font-family) !important;
    transition: all 0.3s ease !important;
}

.site-footer a:hover, 
.footer-column a:hover, 
.footer-support-stack a:hover, 
.footer-contact a:hover,
.footer-bottom-left a:hover {
    color: #ffffff !important;
    opacity: 1 !important;
    text-decoration: underline !important;
    padding-left: 2px !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Legal/Policy Pages Typography Override to standard browser font for extreme legal readability */
.legal-container, 
.legal-container *, 
.legal-content, 
.legal-content *,
[class*="policy"],
[class*="policy"] *,
[class*="terms"],
[class*="terms"] * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

/* Lookbook Reels Quick Actions Mobile Fit & Spacing Override to fit perfectly in all display sizes */
@media (max-width: 480px) {
    .reel-card .bg-black\/60 {
        padding: 8px 12px !important;
        gap: 8px !important;
    }
    .reel-card .bg-black\/60 h4 {
        max-width: 90px !important;
        font-size: 11px !important;
    }
    .reel-card .bg-black\/60 .flex.gap-2 {
        gap: 6px !important;
    }
    .reel-card .bg-black\/60 button {
        padding: 6px 10px !important;
        font-size: 9px !important;
        white-space: nowrap !important;
        letter-spacing: 0.05em !important;
        flex-shrink: 0 !important;
    }
    .reel-card .bg-black\/60 button i {
        font-size: 10px !important;
    }
}

/* Active mobile nav */
.mobile-bottom-nav {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.12) !important;
}

.mobile-bottom-nav .bottom-nav-item.active {
    color: var(--primary-color) !important;
}

.mobile-bottom-nav .bottom-nav-item ion-icon {
    font-size: 20px !important;
}

.mobile-bottom-nav .badge {
    background-color: var(--primary-color) !important;
    color: var(--eerie-black) !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   RESPONSIVE TYPOGRAPHY & LAYOUT - ELIMINATING LARGE MOBILE TEXTS
   ========================================================================== */
@media (max-width: 768px) {
    /* Main Headings Scaling Down */
    h1, .hero-title, .home-hero-title {
        font-size: 26px !important;
        line-height: 1.25 !important;
        letter-spacing: 0.01em !important;
    }
    
    h2, .section-title {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }
    
    h3, .product-title, .cart-title, .category-title, .page-title, .checkout-title {
        font-size: 15px !important;
        line-height: 1.3 !important;
    }
    
    h4 {
        font-size: 13px !important;
    }

    body {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    /* Product Cards scaling on mobile viewport */
    .product-title {
        font-size: 13px !important;
    }
    
    .product-price {
        font-size: 13px !important;
    }

    /* Reels feed descriptive typography overrides */
    .reel-card h2 {
        font-size: 18px !important;
        line-height: 1.25 !important;
    }
    
    .reel-card p {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    /* Button and inputs scaling for smaller viewports */
    .btn, button, .btn-primary, .btn-secondary {
        padding: 9px 16px !important;
        font-size: 9px !important;
        letter-spacing: 0.08em !important;
    }

    /* Container pads optimization */
    .checkout-card {
        padding: 15px !important;
    }

    /* Footer heading scaling */
    .site-footer h3 {
        font-size: 15px !important;
        margin-bottom: 12px !important;
    }
    
    /* Announcement text size */
    .announcement-bar, .header-top {
        font-size: 8.5px !important;
        letter-spacing: 0.08em !important;
    }
}

/* ==========================================================================
   HIGH-CONTRAST HOME HERO TILES TEXT OVERRIDES
   ========================================================================== */
.hero-tile__overlay h3,
.hero-tile__hover h3,
.hero-tile__overlay span,
.hero-tile__hover p,
.hero-tile__cta {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

.hero-tile__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%) !important;
}
