/* =========================================
   GLOBAL PREMIUM REDESIGN - BRICODY
=========================================== */

/* 1. Header Dark Glassmorphism */
.site-header {
    background: rgba(15, 23, 42, 0.85) !important; 
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.site-header .brand { color: #ffffff !important; }
.site-header .logo-text .tagline { color: #94a3b8 !important; }

/* Navigation Links */
.site-header .nav-links > li > a { 
    color: #e2e8f0 !important; 
    transition: all 0.2s ease;
}
.site-header .nav-links > li > a:hover, 
.site-header .nav-links > li:hover > a,
.site-header .nav-links > li > a[aria-expanded="true"] { 
    background: rgba(255, 255, 255, 0.1) !important; 
    color: #ffffff !important; 
}

/* Header Icons (Login/Cart) */
.site-header .header-icon-link, 
.site-header .cart-link {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease;
}
.site-header .header-icon-link:hover, 
.site-header .cart-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}
.site-header .cart-count {
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5); /* Accent glow */
}

/* 2. WooCommerce Catalog / Shop Grid Modernization */
ul.products li.product {
    background: #ffffff !important; 
    border-radius: 18px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    overflow: hidden !important;
    padding-bottom: 10px !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

ul.products li.product:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
}

/* Product Image Hover Zoom */
ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
    overflow: hidden;
}
ul.products li.product img {
    margin: 0 !important;
    border-radius: 0 !important;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    width: 100%;
}
ul.products li.product:hover img {
    transform: scale(1.05) !important;
}

/* Product Typography inside Catalog */
ul.products li.product .woocommerce-loop-product__title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 20px !important;
    padding: 0 20px !important;
    line-height: 1.4 !important;
    font-family: 'DM Sans', sans-serif !important;
}

ul.products li.product .price {
    font-size: 18px !important;
    color: #2563eb !important; /* Bricody blue */
    font-weight: 800 !important;
    padding: 10px 20px !important;
    margin-bottom: 10px !important;
    display: block !important;
}

ul.products li.product .price del {
    color: #94a3b8 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-right: 8px !important;
}

ul.products li.product .price ins {
    background: transparent !important;
    text-decoration: none !important;
}

/* Add to Cart Button on Catalog */
ul.products li.product .button, 
.related.products ul.products li.product .button,
.upsells.products ul.products li.product .button {
    display: block !important;
    width: 85% !important;
    margin: auto auto 15px auto !important;
    align-self: center !important;
    text-align: center !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #ffd814, #fce152) !important;
    color: #111827 !important;
    font-weight: 800 !important;
    padding: 12px !important;
    box-shadow: 0 4px 10px rgba(255,216,20,0.2) !important;
    transition: all 0.2s ease !important;
    border: none !important;
}
ul.products li.product .button:hover,
.related.products ul.products li.product .button:hover,
.upsells.products ul.products li.product .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(255,216,20,0.4) !important;
    background: linear-gradient(135deg, #fce152, #f4ce31) !important;
}

/* Sales Flash / Badges */
ul.products li.product .onsale {
    background: #ef4444 !important;
    color: white !important;
    border-radius: 999px !important;
    padding: 4px 12px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: normal !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3) !important;
}

/* 3. Mobile Navigation Fix for Dark Theme */
@media (max-width: 900px) {
    /* Override old solid white block */
    .mobile-menu-toggle {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }
    .mobile-menu-toggle .mobile-menu-line,
    .mobile-menu-toggle > span {
        background: #ffffff !important; 
        box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    }
}

/* =========================================
   4. Internal Pages Enhancements
=========================================== */

/* Inner Hero (Page Headers) - Dark Premium Sync */
.inner-hero {
    background: linear-gradient(180deg, rgba(15, 23, 42, 1) 0%, rgba(30, 41, 59, 1) 100%) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 85px 0 45px !important;
}
.inner-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.inner-hero p {
    color: #94a3b8 !important;
}
.inner-hero .eyebrow {
    color: #3b82f6 !important; /* Brighter blue for dark background */
}

/* Service Items & Contact Cards - Hover Lift & Shadows */
.service-item, .contact-card, .info-panel {
    border-radius: 20px !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    background: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}
.service-item:hover, .contact-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.2) !important; /* Bricody Blue highlight */
}

/* Content Prose Box Alignment */
.page-content-prose {
    border-radius: 24px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03) !important;
}

/* Info Panels (Call to Actions) - Gradient Modernization */
.info-panel {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important; /* Dark Blue */
    color: #ffffff !important;
    border: none !important;
}
.info-panel h3 {
    color: #ffffff !important;
}
.info-panel p {
    color: #bfdbfe !important; /* Light blue */
}
.info-panel .btn-primary {
    background: linear-gradient(135deg, #ffd814, #fce152) !important;
    color: #111827 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 15px rgba(255, 216, 20, 0.2) !important;
    border: none !important;
}
.info-panel .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 216, 20, 0.4) !important;
}

/* Contact text links inside cards */
.contact-card a {
    color: #2563eb !important;
    transition: color 0.2s ease !important;
}
.contact-card a:hover {
    color: #1d4ed8 !important;
}
