/* ============================================================
   HEADER STYLES - COMPLEX STYLE
   ============================================================ */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

/* ------------------------------------------------------------
   1. TOP MAIN BAR
   ------------------------------------------------------------ */
.header-top {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-top__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

/* Left: Hamburger button */
.header-top__left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header-hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.header-hamburger-btn:hover {
    background-color: #f5f5f5;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #000000;
    border-radius: 1px;
    transition: all 0.2s ease;
}

/* Center: Logo */
.header-top__center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    height: 55px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* Right: Search Trigger, Account, Cart */
.header-top__right {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Search Trigger Button */
.header-search-trigger {
    display: flex;
    align-items: center;
    background-color: #f2f2f2;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 8px 14px;
    width: 280px;
    cursor: pointer;
    text-align: left;
    color: #555555;
    font-family: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-trigger:hover {
    background-color: #eaeaea;
    border-color: #d0d0d0;
}

.header-search-trigger svg {
    flex-shrink: 0;
    margin-right: 10px;
    color: #333333;
}

.header-search-trigger-text {
    font-size: 13px;
    color: #767676;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Icon Buttons */
.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #111111;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
}

.header-icon-btn:hover {
    background-color: #f5f5f5;
    color: #000000;
}

.header-cart-btn {
    position: relative;
}

.header-cart-count {
    position: absolute;
    top: -2px;
    right: -5px;
    background: #e02b27;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header-account-btn--logged {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    width: auto;
    padding: 0 6px;
    color: #111111;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.header-account-btn--logged:hover {
    background-color: #f5f5f5;
    color: #000000;
}

.header-account-name {
    display: inline-block;
}

/* ------------------------------------------------------------
   2. BOTTOM CATEGORIES NAVIGATION BAR
   ------------------------------------------------------------ */
.header-bottom {
    background-color: #ffffff;
    /* padding: 8px 0; */
    position: relative;
}

.header-bottom__container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-categories-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
    flex-wrap: wrap;
}

.nav-cat-item {
    margin: 0;
}

.nav-cat-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #40444a;
    text-decoration: none;
    text-transform: uppercase;
    /* letter-spacing: 0.6px; */
    padding: 12px 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-cat-link:hover {
    color: #000000;
}

.nav-cat-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000000;
    transition: width 0.2s ease;
}

.nav-cat-link:hover::after {
    width: 100%;
}

/* ------------------------------------------------------------
   2.1 MEGA MENU DROPDOWN
   ------------------------------------------------------------ */
.header-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
    z-index: 998;
}

.nav-cat-item--has-mega:hover .header-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-cat-item--has-mega:hover>.nav-cat-link {
    color: #000000;
}

.nav-cat-item--has-mega:hover>.nav-cat-link::after {
    width: 100%;
}

.header-mega-menu__container {
    padding: 24px 10px 32px;
    max-width: 900px;
}

.mega-menu-head {
    margin-bottom: 18px;
}

.mega-menu-view-all {
    font-size: 14px;
    font-weight: 500;
    color: #111111;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.mega-menu-view-all strong {
    font-weight: 800;
    text-transform: uppercase;
}

.mega-menu-view-all:hover {
    color: #555555;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mega-menu-card {
    display: flex;
    flex-direction: column;
}

.mega-menu-thumb {
    width: 100%;
    aspect-ratio: 0.95;
    overflow: hidden;
    background-color: #f4f4f4;
    border-radius: 4px;
    margin-bottom: 10px;
    display: block;
}

.mega-menu-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.mega-menu-card:hover .mega-menu-thumb img {
    transform: scale(1.04);
}

.mega-menu-info {
    display: flex;
    flex-direction: column;
}

.mega-menu-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 3px 0;
    /* color: #111111; */
    text-align: center;
}

.mega-menu-title a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mega-menu-title a:hover {
    color: #555555;
}

.mega-menu-subtitle {
    font-size: 12px;
    color: #767676;
    font-weight: 400;
    line-height: 1.2;
}

/* ------------------------------------------------------------
   3. SEARCH MODAL OVERLAY (FULL SCREEN POPUP)
   ------------------------------------------------------------ */
.search-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
}

.search-modal-wrapper {
    position: relative;
    width: 100%;
    max-height: 100vh;
    background-color: #ffffff;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px);
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.search-modal-overlay.is-open .search-modal-wrapper {
    transform: translateY(0);
}

/* Search Modal Header */
.search-modal-header {
    border-bottom: 1px solid #eaeaea;
    padding: 50px 12px;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-modal-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.search-modal-form {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.search-modal-submit-btn {
    border: none;
    background: transparent;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.search-modal-submit-btn:hover {
    color: #000000;
    transform: scale(1.08);
}

.search-modal-input {
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 500;
    color: #111111;
    width: 100%;
    font-family: inherit;
    background: transparent;
}

.search-modal-input::placeholder {
    color: #8c8c8c;
    font-weight: 400;
}

.search-modal-close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    border: none;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    z-index: 20;
}

.search-modal-close-btn:hover {
    background-color: #f0f0f0;
    color: #000000;
    transform: rotate(90deg);
}

/* Search Modal Body */
.search-modal-body {
    padding: 32px 0 48px;
}

.search-section {
    margin-bottom: 40px;
}

.search-section:last-child {
    margin-bottom: 0;
}

.search-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.search-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #111111;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.search-section-seeall {
    font-size: 12px;
    font-weight: 700;
    color: #666666;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.search-section-seeall:hover {
    color: #000000;
}

/* Section 1: News Grid */
.search-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.search-news-card {
    display: flex;
    flex-direction: column;
}

.search-news-thumb {
    width: 100%;
    aspect-ratio: 1.78;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 2px;
    margin-bottom: 10px;
    display: block;
}

.search-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.search-news-card:hover .search-news-thumb img {
    transform: scale(1.04);
}

.search-news-info {
    display: flex;
    flex-direction: column;
}

.search-news-meta {
    font-size: 10px;
    font-weight: 800;
    color: #767676;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    display: block;
    line-height: 1.2;
}

.search-news-heading {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: #111111;
}

.search-news-heading a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-news-heading a:hover {
    color: #555555;
}

/* Section 2: Products Grid */
.search-products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px 20px;
}

.search-product-card {
    display: flex;
    flex-direction: column;
}

.search-product-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #fafafa;
    border-radius: 2px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-product-thumb img {
    object-fit: contain;
    transition: transform 0.35s ease;
}

.search-product-card:hover .search-product-thumb img {
    transform: scale(1.05);
}

.search-product-info {
    display: flex;
    flex-direction: column;
}

.search-product-brand {
    font-size: 10.5px;
    font-weight: 800;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
    line-height: 1.2;
}

.search-product-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 6px 0;
    color: #333333;
}

.search-product-name a {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-product-name a:hover {
    color: #000000;
}

.search-product-price {
    font-size: 13.5px;
    font-weight: 700;
    color: #111111;
    line-height: 1.2;
}

/* ------------------------------------------------------------
   4. MOBILE NAVIGATION DRAWER (DARK MULTI-LEVEL DRILLDOWN)
   ------------------------------------------------------------ */
.header-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.header-drawer {
    position: fixed;
    top: 0;
    left: -360px;
    width: 340px;
    max-width: 90vw;
    height: 100vh;
    background-color: #000000;
    color: #ffffff;
    z-index: 1002;
    transition: left 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.header-drawer.is-open {
    left: 0;
}

/* Drawer Head */
.header-drawer__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #1a1a1a;
    background-color: #000000;
    flex-shrink: 0;
}

.header-drawer__logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: block;
}

.header-drawer__close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-drawer__close-btn:hover {
    opacity: 0.8;
    transform: scale(1.08);
}

/* Panels Sliding Wrapper */
.drawer-panels-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
    overflow: hidden;
    background-color: #000000;
}

.drawer-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease;
}

.drawer-panel--main {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.drawer-panel--main.is-hidden {
    transform: translateX(-30%);
    opacity: 0.3;
    pointer-events: none;
}

.drawer-panel--sub {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.drawer-panel--sub.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.drawer-panel-scroll {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 20px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

/* Custom Slim Scrollbar */
.drawer-panel-scroll::-webkit-scrollbar,
.search-modal-wrapper::-webkit-scrollbar {
    width: 4px;
}

.drawer-panel-scroll::-webkit-scrollbar-track,
.search-modal-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.drawer-panel-scroll::-webkit-scrollbar-thumb,
.search-modal-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.drawer-panel-scroll::-webkit-scrollbar-thumb:hover,
.search-modal-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}

/* Menu List */
.drawer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.drawer-menu-list li {
    border-bottom: 1px solid #141414;
}

.drawer-menu-btn,
.drawer-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
    font-family: inherit;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.drawer-menu-btn:hover,
.drawer-menu-link:hover {
    color: #cccccc;
    padding-left: 4px;
}

.drawer-menu-btn svg {
    color: #ffffff;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.drawer-menu-btn:hover svg {
    transform: translateX(3px);
}

/* Featured Section */
.drawer-featured-section {
    padding: 20px 0 22px;
    border-bottom: 1px solid #1a1a1a;
}

.drawer-featured-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #767676;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.drawer-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.drawer-featured-card {
    display: flex;
    flex-direction: column;
}

.drawer-featured-thumb {
    width: 100%;
    aspect-ratio: 0.88;
    border-radius: 3px;
    overflow: hidden;
    background-color: #1a1a1a;
    margin-bottom: 8px;
    display: block;
}

.drawer-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.drawer-featured-card:hover .drawer-featured-thumb img {
    transform: scale(1.05);
}

.drawer-featured-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
    line-height: 1.25;
}

.drawer-featured-name a {
    color: #ffffff;
    text-decoration: none;
}

.drawer-featured-subtitle {
    font-size: 11px;
    color: #888888;
    font-weight: 400;
}

/* Drawer Footer Links */
.drawer-footer-links {
    padding: 18px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.drawer-footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #bbbbbb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.drawer-footer-link:hover {
    color: #ffffff;
}

.drawer-footer-link svg {
    color: inherit;
    flex-shrink: 0;
}

/* Submenu View */
.drawer-submenu-header {
    padding: 14px 20px;
    border-bottom: 1px solid #1a1a1a;
    background-color: #000000;
    flex-shrink: 0;
}

.drawer-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
}

.drawer-back-btn:hover {
    opacity: 0.8;
}

.drawer-sub-cards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 12px 0 24px;
}

.drawer-sub-card {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #141414;
    padding-bottom: 16px;
}

.drawer-sub-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.drawer-sub-thumb {
    width: 100%;
    aspect-ratio: 1.15;
    border-radius: 4px;
    overflow: hidden;
    background-color: #1a1a1a;
    margin-bottom: 10px;
    display: block;
}

.drawer-sub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.drawer-sub-card:hover .drawer-sub-thumb img {
    transform: scale(1.04);
}

.drawer-sub-brand {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.drawer-sub-brand a {
    color: #ffffff;
    text-decoration: none;
}

.drawer-sub-desc {
    font-size: 11.5px;
    color: #888888;
    font-weight: 400;
}

/* Fixed Bottom Tabs */
.drawer-bottom-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #1a1a1a;
    background-color: #000000;
    padding: 8px 0;
    flex-shrink: 0;
    z-index: 10;
}

.drawer-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #767676;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s ease;
}

.drawer-tab-btn svg {
    color: inherit;
}

.drawer-tab-btn.is-active {
    color: #ffffff;
}

.drawer-tab-btn.is-active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 25%;
    right: 25%;
    height: 2px;
    background-color: #ffffff;
}

.drawer-tab-btn:hover {
    color: #ffffff;
}

@media (max-width: 1200px) {
    .header-logo img {
        height: 30px;
    }
}

/* ------------------------------------------------------------
   5. RESPONSIVE MEDIA QUERIES
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .header-categories-nav {
        gap: 18px;
    }

    .header-search-trigger {
        width: 220px;
    }
}

@media (max-width: 991px) {
    .search-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .search-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .header-bottom {
        display: none;
    }
}

@media (max-width: 850px) {
    .header-bottom {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* padding: 8px 16px; */
    }

    .header-bottom::-webkit-scrollbar {
        display: none;
    }

    .header-bottom__container {
        justify-content: start;
        padding: 0;
    }

    .header-categories-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 20px;
        min-width: max-content;
        padding: 8px 15px;
    }

    .header-search-trigger {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        background-color: transparent;
        border: none;
        justify-content: center;
        align-items: center;
    }

    .header-search-trigger:hover {
        background-color: #f5f5f5;
    }

    .header-search-trigger svg {
        margin-right: 0;
        width: 20px;
        height: 20px;
        color: #111111;
    }

    .header-search-trigger-text {
        display: none;
    }

    .header-account-name {
        display: none;
    }

    .header-account-btn--logged {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .header-top {
        padding: 10px 0;
    }

    .header-logo img {
        height: 24px;
        max-width: 130px;
    }

    .header-top__right {
        gap: 3px;
    }

    .header-icon-btn,
    .header-search-trigger,
    .header-account-btn--logged {
        width: 30px;
        height: 30px;
    }

    .header-icon-btn svg,
    .header-search-trigger svg,
    .header-account-btn--logged svg {
        width: 18px;
        height: 18px;
    }

    .header-categories-nav {
        gap: 12px;
    }

    .nav-cat-link {
        font-size: 12px;
        padding: 6px 12px;
        border: 1px solid #e1e3e5;
        border-radius: 30px;
    }

    .search-modal-input {
        font-size: 15px;
    }

    .search-modal-body {
        padding: 20px 0 36px;
    }

    .search-section {
        margin-bottom: 28px;
    }

    .search-section-title {
        font-size: 14.5px;
    }

    .search-news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .search-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
    }

    .search-product-name {
        font-size: 12px;
    }
}

/* ============================================================
   AUTH MODAL (LOGIN & REGISTER POPUPS) - #000 PRIMARY COLOR
   ============================================================ */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}

.auth-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.auth-modal-dialog {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
    transform: scale(0.94) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.28s ease;
}

.auth-modal-dialog.auth-modal-dialog--wide {
    max-width: 580px;
}

.auth-modal-overlay.is-open .auth-modal-dialog {
    transform: scale(1) translateY(0);
}

/* Modal Card */
.auth-modal-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 32px 32px;
    position: relative;
    box-sizing: border-box;
}

/* Close Button */
.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.auth-modal-close:hover {
    background-color: #e2e8f0;
    color: #000000;
    transform: rotate(90deg);
}

/* Modal Header */
.auth-modal-head {
    margin-bottom: 24px;
    padding-right: 40px;
}

.auth-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.auth-modal-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

.auth-switch-link {
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-switch-link:hover {
    color: #000000;
    text-decoration: underline;
}

/* Form Fields */
.auth-form-field {
    margin-bottom: 16px;
}

.auth-field-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 7px;
}

.auth-req {
    color: #ef4444;
    margin-left: 2px;
}

.auth-input-wrapper {
    position: relative;
    width: 100%;
}

.auth-input {
    width: 100%;
    height: 46px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    color: #0f172a;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.auth-input:focus {
    background-color: #ffffff;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.auth-input-wrapper--has-toggle .auth-input {
    padding-right: 44px;
}

.auth-toggle-pwd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.auth-toggle-pwd:hover {
    color: #000000;
    background-color: #f1f5f9;
}

/* 2-Column Grid for Register */
.auth-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

/* Options / Checkbox Row */
.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0 22px;
    font-size: 13.5px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.4;
}

.auth-checkbox input {
    width: 17px;
    height: 17px;
    accent-color: #000000;
    cursor: pointer;
    border-radius: 4px;
    margin: 0;
    flex-shrink: 0;
}

.auth-forgot-link {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 13.5px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: #000000;
    text-decoration: underline;
}

.auth-highlight-link {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-highlight-link:hover {
    color: #000000;
    text-decoration: underline;
}

/* Submit Button - Black Theme #000 */
.auth-submit-btn {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    background-color: #000000;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.auth-submit-btn:hover {
    background-color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 12px;
}

/* Google Social Button */
.auth-social-btn {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #334155;
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-social-btn:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Responsive Styles */
@media (max-width: 640px) {
    .auth-modal-overlay {
        padding: 12px;
    }

    .auth-modal-card {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }

    .auth-modal-title {
        font-size: 21px;
    }

    .auth-modal-subtitle {
        font-size: 13px;
    }

    .auth-modal-close {
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
    }

    .auth-grid-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-input {
        height: 44px;
        font-size: 13.5px;
    }

    .auth-submit-btn,
    .auth-social-btn {
        height: 44px;
        font-size: 14px;
    }

    .auth-form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin: 14px 0 18px;
    }
}
