/* ==========================================================================
   AFMAN — components
   ========================================================================== */

/* Badges */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 27px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 1px;
    font-size: 8.5px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge--dark {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.badge--light {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(11, 11, 11, 0.12);
    color: var(--ink);
    backdrop-filter: blur(8px);
}

.badge--outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--gray-600);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 28px 0;
}

/* Breadcrumbs */

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li + li::before {
    content: '/';
    color: var(--gray-300);
}

.breadcrumbs a {
    color: var(--gray-500);
    transition: color 0.2s var(--ease);
}

.breadcrumbs a:hover {
    color: var(--ink);
}

.breadcrumbs [aria-current='page'] {
    color: var(--gray-700);
}

/* Tabs */

.tabs__nav {
    display: flex;
    align-items: center;
    gap: 36px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs__nav::-webkit-scrollbar {
    display: none;
}

.tabs__btn {
    position: relative;
    flex: 0 0 auto;
    padding: 0 0 18px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color 0.2s var(--ease);
}

.tabs__btn::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
}

.tabs__btn:hover {
    color: var(--ink);
}

.tabs__btn.is-active {
    color: var(--ink);
}

.tabs__btn.is-active::after {
    transform: scaleX(1);
}

.tabs__panels {
    padding-top: 42px;
}

.tabs__panel {
    display: none;
}

.tabs__panel.is-active {
    display: block;
    animation: panel-in 0.35s var(--ease-out);
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.tabs__lead {
    max-width: 760px;
    color: var(--gray-600);
    font-size: 16px;
    line-height: 1.65;
}

.tabs--demo {
    margin-top: 32px;
    padding: 28px;
    border: 1px solid var(--line);
}

/* Skeleton placeholders */

.skeleton {
    position: relative;
    overflow: hidden;
    background-color: var(--gray-100);
}

html.js .skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: linear-gradient(100deg,
        rgba(255, 255, 255, 0) 18%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0) 82%);
    background-repeat: no-repeat;
    background-size: 220% 100%;
    background-position: 150% 0;
    animation: skeleton-sweep 1.4s var(--ease) infinite;
    pointer-events: none;
}

/* Only lazy images fade in: eager images (LCP) paint as soon as they are decoded. */

html.js .skeleton > img[loading='lazy'] {
    opacity: 0;
}

html.js .skeleton.is-loaded {
    background-color: transparent;
}

html.js .skeleton.is-loaded::after {
    content: none;
}

html.js .skeleton.is-loaded > img[loading='lazy'] {
    opacity: 1;
    animation: skeleton-fade-in 0.45s var(--ease-out);
}

@keyframes skeleton-sweep {
    from {
        background-position: 150% 0;
    }

    to {
        background-position: -70% 0;
    }
}

@keyframes skeleton-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.js .skeleton::after {
        animation: none;
        background-image: none;
        background-color: var(--gray-150);
    }

    html.js .skeleton.is-loaded > img[loading='lazy'] {
        animation: none;
    }
}

/* Product cards */

.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--gray-100);
}

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

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7%;
    mix-blend-mode: multiply;
    transition: transform 0.7s var(--ease-out);
}

.product-card:hover .product-card__media img {
    transform: scale(1.035);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 76px);
    padding: 6px 8px;
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
    font-size: 7.5px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-card__favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-600);
    backdrop-filter: blur(8px);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.product-card__favorite .icon {
    width: 16px;
    height: 16px;
}

.product-card__favorite:hover,
.product-card__favorite[aria-pressed='true'] {
    background: var(--ink);
    color: var(--white);
}

.product-card__favorite[aria-pressed='true'] .icon {
    fill: currentColor;
}

.product-card__add {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--pill);
    background: var(--ink);
    color: var(--white);
    overflow: hidden;
    transition: gap 0.25s var(--ease), background-color 0.2s var(--ease);
}

.product-card__add .icon {
    width: 16px;
    height: 16px;
}

.product-card__add-text {
    max-width: 0;
    overflow: hidden;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 0.3s var(--ease), opacity 0.2s var(--ease);
}

.product-card__add:hover {
    gap: 6px;
    padding-right: 14px;
}

.product-card__add:hover .product-card__add-text {
    max-width: 80px;
    opacity: 1;
}

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

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
    color: var(--gray-500);
    font-size: 8.5px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-card__feature {
    color: var(--gray-400);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    white-space: nowrap;
}

.product-card__title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.32;
    letter-spacing: -0.02em;
}

.product-card__title a {
    transition: opacity 0.2s var(--ease);
}

.product-card__title a:hover {
    opacity: 0.65;
}

.product-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 15px;
}

.product-card__arrow {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gray-400);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.product-card__arrow .icon {
    width: 13px;
    height: 13px;
}

.product-card:hover .product-card__arrow {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 24px;
}

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

/* Owl carousel */

.owl-carousel .owl-stage {
    display: flex;
}

.owl-carousel .owl-item {
    display: flex;
}

.owl-carousel .owl-item > * {
    width: 100%;
}

.cards-carousel {
    position: relative;
}

.cards-carousel:not(.owl-loaded) > *:not(:first-child) {
    display: none;
}

.cards-carousel .owl-stage-outer {
    overflow: hidden;
}

.cards-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.cards-carousel .owl-dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 24px;
}

.cards-carousel .owl-dot span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--gray-300);
    transition: background-color 0.2s var(--ease), width 0.2s var(--ease);
}

.cards-carousel .owl-dot.active span {
    width: 28px;
    background: var(--ink);
}

.carousel-arrows {
    display: flex;
    gap: 8px;
}

.carousel-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--ink);
    background: transparent;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.carousel-arrow .icon {
    width: 17px;
    height: 17px;
}

.carousel-arrow:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.cards-section {
    padding: 88px 0;
    border-top: 1px solid var(--line);
}

.cards-section--muted {
    background: var(--gray-50);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

/* Swatches, frame options, addons */

.option-group {
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.option-group__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    margin-bottom: 16px;
}

.option-group__title {
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.option-group__value {
    color: var(--gray-500);
    font-size: 11px;
    line-height: 1.3;
    text-align: right;
}

.option-group__value--muted {
    color: var(--gray-400);
}

.option-group__hint {
    margin-top: 12px;
    color: var(--gray-400);
    font-size: 10px;
    line-height: 1.4;
}

.swatches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.swatch {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.swatch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.swatch__dot {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: inset 0 0 0 1px rgba(11, 11, 11, 0.13);
    transition: box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}

.swatch:hover .swatch__dot {
    transform: scale(1.06);
}

.swatch input:checked + .swatch__dot,
.swatch.is-static-active .swatch__dot {
    box-shadow:
        0 0 0 2px var(--white),
        0 0 0 3px var(--ink),
        inset 0 0 0 1px rgba(11, 11, 11, 0.1);
}

.swatch input:focus-visible + .swatch__dot {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}

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

.frame-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 82px;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.frame-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.frame-option:hover {
    border-color: var(--gray-400);
}

.frame-option:has(input:checked),
.frame-option.is-static-active {
    border-color: var(--ink);
    background: var(--gray-50);
}

.frame-option:has(input:checked)::after,
.frame-option.is-static-active::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ink);
}

.frame-option__swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: inset 0 0 0 1px rgba(11, 11, 11, 0.14);
}

.frame-option__name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.frame-option__price {
    margin-top: auto;
    color: var(--gray-500);
    font-size: 10px;
    line-height: 1.2;
}

.frame-option input:focus-visible ~ .frame-option__swatch {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.addons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.addon {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.addon:hover {
    border-color: var(--gray-400);
}

.addon:has(input:checked),
.addon.is-static-active {
    border-color: var(--ink);
    background: var(--gray-50);
}

.addon input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.addon__control {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--white);
    transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.addon__control .icon {
    width: 12px;
    height: 12px;
    opacity: 0;
    transition: opacity 0.15s var(--ease);
}

.addon input:checked + .addon__control,
.addon.is-static-active .addon__control {
    background: var(--ink);
    border-color: var(--ink);
}

.addon input:checked + .addon__control .icon,
.addon.is-static-active .addon__control .icon {
    opacity: 1;
}

.addon input:focus-visible + .addon__control {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.addon__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.addon__name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.addon__description {
    color: var(--gray-500);
    font-size: 10.5px;
    line-height: 1.35;
}

.addon__price {
    color: var(--gray-600);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

/* Price summary */

.price-summary {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.price-summary__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 5px 0;
    color: var(--gray-600);
    font-size: 11.5px;
    line-height: 1.45;
}

.price-summary__label {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.price-summary__label small {
    color: var(--gray-400);
    font-size: 10px;
}

.price-summary__value {
    color: var(--gray-700);
    font-weight: 500;
    white-space: nowrap;
}

.price-summary__extra:empty {
    display: none;
}

.price-summary__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line-strong);
    font-size: 12px;
    font-weight: 600;
}

.price-summary__total small {
    color: var(--gray-500);
    font-size: 10px;
    font-weight: 400;
}

.price-summary__total strong {
    color: var(--ink);
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

/* Rich text */

.rich {
    max-width: 760px;
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.7;
}

.rich--wide {
    max-width: none;
}

.rich > p {
    margin-bottom: 18px;
}

.rich > p:last-child {
    margin-bottom: 0;
}

.rich h3 {
    margin: 34px 0 12px;
    color: var(--ink);
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.rich h3:first-child {
    margin-top: 0;
}

.rich ul {
    margin: 18px 0 24px;
}

.rich ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.rich ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gray-400);
}

.rich blockquote {
    margin: 28px 0;
    padding: 22px 26px;
    border-left: 2px solid var(--ink);
    background: var(--gray-50);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.015em;
}

.rich a {
    color: var(--ink);
    border-bottom: 1px solid var(--gray-300);
    transition: border-color 0.2s var(--ease);
}

.rich a:hover {
    border-color: var(--ink);
}

.rich__lead {
    font-size: 17px;
    line-height: 1.62;
    color: var(--gray-700);
}

.tick-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 20px;
}

.tick-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--gray-600);
    font-size: 13px;
}

.tick-list .icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--ink);
}

/* Steps and delivery */

.steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
    margin-top: 32px;
}

.step {
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.step:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
}

.step__number {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-400);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.step h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.step p {
    margin: 0;
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.55;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.delivery-card {
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--white);
}

.delivery-card__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.delivery-card__icon .icon {
    width: 16px;
    height: 16px;
}

.delivery-card h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.delivery-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 12px;
    line-height: 1.55;
}

.info-note {
    margin-top: 26px;
    padding: 18px 22px;
    border-left: 2px solid var(--ink);
    background: var(--gray-50);
}

.info-note strong {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
}

.info-note p {
    margin: 0;
    color: var(--gray-600);
    font-size: 12px;
    line-height: 1.55;
}

.info-note a {
    color: var(--ink);
    border-bottom: 1px solid var(--gray-400);
}

/* Spec list */

.spec-list__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.spec-list__row:last-child {
    border-bottom: 0;
}

.spec-list dt {
    color: var(--gray-500);
    font-size: 11px;
    line-height: 1.4;
}

.spec-list dd {
    max-width: 58%;
    color: var(--ink);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    text-align: right;
}

/* Notice */

.notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    background: var(--white);
}

.notice > .icon {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.notice div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notice strong {
    font-size: 11px;
    font-weight: 600;
}

.notice span {
    color: var(--gray-500);
    font-size: 10.5px;
}

/* Pagination */

.pagination {
    display: flex;
    align-items: center;
    gap: 3px;
}

.pagination a,
.pagination span {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border: 1px solid transparent;
    color: var(--gray-600);
    font-size: 11px;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.pagination a:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.pagination a.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.pagination__arrow {
    border-color: var(--line) !important;
    border-radius: 50%;
}

.pagination__arrow .icon {
    width: 14px;
    height: 14px;
}

/* Overlays: mobile menu */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    display: flex;
    flex-direction: column;
    padding: 22px var(--gutter) 28px;
    background: var(--ink);
    color: var(--white);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition:
        transform 0.45s var(--ease-out),
        opacity 0.3s var(--ease),
        visibility 0.45s;
}

.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu__logo img {
    width: 150px;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    margin: 36px 0;
}

.mobile-menu__nav a {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: clamp(22px, 6vw, 34px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.mobile-menu__nav a.mobile-menu__sub {
    padding-left: 20px;
    color: #c9c9c9;
    font-size: clamp(18px, 5vw, 28px);
    font-weight: 400;
}

.mobile-menu__nav a:hover {
    color: var(--white);
}

.mobile-menu__foot {
    margin-top: auto;
    padding-top: 30px;
    color: #8f8f8f;
    font-size: 12px;
}

.mobile-menu__label {
    margin-bottom: 8px;
    color: #666;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mobile-menu__phone {
    display: block;
    color: var(--white);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.mobile-menu__email {
    display: inline-block;
    margin-top: 4px;
    color: #cfcfcf;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.mobile-menu__socials {
    display: flex;
    gap: 18px;
    margin-top: 22px;
}

.mobile-menu__socials a {
    color: #cfcfcf;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu__address {
    margin-top: 18px;
    max-width: 300px;
    line-height: 1.5;
    color: #777;
}

/* Search */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: var(--white);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition:
        opacity 0.25s var(--ease),
        transform 0.35s var(--ease-out),
        visibility 0.35s;
}

.search-overlay.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.search-overlay__bar {
    border-bottom: 1px solid var(--line);
}

.search-overlay__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.search-overlay__content {
    padding-top: 34px;
    padding-bottom: 60px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--ink);
}

.search-form__icon {
    width: 26px;
    height: 26px;
    color: var(--gray-400);
}

.search-form__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: clamp(26px, 4.2vw, 52px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.045em;
    outline: none;
    appearance: none;
}

.search-form__input::placeholder {
    color: var(--gray-300);
}

.search-form__input::-webkit-search-cancel-button {
    display: none;
}

.search-form__hint {
    color: var(--gray-400);
    font-size: 10px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.search-overlay__body {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 60px;
    padding-top: 30px;
}

.search-popular .eyebrow {
    margin-bottom: 14px;
}

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

.search-chips button {
    padding: 8px 11px;
    border: 1px solid var(--line);
    color: var(--gray-600);
    font-size: 11px;
    text-align: left;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.search-chips button:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--gray-50);
}

.search-results {
    min-height: 120px;
}

.search-results__label {
    margin-bottom: 12px;
    color: var(--gray-400);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.search-result {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}

.search-result:first-of-type {
    border-top: 1px solid var(--line-soft);
}

.search-result__media {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    background: var(--gray-100);
}

.search-result__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    mix-blend-mode: multiply;
}

.search-result__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.search-result__category {
    color: var(--gray-400);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.search-result__name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.search-result__price {
    font-size: 12px;
    color: var(--gray-600);
}

.search-result__arrow {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gray-400);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.search-result__arrow .icon {
    width: 14px;
    height: 14px;
}

.search-result:hover .search-result__arrow {
    background: var(--ink);
    color: var(--white);
}

.search-empty {
    padding: 28px 0;
    color: var(--gray-500);
    font-size: 13px;
}

/* Cart popover */

.cart-pop {
    position: absolute;
    top: calc(100% + 14px);
    right: -8px;
    z-index: 60;
    width: 390px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-lift);
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.2s var(--ease),
        transform 0.28s var(--ease-out),
        visibility 0.2s;
}

.cart-pop.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.cart-pop__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 12px 18px;
    border-bottom: 1px solid var(--line);
}

.cart-pop__title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.cart-pop__count {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    margin-left: 5px;
    padding: 0 5px;
    border: 1px solid var(--line-strong);
    border-radius: var(--pill);
    color: var(--gray-500);
    font-size: 9px;
    vertical-align: 1px;
}

.cart-pop__body {
    max-height: 300px;
    overflow-y: auto;
}

.cart-pop__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 30px 24px;
    text-align: center;
}

.cart-pop__empty-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    color: var(--gray-400);
}

.cart-pop__empty p {
    font-size: 13px;
    font-weight: 600;
}

.cart-pop__empty span {
    color: var(--gray-500);
    font-size: 11px;
    line-height: 1.45;
}

.cart-pop__empty .btn {
    margin-top: 12px;
}

.cart-line {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line-soft);
}

.cart-line__media {
    width: 54px;
    height: 54px;
    background: var(--gray-100);
}

.cart-line__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    mix-blend-mode: multiply;
}

.cart-line__body {
    min-width: 0;
}

.cart-line__name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.cart-line__config {
    margin-top: 2px;
    color: var(--gray-500);
    font-size: 9px;
    line-height: 1.35;
}

.cart-line__controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.cart-line__qty {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--gray-600);
    font-size: 10px;
}

.cart-line__qty button {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1px solid var(--line);
    color: var(--gray-500);
}

.cart-line__qty button:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.cart-line__qty .icon {
    width: 10px;
    height: 10px;
}

.cart-line__remove {
    color: var(--gray-400);
    font-size: 9px;
    border-bottom: 1px solid var(--line);
}

.cart-line__remove:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.cart-line__price {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.cart-pop__foot {
    padding: 14px 18px 18px;
    background: var(--gray-50);
    border-top: 1px solid var(--line);
}

.cart-pop__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
}

.cart-pop__total strong {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.cart-pop__note {
    margin: 3px 0 12px;
    color: var(--gray-500);
    font-size: 9.5px;
}

.cart-pop__link {
    display: block;
    margin-bottom: 10px;
    color: var(--gray-500);
    font-size: 10px;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cart-pop__link:hover {
    color: var(--ink);
}

/* Cookie banner */

.cookie-banner {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 250;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: min(420px, calc(100vw - 48px));
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-lift);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__title {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.cookie-banner__text {
    margin-top: 6px;
    color: var(--gray-600);
    font-size: 11.5px;
    line-height: 1.55;
}

.cookie-banner__text a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__accept {
    align-self: flex-start;
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        padding: 16px;
    }
}

/* Toast */

.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: var(--z-toast);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(92vw, 480px);
    padding: 12px 18px;
    background: var(--ink);
    color: var(--white);
    font-size: 12px;
    line-height: 1.4;
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 16px);
    transition:
        opacity 0.25s var(--ease),
        transform 0.35s var(--ease-out),
        visibility 0.35s;
}

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

.toast .icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-lightbox);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #080808;
    color: var(--white);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.lightbox__top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.lightbox__counter {
    color: #aaa;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: var(--white);
    transform: translateY(-50%);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.lightbox__nav:hover {
    background: var(--white);
    color: var(--ink);
}

.lightbox__nav:disabled {
    opacity: 0.2;
    pointer-events: none;
}

.lightbox__nav--prev {
    left: 28px;
}

.lightbox__nav--next {
    right: 28px;
}

.lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100% - 120px);
    padding: 64px 100px 100px;
}

.lightbox__figure img {
    max-width: 100%;
    max-height: calc(100vh - 300px);
    object-fit: contain;
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-out);
}

.lightbox.is-ready .lightbox__figure img {
    opacity: 1;
    transform: none;
}

.lightbox__figure figcaption {
    margin-top: 16px;
    color: #9b9b9b;
    font-size: 10px;
    text-align: center;
}

.lightbox__thumbs {
    position: absolute;
    bottom: 20px;
    left: 50%;
    display: flex;
    gap: 7px;
    max-width: 90vw;
    padding: 5px;
    overflow-x: auto;
    transform: translateX(-50%);
}

.lightbox__thumb {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #151515;
    opacity: 0.65;
    transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.lightbox__thumb:hover,
.lightbox__thumb.is-active {
    opacity: 1;
    border-color: var(--white);
}

/* 404 */

.not-found {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 180px);
    padding: 80px 0;
}

.not-found__inner {
    max-width: 760px;
}

.not-found .display {
    margin: 20px 0 24px;
}

.not-found .lead {
    max-width: 500px;
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

/* Responsive components */

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .search-overlay__body {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .product-grid,
    .product-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 18px;
    }

    .cards-section {
        padding: 64px 0;
    }

    .search-overlay__body {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .search-form__hint {
        display: none;
    }

    .search-popular {
        order: 2;
    }

    .search-results {
        order: 1;
    }

    .lightbox__figure {
        padding-inline: 70px;
    }

    .lightbox__nav--prev {
        left: 14px;
    }

    .lightbox__nav--next {
        right: 14px;
    }

    .steps {
        gap: 0 28px;
    }

    .tabs__nav {
        gap: 26px;
    }
}

@media (max-width: 768px) {
    .breadcrumbs ol {
        flex-wrap: wrap;
    }

    .product-grid,
    .product-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 14px;
    }

    .product-card__media img {
        padding: 9%;
    }

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

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

    .product-card__feature {
        display: none;
    }

    .tabs__panels {
        padding-top: 28px;
    }

    .tabs__btn {
        padding-bottom: 14px;
        font-size: 12px;
    }

    .tabs__nav {
        gap: 22px;
    }

    .steps,
    .delivery-grid {
        grid-template-columns: 1fr;
    }

    .step:nth-last-child(1):nth-child(odd) {
        grid-column: auto;
    }

    .cart-pop {
        position: fixed;
        top: auto;
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-height: 75vh;
        overflow-y: auto;
        z-index: var(--z-overlay);
    }

    .cart-pop__body {
        max-height: 38vh;
    }

    .lightbox {
        display: none;
    }

    .search-overlay__bar-inner {
        min-height: 58px;
    }

    .search-overlay__content {
        padding-top: 24px;
    }

    .search-form {
        gap: 12px;
        padding-bottom: 14px;
    }

    .search-form__icon {
        width: 20px;
        height: 20px;
    }

    .search-result {
        grid-template-columns: 54px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .search-result__media {
        width: 54px;
        height: 54px;
    }

    .badge {
        min-height: 24px;
        font-size: 7.5px;
    }
}
