/* Utilities */
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }

/* Wrapper Abstractions (Extracted from Inline styles) */
.glass-main-nav-wrapper {
    position: sticky; top: 15px; z-index: 2147; margin-bottom: 30px; background: transparent;
}
.glass-main-nav-container {
    max-width: 1560px; padding: 0; margin: 0 auto;
}
.glass-main-nav-inner {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 16px; padding: 10px 20px; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); z-index: 2147; min-height: 70px;
}

/* The Expanding Search Bar */
.glass-search-input:focus { width: 320px; background: #ffffff; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,0.1); }

/* Bento Extracted Base Classes */
.glass-logo-wrapper { flex-shrink: 0; margin-left: 0px; margin-right: 30px; }
.glass-logo-link { height: 56px; }
.glass-logo-img { height: 52px; width: auto; margin-top: 5px; }
.glass-nav-layout { flex: 1; }
.glass-actions-wrapper { flex-shrink: 0; margin-right: 0px; }
.glass-search-input { width: 200px; height: 42px; border-radius: 40px; border: 1px solid rgba(148, 163, 184, 0.3); background: rgba(248, 250, 252, 0.6); padding-left: 20px; padding-right: 40px; font-size: 14px; font-weight: 500; color: #0f172a; outline: none; transition: all 0.3s ease; }
.glass-search-btn { right: 8px; top: 0; height: 100%; }
.glass-lang-circle { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; display: flex; border: 1px solid rgba(0,0,0,0.15); box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
.lang-blue { flex: 1; background: #002B7F; }
.lang-yellow { flex: 1; background: #FCD116; }
.lang-red { flex: 1; background: #CE1126; }
.glass-dropdown-menu { right: 0; left: auto; overflow: hidden; border-radius: 16px; min-width: 220px; padding: 0; box-shadow: 0 15px 35px -5px rgba(0,0,0,0.1); margin-top: 20px; }
.glass-mini-cart-menu { right: 0; left: auto; overflow: hidden; border-radius: 20px; width: 340px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); top: 100%; margin-top: 20px; }

/* The Main Category Shoppable Links & Bento System */
.glass-nav-link { 
    color: #334155; 
    font-size: 15px; 
    line-height: 21px;
    font-weight: 600; 
    font-family: inherit; 
    text-decoration: none; 
    padding: 8px 18px; 
    border-radius: 100px; 
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); 
}
.glass-nav-item:hover .glass-nav-link { 
    background: #f1f5f9; 
    color: #0ea5e9; 
    transform: scale(1.03);
}

/* 3D Bento Hover Activation */
.glass-bento-mega {
    transform: translateX(-50%) translateY(15px);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15);
    /* Extracted from Inline HTML */
    top: calc(100% + 15px); left: 50%; width: 950px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,0.7); border-radius: 16px; padding: 40px; pointer-events: none; opacity: 0; visibility: hidden; z-index: -1;
}

/* Desktop Only Grid Fallback to prevent mobile overflow */
@media (max-width: 991px) {
    .glass-bento-mega {
        display: none; /* Forces the rigid 950px width block to disappear on phones */
    }
}

/* Invisible hover bridge to prevent cutoff in the 15px gap */
.glass-bento-mega::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: transparent;
}
.glass-nav-item:hover .glass-bento-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 100;
    transform: translateX(-50%) translateY(0);
}
.nav-bento-title { color: #1e293b; text-decoration: none; transition: color 0.1s; font-size: 15px; line-height: 21px; font-family: 'Open Sans', sans-serif; font-weight: 700; }
.nav-bento-title:hover { color: #0ea5e9; }
.nav-bento-sublink { color: #64748b; text-decoration: none; transition: color 0.1s; font-size: 13.5px; line-height: 21px; font-family: 'Open Sans', sans-serif; font-weight: 500; }
.nav-bento-sublink:hover { color: #0ea5e9; }
.bento-promo-panel img { transition: all 0.4s ease; }
.bento-promo-panel:hover img { transform: scale(1.08); opacity: 0.6; }

/* Bento Mega Nav Grid */
.glass-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 280px;
    gap: 40px;
}
.glass-bento-data-cols {
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-content: start;
}

/* Wide Bento Variant (4 data columns + promo) */
.glass-bento-mega--wide {
    width: 1200px;
}
.glass-bento-mega--wide .glass-bento-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr 280px;
}
.glass-bento-mega--wide .glass-bento-data-cols {
    grid-column: span 4;
    grid-template-columns: repeat(4, 1fr);
}
.bento-promo-panel {
    border-radius: 12px;
    min-height: 280px;
    background: #0f172a;
    display: flex;
    align-items: flex-end;
    padding: 25px;
}
.bento-promo-img {
    top: 0;
    left: 0;
    mix-blend-mode: luminosity;
}
.bento-promo-badge {
    font-size: 10px;
    letter-spacing: 0.5px;
    background: #0ea5e9;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
    text-transform: uppercase;
}
.bento-promo-title {
    font-size: 18px;
    line-height: 1.2;
}
.bento-promo-subtitle {
    font-size: 13px;
    font-family: 'Open Sans', sans-serif; font-weight: 500;
}
.bento-promo-btn {
    color: #0f172a;
}

/* Icons and dropdown wrapper logic */
.glass-act-btn { 
    display: flex; align-items: center; justify-content: center; 
    width: 46px; height: 46px; 
    border-radius: 50%; 
    background: rgba(248, 250, 252, 0.6); 
    border: 1px solid rgba(226, 232, 240, 0.6);
    color: #475569; 
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); 
    text-decoration: none; 
}
.glass-act-btn:hover { background: #ffffff; color: #0ea5e9; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.glass-act-btn:hover svg { stroke: #0ea5e9; }
.glass-act-wrapper:hover .dropdown-menu { display: block; }
.dropdown-menu { display: none; margin-top: 0; }

/* Sub-pixel Antialiasing fix for Chromium border-radius bleeding */
.glass-act-wrapper .dropdown-menu li:first-child .dropdown-item {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
.glass-act-wrapper .dropdown-menu li:last-child .dropdown-item {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* Universal Hover Bridge mapped to the Wrapper (immune to overflow:hidden) */
.glass-act-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -320px;
    right: 0;
    height: 60px;
    background: transparent;
    pointer-events: none; /* Safely disabled until the icon is actively hovered */
}
.glass-act-wrapper:hover::after {
    pointer-events: auto; /* Activates the invisible descent bridge */
}

/* Dancing Expandable Pills */
.glass-act-btn.dance {
    justify-content: flex-start; 
    padding: 0 12px;
    border-radius: 46px;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, box-shadow 0.2s;
}
.glass-act-btn.dance:hover {
    width: 130px;
}
.cart-dance:hover { width: 145px; }
.glass-act-btn.dance .dance-text {
    opacity: 0;
    white-space: nowrap;
    margin-left: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-act-btn.dance:hover .dance-text {
    opacity: 1;
    transition-delay: 0.1s;
}
.glass-act-btn.dance svg {
    flex-shrink: 0;
}

.cart-badge-dot {
    position: absolute; top: -2px; right: -2px; 
    width: 18px; height: 18px; background-color: #ef4444; 
    border-radius: 50%; font-size: 11px; font-weight: 900; 
    border: 2px solid #fff; box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* =========================================
   MINI-CART DROPDOWN STYLES
   (moved from product.css — needed globally since mini-cart is in the header)
   ========================================= */
.mc-header-radius { border-top-left-radius: 20px; border-top-right-radius: 20px; }
.mc-text-sm { font-size: 13px; }
.mc-btn-light { background-color: #f1f5f9; color: #1e293b; border: 1px solid #cbd5e1; border-radius: 8px; transition: all 0.2s ease; }
.mc-btn-light:hover { background-color: #e2e8f0; color: #1e293b; }
.mc-btn-primary { background-color: #0ea5e9; color: #fff; border: none; border-radius: 8px; transition: all 0.2s ease; }
.mc-btn-primary:hover, .mc-btn-primary:focus { background-color: #0277BD; color: #ffffff; }
.mc-scrollable { max-height: 250px; overflow-y: auto; }
.mc-item-img { width: 50px; height: 50px; object-fit: contain; border-radius: 8px; border: 1px solid #e2e8f0; }
.mc-item-name { font-size: 13px; line-height: 1.3; }
.mc-item-price { font-size: 14px; color: #0ea5e9; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.text-sky-500 { color: #0ea5e9; }
