:root {
    --page: #fbfbfc;
    --paper: #ffffff;
    --ink: #111216;
    --soft-ink: #30343b;
    --muted: #69707d;
    --line: #e3e6ec;
    --line-strong: #cfd5df;
    --shade: #f2f4f8;
    --shade-2: #eceff5;
    --brand: #cb2637;
    --brand-dark: #981729;
    --cyan: #00a4b5;
    --green: #0e8f68;
    --amber: #d99417;
    --shadow: 0 24px 70px rgba(17, 18, 22, 0.11);
    --soft-shadow: 0 14px 38px rgba(17, 18, 22, 0.08);
}

.store-theme-ocean {
    --brand: #006d9c;
    --brand-dark: #004c73;
    --cyan: #00a4b5;
    --green: #0e8f68;
    --amber: #d99417;
}

.store-theme-forest {
    --brand: #0e8f68;
    --brand-dark: #0a654d;
    --cyan: #1d7ed0;
    --green: #0e8f68;
    --amber: #c78a12;
}

.store-theme-amber {
    --brand: #d97706;
    --brand-dark: #a85605;
    --cyan: #0891b2;
    --green: #0e8f68;
    --amber: #d97706;
}

.store-theme-slate {
    --page: #121721;
    --paper: #1b2230;
    --ink: #f5f7fb;
    --soft-ink: #d7deea;
    --muted: #9aa6ba;
    --line: #303a4d;
    --line-strong: #43506a;
    --shade: #171e2a;
    --shade-2: #202838;
    --brand: #6ea2ff;
    --brand-dark: #4c7edb;
    --cyan: #45d3e8;
    --green: #34d399;
    --amber: #fbbf24;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --soft-shadow: 0 14px 38px rgba(0, 0, 0, 0.26);
}

.store-theme-slate .store-header,
.store-theme-slate .store-footer,
.store-theme-slate .product-card,
.store-theme-slate .filter-panel,
.store-theme-slate .empty-state,
.store-theme-slate .cart-items,
.store-theme-slate .checkout-form,
.store-theme-slate .order-summary,
.store-theme-slate .pager-link,
.store-theme-slate .pager-number,
.store-theme-slate .field-control,
.store-theme-slate .newsletter-inner,
.store-theme-slate .icon-link,
.store-theme-slate .cart-link {
    background: var(--paper);
}

.store-theme-slate .store-header,
.store-theme-slate .store-footer,
.store-theme-slate .product-card,
.store-theme-slate .filter-panel,
.store-theme-slate .empty-state,
.store-theme-slate .cart-items,
.store-theme-slate .checkout-form,
.store-theme-slate .order-summary,
.store-theme-slate .newsletter-inner {
    border-color: var(--line);
}

.store-theme-slate .store-search,
.store-theme-slate .filter-check label,
.store-theme-slate .product-card-image,
.store-theme-slate .newsletter-band,
.store-theme-slate .section-band-quiet,
.store-theme-slate .catalog-title {
    background: var(--shade);
}

.store-theme-slate .action-button-light {
    color: #111827;
}

.store-theme-slate .action-button-dark {
    color: #111827;
    border-color: var(--brand);
    background: var(--brand);
}

.store-theme-slate .action-button-dark:hover {
    color: #111827;
    background: var(--cyan);
    border-color: var(--cyan);
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(203, 38, 55, 0.05), rgba(255, 255, 255, 0) 420px),
        var(--page);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

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

button {
    cursor: pointer;
}

label {
    display: block;
}

.store-frame {
    width: min(100% - 40px, 1240px);
    margin-inline: auto;
}

.store-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(227, 230, 236, 0.86);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
}

.store-header-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    align-items: center;
    gap: 22px;
}

.store-brand,
.auth-brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--ink);
    font-weight: 900;
}

.store-brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--ink), var(--brand));
    box-shadow: 0 10px 22px rgba(203, 38, 55, 0.24);
    font-weight: 900;
}

.store-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.store-nav::-webkit-scrollbar {
    display: none;
}

.store-nav a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--soft-ink);
    font-size: 14px;
    font-weight: 800;
}

.store-nav a:hover {
    color: var(--brand);
    background: rgba(203, 38, 55, 0.08);
}

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

.store-search {
    width: min(28vw, 300px);
    min-width: 220px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--shade);
}

.store-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.store-search input::placeholder,
.field-control::placeholder,
.newsletter-inner input::placeholder {
    color: #8b93a1;
}

.store-search-mark,
.icon-bag,
.icon-user,
.icon-dashboard,
.service-check {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}

.store-search-mark {
    width: 15px;
    height: 15px;
    border: 2px solid var(--muted);
    border-radius: 50%;
}

.store-search-mark::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -2px;
    width: 7px;
    height: 2px;
    border-radius: 99px;
    background: var(--muted);
    transform: rotate(45deg);
}

.icon-link,
.cart-link {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--paper);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.icon-link:hover,
.cart-link:hover {
    color: var(--ink);
    border-color: rgba(203, 38, 55, 0.4);
    box-shadow: 0 10px 24px rgba(203, 38, 55, 0.1);
    transform: translateY(-1px);
}

.icon-user {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.icon-user::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 22px;
    height: 10px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    transform: translateX(-50%);
}

.icon-bag {
    width: 18px;
    height: 16px;
    margin-top: 4px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.icon-bag::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -9px;
    width: 10px;
    height: 9px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    transform: translateX(-50%);
}

.icon-dashboard {
    width: 20px;
    height: 18px;
}

.icon-dashboard::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 2px;
    width: 5px;
    height: 11px;
    border-radius: 2px 2px 0 0;
    background: currentColor;
    box-shadow: 7px -6px 0 currentColor, 14px -2px 0 currentColor;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: var(--brand);
    font-size: 11px;
    font-weight: 900;
}

.notice-band {
    margin-top: 16px;
}

.store-notice {
    padding: 14px 16px;
    border: 1px solid rgba(14, 143, 104, 0.22);
    border-radius: 8px;
    color: #0b684d;
    background: rgba(14, 143, 104, 0.08);
    font-weight: 800;
}

.store-hero {
    background: #0c0e12;
}

.story-slider {
    position: relative;
    min-height: clamp(560px, 78vh, 760px);
    overflow: hidden;
    color: #fff;
}

.story-track,
.story-slide {
    position: absolute;
    inset: 0;
}

.story-slide {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 1.2s ease, visibility 0.7s ease;
}

.story-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 24%, rgba(0, 164, 181, 0.28), rgba(0, 164, 181, 0) 28%),
        linear-gradient(90deg, rgba(6, 7, 10, 0.84), rgba(9, 11, 16, 0.38) 48%, rgba(9, 11, 16, 0.14));
}

.hero-content {
    position: absolute;
    left: max(28px, calc((100vw - 1240px) / 2));
    top: 50%;
    z-index: 2;
    width: min(680px, calc(100% - 56px));
    transform: translateY(-50%);
}

.hero-content h1,
.promo-content h2 {
    margin: 0 0 18px;
    font-size: clamp(44px, 7vw, 86px);
    line-height: 0.96;
    font-weight: 900;
}

.hero-content p,
.promo-content p {
    max-width: 580px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
}

.hero-commerce-panel {
    position: absolute;
    right: max(28px, calc((100vw - 1240px) / 2));
    bottom: 92px;
    z-index: 3;
    width: min(320px, calc(100% - 56px));
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-commerce-panel span {
    color: #97f2ff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-commerce-panel strong {
    display: block;
    margin-top: 4px;
    font-size: 24px;
    font-weight: 900;
}

.hero-commerce-panel p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.76);
}

.story-controls {
    position: absolute;
    left: max(28px, calc((100vw - 1240px) / 2));
    right: max(28px, calc((100vw - 1240px) / 2));
    bottom: 32px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
}

.story-controls > button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(10px);
}

.story-controls > button::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 auto;
    border: solid currentColor;
    border-width: 2px 2px 0 0;
}

.story-controls > button[data-slide="prev"]::before {
    transform: translateX(2px) rotate(-135deg);
}

.story-controls > button[data-slide="next"]::before {
    transform: translateX(-2px) rotate(45deg);
}

.story-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.story-dots button {
    width: 34px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.story-dots button.is-active {
    background: #fff;
}

.section-band {
    padding: 84px 0;
}

.section-band-quiet {
    background: linear-gradient(180deg, #fff, var(--shade));
}

.section-kicker,
.section-heading span,
.promo-content span,
.newsletter-inner span,
.catalog-title span {
    display: block;
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-content .section-kicker,
.promo-content .section-kicker {
    color: #97f2ff;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading h1,
.section-heading h2,
.catalog-title h1,
.product-summary h1,
.empty-state h1,
.empty-state h2,
.auth-title {
    margin: 0;
    color: var(--ink);
    font-weight: 900;
    line-height: 1.04;
}

.section-heading h1,
.catalog-title h1 {
    font-size: clamp(36px, 5vw, 58px);
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 50px);
}

.flex-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.action-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.action-button:hover {
    color: var(--ink);
    transform: translateY(-1px);
    box-shadow: var(--soft-shadow);
}

.action-button-dark {
    color: #fff;
    border-color: var(--ink);
    background: var(--ink);
}

.action-button-dark:hover {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.action-button-light {
    color: var(--ink);
    background: #fff;
}

.action-button-light:hover {
    color: #fff;
    background: var(--brand);
}

.action-button-ghost {
    border-color: var(--line-strong);
    background: transparent;
}

.action-button-ghost:hover {
    border-color: rgba(203, 38, 55, 0.38);
    background: rgba(203, 38, 55, 0.06);
}

.action-button-wide {
    width: 100%;
}

.field-control {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    outline: 0;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea.field-control {
    min-height: 118px;
    padding-top: 12px;
    resize: vertical;
}

.field-control:focus {
    border-color: rgba(203, 38, 55, 0.55);
    box-shadow: 0 0 0 4px rgba(203, 38, 55, 0.1);
}

.has-error .field-control {
    border-color: var(--brand);
}

.field-error {
    margin-top: 7px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    color: #fff;
    background: #111;
    transform: perspective(900px) rotateX(var(--motion-y, 0deg)) rotateY(var(--motion-x, 0deg));
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile::after,
.product-card::after,
.service-item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at var(--motion-glow-x, 50%) var(--motion-glow-y, 50%), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 34%);
    transition: opacity 0.18s ease;
}

.category-tile:hover,
.product-card:hover,
.service-item:hover {
    box-shadow: var(--shadow);
}

.category-tile:hover::after,
.product-card:hover::after,
.service-item:hover::after {
    opacity: 1;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    transform: scale(1.02);
    transition: transform 0.36s ease, opacity 0.36s ease;
}

.category-tile:hover img {
    opacity: 0.92;
    transform: scale(1.08);
}

.category-tile span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.08;
}

.product-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 304px);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scroll-snap-type: x mandatory;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-scroll::-webkit-scrollbar {
    display: none;
}

.product-scroll.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.product-scroll-item {
    scroll-snap-align: start;
}

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

.product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transform: perspective(1000px) rotateX(var(--motion-y, 0deg)) rotateY(var(--motion-x, 0deg));
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    border-color: rgba(203, 38, 55, 0.24);
}

.product-card-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background:
        linear-gradient(135deg, rgba(203, 38, 55, 0.08), rgba(0, 164, 181, 0.08)),
        var(--shade);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.product-flag {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--brand);
    font-size: 12px;
    font-weight: 900;
}

.product-flag-light {
    color: #062f35;
    background: #9df2ff;
}

.product-card-body {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
}

.product-category {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-card h3 {
    margin: 7px 0 0;
    color: var(--ink);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.28;
}

.product-card-bottom,
.price-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price-line {
    justify-content: flex-start;
    flex-wrap: wrap;
    font-size: 17px;
}

.old-price {
    color: var(--muted);
    font-size: 14px;
    text-decoration: line-through;
}

.product-add-button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.18s ease, background 0.18s ease;
}

.product-add-button:hover {
    background: var(--brand);
    transform: rotate(90deg);
}

.promo-band {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #0c0e12;
}

.promo-band img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(203, 38, 55, 0.28), rgba(203, 38, 55, 0) 28%),
        linear-gradient(90deg, rgba(5, 6, 10, 0.86), rgba(5, 6, 10, 0.22));
}

.promo-content {
    position: relative;
    z-index: 2;
    width: min(560px, calc(100% - 40px));
    margin-left: max(20px, calc((100vw - 1240px) / 2));
}

.service-strip {
    padding: 62px 0;
    color: #fff;
    background:
        radial-gradient(circle at 20% 0, rgba(0, 164, 181, 0.2), rgba(0, 164, 181, 0) 28%),
        #101216;
}

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

.service-item {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transform: perspective(900px) rotateX(var(--motion-y, 0deg)) rotateY(var(--motion-x, 0deg));
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-item:hover {
    border-color: rgba(151, 242, 255, 0.28);
}

.service-check {
    width: 26px;
    height: 26px;
    border: 2px solid #97f2ff;
    border-radius: 50%;
}

.service-check::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 5px;
    width: 8px;
    height: 13px;
    border: solid #97f2ff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.service-item h3 {
    margin: 14px 0 7px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.service-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-band {
    padding: 82px 0;
    background:
        linear-gradient(135deg, rgba(203, 38, 55, 0.08), rgba(0, 164, 181, 0.08)),
        var(--shade);
}

.newsletter-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
    align-items: center;
    gap: 28px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--soft-shadow);
}

.newsletter-inner h2 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.05;
}

.newsletter-inner p {
    margin: 0;
    color: var(--muted);
}

.newsletter-inner form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.newsletter-inner input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    background: #fff;
}

.catalog-title {
    padding: 72px 0 36px;
    background:
        linear-gradient(135deg, rgba(203, 38, 55, 0.08), rgba(255, 255, 255, 0) 55%),
        var(--shade);
}

.catalog-title p {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.catalog-shell {
    padding: 42px 0 84px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 294px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.catalog-filters {
    min-width: 0;
}

.filter-panel {
    position: sticky;
    top: 96px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(17, 18, 22, 0.05);
}

.filter-head,
.catalog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filter-head {
    margin-bottom: 12px;
}

.filter-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.filter-head a {
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
}

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

.filter-group > label {
    margin-bottom: 8px;
    color: var(--soft-ink);
    font-size: 13px;
    font-weight: 900;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filter-options {
    display: grid;
    gap: 8px;
}

.filter-check {
    position: relative;
}

.filter-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter-check label {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--shade);
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.filter-check input:checked + label {
    color: #fff;
    border-color: var(--brand);
    background: var(--brand);
}

.filter-check em {
    color: inherit;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    opacity: 0.72;
}

.catalog-meta {
    min-height: 46px;
    margin-bottom: 18px;
}

.catalog-meta p {
    margin: 0;
    color: var(--muted);
    font-weight: 900;
}

.catalog-results {
    position: relative;
    min-height: 240px;
}

.catalog-results.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.catalog-pagination {
    margin-top: 28px;
}

.enhanced-ui .catalog-pagination-fallback {
    display: none;
}

.catalog-load-footer {
    margin-top: 26px;
}

.catalog-load-more {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-load-more span {
    display: none;
    color: var(--muted);
    font-weight: 900;
}

.catalog-load-more.is-loading .action-button {
    display: none;
}

.catalog-load-more.is-loading span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.catalog-load-more.is-loading span::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 3px solid var(--line);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: store-spin 0.8s linear infinite;
}

@keyframes store-spin {
    to {
        transform: rotate(360deg);
    }
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pager-pages {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.pager-link,
.pager-number,
.pager-gap {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 900;
}

.pager-link:hover,
.pager-number:hover,
.pager-number.is-current {
    color: #fff;
    border-color: var(--brand);
    background: var(--brand);
}

.pager-link.is-disabled {
    color: #a4abb6;
    background: var(--shade);
    pointer-events: none;
}

.pager-gap {
    color: var(--muted);
    background: transparent;
}

.product-detail {
    padding: 66px 0 42px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 40px;
    align-items: start;
}

.product-gallery {
    display: grid;
    gap: 14px;
}

.product-gallery img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--shade);
    box-shadow: 0 20px 60px rgba(17, 18, 22, 0.07);
}

.product-summary {
    position: sticky;
    top: 104px;
    padding: 4px 0;
}

.product-summary h1 {
    margin-top: 10px;
    font-size: clamp(34px, 5vw, 56px);
}

.product-summary p {
    color: var(--muted);
    font-size: 17px;
}

.price-large {
    margin: 18px 0;
    font-size: 25px;
}

.product-buy-form {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 12px;
    margin: 28px 0 12px;
}

.product-quantity,
.cart-quantity {
    text-align: center;
    font-weight: 900;
}

.stock-note {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.feature-table {
    margin-top: 28px;
    border-top: 1px solid var(--line);
}

.feature-table div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.feature-table span {
    color: var(--muted);
}

.feature-table strong {
    text-align: right;
}

.product-description {
    max-width: 840px;
    margin-top: 52px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.product-description h2 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 900;
}

.product-description p {
    color: var(--soft-ink);
}

.cart-page {
    padding: 70px 0 86px;
}

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

.cart-items,
.checkout-form,
.order-summary {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(17, 18, 22, 0.05);
}

.cart-line {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 88px 104px 78px;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.cart-line:last-child {
    border-bottom: 0;
}

.cart-line img {
    width: 86px;
    height: 104px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--shade);
}

.cart-line h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.22;
}

.cart-line p {
    margin: 5px 0 0;
    color: var(--muted);
}

.plain-danger {
    padding: 0;
    border: 0;
    color: var(--brand);
    background: transparent;
    font-size: 13px;
    font-weight: 900;
}

.plain-danger:hover {
    color: var(--brand-dark);
}

.order-summary {
    padding: 22px;
}

.order-summary h2 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
}

.order-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.order-summary > div span {
    color: var(--muted);
}

.summary-total {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 900;
}

.order-summary .action-button + .action-button {
    margin-top: 10px;
}

.checkout-form {
    padding: 22px;
}

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

.form-field {
    min-width: 0;
}

.form-field label {
    margin-bottom: 7px;
    color: var(--soft-ink);
    font-size: 13px;
    font-weight: 900;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.empty-state {
    padding: 72px 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 0, rgba(203, 38, 55, 0.08), rgba(203, 38, 55, 0) 34%),
        #fff;
    text-align: center;
    box-shadow: 0 18px 46px rgba(17, 18, 22, 0.05);
}

.empty-state h1,
.empty-state h2 {
    margin-bottom: 10px;
}

.empty-state p {
    max-width: 520px;
    margin: 0 auto 22px;
    color: var(--muted);
}

.success-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: inline-flex;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--green);
}

.success-icon::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 14px;
    width: 16px;
    height: 29px;
    border: solid #fff;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}

.store-footer {
    padding: 58px 0;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
}

.footer-brand {
    margin-bottom: 12px;
}

.store-footer p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 22px;
    flex-wrap: wrap;
    font-weight: 900;
}

.inline-form {
    display: inline;
}

.footer-link-button {
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-weight: 900;
}

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 12%, rgba(203, 38, 55, 0.16), rgba(203, 38, 55, 0) 32%),
        radial-gradient(circle at 80% 80%, rgba(0, 164, 181, 0.14), rgba(0, 164, 181, 0) 30%),
        var(--shade);
}

.auth-panel {
    width: min(100%, 430px);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.auth-brand {
    justify-content: center;
    margin-bottom: 24px;
}

.auth-title {
    margin-bottom: 24px;
    text-align: center;
    font-size: 31px;
}

.auth-panel .form-field {
    margin-bottom: 16px;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0 18px;
    color: var(--soft-ink);
    font-weight: 800;
}

.inline-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.auth-switch {
    margin: 22px 0 0;
    color: var(--muted);
    text-align: center;
}

.auth-switch a {
    color: var(--brand);
    font-weight: 900;
}

.reveal-ready {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.54s ease, transform 0.54s ease;
}

.reveal-ready.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal-ready {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1120px) {
    .store-header-inner {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        padding: 12px 0;
    }

    .store-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        order: 3;
    }

    .store-header-actions {
        grid-column: 2;
        grid-row: 1;
    }

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

    .catalog-layout,
    .cart-layout,
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel,
    .product-summary {
        position: static;
    }

    .cart-layout {
        gap: 22px;
    }
}

@media (max-width: 820px) {
    .store-frame {
        width: min(100% - 28px, 1240px);
    }

    .store-header-inner {
        min-height: 68px;
    }

    .store-search {
        width: 180px;
        min-width: 0;
    }

    .story-slider {
        min-height: 620px;
    }

    .hero-content {
        top: 45%;
    }

    .hero-content h1,
    .promo-content h2 {
        font-size: 44px;
    }

    .hero-content p,
    .promo-content p {
        font-size: 16px;
    }

    .hero-commerce-panel {
        left: 14px;
        right: 14px;
        bottom: 96px;
        width: auto;
    }

    .story-controls {
        left: 14px;
        right: 14px;
    }

    .section-band,
    .cart-page,
    .newsletter-band {
        padding: 56px 0;
    }

    .flex-heading,
    .footer-grid {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .category-grid,
    .product-grid,
    .service-grid,
    .form-grid,
    .newsletter-inner {
        grid-template-columns: 1fr;
    }

    .newsletter-inner {
        padding: 22px;
    }

    .newsletter-inner form,
    .product-buy-form {
        grid-template-columns: 1fr;
    }

    .product-scroll {
        grid-auto-columns: minmax(230px, 82vw);
    }

    .cart-line {
        grid-template-columns: 74px minmax(0, 1fr);
        align-items: start;
    }

    .cart-line img {
        width: 74px;
        height: 88px;
    }

    .cart-line .cart-quantity,
    .cart-line strong,
    .cart-line .plain-danger {
        grid-column: 2;
        width: fit-content;
    }

    .cart-line .cart-quantity {
        width: 96px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .store-brand span:last-child,
    .auth-brand span:last-child {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .store-search {
        display: none;
    }

    .store-header-actions {
        gap: 7px;
    }

    .icon-link,
    .cart-link {
        width: 40px;
        height: 40px;
    }

    .store-nav a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .hero-content {
        top: 39%;
        width: calc(100% - 28px);
    }

    .hero-content h1,
    .promo-content h2 {
        font-size: 38px;
    }

    .catalog-title {
        padding-top: 46px;
    }

    .catalog-shell,
    .product-detail {
        padding-top: 30px;
    }

    .filter-panel,
    .checkout-form,
    .order-summary,
    .auth-panel {
        padding: 18px;
    }

    .category-tile {
        min-height: 190px;
    }

    .pager {
        justify-content: flex-start;
    }
}
