@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2-variations"), url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colors: store-theme.css (independent of panel-theme.css) */
    --radius: 8px;
    --radius-lg: 14px;
    --container: 1280px;
    --font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    background: var(--surface);
    direction: rtl;
    text-align: right;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

h1, h2, h3, p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

[hidden] {
    display: none !important;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.icon--xs {
    width: 14px;
    height: 14px;
}

.muted {
    color: var(--muted);
}

/* ---------- Buttons & fields ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

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

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

.btn--accent {
    background: var(--accent);
    color: #fff;
}

.btn--accent:hover {
    background: var(--accent-dark);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    border-color: currentColor;
    color: var(--text);
}

.btn--ghost:hover {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.btn--light {
    background: #fff;
    color: var(--primary-dark);
}

.btn--light:hover {
    background: var(--text);
    color: #fff;
}

.btn--outline {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn--sm {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
}

.btn--lg {
    min-height: 52px;
    padding: 0 32px;
    font-size: 15px;
}

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

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.field {
    width: 100%;
    min-height: 42px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}

.field--sm {
    min-height: 36px;
    width: auto;
    padding: 2px 10px;
    font-size: 13px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.icon-btn:hover {
    background: var(--surface-soft);
}

/* ---------- Top bar & header ---------- */
.topbar {
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-soft);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    gap: 16px;
}

.topbar__links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar__note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar__note .icon,
.topbar__social .icon {
    width: 16px;
    height: 16px;
}

.topbar__social {
    display: inline-flex;
    color: var(--text-soft);
}

.topbar__phone,
.footer__phone,
.drawer__phone,
.feature__phone {
    direction: ltr;
    unicode-bidi: isolate;
}

.header {
    position: relative;
    z-index: 45;
    padding: 15px 0;
    background: #fff;
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 88px;
}

.header__burger {
    display: none;
    border: 0;
    background: none;
    padding: 6px;
    cursor: pointer;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--text);
}

.logo:hover {
    color: var(--text);
}

.logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.logo__text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.logo__dot {
    color: var(--primary);
}

.search {
    position: relative;
    flex: 1;
    max-width: 620px;
    margin-inline: auto;
}

.search input {
    width: 100%;
    height: 48px;
    padding: 0 18px 0 56px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.search input:focus {
    border-color: var(--primary);
    background: #fff;
}

.search > button {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search > button .icon {
    width: 18px;
    height: 18px;
}

.search__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 5;
    max-height: 420px;
    overflow-y: auto;
    padding: 6px 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(20, 30, 40, 0.14);
}

.search__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 46px;
    padding: 8px 16px;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: right;
    cursor: pointer;
}

.search__item.is-active,
.search__item:hover {
    background: #f5f5f5;
}

.search__keyword {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.search__aside {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    max-width: 55%;
}

.search__meta {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.search__glyph {
    width: 18px;
    height: 18px;
    color: #9aa0a6;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.header__badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    line-height: 19px;
    text-align: center;
}

/* ---------- Main nav ---------- */
.mainnav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.mainnav__list {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}

.mainnav__item {
    position: relative;
}

.mainnav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 50px;
    padding: 0 16px;
    font-weight: 600;
    font-size: 14.5px;
    color: #fff;
}

.mainnav__link:hover,
.mainnav__link.is-active {
    color: #fff;
    background: rgba(0, 0, 0, 0.1);
}

.mainnav__link--sale {
    color: #ffe2b8;
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 230px;
    padding: 10px 0;
    background: #fff;
    color: var(--text);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mainnav__item:nth-last-child(-n+4) .dropdown {
    right: auto;
    left: 0;
}

.dropdown__link,
.dropdown__all {
    display: block;
    padding: 7px 20px;
    font-size: 14px;
}

.dropdown__link:hover {
    background: var(--surface-soft);
}

.dropdown__sub a {
    display: block;
    padding: 3px 34px 3px 20px;
    font-size: 13px;
    color: var(--text-soft);
}

.dropdown__all {
    margin-top: 6px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    color: var(--primary);
    font-weight: 600;
}

/* ---------- Drawer ---------- */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: min(340px, 86vw);
    padding: 16px 18px 32px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.drawer.is-open {
    transform: none;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(15, 20, 25, 0.45);
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.drawer__title {
    font-weight: 800;
    font-size: 18px;
}

.drawer__close {
    border: 0;
    background: none;
    cursor: pointer;
}

.search--drawer {
    margin: 0 0 16px;
    max-width: none;
}

.drawer__nav > li {
    border-bottom: 1px solid var(--border);
}

.drawer__nav a,
.drawer__nav summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 2px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.drawer__nav summary::-webkit-details-marker {
    display: none;
}

.drawer__nav details[open] summary .icon {
    transform: rotate(180deg);
}

.drawer__nav details ul a {
    padding: 8px 14px;
    font-weight: 400;
    color: var(--text-soft);
}

.drawer__sale {
    color: var(--accent);
}

.drawer__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.drawer__contact > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.drawer__contact .icon,
.footer__phones .icon {
    width: 16px;
    height: 16px;
    flex: none;
}

.drawer__social {
    display: flex;
    gap: 12px;
}

.drawer__social .icon {
    width: 20px;
    height: 20px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
}

.hero__track {
    position: relative;
    aspect-ratio: 3 / 1;
    background: #1f2a44;
}

.hero__slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s;
}

.hero__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__dots {
    position: absolute;
    z-index: 2;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero__dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero__dots button.is-active {
    background: #fff;
    border-color: #fff;
}

/* ---------- Promos ---------- */
.promos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.promo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 190px;
    padding: 26px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: #fff;
}

.promo:hover {
    color: #fff;
}

.promo--navy {
    background: linear-gradient(135deg, #1f2a44, #34456b);
}

.promo--brown {
    background: linear-gradient(135deg, #6b4128, #9a6440);
}

.promo--olive {
    background: linear-gradient(135deg, #4f5a2c, #7a8546);
}

.promo__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.promo__eyebrow {
    font-size: 13px;
    opacity: 0.85;
}

.promo__title {
    font-size: 24px;
    font-weight: 800;
}

.promo__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
}

.promo__img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.4s ease;
}

.promo:hover .promo__img {
    transform: scale(1.06) rotate(-3deg);
}

/* ---------- Sections ---------- */
.section {
    margin-top: 56px;
}

.section--tight {
    margin-top: 40px;
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.section__head--center,
.section--tight > .section__head {
    justify-content: center;
}

.section__title {
    position: relative;
    padding-bottom: 10px;
    font-size: 21px;
    font-weight: 800;
}

.section__title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.section__more {
    padding-bottom: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* ---------- Categories ---------- */
.categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.category-tile__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 150px;
    aspect-ratio: 1;
    margin-bottom: 8px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-soft);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.category-tile:hover .category-tile__img {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile__letter {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
}

.category-tile__name {
    font-weight: 700;
    font-size: 14.5px;
}

.category-tile__count {
    font-size: 12.5px;
    color: var(--muted);
}

/* ---------- Product grid & card ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px 20px;
}

.style-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.style-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius);
    background: #f3f0eb;
}

.style-card__media img,
.style-card__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.style-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.style-card__placeholder .icon {
    width: 36px;
    height: 36px;
}

.style-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
}

.style-card__type {
    color: var(--muted);
    font-size: 12.5px;
}

.style-card__title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.7;
}

.style-card__seasons {
    color: var(--text-soft);
    font-size: 12.5px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-card.is-quick-open {
    z-index: 4;
}

.product-card__shot {
    position: relative;
}

.product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-soft);
}

.product-card__shot .product-card__action {
    position: absolute;
    z-index: 2;
    left: 8px;
    bottom: 8px;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.14);
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.product-card__img--hover {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.product-card:hover .product-card__img {
    transform: scale(1.04);
}

.product-card:hover .product-card__img--hover {
    opacity: 1;
}

.product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #c9c9c9;
}

.product-card__placeholder .icon {
    width: 56px;
    height: 56px;
}

.product-card.is-out .product-card__img {
    filter: grayscale(0.6);
    opacity: 0.75;
}

.product-card__badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.badge {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.badge--sale {
    background: var(--sale);
}

.badge--muted {
    background: #6f757c;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 12px;
}

.product-card__category {
    font-size: 12.5px;
    color: var(--muted);
}

.product-card__title {
    margin-top: 2px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__colors {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.swatch-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
    vertical-align: middle;
}

.product-card__more {
    font-size: 12px;
    color: var(--muted);
}

.product-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.price {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.price__old,
.product-info__price .price__old {
    font-size: 13px;
    color: var(--muted);
}

.price__current {
    font-size: 16px;
    font-weight: 800;
}

.price__current small {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-soft);
}

.price__current--muted {
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
}

.price__current--lg {
    font-size: 26px;
}

.product-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.product-card__action .icon {
    width: 19px;
    height: 19px;
}

.product-card__action:hover,
.product-card__action[aria-expanded="true"] {
    background: var(--primary);
    color: #fff;
}

.product-card__action:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.product-card__quick {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 100%;
    padding: 12px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.product-card__quick[hidden] {
    display: none;
}

.product-card__quick-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13.5px;
}

.product-card__quick-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-soft);
    cursor: pointer;
}

.product-card__quick .option-group {
    margin-bottom: 0;
}

.product-card__quick .option-group__label {
    margin-bottom: 6px;
    font-size: 12.5px;
}

.product-card__quick .swatch__dot {
    width: 22px;
    height: 22px;
}

.product-card__quick .chip span {
    min-width: 36px;
    height: 30px;
    padding: 0 8px;
    font-size: 12.5px;
}

.product-card__quick .stock-status {
    margin-bottom: 0;
    font-size: 12.5px;
}

.product-card__quick .buy-box {
    gap: 8px;
}

.product-card__quick .qty__btn {
    width: 32px;
    height: 36px;
    font-size: 16px;
}

.product-card__quick .qty__input {
    width: 32px;
}

/* ---------- Wide banner, features, brands ---------- */
.wide-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 56px;
    padding: 38px 44px;
    border-radius: var(--radius-lg);
    background: var(--store-gradient);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.wide-banner::after {
    content: "";
    position: absolute;
    left: -60px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.wide-banner__eyebrow {
    font-size: 13px;
    opacity: 0.85;
}

.wide-banner__title {
    font-size: 28px;
    font-weight: 800;
    margin: 4px 0;
}

.wide-banner .btn {
    position: relative;
    z-index: 1;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 48px;
    /*margin-top: 60px;*/
    padding: 30px 0;
    /*border-top: 1px solid var(--border);*/
    border-bottom: 1px solid var(--border);
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.feature .icon {
    width: 44px;
    height: 44px;
    color: var(--accent);
}

.feature h3 {
    font-size: 15.5px;
    font-weight: 700;
}

.feature p {
    font-size: 13px;
    color: var(--muted);
}

.brands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.brand-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 180px;
    width: 180px;
    height: 90px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.3s, opacity 0.3s, border-color 0.3s;
}

.brand-tile:hover {
    filter: none;
    opacity: 1;
    border-color: var(--primary);
}

.brand-tile img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-soft);
    background: var(--surface-soft);
    border-radius: var(--radius-lg);
}

.empty-state .icon {
    width: 48px;
    height: 48px;
    color: var(--muted);
}

/* ---------- Page head & breadcrumb ---------- */
.page-head {
    padding: 26px 0 30px;
    background: var(--surface-soft);
    margin-bottom: 30px;
}

.page-head--compact {
    padding: 14px 0;
    margin-bottom: 26px;
}

.page-head__title {
    margin-top: 6px;
    font-size: 26px;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb__sep {
    opacity: 0.6;
}

.breadcrumb__current {
    color: var(--text);
}

/* ---------- Shop ---------- */
.shop {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.shop__sidebar {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding-left: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shop__sidebar::-webkit-scrollbar,
.filter-list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.shop__sidebar-head {
    display: none;
}

.filter-box {
    border-bottom: 1px solid var(--border);
}

.filter-box__head {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.filter-box__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 13px 2px;
    border: 0;
    background: transparent;
    text-align: right;
    cursor: pointer;
}

.filter-box:first-child .filter-box__toggle {
    padding-top: 0;
}

.filter-box__toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 8px;
}

.filter-box__label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 1px;
}

.filter-box__title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.filter-box__hint {
    display: none;
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-box.is-collapsed .filter-box__hint {
    display: block;
}

.filter-box__chevron {
    width: 16px;
    height: 16px;
    color: var(--muted);
    transform: rotate(180deg);
    transition: transform 0.22s ease;
}

.filter-box.is-collapsed .filter-box__chevron {
    transform: none;
}

.filter-box__body {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.24s ease;
}

.filter-box.is-collapsed .filter-box__body {
    grid-template-rows: 0fr;
}

.filter-box__inner {
    min-height: 0;
    overflow: hidden;
}

.filter-box__inner::after {
    content: "";
    display: block;
    height: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .filter-box__body,
    .filter-box__chevron {
        transition: none;
    }
}

.filter-tree ul,
.filter-tree .filter-tree {
    padding-right: 14px;
}

.filter-tree__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 0;
    font-size: 14px;
    color: var(--text-soft);
}

.filter-tree__link.is-active {
    color: var(--primary);
    font-weight: 700;
}

.filter-tree__count {
    min-width: 28px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--surface-soft);
    font-size: 12px;
    text-align: center;
}

.filter-tree__link--all {
    font-weight: 600;
}

.price-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.check {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 0;
    font-size: 14px;
    cursor: pointer;
}

.check input {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
}

.check__count {
    margin-right: auto;
    font-size: 12px;
    color: var(--muted);
}

.filter-list {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.swatch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.swatch input,
.chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.swatch__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 0 0 3px #fff, 0 0 0 4px var(--border);
    transition: box-shadow 0.2s;
}

.swatch input:checked + .swatch__dot {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 0 0 3px #fff, 0 0 0 5px var(--primary);
}

.swatch input:focus-visible + .swatch__dot,
.chip input:focus-visible + span {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.swatch--all span {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
}

.swatch--all input:checked + span {
    border-color: var(--primary);
    color: var(--primary);
}

.swatches--lg .swatch__dot {
    width: 34px;
    height: 34px;
}

.swatch.is-unavailable .swatch__dot {
    opacity: 0.45;
    background: linear-gradient(135deg, transparent 46%, #999 47%, #999 53%, transparent 54%), var(--swatch);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    position: relative;
    cursor: pointer;
}

.chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.chip input:checked + span {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.chips--lg .chip span {
    min-width: 52px;
    height: 42px;
    font-size: 14px;
}

.chip.is-unavailable span {
    color: var(--muted);
    text-decoration: line-through;
    background: var(--surface-soft);
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.shop-toolbar__filters {
    display: none;
}

.shop-toolbar__count {
    font-size: 14px;
    color: var(--text-soft);
}

.shop-toolbar__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.select-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-soft);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
}

.active-filter:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.product-grid--shop {
    grid-template-columns: repeat(3, 1fr);
}

.pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.pager__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
}

.pager__item.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pager__item:hover:not(.is-active) {
    border-color: var(--primary);
}

.pager__gap {
    align-self: center;
    color: var(--muted);
}

.infinite-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 22px 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.infinite-loader.is-active {
    display: flex;
}

.infinite-loader__spin {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: infiniteSpin 0.7s linear infinite;
}

.infinite-end {
    margin: 18px 0 4px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.infinite-sentinel {
    height: 1px;
}

.pager.is-infinite-hidden {
    display: none;
}

@keyframes infiniteSpin {
    to { transform: rotate(360deg); }
}

/* ---------- Product page ---------- */
.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.gallery {
    position: sticky;
    top: 70px;
}

.gallery__main {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-soft);
}

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

.gallery__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #c9c9c9;
}

.gallery__placeholder .icon {
    width: 80px;
    height: 80px;
}

.gallery__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 13px;
    padding: 3px 12px;
}

.gallery__caption {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    max-width: calc(100% - 28px);
    margin: 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery__caption[hidden] {
    display: none !important;
}

.style-products {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
}

.style-products__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.style-product {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.style-product.is-active {
    border-color: var(--primary);
}

.style-product__title {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.6;
}

.style-product__title a {
    color: inherit;
}

.style-product__code {
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
}

.style-product .product-info__price {
    margin: 14px 0;
    padding: 12px 0;
}

.style-product .option-group {
    margin-bottom: 14px;
}

.style-product .stock-status {
    margin-bottom: 12px;
}

.style-product .buy-panel {
    background: var(--surface-soft);
}

.gallery__thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
}

.gallery__thumb {
    width: 84px;
    flex-shrink: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-soft);
    cursor: pointer;
    aspect-ratio: 4 / 5;
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__thumb.is-active {
    border-color: var(--primary);
}

.product-info__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.product-info__brand img {
    height: 26px;
    width: auto;
}

.product-info__title {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.5;
}

.product-info__code {
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
}

.product-info__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    margin: 22px 0;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.product-info__save {
    flex-basis: 100%;
    font-size: 13px;
    color: var(--sale);
    font-weight: 600;
}

.option-group {
    margin-bottom: 22px;
}

.option-group__label {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-soft);
}

.option-group__label strong {
    color: var(--text);
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}

.stock-status::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
}

.stock-status.is-available {
    color: var(--sale);
}

.stock-status.is-unavailable {
    color: var(--danger);
}

.stock-status[hidden] {
    display: none !important;
}

.buy-box {
    display: flex;
    gap: 12px;
}

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.qty__btn {
    width: 44px;
    height: 50px;
    border: 0;
    background: none;
    font-size: 20px;
    cursor: pointer;
}

.qty__input {
    width: 44px;
    border: 0;
    text-align: center;
    font-weight: 700;
    background: transparent;
    outline: none;
}

.buy-box__add {
    flex: 1;
}

.js-variant-picker.is-in-cart > .js-stock-status,
.js-variant-picker.is-in-cart .buy-box,
.js-variant-picker.is-in-cart .buy-panel__assure,
.js-variant-picker:not(.is-in-cart) .js-in-cart {
    display: none;
}

.buy-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
}

.buy-panel__stock {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--danger);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.7;
}

.buy-panel__stock[hidden] {
    display: none !important;
}

.buy-panel__fire {
    font-size: 15px;
    line-height: 1;
}

.buy-panel__add {
    width: 100%;
    min-height: 50px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
}

.buy-panel__add:hover {
    background: var(--primary-dark);
    color: #fff;
}

.buy-panel__add:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.buy-panel__assure {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
}

.buy-panel__assure .icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.product-card__quick .buy-panel {
    padding: 10px;
    gap: 10px;
}

.product-card__quick .buy-panel__add {
    min-height: 40px;
    font-size: 14px;
}

.in-cart {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.in-cart__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.in-cart__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 700;
}

.in-cart__label::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
}

.in-cart__qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.in-cart__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--surface);
    color: var(--primary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.in-cart__btn:not(:disabled):hover {
    background: var(--primary-soft);
}

.in-cart__btn .icon {
    width: 16px;
    height: 16px;
}

.in-cart__btn [hidden] {
    display: none;
}

.in-cart__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.in-cart__btn--remove {
    color: var(--danger);
}

.in-cart__btn--remove:not(:disabled):hover {
    background: #fbecea;
}

.in-cart__count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    border-inline: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.in-cart__link {
    align-self: flex-start;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.in-cart__link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.product-card__quick .in-cart__label,
.product-card__quick .in-cart__link {
    font-size: 13px;
}

.product-card__quick .in-cart__btn {
    width: 36px;
    height: 36px;
}

.product-info__meta {
    margin-top: 26px;
    font-size: 14px;
}

.product-info__meta li {
    padding: 3px 0;
}

.product-info__meta li > span:first-child {
    color: var(--muted);
}

.product-info__perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface-soft);
    font-size: 13px;
}

.product-info__perks li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-info__perks .icon {
    color: var(--accent);
}

.product-details {
    margin-top: 56px;
}

.tabs__nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.tabs__btn {
    padding: 12px 18px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    margin-bottom: -1px;
}

.tabs__btn.is-active {
    color: var(--text);
    border-bottom-color: var(--primary);
}

.tabs__panel {
    display: none;
    padding: 24px 0;
}

.tabs__panel.is-active {
    display: block;
}

.product-details__text {
    max-width: 820px;
    color: var(--text-soft);
    white-space: pre-line;
    line-height: 2.1;
}

.specs {
    width: 100%;
    max-width: 620px;
    border-collapse: collapse;
    font-size: 14px;
}

.specs th,
.specs td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    text-align: right;
}

.specs th {
    width: 160px;
    color: var(--muted);
    font-weight: 600;
    background: var(--surface-soft);
}

/* ---------- Footer ---------- */
.footer {
    margin-top: 70px;
    background: #1c2127;
    color: #b9bfc6;
    font-size: 14px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    padding-top: 54px;
    padding-bottom: 40px;
}

.logo--footer,
.logo--footer:hover {
    color: #fff;
}

.footer__about {
    margin-top: 14px;
    line-height: 2;
}

.footer__phones {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.footer__phones a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.footer__phones a:hover {
    color: #fff;
}

.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.footer__social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer__social .icon {
    width: 18px;
    height: 18px;
}

.footer__title {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.footer__links li {
    padding: 4px 0;
}

.footer__links a:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
}

.footer__pay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer__pay .icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* ---------- Floating UI ---------- */
.back-to-top {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.store-toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    z-index: 90;
    max-width: calc(100vw - 40px);
    padding: 12px 22px;
    border-radius: var(--radius);
    background: #1c2127;
    color: #fff;
    font-size: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 16px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.store-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories {
        grid-template-columns: repeat(3, 1fr);
    }

    .header__action-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .header__burger {
        display: inline-flex;
    }

    .header__inner {
        flex-wrap: wrap;
        gap: 12px 16px;
        min-height: 70px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header__inner > .search {
        order: 5;
        flex-basis: 100%;
        max-width: none;
    }

    .header__actions {
        margin-right: auto;
    }

    .mainnav {
        display: none;
    }

    .topbar__note {
        display: none;
    }

    .promos {
        grid-template-columns: 1fr;
    }

    .features {
        gap: 22px 32px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .shop {
        grid-template-columns: 1fr;
    }

    .shop__sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        width: min(340px, 88vw);
        max-height: none;
        padding: 16px 18px 28px;
        background: #fff;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .shop__sidebar.is-open {
        transform: none;
    }

    .shop__sidebar-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        font-weight: 800;
        font-size: 17px;
    }

    .shop-toolbar__filters {
        display: inline-flex;
    }

    .product {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gallery {
        position: static;
    }

    .wide-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 26px;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .product-grid,
    .product-grid--shop {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 14px;
    }

    .logo__text {
        font-size: 20px;
    }

    .logo__mark {
        width: 38px;
        height: 38px;
        font-size: 19px;
    }

    .product-info__perks {
        grid-template-columns: 1fr;
    }

    .shop-toolbar__controls {
        width: 100%;
        justify-content: space-between;
    }

    .page-head__title {
        font-size: 22px;
    }

    .product-info__title {
        font-size: 23px;
    }
}

@media (max-width: 575px) {
    .container {
        padding: 0 14px;
    }

    .topbar {
        display: none;
    }

    .categories {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .brand-tile {
        flex-basis: calc(50% - 16px);
        width: auto;
        max-width: calc(50% - 8px);
    }

    .features {
        gap: 18px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom-inner {
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
        text-align: center;
    }

    .product-card__title {
        font-size: 14px;
    }

    .price__current {
        font-size: 14.5px;
    }

    .product-card__action {
        width: 36px;
        height: 36px;
    }

    .buy-box {
        flex-direction: column;
    }

    .qty {
        align-self: flex-start;
    }
}

.header__action-text {
    max-width: 9em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer__logout {
    display: flex;
    width: 100%;
    padding: 12px 2px;
    border: 0;
    background: transparent;
    color: var(--danger);
    font: inherit;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
}

.auth {
    padding: 48px 0 72px;
    background: var(--surface-soft);
}

.auth__card {
    width: min(100%, 460px);
    margin: 0 auto;
    padding: 32px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth__title {
    font-size: 24px;
    font-weight: 800;
}

.auth__lead,
.auth__hint,
.auth__mobile {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 14px;
}

.auth__label {
    display: block;
    margin: 18px 0 6px;
    font-weight: 600;
    font-size: 14px;
}

.auth__submit {
    margin-top: 22px;
}

.auth__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: 16px;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.auth__alert {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 14px;
}

.auth__alert--error {
    background: #fdecea;
    color: var(--danger);
}

.auth__code {
    letter-spacing: 0.35em;
    text-align: center;
    font-weight: 700;
}

.auth__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
}

.auth__links form {
    margin: 0;
}

.auth__switch {
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
    padding: 8px 12px;
}

.auth__switch:disabled {
    color: var(--muted);
    cursor: not-allowed;
}

.account-panel__empty {
    margin-top: 22px;
    padding: 28px 16px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--muted);
    text-align: center;
}

.account-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.account-panel__actions form {
    margin: 0;
}

.cart-page {
    padding: 28px 0 80px;
    background: var(--surface-soft);
}

.cart-loading,
.cart-empty {
    padding: 56px 16px;
    text-align: center;
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.cart-empty__icon {
    display: inline-flex;
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
}

.cart-empty__icon .icon {
    width: 32px;
    height: 32px;
}

.cart-empty .btn {
    margin-top: 16px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.cart-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.cart-panel,
.cart-summary {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.cart-panel__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.cart-panel__head h1,
.cart-panel__head h2 {
    font-size: 18px;
    font-weight: 800;
}

.cart-panel__mark {
    position: relative;
    display: inline-flex;
    color: var(--primary);
}

.cart-panel__badge {
    position: absolute;
    top: -8px;
    left: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.cart-line {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) 180px;
    gap: 8px 18px;
    align-items: start;
    padding: 20px;
}

.cart-line + .cart-line {
    border-top: 1px solid var(--border);
}

.cart-line.is-unavailable {
    opacity: 0.72;
}

.cart-line__media {
    display: flex;
    width: 128px;
    height: 160px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-soft);
    align-items: center;
    justify-content: center;
}

.cart-line__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-line__placeholder {
    color: var(--muted);
}

.cart-line__name {
    display: block;
    font-weight: 700;
    line-height: 1.7;
}

.cart-line__name:hover {
    color: var(--primary);
}

.cart-line__attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.cart-line__attr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: 13px;
}

.cart-line__attr-label {
    color: var(--muted);
}

.cart-line__stock,
.cart-line__notice,
.cart-line__unit {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}

.cart-line__notice {
    color: var(--danger);
}

.cart-line__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.cart-line__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.cart-line__old {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.cart-line__old del {
    text-decoration: line-through;
}

.cart-line__off {
    padding: 0 7px;
    border-radius: 999px;
    background: #e7f6e6;
    color: var(--sale);
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
}

.cart-line__current {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 18px;
    font-weight: 800;
}

.cart-line__current small {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-soft);
}

.qty--cart {
    border-radius: 10px;
    background: var(--surface);
}

.qty--cart .qty__btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
    color: var(--text-soft);
}

.qty--cart .qty__btn .icon {
    width: 16px;
    height: 16px;
}

.qty--cart .qty__btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.qty--cart .qty__btn--remove {
    color: var(--danger);
}

.qty--cart .qty__input {
    width: 28px;
    height: 36px;
    font-size: 14px;
}

.cart-summary {
    position: sticky;
    top: 80px;
    padding: 18px 18px 0;
    overflow: hidden;
}

.cart-summary h2 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 800;
}

.cart-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-soft);
    font-size: 14px;
}

.cart-summary__row strong {
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
}

.cart-summary__count {
    color: var(--muted);
    font-size: 13px;
}

.cart-summary__row--save {
    margin: 0 -8px;
    padding: 10px 8px;
    border-radius: var(--radius);
    background: #e7f6e6;
    color: var(--sale);
}

.cart-summary__row--save strong {
    color: var(--sale);
}

.cart-summary__row--total {
    margin-top: 4px;
    color: var(--text);
    font-weight: 700;
}

.cart-summary__row--total strong {
    font-size: 18px;
    font-weight: 800;
}

.cart-summary__checkout {
    margin-top: 8px;
}

.cart-summary__checkout.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.cart-summary__note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.cart-summary__note .icon {
    margin-top: 3px;
}

.cart-summary__continue {
    display: block;
    margin: 10px 0 16px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.cart-summary__perk {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 -18px;
    padding: 14px 18px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
}

.cart-summary__perk .icon {
    color: var(--primary);
}

.cart-ship__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px 8px;
}

.cart-ship__empty,
.cart-ship__hint {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
}

.cart-ship__hint a {
    color: var(--primary);
    font-weight: 700;
}

.js-checkout-pay-hint {
    padding: 0 20px 16px;
}

.cart-summary__row--wallet strong {
    color: var(--sale);
}

.cart-ship__option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.cart-ship__option.is-selected {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.cart-ship__option input {
    accent-color: var(--primary);
}

.cart-ship__option-text {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-ship__option-text strong {
    font-weight: 700;
}

.cart-ship__option-text small {
    color: var(--text-soft);
    font-size: 13px;
    white-space: nowrap;
}

.cart-ship__address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 20px 18px;
}

.cart-address {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: right;
}

.cart-address p {
    margin-top: 6px;
    color: var(--text-soft);
    line-height: 1.8;
}

.cart-address__meta {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.cart-address.is-selected,
.cart-address--chosen {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.cart-modal[hidden] {
    display: none;
}

.cart-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cart-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 32, 0.45);
}

.cart-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(520px, 100%);
    max-height: min(640px, calc(100vh - 40px));
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}

.cart-modal__head,
.cart-modal__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.cart-modal__foot {
    border-bottom: 0;
    border-top: 1px solid var(--border);
}

.cart-modal__head h2 {
    font-size: 16px;
    font-weight: 800;
}

.cart-modal__close {
    display: inline-flex;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
}

.cart-modal__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    overflow: auto;
}

.cart-modal__body .cart-address {
    font: inherit;
    cursor: pointer;
}

.cart-modal__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 12px;
    color: var(--muted);
    text-align: center;
}

.cart-modal__empty .icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.checkout-code {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px 8px;
}

.checkout-code .field {
    flex: 1 1 180px;
}

.checkout-code__message {
    margin: 0;
    padding: 0 20px 16px;
    font-size: 13px;
    line-height: 1.7;
}

.checkout-code__message.is-ok {
    color: var(--sale);
}

.checkout-code__message.is-bad {
    color: var(--danger);
}

.cart-page[aria-busy="true"] {
    cursor: progress;
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .cart-line {
        grid-template-columns: 96px minmax(0, 1fr);
        padding: 16px;
    }

    .cart-line__media {
        width: 96px;
        height: 120px;
    }

    .cart-line__side {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cart-line__price {
        align-items: flex-start;
    }
}

.account {
    padding: 28px 0 72px;
    background: var(--surface-soft);
}

.account > .container {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
}

.account__layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.account__main,
.account-nav,
.orders-panel,
.order-card,
.account-card,
.address-card {
    min-width: 0;
}

.account-nav__bar {
    display: contents;
}

.account-nav,
.account-card,
.address-card,
.account-stat {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.account-nav {
    position: sticky;
    top: 66px;
    padding: 8px;
}

.account-nav__profile {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 12px 16px;
    border-bottom: 1px solid var(--border);
}

.account-nav__avatar {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 800;
    flex-shrink: 0;
}

.account-nav__profile > div {
    min-width: 0;
}

.account-nav__profile strong,
.account-nav__profile span {
    display: block;
    overflow-wrap: anywhere;
}

.account-nav__profile strong {
    font-size: 15px;
}

.account-nav__profile span {
    color: var(--muted);
    font-size: 13px;
}

.account-nav__menu {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.account-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 600;
}

.account-nav__link .icon {
    color: var(--text-soft);
}

.account-nav__link.is-active {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.account-nav__link.is-active .icon {
    color: var(--primary);
}

.account-nav__link.is-soon {
    color: var(--muted);
    font-weight: 500;
    cursor: default;
}

.account-nav__link em {
    margin-inline-start: auto;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
}

.account-nav__logout {
    margin: 0;
    border-top: 1px solid var(--border);
}

.account-nav__logout button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: var(--danger);
    font-weight: 600;
    cursor: pointer;
}

.account-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.account-head h1,
.account-card h2,
.address-card h2 {
    font-size: 20px;
    font-weight: 800;
}

.account-head p,
.account-card__empty {
    margin-top: 4px;
    color: var(--text-soft);
}

.account-head__more,
.account-card__head a {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.account-soon {
    padding: 2px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.account-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 10px;
    text-align: center;
}

.account-stat strong {
    font-size: 22px;
}

.account-stat > span:last-child {
    color: var(--text-soft);
    font-size: 13px;
}

.account-stat__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
}

.account-stat__icon--current {
    background: #e8f3fb;
    color: #2b7bb9;
}

.account-stat__icon--done {
    background: var(--primary-soft);
    color: var(--primary);
}

.account-stat__icon--return {
    background: #fbf3e6;
    color: var(--accent);
}

.account-card,
.address-card {
    padding: 18px 18px 16px;
    margin-bottom: 14px;
}

.account-card__head,
.address-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.account-card--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 36px 16px;
    color: var(--muted);
    text-align: center;
}

.account-card--empty .icon {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

.repeat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.repeat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.repeat-item + .repeat-item {
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.repeat-item__media {
    display: flex;
    width: 72px;
    height: 90px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-soft);
}

.repeat-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.repeat-item__placeholder {
    color: #c9c9c9;
}

.repeat-item__body {
    flex: 1;
    min-width: 0;
}

.repeat-item__name {
    display: block;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repeat-item__meta,
.repeat-item__variant {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 13px;
}

.repeat-item .price {
    margin-top: 6px;
}

.repeat-item > .btn {
    flex-shrink: 0;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.account-form label,
.account-form__grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
}

.account-form textarea {
    min-height: 96px;
    resize: vertical;
}

.account-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.account-form__error {
    color: var(--danger);
    font-size: 12px;
    font-weight: 500;
}

.account-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.address-card p {
    color: var(--text-soft);
}

.address-card dl {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-top: 12px;
}

.address-card dt {
    color: var(--muted);
    font-size: 12px;
}

.address-card dd {
    margin: 0;
    font-weight: 700;
}

.address-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.address-card__actions a,
.address-card__actions button {
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.address-card__actions form {
    margin: 0;
}

.address-card__actions button {
    color: var(--danger);
}

.account .auth__alert {
    margin: 0 0 14px;
}

a.account-stat {
    color: inherit;
    text-decoration: none;
}

a.account-stat:hover {
    border-color: var(--primary);
}

.orders-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 8px 18px 18px;
}

.orders-panel__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.orders-panel__bar h1 {
    font-size: 18px;
    font-weight: 800;
}

.orders-search {
    position: relative;
    width: min(260px, 46vw);
}

.orders-search .field {
    padding-inline-end: 40px;
}

.orders-search button {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
}

.orders-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.orders-tabs::-webkit-scrollbar {
    display: none;
}

.orders-tabs__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 14px;
    color: var(--text-soft);
    font-weight: 700;
    white-space: nowrap;
}

.orders-tabs__item em {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.orders-tabs__item.is-active {
    color: var(--text);
}

.orders-tabs__item.is-active em {
    background: var(--primary);
    color: #fff;
}

.orders-tabs__item.is-active::after {
    content: "";
    position: absolute;
    right: 10px;
    left: 10px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--primary);
}

.orders-results.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 320px;
    color: var(--muted);
    text-align: center;
}

.orders-empty .icon {
    width: 72px;
    height: 72px;
    color: #d5d8de;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.order-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px 12px;
}

.order-card__top,
.order-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.order-card__open {
    display: inline-flex;
    color: var(--muted);
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}

.order-status .icon {
    width: 18px;
    height: 18px;
}

.order-status--success {
    color: var(--primary-dark);
}

.order-status--danger {
    color: var(--danger);
}

.order-status--muted {
    color: var(--text-soft);
}

.order-status--progress {
    color: #2b7bb9;
}

.order-status--warning {
    color: #8a5a00;
}

.order-card--awaiting {
    border-color: #e2b15a;
    background: #fffaf3;
}

.orders-notice {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f4f8ef;
    color: var(--primary-dark);
    font-size: 14px;
    line-height: 1.8;
}

.order-tracks,
.order-track,
.return-detail__steps {
    min-width: 0;
}

.order-tracks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.order-track__label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
}

.order-track__steps {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 5px 0 5px;
    list-style: none;
    overflow-x: auto;
}

.order-track__step {
    position: relative;
    flex: 1 0 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.order-track__step::before {
    content: "";
    position: absolute;
    top: 10px;
    inset-inline-start: -50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.order-track__step:first-child::before {
    display: none;
}

.order-track__dot {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: #fff;
}

.order-track__step.is-done {
    color: var(--primary-dark);
}

.order-track__step.is-done .order-track__dot,
.order-track__step.is-done::before,
.order-track__step.is-current::before {
    background: var(--primary);
    border-color: var(--primary);
}

.order-track__step.is-current {
    color: #8a5a00;
}

.order-track__step.is-current .order-track__dot {
    border-color: #d0891a;
    background: #f6c453;
    box-shadow: 0 0 0 4px rgba(246, 196, 83, 0.35);
}

.order-pay,
.cart-pay-hold {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #e2b15a;
    border-radius: 12px;
    background: #fffaf3;
}

.cart-pay-hold {
    margin-bottom: 16px;
}

.order-pay p,
.cart-pay-hold p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
}

.cart-pay-hold h2,
.order-pay__until,
.cart-pay-hold__until,
.order-pay__timer,
.cart-pay-hold__timer {
    color: var(--text);
    font-weight: 800;
}

.cart-pay-hold h2 {
    margin-bottom: 6px;
    font-size: 16px;
}

.order-pay__actions,
.cart-pay-hold__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.cart-summary__note--block {
    color: #8a5a00;
}

.order-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 13px;
}

.order-card__meta span + span::before {
    content: "·";
    margin-inline-end: 14px;
    color: var(--muted);
}

.order-thumbs,
.return-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.order-thumb {
    position: relative;
    display: inline-flex;
    width: 72px;
    height: 72px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-soft);
    align-items: center;
    justify-content: center;
}

.order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.order-thumb em {
    position: absolute;
    bottom: 2px;
    inset-inline-start: 2px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.order-thumb__placeholder {
    color: var(--muted);
}

.order-card__foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}

.order-card__foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.return-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.return-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.return-item__name {
    margin-top: 6px;
    font-weight: 700;
}

.return-item__reason {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 13px;
}

.return-item__reason .icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.orders-results .pager {
    margin-top: 20px;
}

.invoice__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text-soft);
}

.invoice__lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.invoice__lines li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.invoice__line-body {
    flex: 1;
    min-width: 0;
}

.invoice__line-body strong,
.invoice__line-body span {
    display: block;
}

.invoice__line-body span {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 13px;
}

.invoice__media {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.invoice__qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 28px;
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    direction: ltr;
}

.invoice__line-body .invoice__variant {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.invoice__line-body .invoice__variant-sep {
    display: inline;
    margin-top: 0;
    color: var(--muted);
}

.invoice__totals {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.invoice__totals div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.invoice__totals dt {
    color: var(--text-soft);
}

.invoice__totals dd {
    margin: 0;
    font-weight: 700;
}

.invoice__totals .is-payable {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 16px;
}

.invoice__totals .is-payable dt {
    color: var(--text);
    font-weight: 800;
}

@media (max-width: 768px) {
    .account {
        padding: 12px 0 calc(48px + env(safe-area-inset-bottom));
    }

    .account__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .account-form__grid {
        grid-template-columns: 1fr;
    }

    .repeat-item {
        flex-wrap: wrap;
    }

    .repeat-item > .btn {
        width: 100%;
    }

    .account-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .account-stat {
        padding: 12px 6px;
    }

    .account-stat strong {
        font-size: 16px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .account-stat > span:last-child {
        font-size: 12px;
        line-height: 1.45;
    }

    .account-nav {
        position: static;
        padding: 0;
    }

    .account-nav__profile {
        padding: 12px 14px;
    }

    .account-nav__bar {
        display: block;
    }

    .account-nav__menu {
        flex-direction: row;
        width: 100%;
        gap: 4px;
        padding: 8px 8px 10px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .account-nav__menu::-webkit-scrollbar {
        display: none;
    }

    .account-nav__link {
        flex: 0 0 auto;
        white-space: nowrap;
        min-height: 40px;
    }

    .account-nav__logout {
        border-top: 0;
        padding: 0 8px 8px;
    }

    .account-nav__logout button {
        width: 100%;
        min-height: 40px;
        border-radius: var(--radius);
        background: #fff5f4;
    }

    .account-head,
    .account-card__head,
    .address-card header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .account-head h1,
    .account-card h2,
    .address-card h2 {
        font-size: 18px;
    }

    .orders-panel {
        padding: 4px 12px 14px;
    }

    .orders-panel__bar,
    .invoice__lines li,
    .return-form__lines li,
    .return-item {
        flex-direction: column;
        align-items: stretch;
    }

    .orders-search,
    .orders-search select.field {
        width: 100%;
        min-width: 0;
    }

    .order-card {
        padding: 12px;
    }

    .order-card__top,
    .order-card__foot {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .order-card__top > div,
    .order-card__meta {
        min-width: 0;
        max-width: 100%;
    }

    .order-card__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .order-card__meta span + span::before {
        content: none;
    }

    .order-card__foot .btn,
    .invoice__actions .btn,
    .invoice__actions form,
    .order-pay__actions form,
    .order-pay__actions .btn {
        flex: 1 1 100%;
    }

    .order-card__foot .btn,
    .invoice__actions .btn,
    .order-pay__actions .btn {
        width: 100%;
    }

    .wallet-balance {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 16px;
    }

    .wallet-balance strong {
        font-size: 22px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .wallet-breakdown li {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .wallet-row__amount {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .return-items {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cart-summary__pay {
    width: 100%;
    margin-top: 12px;
}

.checkout-pay__message,
.gateway__message {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.8;
}

.checkout-pay__message.is-ok,
.gateway__message.is-ok {
    color: var(--sale);
}

.checkout-pay__message.is-bad,
.gateway__message.is-bad {
    color: var(--danger);
}

.checkout-hold,
.gateway__body {
    padding: 8px 20px 20px;
}

.checkout-hold h2 {
    margin: 8px 0;
    font-size: 16px;
}

.checkout-hold p,
.gateway__body p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
}

.checkout-hold__meta,
.gateway__meta {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.checkout-hold__meta div,
.gateway__meta div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.checkout-hold__meta dt,
.gateway__meta dt {
    color: var(--text-soft);
}

.checkout-hold__meta dd,
.gateway__meta dd {
    margin: 0;
    font-weight: 700;
}

.checkout-hold__timer {
    font-weight: 800;
    color: var(--text);
}

.checkout-hold__actions,
.gateway__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.gateway__actions form,
.gateway__actions .btn,
.checkout-hold__actions .btn {
    flex: 1 1 140px;
}

.gateway__back {
    margin-top: 16px;
}

.gateway__back a {
    color: var(--primary);
    font-weight: 700;
}

.btn--danger {
    background: var(--danger);
    color: #fff;
}

.btn--danger:hover {
    color: #fff;
    filter: brightness(0.92);
}

.order-card__foot {
    flex-wrap: wrap;
}

.order-card__foot form {
    margin: 0;
}

.order-return-deadline {
    flex-basis: 100%;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.7;
}

.invoice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.return-form__note {
    color: var(--text-soft);
    line-height: 1.8;
}

.return-form__choice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-weight: 700;
}

.return-form__lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 16px;
    padding: 0;
    list-style: none;
}

.return-form__lines li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.return-form__lines label {
    display: grid;
    gap: 4px;
    min-width: 96px;
    color: var(--text-soft);
    font-size: 13px;
}

.return-form__reason {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    font-weight: 700;
}

.return-form [hidden] {
    display: none !important;
}

.return-picker {
    margin: 8px 0 16px;
}

.return-picker__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.return-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}

.return-add:hover {
    filter: brightness(0.92);
}

.return-add .icon {
    width: 18px;
    height: 18px;
}

.return-form__lines input[type="number"] {
    width: 88px;
}

.return-form__remove {
    color: var(--danger);
}

.return-modal__row .btn {
    flex: 0 0 auto;
}

.return-form form + .cart-modal,
.return-form .cart-modal {
    z-index: 80;
}

.return-detail__steps {
    margin: 8px 0 16px;
}

.wallet-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 22px 20px;
    border-radius: var(--radius-lg);
    background: var(--primary-dark);
    color: #fff;
}

.wallet-balance span {
    font-weight: 700;
}

.wallet-balance strong {
    font-size: 28px;
    font-weight: 800;
}

.wallet-balance strong.is-in {
    color: var(--accent);
}

.wallet-balance strong.is-out {
    color: #ffb4ab;
}

.wallet-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wallet-breakdown li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
}

.wallet-breakdown em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.wallet-row p {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.7;
}

.wallet-row__amount {
    white-space: nowrap;
}

.wallet-row .is-in,
.wallet-breakdown .is-in {
    color: var(--primary);
}

.wallet-row .is-out,
.wallet-breakdown .is-out {
    color: var(--danger);
}

.wallet-row .is-none,
.wallet-breakdown .is-none {
    color: var(--text-soft);
}

.wallet-status {
    font-weight: 700;
}

.wallet-status--done {
    color: var(--primary);
}

.wallet-status--wait {
    color: var(--accent);
}

.wallet-status--fail,
.wallet-status--muted {
    color: var(--muted);
}

.orders-search select.field {
    min-width: 180px;
}
