.header-main-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.4rem 0;
    margin-top: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}
.header-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    flex-shrink: 0;
    min-width: 0;
    text-align: center;
}
/* Do not set display:block on all .header-brand img — it overrides Tailwind .hidden on the dark-only logo. */
.header-brand__endorsement {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    align-self: center;
    max-width: 100%;
    padding: 0.1rem 0.46rem;
    border-radius: 9999px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(251, 173, 47, 0.34);
    background:
        linear-gradient(90deg, rgba(85, 32, 113, 0.98), rgba(114, 53, 151, 0.96), rgba(85, 32, 113, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 22px -16px rgba(85, 32, 113, 0.5),
        0 0 18px rgba(251, 173, 47, 0.18);
    white-space: nowrap;
    transform: none;
}
.header-brand__endorsement::after {
    content: '';
    position: absolute;
    inset: 18% auto 18% -12%;
    width: 48%;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(251, 173, 47, 0.24), rgba(248, 187, 217, 0.18) 48%, transparent 76%);
    filter: blur(9px);
    z-index: 0;
    pointer-events: none;
}
.header-brand__endorsement::before {
    content: '';
    position: absolute;
    inset: -40% auto -40% -50%;
    width: 46%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), rgba(255, 236, 173, 0.86), transparent);
    transform: skewX(-24deg) translateX(-160%);
    animation: header-brand-shimmer 3.4s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.95;
}
.header-brand__endorsement-prefix,
.header-brand__endorsement-name {
    position: relative;
    z-index: 1;
}
.header-brand__endorsement-prefix {
    font-size: 0.44rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f4c96e;
    line-height: 1;
    text-shadow:
        0 0 8px rgba(251, 173, 47, 0.18),
        0 0 14px rgba(248, 187, 217, 0.14);
}
.header-brand__endorsement-name {
    display: inline-block;
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1;
    background: linear-gradient(90deg, #f8bbd9 0%, #ffd166 22%, #fff6cf 50%, #ffd166 62%, #f8bbd9 84%, #fff6cf 100%);
    background-size: 320% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 10px rgba(248, 187, 217, 0.22),
        0 0 18px rgba(251, 173, 47, 0.22);
    filter:
        drop-shadow(0 0 4px rgba(248, 187, 217, 0.26))
        drop-shadow(0 0 9px rgba(251, 173, 47, 0.2))
        saturate(1.2);
    animation:
        header-brand-gradient 2.7s linear infinite,
        header-brand-pulse 1.9s ease-in-out infinite;
}
@keyframes header-brand-shimmer {
    0%,
    100% {
        transform: skewX(-24deg) translateX(-170%);
        opacity: 0;
    }
    14%,
    22% {
        opacity: 0.92;
    }
    38% {
        transform: skewX(-24deg) translateX(380%);
        opacity: 0;
    }
}
@keyframes header-brand-gradient {
    from { background-position: 0% 50%; }
    to { background-position: 220% 50%; }
}
@keyframes header-brand-pulse {
    0%,
    100% {
        text-shadow:
            0 0 10px rgba(248, 187, 217, 0.22),
            0 0 16px rgba(251, 173, 47, 0.16);
        filter:
            drop-shadow(0 0 4px rgba(248, 187, 217, 0.24))
            drop-shadow(0 0 7px rgba(251, 173, 47, 0.16))
            saturate(1.1)
            brightness(1);
    }
    50% {
        text-shadow:
            0 0 16px rgba(248, 187, 217, 0.38),
            0 0 28px rgba(251, 173, 47, 0.26);
        filter:
            drop-shadow(0 0 6px rgba(248, 187, 217, 0.36))
            drop-shadow(0 0 12px rgba(251, 173, 47, 0.26))
            saturate(1.22)
            brightness(1.14);
    }
}
@media (prefers-reduced-motion: reduce) {
    .header-brand__endorsement::before,
    .header-brand__endorsement-name {
        animation: none;
        filter: none;
    }
}
.header-action-cluster {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.header-cart-preview {
    position: relative;
}
.header-wishlist-preview,
.header-notification-preview {
    position: relative;
}
/* Fills the gap between trigger and panel so :hover is not lost when moving the cursor
   (and wheel scrolling inside the list does not “drop” the menu as easily). */
.header-cart-preview::after,
.header-wishlist-preview::after,
.header-notification-preview::after,
.header-profile-menu::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.65rem;
    z-index: 79;
}
.header-cart-preview__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    z-index: 80;
    width: min(24rem, calc(100vw - 1.5rem));
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 40px -28px rgba(15, 23, 42, 0.36);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    overflow: hidden;
}
.header-cart-preview:focus-within .header-cart-preview__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
@media (hover: hover) and (pointer: fine) {
    .header-cart-preview:hover .header-cart-preview__panel,
    .header-cart-preview:focus-within .header-cart-preview__panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}
.header-cart-preview__items {
    max-height: 18rem;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 0.42rem;
}
.header-cart-preview__item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.48rem;
    border-radius: 0.74rem;
    transition: background 0.15s ease;
}
.header-cart-preview__item:hover {
    background: rgba(85, 32, 113, 0.06);
}
.header-cart-preview__thumb {
    width: 3rem;
    height: 3rem;
    border-radius: 0.6rem;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #fff;
}
.header-cart-preview__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}
.header-cart-preview__name {
    font-size: 0.86rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.header-cart-preview__detail {
    font-size: 0.76rem;
    color: #6b7280;
}
.header-cart-preview__more {
    margin: 0;
    padding: 0 0.78rem 0.55rem;
    font-size: 0.74rem;
    color: #6b7280;
}
.header-cart-preview__footer {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 0.62rem 0.72rem 0.72rem;
    background: rgba(250, 250, 252, 0.82);
}
.header-cart-preview__subtotal {
    margin: 0 0 0.55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #374151;
    font-size: 0.86rem;
}
.header-cart-preview__subtotal strong {
    color: #111827;
    font-size: 0.9rem;
}
.header-cart-preview__subtotal.header-cart-preview__subtotal--savings {
    color: #047857;
    font-weight: 700;
}
.header-cart-preview__subtotal.header-cart-preview__subtotal--savings strong {
    color: #047857;
}
.header-cart-preview__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
}
.header-cart-preview__action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 2rem;
    padding: 0.5rem 0.95rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #fff;
    color: #374151;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.header-cart-preview__action-link:hover {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.42);
    color: #1f2937;
}
.header-cart-preview__action-link--primary {
    border-color: rgba(85, 32, 113, 0.36);
    background: #552071;
    color: #fff;
}
.header-cart-preview__action-link--primary:hover {
    background: #673088;
    border-color: rgba(85, 32, 113, 0.56);
    color: #fff;
}
.header-cart-preview__empty {
    padding: 0.85rem;
    display: grid;
    gap: 0.62rem;
    text-align: center;
    color: #4b5563;
    font-size: 0.84rem;
}
.header-hover-preview__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    z-index: 80;
    width: min(24rem, calc(100vw - 1.5rem));
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 40px -28px rgba(15, 23, 42, 0.36);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    overflow: hidden;
}
.header-hover-preview__panel--notifications {
    width: min(26rem, calc(100vw - 1.5rem));
}
.header-wishlist-preview:focus-within .header-hover-preview__panel,
.header-notification-preview:focus-within .header-hover-preview__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
@media (hover: hover) and (pointer: fine) {
    .header-wishlist-preview:hover .header-hover-preview__panel,
    .header-wishlist-preview:focus-within .header-hover-preview__panel,
    .header-notification-preview:hover .header-hover-preview__panel,
    .header-notification-preview:focus-within .header-hover-preview__panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}
.header-hover-preview__items {
    max-height: 20rem;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 0.42rem;
}
.header-hover-preview__item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.5rem;
    border-radius: 0.72rem;
    transition: background 0.15s ease;
}
.header-hover-preview__item:hover {
    background: rgba(85, 32, 113, 0.06);
}
.header-hover-preview__thumb {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.6rem;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #fff;
}
.header-hover-preview__icon-wrap {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #552071;
    background: rgba(85, 32, 113, 0.12);
}
.header-hover-preview__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
}
.header-hover-preview__name {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}
.header-hover-preview__detail {
    margin: 0;
    font-size: 0.74rem;
    color: #6b7280;
    line-height: 1.3;
}
.header-hover-preview__time {
    margin: 0.04rem 0 0;
    font-size: 0.7rem;
    color: #9ca3af;
}
.header-hover-preview__more {
    margin: 0;
    padding: 0 0.78rem 0.55rem;
    font-size: 0.74rem;
    color: #6b7280;
}
.header-hover-preview__footer {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 0.62rem 0.72rem 0.72rem;
    background: rgba(250, 250, 252, 0.82);
}
.header-hover-preview__empty {
    padding: 0.85rem;
    display: grid;
    gap: 0.62rem;
    text-align: center;
    color: #4b5563;
    font-size: 0.84rem;
}
.header-profile-menu {
    position: relative;
}
.header-profile-menu__trigger {
    justify-content: flex-start;
    min-width: 9.5rem;
    max-width: none;
    padding-inline: 0.95rem;
    overflow: visible;
}
.header-profile-menu__trigger .header-action-btn__label,
.header-profile-menu__trigger .header-action-btn__label--visible {
    max-width: none;
    overflow: visible;
    opacity: 1;
}
.header-profile-menu__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.2rem;
    color: currentColor;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}
.header-profile-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    z-index: 82;
    width: min(18.5rem, calc(100vw - 1.5rem));
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 20px 40px -28px rgba(15, 23, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    overflow: hidden;
}
.header-profile-menu:focus-within .header-profile-menu__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
@media (hover: hover) and (pointer: fine) {
    .header-profile-menu:hover .header-profile-menu__panel,
    .header-profile-menu:focus-within .header-profile-menu__panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .header-profile-menu:hover .header-profile-menu__chevron,
    .header-profile-menu:focus-within .header-profile-menu__chevron {
        transform: rotate(180deg);
    }
}
.header-profile-menu__head {
    padding: 0.72rem 0.82rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(252, 245, 255, 0.98), rgba(255, 255, 255, 0.96));
}
.header-profile-menu__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}
.header-profile-menu__subtitle {
    margin: 0.12rem 0 0;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-profile-menu__links {
    padding: 0.45rem;
    display: grid;
    gap: 0.16rem;
    max-height: 17.5rem;
    overflow: auto;
    overscroll-behavior: contain;
}
.header-profile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    border-radius: 0.72rem;
    padding: 0.48rem 0.55rem;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.16s ease, color 0.16s ease;
}
.header-profile-menu__link-main {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    min-width: 0;
}
.header-profile-menu__icon {
    color: #552071;
    font-size: 1rem;
    line-height: 1;
}
.header-profile-menu__link:hover {
    background: rgba(85, 32, 113, 0.08);
    color: #1f2937;
}
.header-profile-menu__link.is-active {
    background: rgba(85, 32, 113, 0.11);
    color: #552071;
}
.header-profile-menu__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.28rem;
    height: 1.28rem;
    padding: 0 0.32rem;
    border-radius: 999px;
    background: #552071;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
}
.header-profile-menu__logout-form {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.5rem;
    background: rgba(250, 250, 252, 0.86);
}
.header-profile-menu__logout-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 2rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(248, 113, 113, 0.3);
    background: #fff;
    color: #b91c1c;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.16s ease, border-color 0.16s ease;
}
.header-profile-menu__logout-btn:hover {
    background: #fff5f5;
    border-color: rgba(248, 113, 113, 0.44);
}
.header-action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 0;
    min-height: 2.95rem;
    min-width: 2.95rem;
    padding: 0 0.88rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: #ffffff;
    color: #475569;
    box-shadow: 0 4px 12px -12px rgba(15, 23, 42, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
    overflow: hidden;
    white-space: nowrap;
}
.header-action-auth,
.header-action-auth:hover,
.header-action-auth:focus-visible {
    justify-content: center;
}
.header-action-btn:hover,
.header-action-btn:focus-visible {
    justify-content: flex-start;
    transform: translateY(-1px);
    color: #552071;
    background: #fcf9ff;
    border-color: rgba(85, 32, 113, 0.28);
    box-shadow: 0 10px 18px -16px rgba(85, 32, 113, 0.5);
}
.header-action-btn__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 1.4rem;
    min-height: 1.4rem;
}
.header-action-btn__label {
    max-width: 0;
    margin-left: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: max-width 0.24s ease, opacity 0.18s ease, margin 0.18s ease;
}
.header-action-btn__label--visible {
    max-width: 5.6rem;
    margin-left: 0.42rem;
    opacity: 1;
}
.header-action-btn__icon-wrap .header-action-alert {
    top: -0.42rem;
    right: -0.4rem;
}
.header-action-btn__icon-wrap .header-action-dot {
    top: 0.02rem;
    right: 0.02rem;
}
@media (hover: hover) and (pointer: fine) {
    .header-action-btn:hover .header-action-btn__label,
    .header-action-btn:focus-visible .header-action-btn__label {
        max-width: 6.8rem;
        margin-left: 0.42rem;
        opacity: 1;
    }
}
.header-action-btn--cart {
    padding-inline: 0.96rem;
    color: #552071;
    font-weight: 700;
    border-color: rgba(85, 32, 113, 0.28);
    background: #faf5ff;
}
.header-action-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.42rem;
    margin-left: 0.45rem;
    border-radius: 999px;
    background: #552071;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.header-action-alert {
    position: absolute;
    top: -0.34rem;
    right: -0.24rem;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.32rem;
    border-radius: 999px;
    background: #fbad2f;
    color: #552071;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.header-action-dot {
    position: absolute;
    top: 0.62rem;
    right: 0.68rem;
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
    background: #fbad2f;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95);
}
.header-nav-row {
    margin-top: 0.46rem;
    margin-bottom: 0;
    width: 100%;
    border-top: 1px solid rgba(85, 32, 113, 0.08);
    border-bottom: 1px solid rgba(85, 32, 113, 0.05);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(150%) blur(12px);
}
.header-nav-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: min(100%, 108rem);
    margin: 0 auto;
    padding: 0.48rem clamp(1rem, 2vw, 2rem) 0.56rem;
    box-sizing: border-box;
    position: relative;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
/* Single-row nav: horizontal scroll on small screens; lg+ overflow visible so Browse categories mega is not clipped */
.header-nav-flow {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.18rem;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
@media (max-width: 1023px) {
    .header-nav-flow {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        overscroll-behavior-x: contain;
    }
    .header-nav-flow::-webkit-scrollbar {
        height: 4px;
    }
    .header-nav-flow::-webkit-scrollbar-thumb {
        background: rgba(85, 32, 113, 0.25);
        border-radius: 999px;
    }
}
@media (min-width: 1024px) {
    .header-nav-flow,
    .header-nav-shell {
        overflow: visible;
    }
}
.supercat-section-links.supercat-section-links--category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.55rem 0.65rem;
}
.supercat-section-links.supercat-section-links--category-grid a {
    padding: 0.55rem 0.72rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(85, 32, 113, 0.14);
    background: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    transform: none;
}
.supercat-section-links.supercat-section-links--category-grid a:hover {
    border-color: rgba(85, 32, 113, 0.28);
    background: rgba(252, 245, 255, 0.98);
    transform: translateY(-1px);
}
.dark .supercat-section-links.supercat-section-links--category-grid a {
    border-color: rgba(196, 181, 253, 0.22);
    background: rgba(30, 41, 59, 0.72);
    color: #e5e7eb;
}
.dark .supercat-section-links.supercat-section-links--category-grid a:hover {
    border-color: rgba(196, 181, 253, 0.38);
    background: rgba(55, 48, 80, 0.9);
    color: #f5f3ff;
}
.header-nav-flow > *,
.header-nav-flow .mega-trigger,
.header-nav-flow .super-categories {
    flex-shrink: 0;
}
.header-nav-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}
.header-utility-link,
.header-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.1rem;
    padding: 0.45rem 0.58rem;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.header-utility-link {
    color: #6b7280;
}
.header-utility-link:hover,
.header-nav-link:hover,
.mega-trigger:hover > .header-nav-link,
.mega-trigger:focus-within > .header-nav-link {
    color: #552071;
    background: transparent;
    border-color: rgba(85, 32, 113, 0.22);
    box-shadow: none;
    transform: none;
}
.header-nav-link--primary {
    color: #552071;
    font-weight: 700;
    margin-right: 0.35rem;
    padding-right: 1rem;
    border-right: 1px solid rgba(85, 32, 113, 0.14);
}
.header-nav-link--primary:hover {
    color: #552071;
    border-bottom-color: transparent;
}
.header-nav-link--accent {
    color: #374151;
    border-color: transparent;
}
.header-dropdown > .header-utility-link {
    background: transparent;
    border-bottom-color: transparent;
}
.header-dropdown-panel > div {
    border-radius: 1.25rem;
    border: 1px solid rgba(85, 32, 113, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 240, 0.96));
    box-shadow: 0 26px 42px -28px rgba(15, 23, 42, 0.26);
    padding: 0.45rem;
}
.header-dropdown-panel a {
    border-radius: 0.95rem;
    font-weight: 600;
}
.super-categories {
    position: static !important;
}
.super-categories-panel {
    position: absolute;
    left: 50%;
    right: auto;
    top: calc(100% - 0.2rem);
    margin-top: 0;
    width: min(74rem, calc(100vw - 2rem));
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100;
}
.mega-panel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: min(72rem, calc(100vw - 2rem));
    top: calc(100% - 0.2rem);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    pointer-events: none;
    z-index: 60;
    border-radius: 1.5rem;
}
.mega-panel::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}
.mega-panel-inner {
    padding: 1.55rem 1.55rem 1.8rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 251, 247, 0.97));
    border-radius: 1.5rem;
    border: 1px solid rgba(85, 32, 113, 0.08);
    box-shadow: 0 28px 48px -32px rgba(15, 23, 42, 0.32);
    box-sizing: border-box;
}
.mega-panel .mega-col-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mega-panel .mega-col-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.mega-panel .mega-col-list a {
    font-size: 0.875rem;
    color: #4b5563;
    padding: 0.35rem 0;
    border-radius: 0.375rem;
    transition: color 0.15s, background 0.15s;
}
.mega-panel .mega-col-list a:hover {
    color: #552071;
    background: #f5eef9;
}
.mega-panel .mega-product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.5rem 0.5rem 0;
    border-radius: 0.5rem;
    transition: background 0.15s;
}
.mega-panel .mega-product:hover {
    background: #fff8f0;
}
.mega-panel .mega-product-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
}
.mega-panel .mega-product-price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #552071;
}
.mega-panel--wide {
    width: min(82rem, calc(100vw - 2rem));
}
.header-catalog-mega {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
.header-catalog-mega__hero {
    border-radius: 1.15rem;
    border: 1px solid rgba(85, 32, 113, 0.1);
    background: linear-gradient(165deg, rgba(250, 244, 253, 0.94), rgba(255, 249, 243, 0.95));
    padding: 0.95rem;
}
.header-catalog-mega__kicker {
    margin: 0;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8b5ca8;
}
.header-catalog-mega__title {
    margin: 0.45rem 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2937;
}
.header-catalog-mega__copy {
    margin: 0.52rem 0 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #6b7280;
}
.header-catalog-mega__hero-actions {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.header-catalog-mega__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.95rem;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(85, 32, 113, 0.2);
    background: #552071;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.header-catalog-mega__cta:hover {
    background: #673088;
    border-color: rgba(85, 32, 113, 0.5);
}
.header-catalog-mega__cta--ghost {
    background: rgba(255, 255, 255, 0.92);
    color: #552071;
}
.header-catalog-mega__cta--ghost:hover {
    background: #fff;
}
.header-catalog-mega__menu,
.header-catalog-mega__products {
    border-radius: 1.15rem;
    border: 1px solid rgba(85, 32, 113, 0.08);
    background: rgba(255, 255, 255, 0.86);
    padding: 0.95rem;
}
.header-catalog-mega__subhead {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8b5ca8;
}
.header-catalog-mega__columns {
    margin-top: 0.68rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0.8rem;
}
.header-catalog-mega__title-link {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}
.header-catalog-mega__title-link:hover {
    color: #552071;
}
.header-catalog-mega__links {
    margin-top: 0.28rem;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}
.header-catalog-mega__links a {
    font-size: 0.78rem;
    color: #4b5563;
    line-height: 1.45;
    padding: 0.14rem 0;
    border-radius: 0.32rem;
}
.header-catalog-mega__links a:hover {
    color: #552071;
    background: rgba(85, 32, 113, 0.08);
}
.header-catalog-mega__product-grid {
    margin-top: 0.68rem;
    display: grid;
    gap: 0.5rem;
}
.header-catalog-mega__product {
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    border-radius: 0.9rem;
    border: 1px solid rgba(85, 32, 113, 0.08);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.38rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.header-catalog-mega__product:hover {
    border-color: rgba(85, 32, 113, 0.2);
    background: rgba(255, 255, 255, 1);
}
.header-catalog-mega__product img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.7rem;
    object-fit: cover;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.header-catalog-mega__product-name {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    color: #374151;
}
.header-catalog-mega__product-price {
    margin: 0.12rem 0 0;
    font-size: 0.76rem;
    font-weight: 700;
    color: #552071;
}
.header-showcase-mega {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
.header-showcase-mega__hero {
    border-radius: 1.15rem;
    border: 1px solid rgba(85, 32, 113, 0.1);
    background: linear-gradient(165deg, rgba(250, 244, 253, 0.94), rgba(255, 249, 243, 0.95));
    padding: 0.95rem;
}
.header-showcase-mega__kicker {
    margin: 0;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8b5ca8;
}
.header-showcase-mega__title {
    margin: 0.45rem 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2937;
}
.header-showcase-mega__copy {
    margin: 0.52rem 0 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #6b7280;
}
.header-showcase-mega__cta {
    margin-top: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.95rem;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(85, 32, 113, 0.2);
    background: #552071;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.header-showcase-mega__cta:hover {
    background: #673088;
    border-color: rgba(85, 32, 113, 0.5);
}
.header-showcase-mega__hero .flex .header-showcase-mega__cta {
    margin-top: 0;
}
.header-showcase-mega__cta--ghost {
    background: rgba(255, 255, 255, 0.92);
    color: #552071;
    border: 1px solid rgba(85, 32, 113, 0.22);
}
.header-showcase-mega__cta--ghost:hover {
    background: #fff;
    border-color: rgba(85, 32, 113, 0.45);
}
.header-showcase-mega__grid--products .header-showcase-mega__empty {
    grid-column: 1 / -1;
}
/* grid-template-columns live only on --tiles / --products so the default 3-col rule cannot hide a missing modifier. */
.header-showcase-mega__grid {
    border-radius: 1.15rem;
    border: 1px solid rgba(85, 32, 113, 0.08);
    background: rgba(255, 255, 255, 0.86);
    padding: 0.95rem;
    display: grid;
    gap: 0.7rem;
    align-content: start;
}
/* Fixed max track width: minmax(..., 1fr) was letting columns grow to ~315px with few tracks. */
.header-showcase-mega__grid.header-showcase-mega__grid--tiles {
    grid-template-columns: repeat(auto-fill, minmax(8.75rem, 11rem));
    gap: 0.55rem;
    justify-content: start;
}
.header-showcase-card {
    border-radius: 0.95rem;
    border: 1px solid rgba(85, 32, 113, 0.08);
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.header-showcase-mega__grid--tiles .header-showcase-card {
    border-radius: 0.85rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.header-showcase-card:hover {
    border-color: rgba(85, 32, 113, 0.2);
    box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.35);
}
.header-showcase-card__media {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(85, 32, 113, 0.12), rgba(251, 173, 47, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.header-showcase-mega__grid--tiles .header-showcase-card__media {
    aspect-ratio: 1;
    max-height: 5.75rem;
    flex-shrink: 0;
}
.header-showcase-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.header-showcase-card__placeholder {
    color: rgba(85, 32, 113, 0.7);
}
.header-showcase-card__meta {
    padding: 0.58rem 0.62rem 0.65rem;
}
.header-showcase-mega__grid--tiles .header-showcase-card__meta {
    padding: 0.45rem 0.5rem 0.52rem;
}
.header-showcase-card__title {
    margin: 0;
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2937;
}
.header-showcase-mega__grid--tiles .header-showcase-card__title {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.header-showcase-card__sub {
    margin: 0.2rem 0 0;
    font-size: 0.74rem;
    line-height: 1.4;
    color: #6b7280;
}
.header-showcase-mega__grid--tiles .header-showcase-card__sub {
    margin: 0.12rem 0 0;
    font-size: 0.68rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.header-showcase-mega__grid.header-showcase-mega__grid--products {
    grid-template-columns: repeat(auto-fill, minmax(8.75rem, 11rem));
    gap: 0.55rem;
    align-content: start;
    justify-content: start;
}
.header-showcase-product {
    border-radius: 0.85rem;
    border: 1px solid rgba(85, 32, 113, 0.08);
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.header-showcase-product:hover {
    border-color: rgba(85, 32, 113, 0.2);
    box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.35);
}
.header-showcase-product__media {
    width: 100%;
    aspect-ratio: 1;
    max-height: 7.5rem;
    background: #fff;
    flex-shrink: 0;
}
.header-showcase-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.header-showcase-product__meta {
    padding: 0.45rem 0.5rem 0.52rem;
}
.header-showcase-product__name {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.header-showcase-product__price {
    margin: 0.14rem 0 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #552071;
}
.dark .header-main-row {
    border: none;
    background: transparent;
    box-shadow: none;
}
.dark .header-brand__endorsement {
    border-color: rgba(184, 143, 212, 0.26);
    background:
        linear-gradient(120deg, rgba(85, 32, 113, 0.28), rgba(248, 187, 217, 0.16), rgba(251, 173, 47, 0.14)),
        rgba(17, 24, 39, 0.94);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 24px -18px rgba(0, 0, 0, 0.6),
        0 0 18px rgba(184, 143, 212, 0.16);
}
.dark .header-brand__endorsement-prefix {
    color: rgba(243, 232, 255, 0.72);
}
.dark .header-brand__endorsement-name {
    background: linear-gradient(90deg, #f8f0ff 0%, #f8bbd9 26%, #ffd36e 52%, #fff1c7 62%, #d7a9ff 82%, #f8f0ff 100%);
    background-size: 260% auto;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow:
        0 0 12px rgba(248, 187, 217, 0.24),
        0 0 22px rgba(251, 173, 47, 0.2);
}
.dark .header-action-cluster {
    background: transparent;
    box-shadow: none;
}
.dark .header-cart-preview__panel {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(17, 24, 39, 0.98);
    box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.66);
}
.dark .header-cart-preview__item:hover {
    background: rgba(85, 32, 113, 0.32);
}
.dark .header-cart-preview__thumb {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(31, 41, 55, 0.86);
}
.dark .header-cart-preview__name {
    color: #f3f4f6;
}
.dark .header-cart-preview__detail,
.dark .header-cart-preview__more {
    color: #9ca3af;
}
.dark .header-cart-preview__footer {
    border-top-color: rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.8);
}
.dark .header-cart-preview__subtotal {
    color: #d1d5db;
}
.dark .header-cart-preview__subtotal strong {
    color: #f9fafb;
}
.dark .header-cart-preview__subtotal.header-cart-preview__subtotal--savings {
    color: #6ee7b7;
}
.dark .header-cart-preview__subtotal.header-cart-preview__subtotal--savings strong {
    color: #6ee7b7;
}
.dark .header-cart-preview__action-link {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(31, 41, 55, 0.92);
    color: #e5e7eb;
}
.dark .header-cart-preview__action-link:hover {
    background: rgba(51, 65, 85, 0.95);
    border-color: rgba(148, 163, 184, 0.44);
    color: #f9fafb;
}
.dark .header-cart-preview__action-link--primary {
    border-color: rgba(184, 143, 212, 0.46);
    background: rgba(85, 32, 113, 0.84);
    color: #fff;
}
.dark .header-cart-preview__action-link--primary:hover {
    background: rgba(108, 44, 141, 0.9);
    border-color: rgba(184, 143, 212, 0.62);
}
.dark .header-cart-preview__empty {
    color: #d1d5db;
}
.dark .header-hover-preview__panel {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(17, 24, 39, 0.98);
    box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.66);
}
.dark .header-hover-preview__item:hover {
    background: rgba(85, 32, 113, 0.32);
}
.dark .header-hover-preview__thumb {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(31, 41, 55, 0.86);
}
.dark .header-hover-preview__icon-wrap {
    color: #d8b4fe;
    background: rgba(184, 143, 212, 0.2);
}
.dark .header-hover-preview__name {
    color: #f3f4f6;
}
.dark .header-hover-preview__detail,
.dark .header-hover-preview__time,
.dark .header-hover-preview__more,
.dark .header-hover-preview__empty {
    color: #9ca3af;
}
.dark .header-hover-preview__footer {
    border-top-color: rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.8);
}
.dark .header-profile-menu__panel {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(17, 24, 39, 0.98);
    box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.66);
}
.dark .header-profile-menu__head {
    border-bottom-color: rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.9));
}
.dark .header-profile-menu__title {
    color: #f9fafb;
}
.dark .header-profile-menu__subtitle {
    color: #9ca3af;
}
.dark .header-profile-menu__link {
    color: #d1d5db;
}
.dark .header-profile-menu__icon {
    color: #d8b4fe;
}
.dark .header-profile-menu__link:hover {
    background: rgba(184, 143, 212, 0.18);
    color: #f3f4f6;
}
.dark .header-profile-menu__link.is-active {
    background: rgba(184, 143, 212, 0.24);
    color: #f3e8ff;
}
.dark .header-profile-menu__badge {
    background: #f8d48a;
    color: #261033;
}
.dark .header-profile-menu__logout-form {
    border-top-color: rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.82);
}
.dark .header-profile-menu__logout-btn {
    border-color: rgba(248, 113, 113, 0.38);
    background: rgba(31, 41, 55, 0.92);
    color: #fca5a5;
}
.dark .header-profile-menu__logout-btn:hover {
    background: rgba(69, 10, 10, 0.22);
    border-color: rgba(248, 113, 113, 0.56);
}
.dark .header-nav-row {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 21, 0.9);
}
.dark .header-nav-shell {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
.dark .header-action-btn {
    background: rgba(17, 24, 39, 0.86);
    border-color: rgba(148, 163, 184, 0.34);
    color: #d1d5db;
    box-shadow: none;
}
.dark .header-action-btn:hover,
.dark .header-action-btn:focus-visible,
.dark .header-utility-link:hover,
.dark .header-nav-link:hover,
.dark .mega-trigger:hover > .header-nav-link,
.dark .mega-trigger:focus-within > .header-nav-link {
    color: #f3e8ff;
    background: transparent;
    border-color: rgba(184, 143, 212, 0.34);
    box-shadow: none;
}
.dark .header-action-btn:hover,
.dark .header-action-btn:focus-visible {
    background: rgba(31, 41, 55, 0.95);
}
.dark .header-action-btn--cart {
    background: rgba(85, 32, 113, 0.24);
    color: #f3e8ff;
    border-color: rgba(184, 143, 212, 0.38);
}
.dark .header-nav-link--primary {
    background: transparent;
    color: #f3e8ff;
    border-color: transparent;
    border-right: 1px solid rgba(184, 143, 212, 0.28);
    box-shadow: none;
}
.dark .header-nav-link--primary:hover {
    background: transparent;
    color: #f3e8ff;
    border-bottom-color: transparent;
}
.dark .header-nav-link--accent {
    background: transparent;
    color: #d1d5db;
    border-color: transparent;
}
.dark .header-action-chip {
    background: #f8d48a;
    color: #261033;
}
.dark .header-action-alert,
.dark .header-action-dot {
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.95);
}
.dark .header-utility-link,
.dark .header-nav-link {
    color: #d1d5db;
}
.dark .header-dropdown > .header-utility-link {
    background: transparent;
    border-color: transparent;
}
.dark .header-dropdown-panel > div {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.98), rgba(17, 24, 39, 0.96));
    box-shadow: 0 30px 48px -30px rgba(0, 0, 0, 0.5);
}
.dark .mega-panel-inner {
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.98), rgba(17, 24, 39, 0.96));
    border-color: rgba(255,255,255,0.08);
}
.dark .mega-panel .mega-col-title {
    color: #f3f4f6;
}
.dark .mega-panel .mega-col-list a {
    color: #9ca3af;
}
.dark .mega-panel .mega-col-list a:hover {
    color: #b88fd4;
    background: rgba(85,32,113,0.2);
}
.dark .mega-panel .mega-product-name {
    color: #e5e7eb;
}
.dark .mega-panel .mega-product:hover {
    background: rgba(255,255,255,0.05);
}
.dark .header-catalog-mega__hero,
.dark .header-showcase-mega__hero {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.92));
}
.dark .header-catalog-mega__kicker,
.dark .header-showcase-mega__kicker {
    color: #d8b4fe;
}
.dark .header-catalog-mega__title,
.dark .header-showcase-mega__title {
    color: #f9fafb;
}
.dark .header-catalog-mega__copy,
.dark .header-showcase-mega__copy {
    color: #cbd5e1;
}
.dark .header-showcase-mega__cta {
    border-color: rgba(184, 143, 212, 0.45);
    background: rgba(85, 32, 113, 0.9);
    color: #fff;
}
.dark .header-showcase-mega__cta:hover {
    background: rgba(108, 44, 141, 0.95);
}
.dark .header-showcase-mega__cta--ghost {
    background: rgba(31, 41, 55, 0.86);
    color: #f3e8ff;
    border-color: rgba(184, 143, 212, 0.38);
}
.dark .header-showcase-mega__cta--ghost:hover {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(216, 180, 254, 0.5);
}
.dark .header-catalog-mega__cta {
    border-color: rgba(184, 143, 212, 0.45);
    background: rgba(85, 32, 113, 0.9);
    color: #fff;
}
.dark .header-catalog-mega__cta:hover {
    background: rgba(108, 44, 141, 0.95);
}
.dark .header-catalog-mega__cta--ghost {
    background: rgba(31, 41, 55, 0.86);
    color: #f3e8ff;
}
.dark .header-catalog-mega__menu,
.dark .header-catalog-mega__products,
.dark .header-showcase-mega__grid {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(17, 24, 39, 0.88);
}
.dark .header-catalog-mega__subhead {
    color: #d8b4fe;
}
.dark .header-catalog-mega__title-link {
    color: #f3f4f6;
}
.dark .header-catalog-mega__title-link:hover {
    color: #e9d5ff;
}
.dark .header-catalog-mega__links a {
    color: #9ca3af;
}
.dark .header-catalog-mega__links a:hover {
    color: #e9d5ff;
    background: rgba(85, 32, 113, 0.3);
}
.dark .header-catalog-mega__product,
.dark .header-showcase-card,
.dark .header-showcase-product {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(31, 41, 55, 0.82);
}
.dark .header-catalog-mega__product:hover,
.dark .header-showcase-card:hover,
.dark .header-showcase-product:hover {
    border-color: rgba(184, 143, 212, 0.38);
    box-shadow: 0 12px 22px -16px rgba(0, 0, 0, 0.55);
}
.dark .header-catalog-mega__product-name,
.dark .header-showcase-card__title,
.dark .header-showcase-product__name {
    color: #f3f4f6;
}
.dark .header-catalog-mega__product-price,
.dark .header-showcase-product__price {
    color: #d8b4fe;
}
.dark .header-showcase-card__sub {
    color: #9ca3af;
}
.dark .header-showcase-card__placeholder {
    color: #d8b4fe;
}
@media (max-width: 1023px) {
    /* One row: logo + Rainbow endorsement (stacked) | action cluster (search, cart, …) */
    .header-main-row {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.35rem;
        padding: 0.18rem 0 0.24rem;
        min-width: 0;
    }
    .header-brand {
        flex: 0 1 auto;
        min-width: 0;
        max-width: min(46%, 13rem);
    }
    .header-brand__endorsement {
        display: inline-flex !important;
        align-self: center;
        max-width: 100%;
        white-space: nowrap;
        overflow: visible;
    }
    .header-search-mobile-toggle {
        flex-shrink: 0;
    }
    .header-search-form {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--storefront-header-sticky-offset, 8.5rem);
        z-index: 48;
        margin: 0 !important;
        padding: 0.55rem 1rem 0.7rem;
        max-width: none !important;
        width: 100% !important;
        flex: none !important;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(85, 32, 113, 0.12);
        box-shadow: 0 14px 28px -18px rgba(15, 23, 42, 0.25);
        transform: translateY(-130%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.22s ease, opacity 0.2s ease, visibility 0.2s ease;
    }
    .dark .header-search-form {
        background: rgba(17, 24, 39, 0.98);
        border-bottom-color: rgba(75, 85, 99, 0.45);
    }
    .header-search-form.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .header-search-backdrop {
        position: fixed;
        inset: 0;
        z-index: 47;
        background: rgba(15, 23, 42, 0.28);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    .dark .header-search-backdrop {
        background: rgba(0, 0, 0, 0.45);
    }
    .header-search-backdrop.header-search-backdrop--open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .header-search-close {
        flex-shrink: 0;
    }
    .header-action-cluster {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        flex-shrink: 1;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0.22rem;
        padding: 0.05rem 0;
        margin-left: auto;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .header-action-btn {
        min-width: 2.45rem;
        min-height: 2.45rem;
        padding-inline: 0.42rem;
    }
    .header-action-btn--cart {
        flex: 0 0 auto;
        padding-inline: 0.38rem;
    }
    .header-action-cluster .header-action-btn__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .header-profile-menu__chevron {
        display: none !important;
    }
    .header-nav-shell {
        padding: 0.46rem 0.9rem 0.52rem;
    }
    .header-cart-preview__panel {
        display: none;
    }
    .header-hover-preview__panel {
        display: none;
    }
    .header-profile-menu__panel {
        width: min(20rem, calc(100vw - 1rem));
        right: 0;
    }
}
@media (min-width: 1024px) {
    .header-search-mobile-toggle {
        display: none !important;
    }
    .header-search-close {
        display: none !important;
    }
    .header-search-backdrop {
        display: none !important;
    }
    .header-search-form {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        padding: 0 !important;
        max-width: inherit !important;
        width: auto !important;
        flex: 1 1 0% !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    .header-nav-flow {
        justify-content: center;
    }
    .supercat-pane-grid {
        grid-template-columns: minmax(0, 1fr) 15rem;
    }
}
@media (max-width: 1279px) {
    .super-categories-panel {
        width: min(68rem, calc(100vw - 2rem));
    }
    .mega-panel--wide {
        width: min(70rem, calc(100vw - 2rem));
    }
    .header-catalog-mega {
        grid-template-columns: 1fr;
    }
    .header-showcase-mega {
        grid-template-columns: 1fr;
    }
    .header-catalog-mega__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .header-showcase-mega__grid.header-showcase-mega__grid--tiles,
    .header-showcase-mega__grid.header-showcase-mega__grid--products {
        grid-template-columns: repeat(auto-fill, minmax(8rem, 10.5rem));
    }
    .super-categories-shell {
        grid-template-columns: 14rem minmax(0, 1fr);
    }
    .supercat-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .supercat-pane-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .supercat-top-cards {
        grid-template-columns: 1fr;
    }
    .supercat-hero {
        grid-template-columns: 1fr;
    }
    .supercat-pane-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 767px) {
    .header-catalog-mega__columns {
        grid-template-columns: 1fr;
    }
    .header-showcase-mega__grid.header-showcase-mega__grid--tiles,
    .header-showcase-mega__grid.header-showcase-mega__grid--products {
        grid-template-columns: repeat(auto-fill, minmax(7rem, 9.5rem));
    }
}
@media (max-width: 639px) {
    .header-brand {
        max-width: min(48%, 12rem);
        overflow: visible;
    }
    .header-brand__endorsement {
        gap: 0.18rem;
        padding: 0.1rem 0.4rem;
        white-space: nowrap;
        overflow: hidden;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        text-align: center;
        line-height: 1;
        box-sizing: border-box;
    }
    .header-brand__endorsement-prefix {
        font-size: 0.42rem;
        letter-spacing: 0.1em;
    }
    .header-brand__endorsement-name {
        font-size: 0.46rem;
        letter-spacing: 0.008em;
        line-height: 1;
    }
    .header-action-cluster {
        gap: 0.18rem;
    }
    .header-action-btn {
        min-width: 2.32rem;
        min-height: 2.32rem;
        padding-inline: 0.34rem;
    }
}
/* Very small phones: cart + hamburger only; other actions live in #header-compact-sheet-root */
.header-compact-sheet-root {
    display: none;
}
body.header-compact-sheet-open {
    overflow: hidden;
}
@media (min-width: 1024px) {
    .header-compact-sheet-root {
        display: none !important;
    }
    body.header-compact-sheet-open {
        overflow: visible;
    }
}
@media (max-width: 420px) {
    .header-main-row {
        gap: 0.35rem;
        padding: 0.16rem 0 0.22rem;
    }
    .header-brand {
        flex: 0 1 auto;
        max-width: min(64%, 16.5rem);
        min-width: 0;
        overflow: visible;
    }
    .header-brand img {
        max-height: 2.55rem;
        width: auto;
        max-width: min(190px, 52vw);
    }
    .header-brand__endorsement {
        padding: 0.08rem 0.36rem;
        gap: 0.16rem;
        white-space: nowrap;
        overflow: hidden;
        flex-wrap: nowrap;
        line-height: 1;
    }
    .header-brand__endorsement-prefix {
        font-size: 0.4rem;
        letter-spacing: 0.08em;
    }
    .header-brand__endorsement-name {
        font-size: 0.44rem;
        letter-spacing: 0.008em;
        line-height: 1;
    }
    .header-action-cluster {
        flex: 0 0 auto;
        min-width: 0;
        max-width: none;
        overflow-x: visible;
        overflow-y: visible;
        justify-content: flex-end;
        gap: 0.28rem;
        margin-left: auto;
    }
    .header-action-cluster > *:not(.header-cart-preview):not(.header-compact-more) {
        display: none !important;
    }
    .header-compact-more.header-action-btn {
        min-width: 2.42rem;
        min-height: 2.42rem;
        padding-inline: 0.36rem;
    }
    .header-action-btn--cart {
        min-width: 2.42rem;
        min-height: 2.42rem;
    }
    .header-compact-sheet-root.is-open {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100vw;
        height: 100%;
        min-height: 100dvh;
        z-index: 65;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-sizing: border-box;
    }
    .header-compact-sheet__backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        padding: 0;
        margin: 0;
        cursor: pointer;
        background: rgba(15, 23, 42, 0.45);
    }
    .dark .header-compact-sheet__backdrop {
        background: rgba(0, 0, 0, 0.55);
    }
    .header-compact-sheet__panel {
        position: relative;
        z-index: 1;
        width: 100%;
        max-height: min(86vh, 32rem);
        overflow: hidden auto;
        overscroll-behavior: contain;
        border-radius: 1.25rem 1.25rem 0 0;
        border: 1px solid rgba(148, 163, 184, 0.35);
        border-bottom: 0;
        background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
        box-shadow: 0 -12px 40px -12px rgba(15, 23, 42, 0.35);
        transform: translateY(100%);
        transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    }
    .dark .header-compact-sheet__panel {
        border-color: rgba(75, 85, 99, 0.55);
        background: linear-gradient(180deg, rgba(31, 41, 55, 0.98), rgba(17, 24, 39, 0.99));
        box-shadow: 0 -12px 40px -12px rgba(0, 0, 0, 0.5);
    }
    .header-compact-sheet-root.is-open .header-compact-sheet__panel {
        transform: translateY(0);
    }
    .header-compact-sheet__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.65rem 1rem 0.5rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    }
    .dark .header-compact-sheet__head {
        border-bottom-color: rgba(75, 85, 99, 0.45);
    }
    .header-compact-sheet__title {
        margin: 0;
        font-size: 1rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        color: #1e293b;
    }
    .dark .header-compact-sheet__title {
        color: #f1f5f9;
    }
    .header-compact-sheet__close {
        flex-shrink: 0;
        width: 2.25rem;
        height: 2.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.65rem;
        border: 1px solid rgba(148, 163, 184, 0.35);
        background: rgba(248, 250, 252, 0.95);
        color: #475569;
        font-size: 1.35rem;
        line-height: 1;
        cursor: pointer;
    }
    .dark .header-compact-sheet__close {
        border-color: rgba(75, 85, 99, 0.55);
        background: rgba(30, 41, 59, 0.9);
        color: #e2e8f0;
    }
    .header-compact-sheet__nav {
        display: flex;
        flex-direction: column;
        padding: 0.35rem 0.65rem 1rem;
        gap: 0.2rem;
    }
    .header-compact-sheet__link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0.72rem 0.85rem;
        border-radius: 0.85rem;
        border: 0;
        text-align: left;
        font-size: 0.95rem;
        font-weight: 600;
        color: #334155;
        background: transparent;
        text-decoration: none;
        cursor: pointer;
        box-sizing: border-box;
    }
    .dark .header-compact-sheet__link {
        color: #e2e8f0;
    }
    .header-compact-sheet__link:hover,
    .header-compact-sheet__link:focus-visible {
        background: rgba(85, 32, 113, 0.08);
        color: #552071;
        outline: none;
    }
    .dark .header-compact-sheet__link:hover,
    .dark .header-compact-sheet__link:focus-visible {
        background: rgba(168, 85, 247, 0.15);
        color: #f3e8ff;
    }
    .header-compact-sheet__link-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 0.65rem;
        background: rgba(85, 32, 113, 0.07);
        color: #552071;
    }
    .dark .header-compact-sheet__link-icon {
        background: rgba(168, 85, 247, 0.12);
        color: #e9d5ff;
    }
    .header-compact-sheet__badge {
        margin-left: auto;
        min-width: 1.35rem;
        padding: 0.12rem 0.45rem;
        border-radius: 9999px;
        font-size: 0.72rem;
        font-weight: 800;
        background: rgba(85, 32, 113, 0.12);
        color: #552071;
    }
    .dark .header-compact-sheet__badge {
        background: rgba(216, 180, 254, 0.2);
        color: #f3e8ff;
    }
}

/* —— Mobile bottom dock + categories FAB (native app feel) —— */
@media (max-width: 1023px) {
    body:has(.storefront-mobile-dock) {
        padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }
}
.storefront-mobile-dock {
    --dock-fab-size: 3.35rem;
    --dock-bar-h: 4.05rem;
}
.storefront-mobile-dock__overlay {
    position: fixed;
    inset: 0;
    z-index: 58;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.storefront-mobile-dock__overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.dark .storefront-mobile-dock__overlay {
    background: rgba(0, 0, 0, 0.55);
}
.storefront-mobile-dock__sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    max-height: min(88vh, 36rem);
    display: flex;
    flex-direction: column;
    border-radius: 1.25rem 1.25rem 0 0;
    background: linear-gradient(180deg, #ffffff 0%, #faf8fc 100%);
    border: 1px solid rgba(85, 32, 113, 0.12);
    border-bottom: 0;
    box-shadow: 0 -20px 50px -24px rgba(15, 23, 42, 0.35);
    transform: translate3d(0, 110%, 0);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
.dark .storefront-mobile-dock__sheet {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border-color: rgba(75, 85, 99, 0.45);
    box-shadow: 0 -24px 56px -20px rgba(0, 0, 0, 0.55);
}
.storefront-mobile-dock__sheet.is-open {
    transform: translate3d(0, 0, 0);
}
.storefront-mobile-dock__sheet-handle {
    width: 2.5rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(85, 32, 113, 0.2);
    margin: 0.55rem auto 0.35rem;
    flex-shrink: 0;
}
.dark .storefront-mobile-dock__sheet-handle {
    background: rgba(156, 163, 175, 0.35);
}
.storefront-mobile-dock__sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.15rem 1rem 0.65rem;
    border-bottom: 1px solid rgba(85, 32, 113, 0.08);
    flex-shrink: 0;
}
.dark .storefront-mobile-dock__sheet-head {
    border-bottom-color: rgba(75, 85, 99, 0.4);
}
.storefront-mobile-dock__sheet-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #261033;
}
.dark .storefront-mobile-dock__sheet-title {
    color: #f3f4f6;
}
.storefront-mobile-dock__sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(85, 32, 113, 0.15);
    background: rgba(85, 32, 113, 0.06);
    color: #552071;
    transition: background 0.15s ease, color 0.15s ease;
}
.storefront-mobile-dock__sheet-close:hover {
    background: rgba(85, 32, 113, 0.12);
}
.dark .storefront-mobile-dock__sheet-close {
    border-color: rgba(156, 163, 175, 0.35);
    background: rgba(31, 41, 55, 0.9);
    color: #e5e7eb;
}
.storefront-mobile-dock__sheet-body {
    padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.storefront-mobile-dock__nav-section-label {
    margin: 1rem 0 0.4rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9ca3af;
}
.storefront-mobile-dock__nav-section-label:first-child {
    margin-top: 0;
}
.storefront-mobile-dock__nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}
.storefront-mobile-dock__nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.72rem 0.85rem;
    border-radius: 0.85rem;
    font-size: 0.94rem;
    font-weight: 600;
    color: #374151;
    background: rgba(85, 32, 113, 0.04);
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.storefront-mobile-dock__nav-link:hover {
    background: rgba(85, 32, 113, 0.09);
    border-color: rgba(85, 32, 113, 0.12);
    color: #552071;
}
.storefront-mobile-dock__nav-link--muted {
    background: transparent;
    font-weight: 500;
    font-size: 0.875rem;
    color: #552071;
}
.dark .storefront-mobile-dock__nav-link {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.05);
}
.dark .storefront-mobile-dock__nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f3e8ff;
}
.storefront-mobile-dock__nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: #552071;
    color: #fff;
}
.storefront-mobile-dock__cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.storefront-mobile-dock__cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #552071;
    background: rgba(85, 32, 113, 0.08);
    border: 1px solid rgba(85, 32, 113, 0.14);
    transition: background 0.15s ease, transform 0.15s ease;
}
.storefront-mobile-dock__cat-chip:hover {
    background: rgba(85, 32, 113, 0.14);
    transform: translateY(-1px);
}
.dark .storefront-mobile-dock__cat-chip {
    color: #e9d5ff;
    background: rgba(85, 32, 113, 0.35);
    border-color: rgba(167, 139, 250, 0.35);
}
.storefront-mobile-dock__fab {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: calc(var(--dock-bar-h) + env(safe-area-inset-bottom, 0px) + 0.55rem);
    z-index: 55;
    width: var(--dock-fab-size);
    height: var(--dock-fab-size);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(145deg, #552071 0%, #7c3aed 48%, #552071 100%);
    box-shadow:
        0 10px 28px -8px rgba(85, 32, 113, 0.65),
        0 4px 14px -4px rgba(124, 58, 237, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.storefront-mobile-dock__fab:hover {
    transform: scale(1.05);
    box-shadow:
        0 14px 36px -10px rgba(85, 32, 113, 0.7),
        0 6px 18px -6px rgba(124, 58, 237, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.storefront-mobile-dock__fab:active {
    transform: scale(0.96);
}
.storefront-mobile-dock__bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 0.15rem;
    min-height: var(--dock-bar-h);
    padding: 0.35rem 0.35rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px) saturate(160%);
    border-top: 1px solid rgba(85, 32, 113, 0.1);
    box-shadow: 0 -8px 32px -12px rgba(15, 23, 42, 0.18);
}
.dark .storefront-mobile-dock__bar {
    background: rgba(17, 24, 39, 0.94);
    border-top-color: rgba(75, 85, 99, 0.45);
    box-shadow: 0 -10px 36px -14px rgba(0, 0, 0, 0.45);
}
.storefront-mobile-dock__item {
    flex: 1;
    min-width: 0;
    max-width: 5.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.2rem 0.15rem;
    border-radius: 0.75rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.storefront-mobile-dock__item:hover {
    color: #552071;
    background: rgba(85, 32, 113, 0.06);
}
.storefront-mobile-dock__item.is-active {
    color: #552071;
    background: rgba(85, 32, 113, 0.1);
}
.dark .storefront-mobile-dock__item {
    color: #9ca3af;
}
.dark .storefront-mobile-dock__item:hover,
.dark .storefront-mobile-dock__item.is-active {
    color: #e9d5ff;
    background: rgba(85, 32, 113, 0.25);
}
.storefront-mobile-dock__item-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.storefront-mobile-dock__cart-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.45rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.1rem;
    text-align: center;
    background: #fbad2f;
    color: #261033;
    border: 2px solid #fff;
    box-sizing: border-box;
}
.dark .storefront-mobile-dock__cart-badge {
    border-color: #111827;
}
@media (prefers-reduced-motion: reduce) {
    .storefront-mobile-dock__sheet,
    .storefront-mobile-dock__overlay {
        transition: none;
    }
    .storefront-mobile-dock__fab {
        transition: none;
    }
}

/* Mobile-only duplicate; .header-nav-link{display:inline-flex} beats Tailwind lg:hidden */
@media (min-width: 1024px) {
    a.header-nav-link.header-nav-mobile-categories {
        display: none !important;
    }
}

/* —— Mobile shell: bottom dock nav, compact header (beats inline layout duplicates) —— */
@media (max-width: 1023px) {
    .header-nav-row {
        display: none !important;
    }
    .storefront-mobile-dock {
        display: block !important;
    }
}

@media (min-width: 1024px) {
    .storefront-mobile-dock {
        display: none !important;
    }
}

/* Tailwind .hidden loses to .header-action-btn{display:inline-flex} */
.header-action-btn.hidden {
    display: none !important;
}

@media (max-width: 420px) {
    .header-compact-more.header-action-btn {
        display: inline-flex !important;
    }
}

@media (min-width: 421px) {
    .header-compact-more {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .header-search-mobile-toggle,
    .header-search-close,
    .header-search-backdrop {
        display: none !important;
    }
}

/* Category rail carousel (home + PDP) */
.pdp-category-rail {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.pdp-category-rail::-webkit-scrollbar {
    display: none;
}
.pdp-category-dot {
    position: relative;
    min-width: 2rem;
    height: 1.25rem;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdp-category-dot__idle {
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    margin: 0 auto;
    background: rgba(148, 163, 184, 0.95);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease;
}
.dark .pdp-category-dot__idle {
    background: rgba(100, 116, 139, 0.95);
}
.pdp-category-dot:hover .pdp-category-dot__idle {
    background: rgba(167, 139, 250, 0.85);
}
.pdp-category-dot__active {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.75rem;
    height: 0.45rem;
    margin-left: -0.875rem;
    margin-top: -0.225rem;
    border-radius: 9999px;
    opacity: 0;
    transform: scale(0.88);
    background: linear-gradient(90deg, #7c3aed, #552071 55%, #9333ea);
    box-shadow: 0 0 18px rgba(85, 32, 113, 0.42), 0 2px 8px rgba(85, 32, 113, 0.18);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.pdp-category-dot--active .pdp-category-dot__idle {
    opacity: 0;
    transform: scale(0.4);
}
.pdp-category-dot--active .pdp-category-dot__active {
    opacity: 1;
    transform: scale(1);
}

/* Header search autocomplete — dedicated CSS (not Tailwind) so home + shop stay styled */
.header-search-form,
.header-search-form__inner,
.header-search-form .relative {
    overflow: visible;
}
.storefront-search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 120;
    max-height: min(70vh, 28rem);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 1rem;
    border: 1px solid rgba(85, 32, 113, 0.14);
    background: #fff;
    box-shadow:
        0 22px 44px -16px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(15, 23, 42, 0.04);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(85, 32, 113, 0.35) transparent;
}
.storefront-search-suggestions::-webkit-scrollbar {
    width: 6px;
}
.storefront-search-suggestions::-webkit-scrollbar-thumb {
    border-radius: 9999px;
    background: rgba(85, 32, 113, 0.35);
}
.dark .storefront-search-suggestions {
    border-color: rgba(75, 85, 99, 0.65);
    background: #111827;
    box-shadow:
        0 22px 44px -16px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}
.storefront-search-suggestions__section {
    padding: 0.55rem 0.75rem 0.2rem;
}
.storefront-search-suggestions__section:first-child {
    padding-top: 0.65rem;
}
.storefront-search-suggestions__section-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(85, 32, 113, 0.88);
}
.dark .storefront-search-suggestions__section-label {
    color: rgba(196, 181, 253, 0.92);
}
.storefront-search-suggestions__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    text-decoration: none;
    color: inherit;
    outline: none;
    transition: background-color 0.15s ease;
}
.storefront-search-suggestions__row:hover,
.storefront-search-suggestions__row:focus-visible,
.storefront-search-suggestions__row.is-active {
    background: rgba(85, 32, 113, 0.07);
}
.dark .storefront-search-suggestions__row:hover,
.dark .storefront-search-suggestions__row:focus-visible,
.dark .storefront-search-suggestions__row.is-active {
    background: rgba(85, 32, 113, 0.28);
}
.storefront-search-suggestions__row.is-active {
    box-shadow: inset 0 0 0 2px rgba(85, 32, 113, 0.35);
}
.storefront-search-suggestions__row--oos {
    opacity: 0.9;
    filter: saturate(0.55);
}
.storefront-search-suggestions__thumb {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #f3f4f6;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.dark .storefront-search-suggestions__thumb {
    background: #1f2937;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.storefront-search-suggestions__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.storefront-search-suggestions__thumb--oos img {
    filter: grayscale(1);
}
.storefront-search-suggestions__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(85, 32, 113, 0.12), rgba(85, 32, 113, 0.04));
    color: #552071;
    box-shadow: inset 0 0 0 1px rgba(85, 32, 113, 0.14);
}
.storefront-search-suggestions__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}
.dark .storefront-search-suggestions__icon {
    background: linear-gradient(135deg, rgba(85, 32, 113, 0.45), rgba(17, 24, 39, 0.9));
    color: #e9d5ff;
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.25);
}
.storefront-search-suggestions__meta {
    min-width: 0;
    flex: 1 1 auto;
}
.storefront-search-suggestions__title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.storefront-search-suggestions__row:hover .storefront-search-suggestions__title,
.storefront-search-suggestions__row.is-active .storefront-search-suggestions__title {
    color: #552071;
}
.dark .storefront-search-suggestions__title {
    color: #f9fafb;
}
.dark .storefront-search-suggestions__row:hover .storefront-search-suggestions__title,
.dark .storefront-search-suggestions__row.is-active .storefront-search-suggestions__title {
    color: #e9d5ff;
}
.storefront-search-suggestions__row--oos .storefront-search-suggestions__title {
    color: #6b7280;
}
.storefront-search-suggestions__subtitle {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .storefront-search-suggestions__subtitle {
    color: #9ca3af;
}
.storefront-search-suggestions__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}
.storefront-search-suggestions__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 0.375rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}
.storefront-search-suggestions__badge--stock {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}
.dark .storefront-search-suggestions__badge--stock {
    border-color: #065f46;
    background: rgba(6, 78, 59, 0.45);
    color: #6ee7b7;
}
.storefront-search-suggestions__badge--oos {
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #4b5563;
}
.dark .storefront-search-suggestions__badge--oos {
    border-color: #4b5563;
    background: #374151;
    color: #e5e7eb;
}
.storefront-search-suggestions__badge--save {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}
.dark .storefront-search-suggestions__badge--save {
    border-color: #065f46;
    background: rgba(6, 78, 59, 0.45);
    color: #6ee7b7;
}
.storefront-search-suggestions__price {
    flex-shrink: 0;
    text-align: right;
    min-width: 4.5rem;
}
.storefront-search-suggestions__price-current {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #552071;
}
.dark .storefront-search-suggestions__price-current {
    color: #c4b5fd;
}
.storefront-search-suggestions__row--oos .storefront-search-suggestions__price-current {
    color: #6b7280;
}
.storefront-search-suggestions__price-was {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.6875rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}
.storefront-search-suggestions__footer {
    position: sticky;
    bottom: 0;
    border-top: 1px solid #f3f4f6;
    background: #fff;
    padding: 0.55rem 0.75rem 0.65rem;
}
.dark .storefront-search-suggestions__footer {
    border-top-color: #1f2937;
    background: #111827;
}
.storefront-search-suggestions__footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    background: #f9fafb;
    font-size: 0.875rem;
    font-weight: 600;
    color: #552071;
    text-decoration: none;
    transition: background-color 0.15s ease;
}
.storefront-search-suggestions__footer-link:hover {
    background: rgba(85, 32, 113, 0.08);
}
.storefront-search-suggestions__footer-query {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}
.dark .storefront-search-suggestions__footer-link {
    background: rgba(31, 41, 55, 0.85);
    color: #c4b5fd;
}
.dark .storefront-search-suggestions__footer-link:hover {
    background: rgba(85, 32, 113, 0.35);
}
.storefront-search-suggestions__status {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}
.dark .storefront-search-suggestions__status {
    color: #9ca3af;
}
.storefront-search-suggestions__spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(85, 32, 113, 0.18);
    border-top-color: #552071;
    border-radius: 9999px;
    animation: storefront-search-spin 0.75s linear infinite;
    vertical-align: middle;
}
@keyframes storefront-search-spin {
    to { transform: rotate(360deg); }
}
.storefront-search-suggestions__empty-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}
.dark .storefront-search-suggestions__empty-title {
    color: #e5e7eb;
}
.storefront-search-suggestions__empty-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}
.storefront-search-suggestions__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.85rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    background: #552071;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 18px -10px rgba(85, 32, 113, 0.65);
}
.storefront-search-suggestions__cta:hover {
    background: #6b2d8a;
}
@media (max-width: 1023px) {
    .header-search-form.is-open .storefront-search-suggestions {
        z-index: 130;
    }
}
