/* ==== Gleamy Luxury Components v1 ==== */

/* ----- Cinematic hero banner ----- */
.banner-section--luxury::before {
    display: none;
}

.banner-section--luxury {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    background: hsl(var(--dark)) !important;
    background-image: none !important;
    overflow: hidden;
}

.banner-section--luxury .hero-particles {
    display: none;
}

.banner-section__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: 0;
}

.banner-section__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        hsl(var(--dark) / 0.92) 0%,
        hsl(var(--dark) / 0.75) 42%,
        hsl(var(--dark) / 0.35) 70%,
        hsl(var(--dark) / 0.2) 100%
    );
}

.banner-section--luxury .container {
    position: relative;
    z-index: 2;
}

.banner-section__content {
    max-width: 620px;
}

.banner-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: hsl(var(--base-l-200));
    font-family: var(--body-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.banner-section__eyebrow::before {
    content: "";
    width: 40px;
    height: 1px;
    background: hsl(var(--base));
}

.banner-section--luxury .banner-section__content h1,
.banner-section--luxury .hero-brand-title {
    color: hsl(var(--body-background));
    font-family: var(--heading-font);
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    text-transform: none;
}

.banner-section--luxury .banner-section__content p {
    color: hsl(var(--body-background) / 0.78);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 1.5rem;
}

.banner-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 1.5rem;
}

.banner-section--luxury .banner-btn-ghost {
    background: transparent !important;
    border: 1px solid hsl(var(--body-background) / 0.65) !important;
    color: hsl(var(--body-background)) !important;
}

.banner-section--luxury .banner-btn-ghost:hover {
    background: hsl(var(--body-background) / 0.1) !important;
    border-color: hsl(var(--body-background)) !important;
    color: hsl(var(--body-background)) !important;
}

.banner-section--luxury .flash-sale-countdown {
    margin-bottom: 1rem;
}

@media (max-width: 991px) {
    .banner-section--luxury {
        min-height: 75vh;
        padding-top: 120px;
    }

    .banner-section__bg {
        background-position: center;
    }

    .banner-section__overlay {
        background: linear-gradient(
            180deg,
            hsl(var(--dark) / 0.88) 0%,
            hsl(var(--dark) / 0.7) 100%
        );
    }
}

/* ----- Shop by category (circles) ----- */
.category-shop {
    padding: 80px 0;
    background: hsl(var(--body-background));
}

.category-shop__header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-shop__browse {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.category-shop__browse-line {
    width: 48px;
    height: 1px;
    background: hsl(var(--base));
}

.category-shop__browse-text {
    color: hsl(var(--base-d-300));
    font-family: var(--body-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.category-shop__title {
    font-family: var(--heading-font);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: hsl(var(--heading-color));
    margin: 0;
}

.category-shop__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 1.5rem;
}

.category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    width: 140px;
    transition: transform 0.35s ease;
}

.category-circle:hover {
    transform: translateY(-6px);
    text-decoration: none;
}

.category-circle__img-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 12px 32px hsl(var(--dark) / 0.12);
    margin-bottom: 1rem;
    background: hsl(var(--section-bg));
}

.category-circle__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-circle__name {
    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: hsl(var(--heading-color));
    margin: 0 0 4px;
}

.category-circle__count {
    font-family: var(--body-font);
    font-size: 13px;
    color: hsl(var(--body-color) / 0.55);
    margin: 0;
}

@media (max-width: 575px) {
    .category-circle {
        width: 120px;
    }

    .category-circle__img-wrap {
        width: 110px;
        height: 110px;
    }
}

/* ----- Luxury product card (compact LUXE-style) ----- */
.product-card {
    background: hsl(var(--white, 0 0% 100%));
    border-radius: 1rem;
    box-shadow: 0 2px 20px hsl(var(--dark, 0 0% 10%) / 0.06);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px hsl(var(--dark, 0 0% 10%) / 0.15);
}

.product-card__media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: hsl(var(--section-bg, 38 40% 96%));
}

.product-card__media-link {
    display: block;
    height: 100%;
    width: 100%;
}

.product-card__media img,
.product-card__media .product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease;
    /* Avoid soft upscale blur from subpixel scaling */
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.product-card:hover .product-card__media img,
.product-card:hover .product-card__media .product-card__image {
    transform: scale(1.1);
}

.product-card__badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 2;
}

.product-card__badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-family: var(--body-font);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0.125rem;
    line-height: 1.2;
}

.product-card__badge--new {
    background: linear-gradient(135deg, hsl(var(--base-l-200)), hsl(var(--base, 42 54% 54%)));
    color: hsl(var(--dark, 0 0% 10%));
}

.product-card__badge--sale {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.product-card__rating {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.125rem 0.375rem;
    background: hsl(var(--white, 0 0% 100%));
    border: none;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px hsl(var(--dark) / 0.08);
    font-family: var(--body-font);
    font-size: 0.625rem;
    font-weight: 700;
    color: hsl(var(--heading-color));
    z-index: 2;
}

.product-card__rating-star {
    color: #16a34a;
    font-size: 0.5rem;
}

.product-card__rating-count {
    color: hsl(var(--body-color) / 0.55);
    font-size: 0.5625rem;
    font-weight: 500;
    margin-left: 0.125rem;
}

.product-card__body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-card__title {
    font-family: var(--heading-font);
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card__title a {
    color: hsl(var(--heading-color));
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card:hover .product-card__title a {
    opacity: 0.85;
}

.product-card__category {
    font-family: var(--body-font);
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsl(var(--body-color) / 0.45);
    margin: 0.125rem 0 0.5rem;
    display: block;
}

.product-card__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    margin-top: auto;
}

.product-card__prices {
    display: flex;
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
    gap: 0.25rem;
    min-width: 0;
}

.product-card__price {
    font-family: var(--body-font);
    font-size: 0.875rem;
    font-weight: 700;
    color: hsl(var(--heading-color));
    margin: 0;
    line-height: 1.2;
}

.product-card__price--old {
    font-family: var(--body-font);
    font-size: 0.625rem;
    color: hsl(var(--body-color) / 0.45);
    text-decoration: line-through;
    margin: 0;
    line-height: 1.2;
}

.product-card__wish {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid hsl(var(--border-color));
    background: hsl(var(--white, 0 0% 100%));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--body-color) / 0.4);
    text-decoration: none;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.product-card__wish:hover {
    border-color: #f87171;
    color: #ef4444;
}

.product-card__wish i {
    font-size: 0.875rem;
}

.product-card__cart-form {
    margin: 0;
    margin-top: auto;
}

.product-card .product-card__cart {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem !important;
    background: transparent !important;
    border: 2px solid hsl(var(--heading-color)) !important;
    color: hsl(var(--heading-color)) !important;
    border-radius: 0.125rem !important;
    font-family: var(--body-font) !important;
    font-size: 0.625rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}

.product-card .product-card__cart::before {
    display: none !important;
}

.product-card .product-card__cart:hover,
.product-card .product-card__cart:focus {
    background: hsl(var(--heading-color)) !important;
    color: hsl(var(--body-background)) !important;
    border-color: hsl(var(--heading-color)) !important;
}

.product-card .product-card__cart i {
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .product-card__title {
        font-size: 0.875rem;
    }

    .product-card__category {
        font-size: 0.625rem;
    }

    .product-card__price {
        font-size: 1rem;
    }

    .product-card__price--old {
        font-size: 0.75rem;
    }

    .product-card__rating {
        bottom: 0.75rem;
        left: 0.75rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .product-card__rating-star {
        font-size: 0.625rem;
    }

    .product-card__rating-count {
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .product-card__body {
        padding: 1rem;
    }

    .product-card__title {
        font-size: 1.125rem;
    }

    .product-card__price-row {
        margin-bottom: 1rem;
    }

    .product-card__wish {
        width: 2.25rem;
        height: 2.25rem;
    }

    .product-card .product-card__cart {
        font-size: 0.75rem !important;
        padding: 0.625rem !important;
    }
}

/* Product detail — quantity + Add to Cart / Buy Now */
.product-purchase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
}

.product-purchase__qty {
    flex: 0 0 auto;
}

.product-purchase__qty .quantity_box {
    display: inline-flex;
    align-items: stretch;
    width: auto;
    min-width: 132px;
    height: 48px;
    margin: 0;
    border: 1px solid hsl(var(--border-color, 38 35% 85%));
    border-radius: 4px;
    overflow: hidden;
    background: hsl(var(--white, 0 0% 100%));
    box-shadow: 0 2px 10px hsl(var(--dark, 0 0% 10%) / 0.04);
}

.product-purchase__qty .quantity_box input.quantity {
    flex: 1 1 auto;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-left: 1px solid hsl(var(--border-color, 38 35% 85%) / 0.5);
    border-right: 1px solid hsl(var(--border-color, 38 35% 85%) / 0.5);
    border-radius: 0;
    text-align: center;
    font-family: var(--body-font, "Inter", sans-serif);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    color: hsl(var(--heading-color));
    background: hsl(var(--body-background, 40 43% 97%));
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
}

.product-purchase__qty .quantity_box input.quantity:focus {
    background: hsl(var(--white, 0 0% 100%));
    box-shadow: inset 0 0 0 1px hsl(var(--base, 42 54% 54%) / 0.35);
}

.product-purchase__qty .quantity_box input.quantity::-webkit-outer-spin-button,
.product-purchase__qty .quantity_box input.quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-purchase__qty .quantity_box button {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    height: auto;
    margin: 0;
    padding: 0;
    position: static;
    top: auto;
    bottom: auto;
    border: none;
    border-radius: 0;
    background: hsl(var(--white, 0 0% 100%));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.product-purchase__qty .quantity_box button:hover,
.product-purchase__qty .quantity_box button:focus-visible {
    background: hsl(var(--base, 42 54% 54%) / 0.1);
    outline: none;
}

.product-purchase__qty .quantity_box button i {
    font-size: 0.7rem;
    color: hsl(var(--heading-color));
    line-height: 1;
}

.product-purchase__qty .quantity_box button.sub {
    border-right: none;
}

.product-purchase__qty .quantity_box button.add {
    border-left: none;
}

@media (min-width: 480px) {
    .product-purchase {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .product-purchase__actions {
        flex: 1 1 220px;
    }
}

.product-purchase__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
}

.product-purchase__btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem !important;
    font-family: var(--body-font) !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    border-radius: 0.125rem !important;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.product-purchase__btn--cart {
    background: transparent !important;
    border: 2px solid hsl(var(--heading-color)) !important;
    color: hsl(var(--heading-color)) !important;
}

.product-purchase__btn--cart::before {
    display: none !important;
}

.product-purchase__btn--cart:hover,
.product-purchase__btn--cart:focus {
    background: hsl(var(--heading-color)) !important;
    color: hsl(var(--body-background)) !important;
    border-color: hsl(var(--heading-color)) !important;
}

.product-purchase__btn--buy {
    background: linear-gradient(135deg, hsl(var(--base)), hsl(var(--base-d-200))) !important;
    border: 1px solid hsl(var(--base-d-300)) !important;
    color: #fff !important;
}

.product-purchase__btn--buy:hover,
.product-purchase__btn--buy:focus {
    background: hsl(var(--dark)) !important;
    border-color: hsl(var(--dark)) !important;
    color: hsl(var(--body-background)) !important;
}

@media (max-width: 479px) {
    .product-purchase__actions {
        grid-template-columns: 1fr;
    }
}

/* Product detail — optional video tab (not default) */
.product-details-video-thumb {
    position: relative;
    display: block;
    width: 100px;
    line-height: 0;
}

.product-details-video-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.product-details-video-thumb__icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--dark, 0 0% 10%) / 0.35);
    color: hsl(var(--white));
    font-size: 1.25rem;
}

.product-details-left__thumb--video {
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--section-bg, 38 40% 96%));
}

.product-details-main-video {
    width: 100%;
    max-width: 100%;
    max-height: 520px;
    display: block;
    object-fit: contain;
    background: hsl(var(--dark, 0 0% 10%) / 0.04);
}

#product-video-tab.active .product-details-video-thumb__icon {
    background: hsl(var(--base) / 0.45);
}

/* Product card video (shop / home listings) */
.product-card__media-inner,
.home-luxe-trending-card__media .product-card__media-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.product-card__media-inner .product-card__image,
.product-card__media-inner .product-card__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-card__media-inner .product-card__video {
    z-index: 1;
    background: hsl(var(--section-bg, 38 40% 96%));
}

.product-card__media-inner--has-video:not(.product-card__media-inner--show-image) .product-card__image--fallback {
    opacity: 0;
    visibility: hidden;
}

.product-card__media-inner--has-video.product-card__media-inner--show-image .product-card__video,
.product-card__media-inner--has-video .product-card__video[hidden] {
    display: none;
}

.product-card__media-inner--has-video.product-card__media-inner--show-image .product-card__image--fallback {
    opacity: 1;
    visibility: visible;
}

.product-card:hover .product-card__media-inner--show-image .product-card__image--fallback,
.product-card:hover .product-card__media-inner:not(.product-card__media-inner--has-video) .product-card__image {
    transform: scale(1.1);
}

.home-luxe-trending-card__media-link {
    display: block;
    width: 100%;
    height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .product-card__media-inner--has-video .product-card__video {
        display: none !important;
    }

    .product-card__media-inner--has-video .product-card__image--fallback {
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
    }
}

/* Hide language dropdown (header + mobile menu) */
.language-box {
    display: none !important;
}

/* Header top: cart pill upper-right with readable count */
.header-top .top-header-wrapper {
    align-items: center;
}

.header-top .top-button {
    align-items: center;
    display: flex;
    flex: 1;
    justify-content: flex-end;
}

.header-top .login-registration-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.header-top .header-cart {
    margin-left: 0.25rem;
    order: 99;
}

.header-top .header-cart__link {
    align-items: center;
    background: hsl(var(--base));
    border-radius: 9999px;
    box-shadow: 0 2px 10px hsl(var(--base) / 0.35);
    color: hsl(var(--dark));
    display: inline-flex;
    font-family: var(--body-font);
    font-size: 0.8125rem;
    font-weight: 700;
    gap: 0.4rem;
    line-height: 1;
    padding: 0.4rem 0.75rem 0.4rem 0.55rem;
    text-decoration: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.header-top .header-cart__link:hover {
    color: hsl(var(--dark));
    box-shadow: 0 4px 14px hsl(var(--base) / 0.45);
    transform: translateY(-1px);
}

.header-top .header-cart__icon {
    align-items: center;
    color: hsl(var(--dark));
    display: inline-flex;
    font-size: 0.95rem;
    line-height: 1;
}

.header-top .header-cart__icon i {
    color: inherit;
}

.header-top .header-cart__count,
.header-top .header-cart__link .js-cart-badge-count {
    color: hsl(var(--dark)) !important;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    min-width: 1ch;
    text-align: center;
}

.header-top .header-cart__link.is-bouncing {
    animation: cart-badge-bounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    transform-origin: center center;
}

.page-home .header-top .header-cart__link,
.page-home .header-top .header-cart__icon,
.page-home .header-top .header-cart__count {
    color: hsl(var(--dark)) !important;
}

.page-home .header-top .header-cart__icon i {
    color: hsl(var(--dark)) !important;
}

@keyframes cart-badge-bounce {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.12);
    }
    55% {
        transform: scale(0.96);
    }
    75% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Scrollbar: neutral gray (global gold thumb looked like a yellow stripe on the right) */
html {
    scrollbar-color: hsl(var(--body-color) / 0.28) hsl(var(--border-color) / 0.12);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--border-color) / 0.12);
}

::-webkit-scrollbar-thumb {
    background-color: hsl(var(--body-color) / 0.28);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(var(--body-color) / 0.42);
}

/* Mobile header: compact two-row layout + cream background (matches laptop, not #fff) */
@media (max-width: 991px) {
    .header-top {
        background: hsl(var(--body-background) / 0.95) !important;
        background-color: hsl(var(--body-background)) !important;
        border-bottom: 1px solid hsl(var(--border-color));
    }

    .header {
        background: hsl(var(--body-background) / 0.96) !important;
        background-color: hsl(var(--body-background)) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid hsl(var(--border-color));
        padding: 6px 0 !important;
        position: relative !important;
        top: 0 !important;
    }

    .top-header-wrapper .top-contact {
        display: none;
    }

    .top-header-wrapper .top-button {
        flex: 1;
        justify-content: flex-end;
        width: 100%;
    }

    .header .navbar-toggler.header-button,
    .header .toggle-search-box button,
    .header .toggle-search-box button i {
        color: hsl(var(--heading-color)) !important;
    }

    .header-top .login-registration-list__link {
        font-size: 12px !important;
        color: hsl(var(--body-color)) !important;
    }

    .header-top .header-cart {
        margin-left: auto;
    }

    .header-top .header-cart__link {
        padding: 0.35rem 0.65rem 0.35rem 0.5rem;
    }

    .header {
        max-height: none !important;
        overflow: visible !important;
    }

    .header .navbar {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        position: relative;
        width: 100%;
    }

    .header .navbar-brand.logo {
        flex-shrink: 0;
        margin-right: auto;
        order: 1;
    }

    .header .navbar-brand.logo img {
        max-height: 40px;
    }

    .header .toggle-search-box {
        align-items: center;
        display: flex !important;
        flex-shrink: 0;
        margin-left: 0;
        margin-right: 0.35rem;
        order: 2;
    }

    .header .navbar-toggler.header-button {
        align-items: center;
        display: flex !important;
        flex-shrink: 0;
        height: 2.5rem;
        justify-content: center;
        margin: 0;
        order: 3;
        padding: 0;
        width: 2.5rem;
    }

    /* Full-width dropdown panel below logo row */
    .header .navbar-collapse {
        flex: 0 0 100%;
        max-width: 100%;
        order: 10;
        width: 100%;
    }

    .header .navbar-collapse.show,
    .header .navbar-collapse.collapsing {
        border-top: 1px solid hsl(var(--border-color));
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .header .navbar-nav.nav-menu {
        align-items: stretch !important;
        flex-direction: column !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        width: 100%;
    }

    .header .nav-menu .nav-item {
        text-align: left;
        width: 100%;
    }

    .header .nav-menu .nav-item .nav-link {
        border-bottom: 1px solid hsl(var(--border-color)) !important;
        color: hsl(var(--heading-color)) !important;
        display: block !important;
        font-size: 0.9rem;
        letter-spacing: 0.08em;
        padding: 0.75rem 0 !important;
        text-transform: uppercase;
        width: 100%;
    }

    .header .nav-menu .nav-item .nav-link.active {
        color: hsl(var(--base-d-300, var(--base))) !important;
    }

    /* Login/register already in header-top — hide duplicate in drawer */
    .header .nav-menu > .nav-item.d-block.d-lg-none {
        display: none !important;
    }
}
