/* ==========================================================================
   Header & Footer Styles - Hamleys Red Aesthetics
   ========================================================================== */

/* 1. Top Promo Ribbon */
.top-promo-ribbon {
    background-color: #d1f1f7;
    color: #0d1e42;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.top-promo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.promo-gift-icon {
    font-size: 16px;
}

/* 2. Main Brand Header (Hamleys Signature Red) */
.main-brand-header {
    background-color: var(--primary-color, #e30016);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.header-layout-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

/* Logo Script */
.brand-logo-text {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.logo-script {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
}
.logo-sub {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-yellow);
    margin-top: 2px;
}

/* Desktop Navigation Menu */
.desktop-main-menu {
    display: flex;
    align-items: center;
    gap: 18px;
}
.desktop-main-menu a {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.desktop-main-menu a:hover {
    opacity: 0.85;
}
.sale-link-tag {
    color: var(--accent-yellow) !important;
    font-weight: 900 !important;
}

/* Header Search Form */
.header-search-wrap {
    flex: 1;
    max-width: 440px;
}
.search-box-form {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 999px;
    padding: 4px 6px 4px 18px;
    overflow: hidden;
}
.search-box-form input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 13.5px;
    color: var(--text-dark);
}
.search-box-form button {
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* User Actions */
.header-user-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.user-action-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}
.my-bag-btn {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.bag-icon-rel {
    position: relative;
    display: flex;
}
.cart-counter-bubble {
    position: absolute;
    top: -7px;
    right: -10px;
    background-color: var(--accent-yellow);
    color: #000000;
    font-size: 10px;
    font-weight: 900;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-nav-toggle .bar {
    width: 22px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
}

/* Mobile Drawer */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    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 20px rgba(0, 0, 0, 0.2);
}
.mobile-menu-drawer.active {
    left: 0;
}
.drawer-header {
    background: var(--primary-color);
    color: #ffffff;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
}
.drawer-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}
.drawer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.drawer-nav-list a {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    padding: 4px 0;
}
.drawer-footer {
    padding: 14px 20px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}
.drawer-call-btn {
    display: block;
    background: var(--primary-color);
    color: #ffffff;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    padding: 10px;
    border-radius: 8px;
}

/* 3. Footer Styles */
.site-main-footer {
    background-color: #f8fafc;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}
.footer-guarantee-strip {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 14px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.guarantee-flex-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.guarantee-point {
    display: flex;
    align-items: center;
    gap: 8px;
}
.point-icon {
    font-size: 18px;
}

.footer-main-directory {
    padding: 55px 0 45px;
}
.footer-cols-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
}
.col-heading {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
}
.col-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.col-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}
.col-links a:hover {
    color: var(--primary-color);
}
.news-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}
.footer-news-form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 16px;
}
.footer-news-form input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
}
.footer-news-form button {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    font-size: 14px;
}
.footer-contact-address {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-bottom-bar {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 18px 0 24px;
    font-size: 12px;
    color: var(--text-muted);
}
.bottom-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.bottom-legal-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.bottom-legal-links a:hover {
    color: var(--primary-color);
}

/* 4. Mobile Bottom App Bar */
.mobile-bottom-app-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
}
.bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}
.bottom-tab.active,
.bottom-tab.call-tab {
    color: var(--primary-color);
}
.bottom-cart-bubble-wrap {
    position: relative;
    display: flex;
}
.bottom-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .desktop-main-menu {
        display: none;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .footer-cols-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    body {
        padding-bottom: 60px; /* Space for Mobile Tab Bar */
    }
    .show-on-mobile-only {
        display: grid !important;
    }
    .hide-on-mobile {
        display: none !important;
    }
    .top-promo-ribbon {
        font-size: 11px;
    }
    .footer-cols-grid {
        grid-template-columns: 1fr;
    }
    .col-newsletter {
        grid-column: span 1;
    }
    .bottom-bar-inner {
        flex-direction: column;
        text-align: center;
    }
}