@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap');

:root {
    --blue: #2358f6;
    --blue-soft: #eef4ff;
    --blue-2: #20aeea;
    --orange: #ff7a00;
    --orange-soft: #fff4ea;
    --dark: #111a36;
    --muted: #707a92;
    --card: rgba(255,255,255,.88);
    --card-solid: #ffffff;
    --border: rgba(255,255,255,.84);
    --shadow: 0 22px 56px rgba(17,26,54,.08);
    --shadow-soft: 0 16px 40px rgba(17,26,54,.05);
    --radius: 24px;
    --radius-sm: 18px;
    --container: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--dark);
    background:
        radial-gradient(circle at 10% 10%, rgba(255,122,0,.08), transparent 24%),
        radial-gradient(circle at 92% 8%, rgba(35,88,246,.11), transparent 24%),
        linear-gradient(180deg, #fcfaf7 0%, #f7f8fc 100%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.shell {
    width: min(var(--container), calc(100% - clamp(16px, 4vw, 72px)));
    margin: clamp(10px, 2vw, 24px) auto 64px;
}

.page-card {
    border-radius: clamp(18px, 3vw, 32px);
    background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.68));
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 24px 90px rgba(17,26,54,.08);
    backdrop-filter: blur(14px);
    padding: clamp(12px, 2vw, 30px);
    overflow: hidden;
}

.logo,
.nav,
.button,
.section-head h2,
.hero h1,
.catalog-hero h1,
.product-info h1,
.checkout-copy h1,
.product b,
.category b,
.feature b,
.catalog-sidebar h2 {
    font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
}

.header {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo {
    font-size: clamp(28px, 2.6vw, 38px);
    font-weight: 800;
    letter-spacing: -.055em;
    white-space: nowrap;
}
.logo span { color: var(--orange); }

.nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 28px);
    font-size: 15px;
    font-weight: 700;
}

.nav a {
    opacity: .94;
    transition: color .18s ease, opacity .18s ease, transform .18s ease;
}

.nav a:hover {
    color: var(--blue);
    opacity: 1;
    transform: translateY(-1px);
}

.nav a:first-child {
    color: #fff;
    background: var(--blue);
    padding: 13px 26px;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(35,88,246,.25);
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(17,26,54,.08);
    background: rgba(255,255,255,.82);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    color: var(--dark);
}

.icon-button img {
    width: 20px;
    height: 20px;
}

.icon-button--cart { margin-left: 2px; }
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.icon-button--menu { display: none; }



.hero-slider {
    position: relative;
    margin-top: 12px;
    min-height: clamp(420px, 38vw, 560px);
    border-radius: 28px;
    overflow: hidden;
    background: #eef2f8;
    box-shadow: var(--shadow);
}
.hero-slider__track {
    position: relative;
    min-height: inherit;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility .45s ease;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.hero-slide__media,
.hero-slide__media picture,
.hero-slide__media img {
    width: 100%;
    height: 100%;
}
.hero-slide__media {
    position: absolute;
    inset: 0;
}
.hero-slide__media img {
    object-fit: cover;
    object-position: center;
}
.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.08));
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.hero-slide__cta-wrap {
    position: absolute;
    z-index: 4;
    left: clamp(18px, 2vw, 28px);
    bottom: clamp(68px, 8vw, 92px);
}
.hero-slide__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 24px;
    border-radius: 14px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.85);
    color: var(--dark);
    font-weight: 800;
    box-shadow: 0 18px 34px rgba(17,26,54,.12);
    backdrop-filter: blur(8px);
}
.hero-slide__cta:hover {
    transform: translateY(-1px);
}
.hero-slider__nav {
    position: absolute;
    z-index: 4;
    left: clamp(20px, 3vw, 34px);
    right: clamp(20px, 3vw, 34px);
    bottom: clamp(16px, 2vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}
.hero-slider__dots,
.hero-slider__arrows {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}
.hero-slider__dots {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(255,255,255,.78);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}
.hero-slider__dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(17,26,54,.18);
}
.hero-slider__dot.is-active {
    width: 28px;
    background: var(--blue);
}
.hero-slider__arrow {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.84);
    color: var(--dark);
    font-size: 28px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}
.mini-banners { display: none; }
.hero {
    margin-top: 10px;
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(340px, 1.2fr);
    gap: 18px;
    align-items: stretch;
}

.hero-copy--card,
.hero-media,
.mini-banner,
.feature,
.category,
.product,
.catalog-sidebar,
.product-gallery,
.product-info,
.checkout-copy,
.checkout-form,
.catalog-hero,
.empty-state {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-copy--card {
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 46px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(320px, 34vw, 480px);
    background:
        radial-gradient(circle at 10% 10%, rgba(255,122,0,.06), transparent 20%),
        linear-gradient(180deg, #fff9f3 0%, #ffffff 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 0 0 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 5vw, 72px);
    line-height: .96;
    letter-spacing: -.06em;
}
.hero h1 strong {
    display: block;
    color: var(--orange);
}
.hero p {
    margin: 0 0 24px;
    max-width: 520px;
    color: #4f5a74;
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 1.55;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 52px;
    padding: 14px 26px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), #4878ff);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
    box-shadow: 0 16px 34px rgba(35,88,246,.26);
    transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 38px rgba(35,88,246,.3);
}

.hero-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: clamp(320px, 34vw, 480px);
    background: linear-gradient(140deg, #f4f8ff 0%, #eef2ff 100%);
}
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 18%, rgba(255,255,255,.42), transparent 24%),
        radial-gradient(circle at 90% 12%, rgba(76,135,255,.12), transparent 22%),
        linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,0));
    pointer-events: none;
}
.hero-media picture,
.hero-media img {
    width: 100%;
    height: 100%;
}
.hero-media img {
    object-fit: cover;
    object-position: center;
}

.mini-banners {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.mini-banner {
    position: relative;
    min-height: 210px;
    border-radius: var(--radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
}
.mini-banner__copy {
    position: relative;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.78));
}
.mini-banner__copy span {
    color: var(--orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.mini-banner__copy b {
    margin-top: 8px;
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1;
    letter-spacing: -.05em;
}
.mini-banner__copy p {
    margin: 10px 0 18px;
    color: var(--muted);
    line-height: 1.45;
}
.mini-banner__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(35,88,246,.08);
    color: var(--blue);
    font-weight: 800;
}
.mini-banner__media {
    position: relative;
    overflow: hidden;
}
.mini-banner__media picture,
.mini-banner__media img {
    width: 100%;
    height: 100%;
}
.mini-banner__media img {
    object-fit: cover;
    object-position: center;
}

.features {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature,
.category,
.product,
.catalog-sidebar,
.product-gallery,
.product-info,
.checkout-copy,
.checkout-form,
.empty-state {
    border-radius: var(--radius-sm);
}

.feature {
    min-width: 0;
    padding: 18px 18px 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.feature b {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}
.feature span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}
.emoji {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(180deg, #ffffff, #f3f7ff);
    box-shadow: 0 10px 28px rgba(17,26,54,.08);
}
.emoji img {
    width: 28px;
    height: 28px;
}

.section-head {
    margin: 34px 4px 16px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}
.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 2.5vw, 36px);
    letter-spacing: -.05em;
}
.section-head a {
    color: var(--blue);
    font-weight: 800;
}

.categories {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.category {
    min-height: 218px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    transition: transform .18s ease, box-shadow .18s ease;
}
.category:hover,
.product:hover { transform: translateY(-3px); box-shadow: 0 26px 58px rgba(17,26,54,.11); }
.category-image {
    width: 100%;
    height: 118px;
    margin: auto auto 16px;
    display: grid;
    place-items: center;
}
.category-image img {
    width: 100%;
    max-width: 140px;
    max-height: 108px;
    object-fit: contain;
}
.mock {
    width: 112px;
    height: 118px;
    border-radius: 24px;
    background: linear-gradient(145deg, #fff, #dceaff);
    box-shadow: 0 18px 42px rgba(17,26,54,.12);
}
.category b {
    font-size: 18px;
    line-height: 1.2;
}
.category span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.product {
    position: relative;
    min-height: 290px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    transition: transform .18s ease, box-shadow .18s ease;
}
.badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    min-height: 28px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #7c5cff;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
}
.product .photo {
    display: block;
    height: 162px;
    margin-bottom: 16px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 25% 25%, rgba(76,135,255,.22), transparent 18%),
        linear-gradient(145deg, #eef4ff, #ffffff);
}
.product b {
    display: block;
    font-size: 17px;
    line-height: 1.25;
}
.product p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}
.card-price { margin-top: 12px; }
.card-price span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    text-decoration: line-through;
}
.card-price strong {
    display: block;
    font-size: 20px;
    letter-spacing: -.03em;
}

.catalog-hero {
    margin-top: 18px;
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 42px);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(140deg, #fff8ef 0%, #f7fbff 54%, #f4f1ff 100%);
}
.catalog-hero h1 {
    margin: 6px 0 10px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -.055em;
}
.catalog-hero p {
    margin: 0;
    max-width: 620px;
    color: #4f5a74;
    line-height: 1.5;
}

.catalog-layout {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.catalog-sidebar {
    position: sticky;
    top: 18px;
    padding: 20px;
}
.catalog-sidebar h2 {
    margin: 0 0 14px;
    font-size: 20px;
    letter-spacing: -.03em;
}
.filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.74);
    font-weight: 800;
}
.filter-link.active {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 12px 28px rgba(35,88,246,.2);
}
.catalog-content { min-width: 0; }
.catalog-topline {
    margin: 0 4px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
}
.catalog-topline p { margin: 0; }
.catalog-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pagination-wrap { margin-top: 24px; color: var(--muted); }
.empty-state {
    padding: 44px;
    text-align: center;
}
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { margin: 0; color: var(--muted); }

.product-detail {
    margin-top: 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
    gap: 30px;
    align-items: start;
}
.product-gallery { padding: 24px; }
.product-main-photo {
    min-height: clamp(340px, 40vw, 540px);
    border-radius: 22px;
    background: linear-gradient(145deg, #eef6ff, #ffffff);
    overflow: hidden;
    display: grid;
    place-items: center;
}
.product-main-photo img { width: 100%; height: 100%; object-fit: contain; }
.product-photo-placeholder {
    color: rgba(17,26,54,.16);
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 800;
    letter-spacing: -.06em;
}
.product-thumbs {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
}
.product-thumbs img {
    width: 82px;
    height: 82px;
    border-radius: 14px;
    object-fit: cover;
    background: #fff;
    border: 1px solid rgba(17,26,54,.06);
}
.product-info { padding: clamp(22px, 3vw, 36px); }
.breadcrumb-link { color: var(--blue); font-weight: 800; }
.product-badge-row {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
.status-pill.muted { background: rgba(35,88,246,.08); color: var(--blue); }
.product-info h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -.06em;
}
.product-info p { color: #4f5a74; line-height: 1.58; }
.product-specs {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.product-specs div {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.72);
}
.product-specs span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 13px;
}
.product-buy-box {
    margin-top: 26px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-radius: 18px;
    border: 1px solid rgba(17,26,54,.06);
    background: rgba(255,255,255,.8);
}
.product-buy-box strong { display: block; font-size: 30px; letter-spacing: -.04em; }
.old-price { display: block; margin-bottom: 4px; color: var(--muted); text-decoration: line-through; }

.checkout-page {
    margin-top: 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
    gap: 24px;
}
.checkout-copy,
.checkout-form { padding: clamp(24px, 3vw, 42px); }
.checkout-copy h1 {
    margin: 8px 0 14px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -.06em;
}
.checkout-copy p { color: #4f5a74; line-height: 1.58; }
.selected-product {
    margin-top: 22px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.74);
}
.checkout-form {
    display: grid;
    gap: 14px;
}
.checkout-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 13px;
    border: 1px solid rgba(17,26,54,.1);
    background: rgba(255,255,255,.84);
    color: var(--dark);
    outline: none;
}
.checkout-form textarea {
    min-height: 92px;
    resize: vertical;
}
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(35,88,246,.1);
}
.simple-hero { min-height: 260px; }


@media (max-width: 1180px) {
    .hero-slider { min-height: 470px; }
}

@media (max-width: 900px) {
    .hero-slider {
        min-height: 580px;
        border-radius: 22px;
    }
    .hero-slide__overlay {
        background: linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,.06) 52%, rgba(255,255,255,.16) 100%);
    }
    .hero-slide__cta-wrap {
        left: 14px;
        right: 14px;
        bottom: 72px;
    }
    .hero-slide__cta {
        width: 100%;
        min-height: 52px;
        justify-content: center;
    }
    .hero-slider__nav {
        left: 12px;
        right: 12px;
        bottom: 10px;
    }
    .hero-slider__dots { padding: 7px 10px; }
    .hero-slider__arrow {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
}

@media (max-width: 420px) {
    .hero-slider { min-height: 540px; }
    .hero-slide__cta-wrap {
        left: 12px;
        right: 12px;
        bottom: 68px;
    }
}
@media (max-width: 1180px) {
    .nav { gap: 14px; font-size: 14px; }
    .hero { grid-template-columns: minmax(280px, .95fr) minmax(300px, 1.05fr); }
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .shell { width: min(560px, calc(100% - 24px)); margin-top: 12px; }
    .page-card { padding: 14px; border-radius: 22px; }
    .header { min-height: 58px; }
    .nav { display: none; }
    .icon-button--menu { display: inline-flex; }
    .hero {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .hero-media {
        order: -1;
        min-height: 300px;
    }
    .hero-copy--card {
        min-height: auto;
        padding: 24px 20px;
    }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 15px; max-width: none; }
    .button { width: 100%; }
    .mini-banners {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .mini-banner {
        min-height: 184px;
        grid-template-columns: 1fr 130px;
    }
    .mini-banner__copy { padding: 18px; }
    .mini-banner__copy b { font-size: 24px; }
    .features { grid-template-columns: 1fr; gap: 10px; }
    .categories,
    .products {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
    }
    .category,
    .product {
        min-width: 196px;
        scroll-snap-align: start;
    }
    .section-head a { display: none; }
    .catalog-hero { display: block; padding: 24px 20px; }
    .catalog-hero h1 { font-size: 34px; }
    .catalog-hero p { font-size: 14px; }
    .catalog-hero .button { margin-top: 18px; }
    .catalog-layout { display: block; }
    .catalog-sidebar {
        position: relative;
        top: 0;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        margin-bottom: 18px;
        padding: 12px;
    }
    .catalog-sidebar h2 { display: none; }
    .filter-link { white-space: nowrap; margin-top: 0; }
    .catalog-products { display: grid; grid-template-columns: 1fr; }
    .catalog-products .product { min-width: 0; }
    .product-detail,
    .checkout-page { display: block; }
    .product-gallery { padding: 14px; }
    .product-main-photo { min-height: 320px; }
    .product-info,
    .checkout-form { margin-top: 16px; padding: 22px; }
    .product-info h1 { font-size: 34px; }
    .product-specs { grid-template-columns: 1fr; }
    .product-buy-box { display: block; }
    .product-buy-box .button,
    .checkout-form .button { margin-top: 14px; width: 100%; }
}

@media (max-width: 420px) {
    .shell { width: calc(100% - 16px); }
    .page-card { padding: 10px; }
    .logo { font-size: 25px; }
    .header-actions { gap: 8px; }
    .icon-button { width: 40px; height: 40px; border-radius: 12px; }
    .hero-media { min-height: 260px; }
    .hero h1 { font-size: 32px; }
    .mini-banner { grid-template-columns: 1fr 110px; }
    .mini-banner__copy b { font-size: 22px; }
    .category { min-width: 168px; }
    .product { min-width: 202px; }
    .catalog-products .product { min-width: 0; }
    .product-buy-box strong { font-size: 25px; }
}

@media (min-width: 1600px) {
    .shell { width: min(1540px, calc(100% - 96px)); }
    .page-card { padding: 34px; }
    .hero-copy--card,
    .hero-media { min-height: 510px; }
    .catalog-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Stage 5: responsive full-banner slider, drawer menu, filters, product images */
.hero-slider {
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: 680px;
}
.hero-slider__track { height: 100%; min-height: 0; }
.hero-slide__media img { object-fit: cover; object-position: center; }
.hero-slide__cta-wrap { left: clamp(18px, 2.4vw, 34px); bottom: clamp(70px, 7vw, 96px); }
.hero-slide__cta { background: rgba(255,255,255,.92); }
body.menu-open { overflow: hidden; }
.mobile-menu { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.mobile-menu.is-open { visibility: visible; pointer-events: auto; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(17,26,54,.38); opacity: 0; transition: opacity .2s ease; }
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(390px, calc(100% - 34px));
    height: 100%;
    padding: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: -20px 0 60px rgba(17,26,54,.18);
    transform: translateX(105%);
    transition: transform .24s ease;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__head .icon-button { font-size: 30px; line-height: 1; }
.mobile-menu__nav { display: grid; gap: 8px; }
.mobile-menu__nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f6f8fc;
    font-weight: 800;
}
.mobile-menu__nav a:first-child { background: var(--blue); color: white; }
.mobile-menu__cta { width: 100%; margin-top: auto; }
.product .photo { overflow: hidden; display: grid; place-items: center; }
.product .photo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .2s ease; }
.product:hover .photo img { transform: scale(1.035); }
.catalog-filters { margin-top: 18px; display: grid; gap: 10px; }
.catalog-filters label { display: grid; gap: 6px; color: var(--dark); font-weight: 800; font-size: 13px; }
.catalog-filters input, .catalog-filters select {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(17,26,54,.10);
    border-radius: 11px;
    background: rgba(255,255,255,.8);
    padding: 9px 10px;
    color: var(--dark);
}
.filter-submit, .filter-reset {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.filter-submit { background: var(--blue); color: white; }
.filter-reset { background: rgba(35,88,246,.08); color: var(--blue); }
.selected-product { align-items: center; justify-content: flex-start; }
.selected-product img { width: 90px; height: 72px; object-fit: contain; border-radius: 14px; background: #fff; }
.form-errors { padding: 12px 14px; border-radius: 13px; background: #fff1f1; color: #b42318; font-weight: 700; }
.form-errors p { margin: 0; }
.thank-you b { color: var(--blue); }
.product-main-photo img { padding: 24px; }

@media (max-width: 900px) {
    .hero-slider {
        aspect-ratio: 16 / 9;
        min-height: 0;
        max-height: none;
    }
    .hero-slide__media img { object-fit: cover; }
    .hero-slide__cta-wrap { left: 12px; right: auto; bottom: 52px; }
    .catalog-sidebar { display: block; }
    .catalog-sidebar .filter-link { margin-top: 8px; }
    .catalog-filters { margin-top: 16px; }
    .mobile-menu__panel { width: min(390px, calc(100% - 18px)); }
}

@media (max-width: 420px) {
    .hero-slide__cta-wrap { left: 12px; bottom: 48px; }
    .hero-slide__cta { min-height: 48px; }
}

/* Stage 6: desktop hero layout with slider left and feature cards right */
.home-hero-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 16px;
    align-items: stretch;
}

.home-hero-grid .hero-slider {
    margin-top: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: none;
    min-height: 0;
    border-radius: 24px;
}

.home-hero-grid .hero-slide__media {
    background: transparent;
}

.home-hero-grid .hero-slide__media img {
    object-fit: cover;
    object-position: center;
    background: transparent;
}

.home-hero-grid .feature-rail {
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-self: stretch;
}

.home-hero-grid .feature {
    min-height: 0;
    padding: 16px;
    align-items: flex-start;
}

.home-hero-grid .feature b {
    font-size: 15px;
}

.home-hero-grid .feature span {
    font-size: 13px;
}

.home-hero-grid .emoji {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
}

.home-hero-grid .emoji img {
    width: 25px;
    height: 25px;
}

@media (min-width: 1200px) {
    .home-hero-grid {
        grid-template-columns: minmax(0, 1fr) 310px;
    }
}

@media (max-width: 1100px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-grid .feature-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .home-hero-grid {
        display: block;
    }

    .home-hero-grid .hero-slider {
        aspect-ratio: 16 / 9;
        border-radius: 22px;
    }

    .home-hero-grid .hero-slide__media img {
        object-fit: cover;
    }

    .home-hero-grid .feature-rail {
        margin-top: 12px;
        grid-template-columns: 1fr;
    }
}


/* Stage 10: smaller mobile hero CTA */
@media (max-width: 900px) {
    .hero-slide__cta-wrap {
        left: 16px;
        right: auto;
        bottom: 50px;
    }

    .hero-slide__cta {
        width: auto;
        min-height: 40px;
        padding: 9px 18px;
        border-radius: 12px;
        font-size: 13px;
        line-height: 1;
    }
}

@media (max-width: 420px) {
    .hero-slide__cta-wrap {
        left: 14px;
        bottom: 46px;
    }

    .hero-slide__cta {
        min-height: 38px;
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Stage 11: header drawer, catalog filters, checkout polish */
.mobile-menu__search {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: #f6f8fc;
}
.mobile-menu__search label {
    color: var(--dark);
    font-size: 13px;
    font-weight: 800;
}
.mobile-menu__search div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}
.mobile-menu__search input {
    min-width: 0;
    min-height: 42px;
    border: 1px solid rgba(17,26,54,.08);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    outline: none;
}
.mobile-menu__search button {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    padding: 0 14px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
}
.mobile-menu__nav h2 {
    margin: 6px 0 2px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.mobile-menu__nav--secondary a:first-of-type {
    background: #f6f8fc;
    color: var(--dark);
}
.mobile-menu__support {
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(35,88,246,.08), rgba(255,122,0,.08));
}
.mobile-menu__support b,
.mobile-menu__support span { display: block; }
.mobile-menu__support b { margin-bottom: 5px; font-weight: 900; }
.mobile-menu__support span { color: var(--muted); line-height: 1.45; font-size: 14px; }
.catalog-filter-box {
    margin-top: 18px;
}
.catalog-filter-box summary {
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
    font-weight: 900;
    list-style: none;
}
.catalog-filter-box summary::-webkit-details-marker { display: none; }
.catalog-filter-box summary::after {
    content: '⌄';
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(35,88,246,.08);
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.catalog-filter-box[open] summary::after { content: '⌃'; }
.filter-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.checkout-page--polished {
    align-items: stretch;
}
.checkout-steps {
    margin-top: 22px;
    display: grid;
    gap: 10px;
}
.checkout-steps div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 15px;
    background: rgba(255,255,255,.74);
}
.checkout-steps b {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.checkout-steps span { color: var(--dark); font-weight: 800; }
.selected-product--large {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid rgba(17,26,54,.06);
}
.selected-product--large img {
    width: 128px;
    height: 96px;
}
.selected-product--large span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.selected-product--large strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
}
.checkout-form__head h2 {
    margin: 0 0 6px;
    font-family: Manrope, Inter, sans-serif;
    font-size: 26px;
    letter-spacing: -.04em;
}
.checkout-form__head p,
.checkout-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 14px;
}
.form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.checkout-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(35,88,246,.07);
}
.checkout-summary-line span { color: var(--muted); font-weight: 800; }
.checkout-summary-line b { font-size: 20px; }

@media (max-width: 900px) {
    .mobile-menu__panel {
        overflow-y: auto;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }
    .catalog-filter-box {
        border-top: 1px solid rgba(17,26,54,.08);
        padding-top: 10px;
    }
    .catalog-sidebar .filter-link {
        display: inline-flex;
    }
    .catalog-filters {
        display: grid;
        grid-template-columns: 1fr;
    }
    .filter-grid-two,
    .form-grid-two {
        grid-template-columns: 1fr;
    }
    .selected-product--large {
        align-items: flex-start;
    }
    .selected-product--large img {
        width: 104px;
        height: 84px;
    }
    .checkout-steps div {
        padding: 11px;
    }
}

/* Stage 12: mobile catalog filters as bottom sheet */
.mobile-filter-button { display: none; }
.catalog-filter-panel { display: block; }
.catalog-filter-backdrop,
.catalog-filter-close { display: none; }
.catalog-filter-head h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -.03em;
}
.catalog-filter-actions {
    display: grid;
    gap: 10px;
}

@media (min-width: 901px) {
    .catalog-filter-panel {
        position: static;
        visibility: visible;
        pointer-events: auto;
    }
    .catalog-filter-sheet {
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }
    .catalog-filter-head {
        margin: 18px 0 6px;
    }
}

@media (max-width: 900px) {
    .mobile-filter-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        margin-top: 12px;
        border: 0;
        border-radius: 14px;
        background: var(--blue);
        color: #fff;
        font-weight: 800;
        box-shadow: 0 14px 30px rgba(35,88,246,.22);
    }

    .catalog-filter-panel {
        position: fixed;
        inset: 0;
        z-index: 120;
        display: block;
        visibility: hidden;
        pointer-events: none;
    }

    .catalog-filter-panel.is-open {
        visibility: visible;
        pointer-events: auto;
    }

    .catalog-filter-backdrop {
        position: absolute;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(17,26,54,.42);
        opacity: 0;
        transition: opacity .2s ease;
    }

    .catalog-filter-panel.is-open .catalog-filter-backdrop {
        opacity: 1;
    }

    .catalog-filter-sheet {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: min(86vh, 720px);
        overflow-y: auto;
        padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
        border-radius: 26px 26px 0 0;
        background: rgba(255,255,255,.98);
        box-shadow: 0 -24px 70px rgba(17,26,54,.18);
        transform: translateY(105%);
        transition: transform .24s ease;
    }

    .catalog-filter-panel.is-open .catalog-filter-sheet {
        transform: translateY(0);
    }

    .catalog-filter-head {
        position: sticky;
        top: -18px;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: -18px -18px 14px;
        padding: 16px 18px 12px;
        background: rgba(255,255,255,.98);
        border-bottom: 1px solid rgba(17,26,54,.06);
    }

    .catalog-filter-head:before {
        content: "";
        position: absolute;
        left: 50%;
        top: 7px;
        width: 44px;
        height: 4px;
        border-radius: 999px;
        background: rgba(17,26,54,.14);
        transform: translateX(-50%);
    }

    .catalog-filter-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 12px;
        background: #f5f7fb;
        color: var(--dark);
        font-size: 28px;
        line-height: 1;
    }

    .catalog-filters {
        gap: 12px;
    }

    .filter-grid-two {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .catalog-filter-actions {
        position: sticky;
        bottom: -18px;
        margin: 4px -18px -18px;
        padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.98);
        border-top: 1px solid rgba(17,26,54,.06);
    }

    body.filters-open {
        overflow: hidden;
    }
}
