:root {
    --closet-green: #0d3d32;
    --closet-green-hover: #0a3229;
    --closet-green-soft: #edf4f1;
    --closet-warm: #faf9f7;
    --closet-line: #ecebe7;
    --closet-muted: #6f7673;
    --closet-ink: #171b1a;
    --closet-sale: #d92137;
}

.closet-storefront-menu,
.closet-storefront-menu * { box-sizing: border-box; }
.closet-storefront-menu {
    direction: rtl;
    color: var(--closet-ink);
    font-family: inherit;
}
.closet-storefront-menu svg {
    width: 20px;
    height: 20px;
    display: block;
    flex: 0 0 auto;
}

.closet-seo-links {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-header--bottom.closet-menu-enhanced {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-header--bottom.closet-menu-enhanced > :not(.closet-desktop-nav) {
    display: none !important;
}

.closet-storefront-menu > .closet-desktop-nav {
    display: none !important;
}
.closet-desktop-nav {
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    min-height: 50px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    direction: rtl;
}
.page-header--bottom > .closet-desktop-nav {
    display: flex !important;
}
.closet-desktop-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    white-space: nowrap;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #202624;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color .16s ease, background-color .16s ease;
}
.closet-desktop-nav a:hover {
    color: var(--closet-green);
    background: var(--closet-green-soft);
}
.closet-desktop-nav a.is-active {
    color: var(--closet-ink);
    background: transparent;
}
.closet-desktop-nav a.is-active .closet-nav-caret {
    transform: rotate(180deg);
}
.closet-desktop-nav .closet-nav-caret {
    width: 16px;
    height: 16px;
    transition: transform .16s ease;
}
.closet-desktop-nav .closet-nav-sale {
    color: var(--closet-sale);
}
.closet-desktop-nav :focus-visible,
.closet-desktop-panel :focus-visible,
.closet-mobile-panel :focus-visible {
    outline: 3px solid rgba(13, 61, 50, .28);
    outline-offset: 2px;
}

.closet-desktop-panel {
    position: fixed;
    z-index: 10010;
    top: var(--closet-panel-top, 150px);
    left: var(--closet-panel-left, 24px);
    right: var(--closet-panel-right, 24px);
    max-height: min(640px, calc(100dvh - var(--closet-panel-top, 150px) - 16px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    direction: rtl;
    border: 1px solid rgba(20, 37, 32, .08);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(21, 31, 28, .12);
}
.closet-desktop-panel[hidden],
.closet-mobile-panel[hidden] { display: none !important; }

.closet-mega {
    padding: 4px 4px 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    background: #fff;
}
.closet-mega__main {
    min-height: 300px;
    overflow: auto;
    display: grid;
    grid-template-columns: minmax(240px, 1.15fr) minmax(150px, .75fr) minmax(160px, .85fr) minmax(280px, 1.2fr);
    gap: 0;
}
.closet-mega__column {
    padding: 16px 22px 10px;
    border-inline-start: 1px solid var(--closet-line);
}
.closet-mega__column:first-child { border-inline-start: 0; }
.closet-mega h2,
.closet-brand-menu h2 {
    margin: 0;
    color: var(--closet-ink);
    font-size: 18px;
    font-weight: 900;
}
.closet-mega h3 {
    margin: 0 0 12px;
    color: var(--closet-ink);
    font-size: 15px;
    font-weight: 800;
}
.closet-mega__heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.closet-genders {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--closet-muted);
    font-size: 12px;
    font-weight: 700;
}
.closet-gender {
    min-height: 32px;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: #7a827f;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}
.closet-gender:not(:last-child)::after {
    content: "";
    position: absolute;
    inset-inline-start: -7px;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c5c8c5;
    transform: translateY(-50%);
}
.closet-gender.is-active { color: var(--closet-ink); }
.closet-genders--pills {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(64px, 1fr));
    gap: 0;
    padding: 3px;
    border-radius: 999px;
    background: #f3f3f1;
}
.closet-genders--pills .closet-gender {
    min-height: 36px;
    padding: 5px 12px;
    border-radius: 999px;
}
.closet-genders--pills .closet-gender::after { display: none; }
.closet-genders--pills .closet-gender.is-active {
    color: #fff;
    background: var(--closet-green);
    box-shadow: 0 3px 9px rgba(13, 61, 50, .18);
}

.closet-link-list { display: grid; gap: 2px; }
.closet-text-link {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 4px;
    border-radius: 8px;
    color: #262c2a;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}
.closet-text-link:hover {
    color: var(--closet-green);
    background: #f4f7f5;
}
.closet-text-link svg { width: 16px; height: 16px; color: #9aa19e; }
.closet-text-link--more { margin-top: 8px; color: var(--closet-muted); font-weight: 800; }

.closet-promo {
    position: relative;
    min-height: 280px;
    margin: 10px;
    overflow: hidden;
    display: block;
    border-radius: 16px;
    background: #f0efeb;
    color: #fff;
    text-decoration: none;
}
.closet-promo:after {
    content: "";
    position: absolute;
    inset: 42% 0 0;
    background: linear-gradient(0deg, rgba(10, 17, 15, .72), transparent);
}
.closet-promo__image,
.closet-promo__image img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: block;
    object-fit: cover;
}
.closet-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f4f2ed, #e5e8e5);
    color: #7f8884;
}
.closet-image-fallback svg { width: 34px; height: 34px; }
.closet-promo__label {
    position: absolute;
    z-index: 1;
    inset-inline: 18px;
    bottom: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}
.closet-round-arrow {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #27302d;
}
.closet-round-arrow svg { width: 17px; height: 17px; }

.closet-mega__footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 16px 12px;
    border-top: 1px solid var(--closet-line);
    background: #fff;
    flex-shrink: 0;
}
.closet-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}
.closet-button--ghost {
    color: #2a302e;
    background: #f4f4f2;
}
.closet-button--ghost:hover { background: #ecece9; color: #2a302e; }
.closet-button--primary {
    color: #fff;
    background: var(--closet-green);
}
.closet-button--primary:hover { color: #fff; background: var(--closet-green-hover); }
.closet-button--sale {
    color: var(--closet-sale);
    background: transparent;
}
.closet-button--sale svg { width: 16px; height: 16px; }

.closet-brand-menu { padding: 24px 28px 15px; }
.closet-brand-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.closet-brand-menu__head p {
    margin: 5px 0 0;
    color: var(--closet-muted);
    font-size: 12px;
}
.closet-brand-search {
    min-height: 46px;
    min-width: min(420px, 45vw);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid var(--closet-line);
    border-radius: 12px;
    background: #fbfbfa;
    color: #68716e;
}
.closet-brand-search input {
    width: 100%;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--closet-ink);
    font: inherit;
    font-size: 13px;
}
.closet-brand-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 14px;
    flex-wrap: wrap;
}
.closet-brand-filters button {
    min-height: 38px;
    padding: 6px 17px;
    border: 1px solid var(--closet-line);
    border-radius: 10px;
    background: #fff;
    color: #444c49;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}
.closet-brand-filters button.is-active {
    border-color: var(--closet-green);
    background: var(--closet-green);
    color: #fff;
}
.closet-brand-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}
.closet-brand-card {
    min-height: 72px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid var(--closet-line);
    border-radius: 12px;
    color: var(--closet-ink);
    background: #fff;
    text-decoration: none;
}
.closet-brand-card:hover {
    border-color: #b9cec7;
    background: #f8fbfa;
}
.closet-brand-card__logo,
.closet-brand-card__logo img {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
    border-radius: 9px;
    background: #f7f7f5;
}
.closet-brand-card b,
.closet-brand-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.closet-brand-card b { font-size: 13px; }
.closet-brand-card small {
    margin-top: 3px;
    color: var(--closet-muted);
    font-size: 10px;
    direction: ltr;
    text-align: right;
}
.closet-brand-card > svg { width: 16px; height: 16px; color: #7b8481; }
.closet-empty {
    grid-column: 1 / -1;
    margin: 20px;
    color: var(--closet-muted);
    text-align: center;
}

.closet-mobile-opener { display: none; }
.closet-mobile-panel {
    position: fixed;
    z-index: 100100;
    inset: 0;
    height: 100dvh;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    direction: rtl;
    overflow: hidden;
    background: #fff;
    color: var(--closet-ink);
    overscroll-behavior: contain;
}
.closet-mobile-header {
    direction: ltr;
    min-height: calc(58px + env(safe-area-inset-top));
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    grid-template-areas: "close title back";
    align-items: end;
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    background: #fff;
}
.closet-mobile-header [data-closet-mobile-close] { grid-area: close; }
.closet-mobile-header__title { grid-area: title; direction: rtl; }
.closet-mobile-header [data-closet-mobile-back] { grid-area: back; }
.closet-mobile-header__title {
    align-self: center;
    overflow: hidden;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.closet-mobile-header__title img {
    display: block;
    width: auto;
    max-width: 128px;
    height: 30px;
    margin-inline: auto;
    object-fit: contain;
}
.closet-icon-button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--closet-ink);
    cursor: pointer;
}
.closet-icon-button:hover { background: #f4f5f4; }
.closet-mobile-search {
    padding: 4px 16px 10px;
    background: #fff;
}
.closet-mobile-search form {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid var(--closet-line);
    border-radius: 14px;
    background: #f7f7f5;
}
.closet-mobile-search input {
    width: 100%;
    min-height: 44px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--closet-ink);
    font: inherit;
    font-size: 13px;
}
.closet-mobile-body {
    min-height: 0;
    overflow-y: auto;
    padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
    scroll-padding-top: 150px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.closet-mobile-home h2,
.closet-mobile-section h2 {
    margin: 10px 2px 12px;
    color: var(--closet-ink);
    font-size: 16px;
    font-weight: 900;
}
.closet-mobile-categories { display: grid; gap: 12px; }
.closet-mobile-category {
    position: relative;
    min-height: 148px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 16px;
    border: 0;
    border-radius: 16px;
    background: #ecebe7;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 900;
    text-align: right;
    cursor: pointer;
}
.closet-mobile-category:after {
    content: "";
    position: absolute;
    inset: 28% 0 0;
    background: linear-gradient(0deg, rgba(12, 19, 17, .72), transparent);
}
.closet-mobile-category__image,
.closet-mobile-category__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}
.closet-mobile-category > span:not(.closet-mobile-category__image),
.closet-mobile-category > svg {
    position: relative;
    z-index: 1;
}
.closet-mobile-quick { margin-top: 16px; }
.closet-mobile-quick a,
.closet-mobile-quick button {
    width: 100%;
    min-height: 56px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 7px 2px;
    border: 0;
    border-bottom: 1px solid var(--closet-line);
    background: #fff;
    color: var(--closet-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    text-align: right;
    cursor: pointer;
}
.closet-mobile-quick .is-sale { color: var(--closet-sale); }
.closet-mobile-footer {
    min-height: calc(72px + env(safe-area-inset-bottom));
    display: flex;
    align-items: flex-start;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
}
.closet-mobile-footer .closet-button {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
}
.closet-genders--mobile {
    position: sticky;
    z-index: 3;
    top: 0;
    width: 100%;
    margin: 0 0 8px;
    background: #fff;
    padding-bottom: 6px;
}
.closet-genders--mobile.closet-genders--pills { width: 100%; }
.closet-mobile-tabs {
    position: sticky;
    z-index: 2;
    top: 48px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(90px, 1fr);
    margin: 0 -16px 10px;
    padding: 0 16px;
    border-bottom: 1px solid var(--closet-line);
    background: #fff;
}
.closet-mobile-tabs button {
    min-height: 46px;
    padding: 5px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--closet-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.closet-mobile-tabs button.is-active {
    border-bottom-color: var(--closet-green);
    color: var(--closet-green);
}
.closet-mobile-section {
    scroll-margin-top: 112px;
    padding-bottom: 18px;
}
.closet-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.closet-mobile-card {
    min-height: 72px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--closet-line);
    border-radius: 14px;
    background: #fff;
    color: var(--closet-ink);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}
.closet-mobile-card__image,
.closet-mobile-card__image img {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
    border-radius: 10px;
    background: #f6f6f4;
}
.closet-mobile-card__image.closet-image-fallback svg { width: 22px; height: 22px; }
.closet-mobile-card > svg { width: 15px; height: 15px; color: #9aa19e; }
.closet-chip-list,
.closet-brand-names {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.closet-chip,
.closet-brand-names a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f4f4f2;
    color: #2a302e;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}
.closet-mobile-brands .closet-brand-search {
    min-width: 0;
    width: 100%;
    margin-bottom: 11px;
}
.closet-mobile-brands .closet-brand-grid { grid-template-columns: 1fr; }
.closet-menu-open,
.closet-menu-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
}
html.closet-menu-open #goftino_w,
html.closet-menu-open #goftino_widget,
html.closet-menu-open .goftino-welcome,
html.closet-menu-open iframe[id^="goftino"],
html.closet-menu-open [id*="goftino"] {
    z-index: 1 !important;
    pointer-events: none !important;
}

@media (max-width: 991.98px) {
    .closet-desktop-nav,
    .page-header--bottom > .closet-desktop-nav,
    .closet-desktop-panel { display: none !important; }
    .closet-mobile-opener {
        display: none !important;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--closet-line);
        border-radius: 11px;
        background: #fff;
        color: var(--closet-ink);
    }
}
@media (min-width: 992px) {
    .closet-mobile-panel,
    .closet-mobile-opener { display: none !important; }
}
@media (max-width: 370px) {
    .closet-mobile-card {
        grid-template-columns: 45px minmax(0, 1fr) 14px;
        font-size: 11px;
    }
    .closet-mobile-card__image,
    .closet-mobile-card__image img { width: 45px; height: 48px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .closet-desktop-nav a { padding-inline: 12px; }
    .closet-mega__main { grid-template-columns: 1.15fr .75fr .8fr 1.05fr; }
    .closet-mega__column { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .closet-storefront-menu *,
    .closet-storefront-menu :after,
    .closet-storefront-menu :before {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
