/**
 * DucorMall shared brand UI (topbar, buttons, tokens)
 */
:root {
    --dm-font:
        "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto,
        sans-serif;
    --dm-font-display:
        "Outfit", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI",
        Roboto, sans-serif;
    --dm-display-letter-spacing: 0.03em;
    --dm-display-letter-spacing-wide: 0.05em;
    --dm-display-size-xl: clamp(1.875rem, 3.25vw, 2.5rem);
    --dm-display-size-lg: clamp(1.5rem, 2.5vw, 2rem);
    --dm-display-size-md: clamp(1.25rem, 2vw, 1.625rem);
    --dm-display-size-sm: clamp(1.0625rem, 1.75vw, 1.375rem);

    /* Brand palette */
    --dm-primary: #292c7a;
    --dm-primary-hover: #1f225c;
    --dm-primary-light: rgba(41, 44, 122, 0.06);
    --dm-primary-rgb: 41, 44, 122;

    --dm-secondary: #db3630;
    --dm-secondary-hover: #c42e28;
    --dm-secondary-light: rgba(219, 54, 48, 0.1);
    --dm-secondary-rgb: 219, 54, 48;

    /* Semantic aliases (use in components) */
    --dm-navy: var(--dm-primary);
    --dm-navy-dark: var(--dm-primary-hover);
    --dm-orange: var(--dm-secondary);
    --dm-orange-hover: var(--dm-secondary-hover);

    --dm-slate: #64748b;
    --dm-border: #e2e8f0;
    --dm-surface: #ffffff;
    --dm-bg: #eef0f7;
    --dm-bg-tint: rgba(41, 44, 122, 0.05);
    --dm-bg-band: #e4e7f4;
    --dm-radius: 16px;
    --dm-radius-sm: 10px;
    --dm-btn-radius: 6px;
    --dm-btn-padding-y: 0.7rem;
    --dm-btn-padding-x: 1.35rem;
    --dm-btn-padding-y-sm: 0.52rem;
    --dm-btn-padding-x-sm: 1.05rem;
    --dm-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    --dm-shadow-lg:
        0 4px 6px rgba(15, 23, 42, 0.04), 0 20px 40px rgba(15, 23, 42, 0.08);
}

body {
    font-family: var(--dm-font);
}

/* Display titles — Outfit site-wide */
h1,
h2,
h3,
[class*="__title"],
.modal-title,
.dc-clip__shop-name {
    font-family: var(--dm-font-display);
    font-weight: 700;
    letter-spacing: var(--dm-display-letter-spacing);
}

/* Legacy template brand classes → DucorMall palette */
body .color-brand-2,
body .color-warning {
    color: var(--dm-secondary) !important;
}

body .color-brand-3,
body .color-gray-900 {
    color: var(--dm-primary) !important;
}

body .bg-brand-2 {
    background-color: var(--dm-secondary) !important;
}

body .btn.btn-brand-2 {
    background-color: var(--dm-secondary);
    color: #fff;
}

body .btn.btn-brand-2:hover {
    background-color: var(--dm-primary);
    color: #fff;
}

body .btn.btn-brand-3 {
    background-color: var(--dm-primary);
    color: #fff;
}

body .btn.btn-brand-3:hover {
    background-color: var(--dm-secondary);
    color: #fff;
}

.dm-topbar {
    background: var(--dm-surface);
    border-bottom: 1px solid var(--dm-border);
    padding: 0.85rem 0;
}

.dm-topbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.dm-topbar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.dm-topbar__brand img {
    height: 52px;
    width: auto;
}

/* Guest header (layouts/guest) — Jiji-like navy bar + red accents */
.guest-header-brand.header {
    background: linear-gradient(
        180deg,
        var(--dm-primary) 0%,
        #252868 55%,
        var(--dm-primary-hover) 100%
    ) !important;
    box-shadow: none !important;
    filter: none !important;
    border-bottom: 3px solid var(--dm-secondary);
    padding: 0;
    color: #f8fafc;
}

.guest-header-brand.header::before,
.guest-header-brand.header::after {
    display: none !important;
    box-shadow: none !important;
}

.guest-header-brand.header.stick,
.guest-header-brand.sticky-bar.stick,
.guest-header-brand.header.sticky-bar {
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.28) !important;
    filter: none !important;
}

.guest-header-brand .guest-header-container {
    max-width: min(1280px, 96%);
}

.guest-header-brand .guest-header-left {
    padding: 0;
}

.guest-header-brand .guest-header-primary,
.guest-header-brand .guest-header-mobile-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    width: 100%;
}

.guest-header-brand .guest-header-brand-start {
    flex: 0 0 auto;
    min-width: 0;
}

.guest-header-brand .guest-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 0.75rem;
    flex: 0 0 auto;
    margin-left: 0;
    overflow: visible;
}

/* Beat theme `.header .main-header .header-left .header-logo { max-width: 150px }` */
.guest-header-brand.header .main-header .header-left .header-logo.guest-header-logo-desktop,
.guest-header-brand .guest-header-logo-desktop {
    max-width: 420px;
    width: auto;
}

.guest-header-brand .guest-header-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.guest-header-brand .guest-header-logo-img {
    min-height: 0 !important;
    max-height: 120px;
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.guest-header-brand .guest-header-logo-link--mobile .guest-header-logo-img {
    max-height: 80px;
}

.guest-header-brand .guest-header-burger {
    flex-shrink: 0;
}

.guest-header-brand .guest-header-menu-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--dm-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.guest-header-brand .guest-header-menu-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.55);
}

.guest-header-brand .guest-header-menu-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.guest-header-brand .guest-header-menu-btn__bar {
    display: block;
    width: 1.125rem;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition:
        transform 0.22s ease,
        opacity 0.15s ease;
}

.guest-header-brand .guest-header-menu-btn--open {
    background: rgba(var(--dm-secondary-rgb), 0.35);
    border-color: var(--dm-secondary);
}

.guest-header-brand .guest-header-menu-btn--open .guest-header-menu-btn__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.guest-header-brand .guest-header-menu-btn--open .guest-header-menu-btn__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.guest-header-brand .guest-header-menu-btn--open .guest-header-menu-btn__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.guest-header-brand .guest-header-burger__icon.burger-icon {
    display: none !important;
}

.guest-header-brand .guest-header-burger__icon > span::before,
.guest-header-brand .guest-header-burger__icon > span::after {
    display: none;
}

/* Secondary nav row — deeper navy strip under primary bar */
.guest-header-brand .guest-header-navrow {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 0;
    background: linear-gradient(90deg, #1a1d52 0%, var(--dm-primary-hover) 55%, #1a1d52 100%);
    box-shadow: inset 0 -2px 0 var(--dm-secondary);
}

.guest-header-brand .guest-header-nav .main-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guest-header-brand .guest-header-nav .main-menu > li {
    float: none;
    display: inline-flex;
    position: relative;
}

.guest-header-brand .guest-header-nav .main-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    color: #f8fafc;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.guest-header-brand .guest-header-nav .main-menu > li > a:hover {
    color: #fff;
    background: rgba(219, 54, 48, 0.22);
    border-bottom-color: var(--dm-secondary, #db3630);
}

.guest-header-brand .guest-header-nav .main-menu > li > a.active {
    color: #fff;
    background: rgba(219, 54, 48, 0.28);
    border-bottom-color: var(--dm-secondary, #db3630);
}

.guest-header-brand .guest-header-nav .main-menu li.has-children > a::after {
    position: static;
    top: auto;
    margin-left: 0.15rem;
    font-size: 0.65rem;
    opacity: 0.55;
}

.guest-header-brand .guest-header-nav .main-menu > li > ul {
    top: 100%;
    margin-top: 0;
}

.guest-header-brand .guest-header-shop {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto !important;
    min-width: 0;
    padding-right: 0;
    text-align: right;
}

.guest-header-brand .guest-header-shop__icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.5rem 0.75rem;
    overflow: visible;
}

.guest-header-brand .guest-header-shop__account,
.guest-header-brand .guest-header-shop .dm-cart-widget,
.guest-header-brand .guest-header-shop .guest-header-wishlist,
.guest-header-brand .guest-header-shop .guest-header-notifications,
.guest-header-brand .guest-header-shop .guest-header-currency,
.guest-header-brand .guest-header-auth-btns {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    overflow: visible;
    position: relative;
}

.guest-header-brand .guest-header-wishlist {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 2.85rem;
    min-height: 2.85rem;
    padding: 0.35rem 0.55rem;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: #fff;
    color: #292c7a !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.22);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.guest-header-brand .guest-header-wishlist:hover,
.guest-header-brand .guest-header-wishlist:focus-visible,
.guest-header-brand .guest-header-wishlist.is-active {
    color: #fff !important;
    background: #db3630;
    border-color: #db3630;
}

.guest-header-brand .guest-header-wishlist__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: inherit;
    line-height: 0;
}

.guest-header-brand .guest-header-wishlist__icon svg {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
}

.guest-header-brand .guest-header-wishlist__label {
    color: inherit;
}

/* Match Saved: high-contrast white pill on navy so the bell is unmistakable */
.guest-header-brand .guest-header-notifications {
    display: inline-flex !important;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 2.85rem;
    min-height: 2.85rem;
    padding: 0.35rem 0.55rem;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: #fff;
    color: #292c7a !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.22);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.guest-header-brand .guest-header-notifications:hover,
.guest-header-brand .guest-header-notifications:focus-visible,
.guest-header-brand .guest-header-notifications.is-active {
    color: #fff !important;
    background: #db3630;
    border-color: #db3630;
}

.guest-header-brand .guest-header-notifications__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: inherit;
    line-height: 0;
}

.guest-header-brand .guest-header-notifications__icon svg {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
}

.guest-header-brand .guest-header-notifications__label {
    color: inherit;
}

.guest-header-brand .guest-header-notifications__badge {
    border-color: #fff;
    background: var(--dm-secondary, #db3630);
}

.guest-header-brand .guest-header-auth-btns {
    gap: 0.5rem;
}

.guest-header-brand .guest-header-auth-btn {
    min-height: 2.5rem;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: var(--dm-btn-radius);
}

.guest-header-brand .guest-header-auth-btn--login {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.guest-header-brand .guest-header-auth-btn--login:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: #fff;
}

.guest-header-brand .guest-header-auth-btn.is-active {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.guest-header-brand .guest-header-dashboard-link {
    text-decoration: none;
    color: inherit;
}

/* Beat theme `.header .main-header .header-left .header-shop .icon-list` (#425a8b) */
.header.guest-header-brand .main-header .header-left .header-shop .icon-list,
.header.guest-header-brand .main-header .header-left .header-shop .dm-cart-trigger,
.guest-header-brand .guest-header-shop .icon-list,
.guest-header-brand .guest-header-shop .dm-cart-trigger {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    vertical-align: middle;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    padding: 0.4rem 0.55rem 0.4rem 1.75rem;
    background-position: 0 center;
    background-size: 1.125rem auto;
    color: #fff;
    /* No element filter — it washed out the cart badge count */
    filter: none;
    overflow: visible !important;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
}

.header.guest-header-brand .main-header .header-left .header-shop .icon-list:hover,
.header.guest-header-brand .main-header .header-left .header-shop .dm-cart-trigger:hover,
.guest-header-brand .guest-header-shop .icon-list:hover,
.guest-header-brand .guest-header-shop .dm-cart-trigger:hover {
    color: #fff;
}

.header.guest-header-brand .main-header .header-left .header-shop .icon-list > span:not(.number-item),
.guest-header-brand .guest-header-shop .icon-list > span:not(.number-item),
.guest-header-brand .guest-header-shop .dm-cart-trigger > span:not(.number-item) {
    color: #fff;
}

/* White cart/account icons via mask (keeps badge colors intact) */
.header.guest-header-brand .main-header .header-left .header-shop .icon-cart,
.header.guest-header-brand .main-header .header-left .header-shop .icon-account,
.guest-header-brand .guest-header-shop .icon-cart,
.guest-header-brand .guest-header-shop .icon-account {
    background-image: none !important;
}

.header.guest-header-brand .main-header .header-left .header-shop .icon-cart::before,
.header.guest-header-brand .main-header .header-left .header-shop .icon-account::before,
.guest-header-brand .guest-header-shop .icon-cart::before,
.guest-header-brand .guest-header-shop .icon-account::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.125rem;
    height: 1.125rem;
    transform: translateY(-50%);
    background-color: #fff;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.header.guest-header-brand .main-header .header-left .header-shop .icon-cart::before,
.guest-header-brand .guest-header-shop .icon-cart::before {
    -webkit-mask-image: url("../assets/imgs/template/cart.svg");
    mask-image: url("../assets/imgs/template/cart.svg");
}

.header.guest-header-brand .main-header .header-left .header-shop .icon-account::before,
.guest-header-brand .guest-header-shop .icon-account::before {
    -webkit-mask-image: url("../assets/imgs/template/account.svg");
    mask-image: url("../assets/imgs/template/account.svg");
}

/* Cart quantity badge — red on navy, always above neighboring icons */
.header.guest-header-brand .main-header .header-left .header-shop .number-item,
.guest-header-brand .guest-header-shop .number-item,
.guest-header-brand .dm-cart-trigger .number-item,
.guest-header-brand .dm-cart-count-badge,
.guest-header-brand [data-dm-cart-count] {
    position: absolute !important;
    top: -0.35rem !important;
    right: -0.35rem !important;
    left: auto !important;
    z-index: 5;
    display: grid;
    place-items: center;
    min-width: 1.25rem;
    width: auto;
    height: 1.25rem;
    padding: 0 0.28rem;
    border: 2px solid #24276a;
    border-radius: 999px;
    background: var(--dm-secondary, #db3630) !important;
    color: #fff !important;
    font-size: 0.6875rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
    pointer-events: none;
}

[x-cloak] {
    display: none !important;
}

/* Search — dominant center piece on desktop */
.guest-header-brand .guest-header-searchrow,
.guest-header-brand.header .main-header .header-left .header-search {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
    max-width: none;
    text-align: left;
}

.guest-header-brand .guest-header-searchbox {
    width: 100%;
    padding: 0.2rem 0.25rem 0.2rem 0.35rem;
    border-radius: var(--dm-radius-sm);
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.guest-header-brand .guest-header-searchbox:focus-within {
    background: #fff;
    border-color: var(--dm-secondary, #db3630);
    box-shadow: 0 0 0 3px rgba(var(--dm-secondary-rgb, 219, 54, 48), 0.35);
}

.guest-header-brand .guest-header-searchbox .form-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

.guest-header-brand .guest-header-searchbox .box-category,
.guest-header-brand.header .main-header .header-left .header-search .box-header-search .box-category {
    flex: 0 0 auto;
    min-width: 8.5rem;
    max-width: 11rem;
    margin-right: 0 !important;
    display: flex;
    align-items: center;
    padding: 0 0.65rem 0 0.5rem;
    border-right: 1px solid var(--dm-border);
    position: relative;
}

.guest-header-brand .guest-header-searchbox .box-category::before,
.guest-header-brand.header .main-header .header-left .header-search .box-header-search .box-category::before {
    display: none !important;
    content: none !important;
}

.guest-header-brand .guest-header-searchbox .box-keysearch {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.guest-header-brand .guest-header-search-input {
    width: 100%;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0.6rem 0.75rem !important;
    min-height: 2.6rem;
    font-size: 0.9375rem !important;
    background: transparent !important;
}

.guest-header-brand .guest-header-search-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.6rem;
    padding: 0 1.15rem;
    margin: 0.1rem;
    border: 0;
    border-radius: calc(var(--dm-radius-sm) - 2px);
    background: var(--dm-secondary, #db3630);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.guest-header-brand .guest-header-search-btn:hover {
    background: var(--dm-secondary-hover, #c42e28);
}

.guest-header-brand .guest-header-search-btn:focus-visible {
    outline: 2px solid var(--dm-primary);
    outline-offset: 2px;
}

.guest-header-brand .guest-header-search-btn__icon {
    flex-shrink: 0;
}

/* Desktop >=1200px: single primary row + nav strip */
@media (min-width: 1200px) {
    .guest-header-brand .guest-header-left {
        padding: 0;
    }

    .guest-header-brand .guest-header-primary,
    .guest-header-brand .guest-header-mobile-bar {
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 1.25rem;
        min-height: 0;
        padding: 0.85rem 0 0.75rem;
    }

    .guest-header-brand .guest-header-searchrow {
        flex: 1 1 auto;
        min-width: 16rem;
        max-width: none;
        order: 0;
    }

    .guest-header-brand .guest-header-actions {
        margin-left: 0;
        flex-shrink: 0;
    }

    .guest-header-brand .guest-header-brand-start {
        flex: 0 0 auto;
    }

    .guest-header-brand .guest-header-nav {
        width: 100% !important;
        display: block !important;
        text-align: left;
        padding: 0;
    }

    .guest-header-brand .guest-header-navrow {
        padding: 0;
    }

    /* Match search pill outer height (input/btn + padding + border) */
    .guest-header-brand .guest-header-logo-img {
        max-height: calc(3.2rem + 4px);
        height: calc(3.2rem + 4px);
    }
}

.dm-guest-drawer-auth {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.dm-guest-drawer-auth .dm-btn {
    min-height: 2.75rem;
    font-weight: 700;
}

.dm-guest-drawer-footer {
    gap: 0.65rem;
}

/* Mobile / tablet: Logo | icon buttons | Burger, then full-width search */
@media (max-width: 1199.98px) {
    .guest-header-brand {
        --dm-hdr-gutter: max(0.9rem, env(safe-area-inset-left, 0px));
        --dm-hdr-tap: 2.5rem;
    }

    .guest-header-brand.header {
        border-bottom-width: 2px;
    }

    .guest-header-brand .guest-header-auth-btns {
        display: none !important;
    }

    .guest-header-brand .guest-header-container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .header.guest-header-brand .main-header .header-left.guest-header-left,
    .guest-header-brand .guest-header-left {
        padding: 0;
    }

    .guest-header-brand .guest-header-primary,
    .guest-header-brand .guest-header-mobile-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        min-height: 0;
        gap: 0;
        padding: 0;
    }

    .guest-header-brand .guest-header-brand-start {
        order: 1;
        display: flex;
        align-items: center;
        min-width: 0;
        padding: 0.5rem 0 0.5rem var(--dm-hdr-gutter);
    }

    .guest-header-brand .guest-header-actions {
        order: 2;
        flex: 1 1 auto;
        min-width: 0;
        margin-left: 0;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.2rem;
        padding: 0.5rem var(--dm-hdr-gutter) 0.5rem 0.35rem;
    }

    /* Flatten wrappers so currency + icons + burger share one space-between row */
    .guest-header-brand .guest-header-shop,
    .guest-header-brand .guest-header-shop__icons {
        display: contents;
    }

    /* Theme hides `.header-search` on phones — search stays first-class here */
    .header.guest-header-brand .main-header .header-left .header-search.guest-header-searchrow,
    .guest-header-brand .guest-header-searchrow {
        display: block !important;
        order: 3;
        flex: 1 1 100%;
        width: 100% !important;
        max-width: none;
        margin: 0 !important;
        padding: 0 var(--dm-hdr-gutter) 0.7rem;
    }

    .guest-header-brand .header .main-header .header-left .header-nav,
    .guest-header-brand .guest-header-nav,
    .guest-header-brand .guest-header-navrow {
        width: auto !important;
        display: none !important;
    }

    .guest-header-brand .guest-header-logo-link--mobile {
        max-width: min(200px, 46vw);
    }

    .guest-header-brand .guest-header-logo-link--mobile .guest-header-logo-img {
        height: 2.5rem;
        max-height: 2.5rem;
        width: auto;
    }

    .guest-header-brand.header .main-header .header-left .header-shop,
    .header.guest-header-brand .main-header .header-left .header-shop,
    .guest-header-brand .guest-header-shop {
        width: auto !important;
        min-width: 0 !important;
        padding-right: 0 !important;
    }

    /* Keep each action compact so space-between can spread them without wrapping */
    .guest-header-brand .guest-header-shop .guest-header-currency,
    .guest-header-brand .guest-header-shop .dm-cart-widget,
    .guest-header-brand .guest-header-shop .guest-header-wishlist,
    .guest-header-brand .guest-header-shop .guest-header-notifications,
    .guest-header-brand .guest-header-shop .guest-header-shop__account,
    .guest-header-brand .guest-header-burger {
        flex: 0 0 auto;
    }

    /* One tap-target shape for every action: wishlist, cart, alerts, account, menu */
    .header.guest-header-brand .main-header .header-left .header-shop .icon-list,
    .header.guest-header-brand .main-header .header-left .header-shop .dm-cart-trigger,
    .guest-header-brand .guest-header-shop .icon-list,
    .guest-header-brand .guest-header-shop .dm-cart-trigger,
    .guest-header-brand .guest-header-wishlist,
    .guest-header-brand .guest-header-notifications,
    .guest-header-brand .guest-header-menu-btn {
        position: relative;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: var(--dm-hdr-tap);
        height: var(--dm-hdr-tap);
        min-width: var(--dm-hdr-tap);
        min-height: var(--dm-hdr-tap);
        padding: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        color: #fff !important;
        box-shadow: none;
        text-decoration: none;
        overflow: visible !important;
    }

    .header.guest-header-brand .main-header .header-left .header-shop .icon-list:hover,
    .header.guest-header-brand .main-header .header-left .header-shop .dm-cart-trigger:hover,
    .guest-header-brand .guest-header-shop .icon-list:active,
    .guest-header-brand .guest-header-shop .dm-cart-trigger:active,
    .guest-header-brand .guest-header-wishlist:hover,
    .guest-header-brand .guest-header-wishlist:focus-visible,
    .guest-header-brand .guest-header-wishlist.is-active,
    .guest-header-brand .guest-header-notifications:hover,
    .guest-header-brand .guest-header-notifications.is-active,
    .guest-header-brand .guest-header-menu-btn:hover {
        background: var(--dm-secondary, #db3630);
        border-color: var(--dm-secondary, #db3630);
        color: #fff !important;
    }

    /* Icons drawn with masks sit centred instead of left-aligned next to a label */
    .header.guest-header-brand .main-header .header-left .header-shop .icon-cart::before,
    .header.guest-header-brand .main-header .header-left .header-shop .icon-account::before,
    .guest-header-brand .guest-header-shop .icon-cart::before,
    .guest-header-brand .guest-header-shop .icon-account::before {
        left: 50%;
        top: 50%;
        width: 1.25rem;
        height: 1.25rem;
        transform: translate(-50%, -50%);
    }

    .guest-header-brand .guest-header-shop .icon-list > span:not(.number-item),
    .guest-header-brand .guest-header-shop .dm-cart-trigger > span:not(.number-item),
    .guest-header-brand .guest-header-wishlist__label,
    .guest-header-brand .guest-header-notifications__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .guest-header-brand .guest-header-wishlist__icon,
    .guest-header-brand .guest-header-notifications__icon {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 1.1rem;
    }

    .guest-header-brand .guest-header-wishlist__icon svg,
    .guest-header-brand .guest-header-notifications__icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .header.guest-header-brand .main-header .header-left .header-shop .number-item,
    .guest-header-brand .guest-header-shop .number-item,
    .guest-header-brand .dm-cart-trigger .number-item,
    .guest-header-brand .dm-cart-count-badge,
    .guest-header-brand [data-dm-cart-count],
    .guest-header-brand .guest-header-notifications__badge {
        position: absolute !important;
        top: -0.2rem !important;
        right: -0.2rem !important;
        left: auto !important;
        z-index: 5;
        display: grid;
        place-items: center;
        min-width: 1.15rem;
        width: auto;
        height: 1.15rem;
        padding: 0 0.25rem;
        border: 2px solid #24276a;
        border-radius: 999px;
        background: var(--dm-secondary, #db3630) !important;
        color: #fff !important;
        font-size: 0.6875rem;
        font-weight: 700;
        line-height: 1;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
        pointer-events: none;
    }

    .guest-header-brand .guest-header-menu-btn {
        gap: 4px;
        flex-direction: column;
    }

    .guest-header-brand .guest-header-menu-btn__bar {
        width: 1.0625rem;
    }

    .guest-header-brand .guest-header-menu-btn--open .guest-header-menu-btn__bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .guest-header-brand .guest-header-menu-btn--open .guest-header-menu-btn__bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Search: single rounded pill spanning the bar */
    .guest-header-brand .guest-header-searchbox {
        padding: 0.2rem 0.2rem 0.2rem 0.35rem;
        border: 1px solid transparent;
        border-radius: 999px;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
    }

    .guest-header-brand .guest-header-search-input {
        min-height: 2.35rem;
        padding: 0.45rem 0.65rem !important;
        font-size: 0.9375rem !important;
    }

    .guest-header-brand .guest-header-search-btn__label {
        display: none;
    }

    .guest-header-brand .guest-header-search-btn {
        width: 2.35rem;
        min-width: 2.35rem;
        height: 2.35rem;
        min-height: 2.35rem;
        padding: 0;
        margin: 0;
        border-radius: 999px;
    }

    .guest-header-brand .guest-header-searchbox .box-category {
        min-width: 6.5rem;
        max-width: 8.5rem;
        padding-left: 0.35rem;
        padding-right: 0.45rem;
    }
}

@media (max-width: 767.98px) {
    /* Own full-width row under the logo so 7 actions can space evenly */
    .guest-header-brand .guest-header-actions {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding: 0.35rem var(--dm-hdr-gutter) 0.45rem;
        gap: 0.15rem;
    }
}

@media (max-width: 575.98px) {
    .guest-header-brand {
        --dm-hdr-gutter: max(0.75rem, env(safe-area-inset-left, 0px));
        --dm-hdr-tap: 2.35rem;
    }

    .guest-header-brand .guest-header-logo-link--mobile .guest-header-logo-img {
        height: 2.25rem;
        max-height: 2.25rem;
    }

    .guest-header-brand .guest-header-actions {
        gap: 0.1rem;
    }

    /* Category picker eats the whole field on small phones */
    .guest-header-brand .guest-header-searchbox .box-category,
    .guest-header-brand.header .main-header .header-left .header-search .box-header-search .box-category {
        display: none !important;
    }
}

@media (max-width: 359.98px) {
    .guest-header-brand {
        --dm-hdr-tap: 2.15rem;
    }

    .guest-header-brand .guest-header-logo-link--mobile {
        max-width: 42vw;
    }

    .guest-header-brand .guest-header-actions {
        gap: 0.05rem;
    }
}

.guest-header-compact .mobile-logo a img {
    width: auto;
    height: 48px;
    max-height: 56px;
}

.mobile-header-wrapper-style
    .mobile-header-wrapper-inner
    .mobile-header-top
    .mobile-header-logo
    a
    img {
    width: auto !important;
    height: 48px;
    max-height: 56px;
}

.dm-topbar__tagline {
    flex: 1 1 200px;
    min-width: 0;
}

.dm-topbar__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dm-secondary);
    margin: 0 0 0.15rem;
}

.dm-topbar__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--dm-primary-hover);
}

.dm-topbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
}

@media (max-width: 575.98px) {
    .dm-topbar__tagline {
        display: none;
    }

    .dm-topbar__actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}

.dm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: var(--dm-btn-padding-y) var(--dm-btn-padding-x);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--dm-btn-radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition:
        transform 0.15s,
        box-shadow 0.15s,
        background 0.15s,
        border-color 0.15s;
    font-family: inherit;
}

.dm-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.dm-btn--primary {
    background: var(--dm-secondary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--dm-secondary-rgb), 0.35);
}

.dm-btn--primary:hover {
    background: var(--dm-secondary-hover);
    color: #fff;
}

.dm-btn--secondary {
    background: var(--dm-primary);
    color: #fff;
}

.dm-btn--secondary:hover {
    background: var(--dm-primary-hover);
    color: #fff;
}

.dm-btn--ghost {
    background: var(--dm-surface);
    color: var(--dm-primary-hover);
    border: 1px solid var(--dm-border);
}

.dm-btn--ghost:hover {
    border-color: var(--dm-secondary);
    color: var(--dm-primary-hover);
}

.dm-btn--block {
    width: 100%;
}

/* —— Shared right drawer (account + guest; matches dashboard v2) —— */
.dm-acct-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
    visibility: hidden;
}

.dm-acct-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

body.dm-acct-drawer-open {
    overflow: hidden;
}

.dm-acct-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dm-acct-drawer.is-open .dm-acct-drawer__backdrop {
    opacity: 1;
}

.dm-acct-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(20rem, 92vw);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--dm-surface);
    box-shadow: -8px 0 40px rgba(15, 23, 42, 0.15);
    transform: translateX(100%);
    transition: transform 0.22s ease;
    outline: none;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.dm-acct-drawer.is-open .dm-acct-drawer__panel {
    transform: translateX(0);
}

.dm-acct-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--dm-border);
    background: var(--dm-surface);
}

.dm-acct-drawer__title {
    margin: 0;
    font-family: var(--dm-font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dm-primary);
}

.dm-acct-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(41, 44, 122, 0.08);
    color: var(--dm-primary);
    cursor: pointer;
    transition: background 0.15s ease;
}

.dm-acct-drawer__close:hover {
    background: rgba(41, 44, 122, 0.14);
}

.dm-acct-drawer__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem;
}

.dm-acct-drawer__body .dm-acct-menu {
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-height: 100%;
    padding: 0;
}

.dm-acct-drawer__body .dm-acct-menu__nav {
    max-height: none;
    padding: 0;
}

.dm-acct-drawer__body .dm-acct-menu__section {
    margin: 0.85rem 0.5rem 0.35rem;
    padding: 0;
    font-family: var(--dm-font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dm-slate);
}

.dm-acct-drawer__body .dm-acct-menu__section::before {
    content: "◆ ";
    color: var(--af-gold, #d97706);
    font-size: 0.55rem;
}

.dm-acct-drawer__body .dm-acct-menu__link {
    margin: 0.15rem 0.35rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    color: #334155;
}

.dm-acct-drawer__body .dm-acct-menu__link:hover {
    background: rgba(217, 119, 6, 0.08);
    color: var(--dm-primary);
}

.dm-acct-drawer__body .dm-acct-menu__link.is-active {
    background: linear-gradient(135deg, var(--dm-primary) 0%, var(--dm-primary-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(41, 44, 122, 0.22);
}

.dm-acct-drawer__body .dm-acct-menu__footer {
    margin-top: 0.75rem;
    padding: 0.85rem 0.5rem 0.25rem;
    border-top: 1px solid rgba(41, 44, 122, 0.1);
}

.dm-acct-drawer__body .dm-acct-menu__footer-link,
.dm-acct-drawer__body .dm-acct-menu__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 0.7rem);
    margin: 0.35rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.dm-acct-drawer__body .dm-acct-menu__footer-link {
    background: rgba(41, 44, 122, 0.06);
    color: var(--dm-primary);
}

.dm-acct-drawer__body .dm-acct-menu__logout {
    border: 1px solid rgba(41, 44, 122, 0.12);
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.dm-guest-drawer-auth {
    display: grid;
    gap: 0.5rem;
    padding: 0.35rem;
}

.dm-drawer-nav__section {
    margin: 0.75rem 0.5rem 0.35rem;
    padding: 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dm-slate);
}

.dm-drawer-nav__section:first-child {
    margin-top: 0.25rem;
}

.dm-drawer-nav__list {
    list-style: none;
    margin: 0 0 0.25rem;
    padding: 0;
}

.dm-drawer-nav__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    margin: 0.1rem 0;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dm-slate);
    text-decoration: none;
    transition:
        background 0.15s,
        color 0.15s;
}

.dm-drawer-nav__link:hover {
    background: var(--dm-bg);
    color: var(--dm-navy-dark);
}

.dm-drawer-nav__link.is-active,
.dm-drawer-nav__link.active {
    background: linear-gradient(
        135deg,
        rgba(var(--dm-primary-rgb), 0.12) 0%,
        rgba(var(--dm-primary-rgb), 0.05) 100%
    );
    color: var(--dm-navy-dark);
}

.dm-drawer-nav__group {
    margin-bottom: 0.35rem;
}

.dm-drawer-nav__group-title {
    display: block;
    padding: 0.55rem 0.65rem;
    margin: 0.1rem 0;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dm-navy-dark);
    text-decoration: none;
}

.dm-drawer-nav__group-title:hover {
    background: var(--dm-bg);
    color: var(--dm-primary);
}

.dm-drawer-nav__sublink {
    display: block;
    padding: 0.45rem 0.65rem 0.45rem 1.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--dm-slate);
    text-decoration: none;
    border-radius: 8px;
}

.dm-drawer-nav__sublink:hover {
    background: var(--dm-bg);
    color: var(--dm-navy-dark);
}

.dm-drawer-nav__sublink--all {
    font-weight: 700;
    color: var(--dm-primary);
}

.dm-drawer-nav__logout {
    margin: 0.5rem 0.5rem 0;
    padding: 0;
}

.dm-drawer-nav__logout button {
    display: block;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dm-slate);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.dm-drawer-nav__logout button:hover {
    background: #fef2f2;
    color: #b91c1c;
}

@media (prefers-reduced-motion: reduce) {
    .dm-acct-drawer__backdrop,
    .dm-acct-drawer__panel {
        transition: none;
    }
}

/* Guest: hide legacy mobile menu shell */
body:has(#dm-guest-nav-drawer) .mobile-header-wrapper-style {
    display: none !important;
}

@media (max-width: 991.98px) {
    .dm-guest-cat-sidebar .menu-texts {
        display: none !important;
    }

    .dm-guest-cat-sidebar .menu-icons {
        display: none !important;
    }

    .dm-guest-cat-sidebar {
        position: fixed;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1040;
        width: auto;
        height: auto;
        min-height: 0;
        border: none;
        background: transparent;
        padding: 0;
    }

    .dm-guest-cat-sidebar .btn.btn-open,
    .dm-guest-cat-sidebar .dm-guest-cat-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 3.25rem;
        margin: 0;
        border-radius: 0 10px 10px 0;
        border: 1px solid var(--dm-border);
        border-left: none;
        background: var(--dm-surface) url(../assets/imgs/template/open.svg)
            no-repeat center center;
        background-size: 18px auto;
        box-shadow: var(--dm-shadow);
    }
}

@media (min-width: 992px) {
    #dm-guest-cat-drawer {
        display: none !important;
    }
}

/* Shop location (cards, search, PDP — shared) */
.dm-shop-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.28rem 0 0.1rem;
    padding: 0.15rem 0;
    min-width: 0;
    overflow: visible;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dm-primary, #292c7a);
}

.dm-shop-location__icon {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    overflow: visible;
    color: var(--dm-secondary, #db3630);
}

.dm-shop-location__text {
    min-width: 0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Trusted vendor badge */
.dm-trusted-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.18rem 0.45rem;
    border-radius: 4px;
    background: linear-gradient(135deg, #ecfdf3 0%, #d1fae5 100%);
    border: 1px solid #86efac;
    color: #166534;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dm-trusted-badge__icon {
    flex-shrink: 0;
}

.dm-trusted-badge--xs {
    font-size: 0.6rem;
    padding: 0.14rem 0.35rem;
    gap: 0.2rem;
}

.dm-trusted-badge--xs .dm-trusted-badge__icon {
    width: 10px;
    height: 10px;
}

.dm-trusted-badge--md {
    font-size: 0.72rem;
    padding: 0.24rem 0.55rem;
}

.dm-trusted-badge--md .dm-trusted-badge__icon {
    width: 13px;
    height: 13px;
}

/* ── Site-wide button shape: small corners, roomier padding ── */
.btn.btn-cart,
.btn.btn-buy,
.btn.btn-brand-2,
.btn.btn-brand-3,
.btn.btn-info,
.btn.btn-gray:not(.btn-gray-abs) {
    border-radius: var(--dm-btn-radius) !important;
    padding: var(--dm-btn-padding-y) var(--dm-btn-padding-x) !important;
}

.dm-buybox__btn-cart,
.dm-buybox__btn-buy {
    border-radius: var(--dm-btn-radius) !important;
    padding: var(--dm-btn-padding-y) var(--dm-btn-padding-x) !important;
}

.dp-mobile-bar__contact,
.dp-mobile-bar .dm-btn,
.dm-cart-mobile-bar .dm-btn {
    border-radius: var(--dm-btn-radius) !important;
    padding: var(--dm-btn-padding-y-sm) var(--dm-btn-padding-x-sm) !important;
}

/* —— Login required gate (seller contact details) —— */
.dm-login-gate {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
}

.dm-login-gate.is-open {
    visibility: visible;
    pointer-events: auto;
}

.dm-login-gate__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.dm-login-gate.is-visible .dm-login-gate__backdrop {
    opacity: 1;
}

.dm-login-gate__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 26rem;
    margin: 0;
    padding: 1.35rem 1.25rem 1.5rem;
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
    transform: translateY(100%);
    transition: transform 0.28s ease;
    text-align: center;
}

.dm-login-gate.is-visible .dm-login-gate__sheet {
    transform: translateY(0);
}

@media (min-width: 640px) {
    .dm-login-gate {
        align-items: center;
        padding: 1.25rem;
    }

    .dm-login-gate__sheet {
        border-radius: var(--dm-btn-radius, 6px);
        transform: translateY(12px) scale(0.98);
        opacity: 0;
        transition: transform 0.22s ease, opacity 0.22s ease;
        box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
    }

    .dm-login-gate.is-visible .dm-login-gate__sheet {
        transform: none;
        opacity: 1;
    }
}

.dm-login-gate__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dm-login-gate__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.dm-login-gate__icon {
    width: 3rem;
    height: 3rem;
    margin: 0.15rem auto 0.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--dm-primary-rgb, 41, 44, 122), 0.08);
    color: var(--dm-primary, #292c7a);
    font-size: 1.1rem;
}

.dm-login-gate__title {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.dm-login-gate__text {
    margin: 0 0 1.15rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #64748b;
}

.dm-login-gate__actions {
    display: grid;
    gap: 0.55rem;
}

.dm-login-gate__footnote {
    margin: 0.95rem 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #94a3b8;
}

/* —— Guest footer — navy band + red accents —— */
.footer .footer-1 {
    background: linear-gradient(165deg, var(--dm-primary) 0%, #1a1d52 55%, var(--dm-primary-hover) 100%) !important;
    margin: 0 !important;
    padding: 3.25rem 0 2.5rem !important;
    border-top: 4px solid var(--dm-secondary);
}

.footer .footer-1 h4,
.footer .footer-1 .color-gray-1000 {
    color: #fff !important;
}

.footer .footer-1 .color-gray-900,
.footer .footer-1 .font-md,
.footer .footer-1 p {
    color: rgba(248, 250, 252, 0.88) !important;
}

.footer .footer-1 .menu-footer li a {
    color: rgba(248, 250, 252, 0.82);
}

.footer .footer-1 .menu-footer li a:hover {
    color: #fff;
}

.footer .dm-footer-contact-link {
    color: #fecaca;
    font-weight: 700;
    text-decoration: none;
}

.footer .dm-footer-contact-link:hover {
    color: #fff;
}

.footer .dm-footer-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.footer .dm-footer-socials .icon-socials {
    position: relative;
    margin-right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer .dm-footer-socials .icon-socials::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 22px 22px;
    mask-size: 22px 22px;
}

.footer .dm-footer-socials .icon-facebook::before {
    -webkit-mask-image: url("../assets/imgs/template/icons/facebook.svg");
    mask-image: url("../assets/imgs/template/icons/facebook.svg");
}

.footer .dm-footer-socials .icon-instagram::before {
    -webkit-mask-image: url("../assets/imgs/template/icons/instagram.svg");
    mask-image: url("../assets/imgs/template/icons/instagram.svg");
}

.footer .dm-footer-socials .icon-linkedin::before {
    -webkit-mask-image: url("../assets/imgs/template/icons/linkedin.svg");
    mask-image: url("../assets/imgs/template/icons/linkedin.svg");
}

.footer .dm-footer-socials .icon-tiktok::before {
    -webkit-mask-image: url("../assets/imgs/template/icons/tiktok.svg");
    mask-image: url("../assets/imgs/template/icons/tiktok.svg");
}

.footer .dm-footer-socials .icon-youtube::before {
    -webkit-mask-image: url("../assets/imgs/template/icons/youtube.svg");
    mask-image: url("../assets/imgs/template/icons/youtube.svg");
}

.footer .dm-footer-socials .icon-socials:hover {
    color: #fff;
    background-color: var(--dm-secondary) !important;
    border-color: #fff;
    transform: translateY(-2px);
}

/* Guest main canvas — reduce flat white expanses */
body:has(.guest-header-brand) {
    background: var(--dm-bg);
}

body:has(.guest-header-brand) > main.main {
    background: var(--dm-bg);
}

/* ── Display currency switcher (compact flag + dropdown) ───────── */
.dm-currency-switcher {
    position: relative;
    display: inline-block;
    margin: 0;
    list-style: none;
    text-align: left;
    vertical-align: middle;
}

.dm-currency-switcher > summary {
    list-style: none;
}

.dm-currency-switcher > summary::-webkit-details-marker {
    display: none;
}

.dm-currency-switcher__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-sizing: border-box;
    min-height: 2.35rem;
    max-width: 100%;
    padding: 0.3rem 0.55rem 0.3rem 0.45rem;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    font-family: inherit;
    line-height: 1;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dm-currency-switcher__trigger:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.dm-currency-switcher__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 1.5rem;
    font-size: 1.125rem;
    line-height: 1;
    font-style: normal;
    font-variant-emoji: emoji;
}

.dm-currency-switcher__code {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dm-currency-switcher__chevron {
    flex-shrink: 0;
    opacity: 0.85;
    transition: transform 0.15s ease;
}

.dm-currency-switcher[open] > .dm-currency-switcher__trigger .dm-currency-switcher__chevron {
    transform: rotate(180deg);
}

.dm-currency-switcher__menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: auto;
    z-index: 1300;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: min(17.5rem, calc(100vw - 1.5rem));
    min-width: 14rem;
    max-width: calc(100vw - 1.5rem);
    max-height: min(70vh, 22rem);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.45rem;
    border-radius: var(--dm-radius-sm, 10px);
    box-shadow: var(--dm-shadow-lg, 0 4px 6px rgba(15, 23, 42, 0.04), 0 20px 40px rgba(15, 23, 42, 0.08));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    text-align: left;
}

.dm-currency-switcher__form {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.dm-currency-switcher__option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-sizing: border-box;
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.12s ease, color 0.12s ease;
}

.dm-currency-switcher__option .dm-currency-switcher__flag {
    min-width: 1.65rem;
    font-size: 1.25rem;
}

.dm-currency-switcher__option-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    text-align: left;
}

.dm-currency-switcher__option-code {
    display: block;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--dm-primary, #292c7a);
}

.dm-currency-switcher__option-name {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--dm-slate, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-currency-switcher__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    color: var(--dm-primary, #292c7a);
    opacity: 0;
}

.dm-currency-switcher__option.is-active .dm-currency-switcher__check {
    opacity: 1;
}

div.dm-currency-switcher__option.is-active {
    cursor: default;
}

/* Shared selected / hover states (header, drawer, account) */
.dm-currency-switcher__option:hover,
.dm-currency-switcher__option:focus-visible {
    background: rgba(41, 44, 122, 0.07);
    outline: none;
}

.dm-currency-switcher__option.is-active {
    background: rgba(41, 44, 122, 0.1);
    color: var(--dm-primary, #292c7a);
}

.dm-currency-switcher__option.is-active .dm-currency-switcher__option-code {
    color: var(--dm-primary, #292c7a);
}

.dm-currency-switcher__option.is-active .dm-currency-switcher__option-name {
    color: #475569;
}

/* Navy guest header */
.dm-currency-switcher--header {
    color: #fff;
}

.dm-currency-switcher--header .dm-currency-switcher__trigger {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
    color: #fff;
}

.dm-currency-switcher--header .dm-currency-switcher__trigger:hover,
.dm-currency-switcher--header[open] > .dm-currency-switcher__trigger {
    background: rgba(255, 255, 255, 0.22);
}

.dm-currency-switcher--header .dm-currency-switcher__menu {
    border: 1px solid rgba(41, 44, 122, 0.12);
    background: #fff;
    color: #1e293b;
}

/* Mobile drawer: full-width trigger + panel-aligned menu */
.dm-currency-switcher--drawer {
    display: block;
    width: 100%;
    color: #292c7a;
}

.dm-currency-switcher--drawer .dm-currency-switcher__trigger {
    width: 100%;
    justify-content: flex-start;
    min-height: 2.85rem;
    border: 1px solid rgba(41, 44, 122, 0.18);
    background: rgba(41, 44, 122, 0.06);
    color: #292c7a;
}

.dm-currency-switcher--drawer .dm-currency-switcher__trigger:hover,
.dm-currency-switcher--drawer[open] > .dm-currency-switcher__trigger {
    background: rgba(41, 44, 122, 0.1);
}

.dm-currency-switcher--drawer .dm-currency-switcher__trigger:focus-visible {
    outline-color: #292c7a;
}

.dm-currency-switcher--drawer .dm-currency-switcher__chevron {
    margin-left: auto;
}

.dm-currency-switcher--drawer .dm-currency-switcher__menu {
    position: static;
    right: auto;
    top: auto;
    transform: none !important;
    margin-top: 0.45rem;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: min(50vh, 18rem);
    border: 1px solid rgba(41, 44, 122, 0.14);
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

/* Account / light surfaces */
.dm-currency-switcher--account {
    color: #292c7a;
}

.dm-currency-switcher--account .dm-currency-switcher__trigger {
    border: 2px solid #292c7a;
    background: #fff;
    color: #292c7a;
    box-shadow: 0 2px 10px rgba(15, 45, 66, 0.12);
}

.dm-currency-switcher--account .dm-currency-switcher__trigger:hover,
.dm-currency-switcher--account[open] > .dm-currency-switcher__trigger {
    background: rgba(41, 44, 122, 0.06);
}

.dm-currency-switcher--account .dm-currency-switcher__trigger:focus-visible {
    outline-color: #db3630;
}

.dm-currency-switcher--account .dm-currency-switcher__menu {
    border: 1px solid rgba(41, 44, 122, 0.14);
    background: #fff;
    color: #1e293b;
}

.dm-guest-drawer-currency {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    padding: 0 0.15rem;
}

.dm-guest-drawer-currency__hint {
    margin: 0;
    padding: 0 0.15rem;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #64748b;
}

/* Mobile / tablet: keep trigger compact; prevent menu clipping under header */
@media (max-width: 1199.98px) {
    .guest-header-brand.header,
    .guest-header-brand .guest-header-container,
    .guest-header-brand .guest-header-main,
    .guest-header-brand .guest-header-left,
    .guest-header-brand .guest-header-primary,
    .guest-header-brand .guest-header-mobile-bar,
    .guest-header-brand .guest-header-actions,
    .guest-header-brand .guest-header-shop,
    .guest-header-brand .guest-header-shop__icons,
    .guest-header-brand .guest-header-shop .guest-header-currency {
        overflow: visible !important;
    }

    .guest-header-brand .guest-header-shop .guest-header-currency {
        position: static;
    }

    .guest-header-brand .guest-header-actions {
        position: relative;
        z-index: 40;
    }

    .guest-header-brand .guest-header-shop .guest-header-currency .dm-currency-switcher__trigger {
        min-height: var(--dm-hdr-tap, 2.5rem);
        height: var(--dm-hdr-tap, 2.5rem);
        padding: 0.2rem 0.4rem 0.2rem 0.35rem;
        gap: 0.2rem;
    }

    .guest-header-brand .guest-header-shop .guest-header-currency .dm-currency-switcher__flag {
        min-width: 1.15rem;
        font-size: 0.95rem;
    }

    .guest-header-brand .guest-header-shop .guest-header-currency .dm-currency-switcher__code {
        font-size: 0.6875rem;
    }

    .dm-currency-switcher--header .dm-currency-switcher__menu {
        top: calc(100% + 0.35rem);
        right: 0;
        left: auto;
        width: min(18rem, calc(100vw - 1.5rem));
        min-width: min(16rem, calc(100vw - 1.5rem));
        max-width: calc(100vw - 1.5rem);
        max-height: min(65vh, 20rem);
        padding: 0.5rem;
        border-radius: 12px;
        box-shadow:
            0 4px 6px rgba(15, 23, 42, 0.06),
            0 18px 36px rgba(15, 23, 42, 0.16);
    }

    .dm-currency-switcher--header .dm-currency-switcher__option {
        min-height: 2.85rem;
        padding: 0.6rem 0.75rem;
        gap: 0.7rem;
    }

    .dm-currency-switcher--account .dm-currency-switcher__menu {
        width: min(18rem, calc(100vw - 1.5rem));
        min-width: min(16rem, calc(100vw - 1.5rem));
        max-width: calc(100vw - 1.5rem);
    }
}

@media (max-width: 359.98px) {
    .guest-header-brand .guest-header-shop .guest-header-currency .dm-currency-switcher__code {
        font-size: 0.625rem;
    }

    .dm-currency-switcher--header .dm-currency-switcher__menu,
    .dm-currency-switcher--account .dm-currency-switcher__menu {
        width: calc(100vw - 1.25rem);
        min-width: 0;
        max-width: calc(100vw - 1.25rem);
    }
}
