/* ==========================================================================
   Modern E-commerce Header & Footer (D2C Brand Grade)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Announcement Top Bar
   -------------------------------------------------------------------------- */
.top-announcement-bar {
    background-color: #090e17;
    color: #e2e8f0;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-announcement-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.badge-pill {
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    margin-right: 8px;
    letter-spacing: 0.5px;
}
.top-support-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.top-link {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: color 0.2s;
}
.top-link:hover {
    color: #ffffff;
}
.top-sep {
    color: #475569;
}

/* --------------------------------------------------------------------------
   2. Main Header (Desktop Base)
   -------------------------------------------------------------------------- */
.site-main-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
}

/* Brand Logo */
.brand-identity .brand-logo-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.brand-logo-text {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.6px;
    line-height: 1.1;
    text-transform: uppercase;
}
.brand-tagline {
    font-size: 9px;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--primary-color, #2563eb);
    margin-top: 2px;
}

/* Search Bar (Centered & Prominent) */
.header-search-wrapper {
    flex: 1;
    max-width: 580px;
}
.search-form-pro {
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 3px 6px 3px 18px;
    transition: all 0.2s ease;
}
.search-form-pro:focus-within {
    background-color: #ffffff;
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.search-input-field {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #1e293b;
    outline: none;
}
.search-submit-btn {
    background-color: var(--primary-color, #2563eb);
    color: #ffffff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.search-submit-btn:hover {
    opacity: 0.9;
}

/* Header Utility Actions */
.header-utility-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.utility-cta-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #0f172a;
    text-decoration: none;
}
.utility-cta-icon {
    color: var(--primary-color, #2563eb);
}
.utility-cta-text {
    display: flex;
    flex-direction: column;
}
.cta-sub {
    font-size: 11px;
    color: #64748b;
    line-height: 1;
}
.cta-main {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

/* Account Pill */
.header-account-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.header-account-pill:hover {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
.account-pill-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    transition: all 0.2s ease;
}
.header-account-pill:hover .account-pill-icon-wrap {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}
.account-pill-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.account-pill-sub {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.2;
}
.account-pill-main {
    font-size: 13px;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.2;
}

/* Cart Pill */
.header-cart-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.header-cart-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}
.cart-pill-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}
.cart-pill-text {
    display: flex;
    flex-direction: column;
}
.cart-pill-sub {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}
.cart-pill-main {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. Desktop Category Navigation Ribbon
   -------------------------------------------------------------------------- */
.desktop-category-bar {
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}
.category-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}
.category-menu-list {
    display: flex;
    list-style: none;
    gap: 26px;
    margin: 0;
    padding: 0;
}
.category-menu-list a {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    padding: 4px 0;
    text-decoration: none;
    transition: color 0.2s;
}
.category-menu-list a:hover {
    color: var(--primary-color, #2563eb);
}
.menu-deal-item a {
    color: #ef4444 !important;
    font-weight: 700;
}
.category-support-chip {
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #a7f3d0;
}

/* --------------------------------------------------------------------------
   4. Mobile Drawer (Slide-in)
   -------------------------------------------------------------------------- */
.mobile-menu-trigger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 10;
}
.mobile-menu-trigger .h-line {
    width: 22px;
    height: 2.5px;
    background-color: #0f172a;
    border-radius: 2px;
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-drawer-overlay.is-active {
    opacity: 1;
    visibility: visible;
}
.mobile-app-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
}
.mobile-app-drawer.is-active {
    left: 0;
}
.mobile-drawer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
}
.drawer-brand strong {
    font-size: 18px;
    display: block;
    color: var(--primary-color, #2563eb);
}
.drawer-brand small {
    font-size: 11px;
    color: #64748b;
}
.drawer-close-btn {
    font-size: 30px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.drawer-user-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 14px 18px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.drawer-user-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.drawer-user-details strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
}
.drawer-user-details a {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.mobile-drawer-search {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
}
.mobile-drawer-links {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
}
.mobile-nav-stack {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mobile-nav-stack a {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    display: block;
}
.drawer-logout-item a {
    color: #ef4444 !important;
}

.mobile-drawer-footer {
    padding: 16px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.drawer-help-title {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 6px 0;
}
.drawer-call-btn {
    display: block;
    background: var(--primary-color, #2563eb);
    color: #ffffff;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. Mobile Sticky Bottom App Bar (Shopify / Myntra Style)
   -------------------------------------------------------------------------- */
.mobile-bottom-app-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
}
.bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 2px;
}
.bottom-bar-item svg {
    margin-bottom: 2px;
}
.bottom-bar-item.call-action {
    color: var(--primary-color, #2563eb);
}
.bottom-cart-rel {
    position: relative;
    display: flex;
}
.bottom-cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   6. Footer Styles
   -------------------------------------------------------------------------- */
.site-main-footer {
    background-color: #090e17;
    color: #94a3b8;
    margin-top: 70px;
}
.footer-trust-strip {
    background-color: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 0;
}
.trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.trust-icon-box {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trust-details strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 2px;
}
.trust-details span {
    font-size: 12px;
    color: #94a3b8;
}

.footer-newsletter-banner {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.newsletter-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.newsletter-text h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 6px;
}
.newsletter-text p {
    font-size: 14px;
    color: #94a3b8;
}
.newsletter-inline-form {
    display: flex;
    gap: 10px;
    min-width: 380px;
}
.newsletter-inline-form input {
    flex: 1;
    background: #1e293b;
    border: 1px solid #334155;
    padding: 12px 16px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}
.newsletter-inline-form button {
    background: var(--primary-color, #2563eb);
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.footer-main-columns {
    padding: 50px 0;
}
.main-columns-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
}
.col-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-brand-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}
.footer-verified-badge {
    color: #10b981;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 14px;
}
.footer-bio {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #94a3b8;
}
.footer-menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-menu-links a {
    color: #cbd5e1;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.footer-menu-links a:hover {
    color: #ffffff;
    padding-left: 6px;
}

.address-box-card {
    background-color: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 8px;
}
.address-line {
    margin-bottom: 14px;
}
.address-line strong {
    display: block;
    color: #e2e8f0;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.address-line p, .address-line a {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
    text-decoration: none;
}

.footer-sub-bar {
    background-color: #05080f;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0 35px;
}
.sub-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.payment-method-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pay-chip {
    background: #1e293b;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #334155;
}

/* --------------------------------------------------------------------------
   7. Mobile & Tablet Responsive Engine (2-Row Amazon/D2C Header)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .trust-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .main-columns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .newsletter-flex {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-inline-form {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
    .show-on-mobile-only {
        display: grid !important;
    }

    body {
        padding-bottom: 65px; /* Leaves room for 60px bottom app bar */
    }

    /* Clean 2-Row Header Layout on Mobile */
    .main-header-inner {
        flex-wrap: wrap;
        padding: 10px 0 12px;
        min-height: unset;
        gap: 10px;
    }

    /* Row 1: Left Hamburger + Center/Left Logo + Right Compact Cart */
    .mobile-menu-trigger {
        display: flex;
        order: 1;
        margin-right: 4px;
    }

    .brand-identity {
        order: 2;
        flex: 1;
    }
    .brand-logo-text {
        font-size: 18px;
    }
    .brand-tagline {
        font-size: 8px;
    }

    .header-utility-actions {
        order: 3;
        gap: 8px;
    }
    .header-cart-pill {
        padding: 8px 12px;
        gap: 0;
    }
    .cart-count-badge {
        position: absolute;
        top: -7px;
        right: -9px;
        width: 17px;
        height: 17px;
        font-size: 10px;
    }

    /* Row 2: Full-Width Search Bar */
    .header-search-wrapper {
        order: 4;
        width: 100%;
        max-width: 100%;
        margin-top: 4px;
    }
    .search-form-pro {
        padding: 2px 4px 2px 14px;
    }
    .search-submit-btn {
        width: 34px;
        height: 34px;
    }

    /* Top Announcement Strip Cleanup */
    .top-announcement-bar {
        padding: 6px 0;
    }
    .top-announcement-inner {
        justify-content: center;
        text-align: center;
    }
    .top-support-actions {
        display: none;
    }
    .top-offer-text {
        font-size: 11px;
    }

    /* Footer Mobile Stacking */
    .trust-strip-grid {
        grid-template-columns: 1fr;
    }
    .main-columns-grid {
        grid-template-columns: 1fr;
    }
    .sub-bar-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}