:root {
    --bg: #f5f5f1;
    --surface: #ffffff;
    --surface-soft: #f8f8f4;
    --surface-lime: #f5fadf;
    --text: #161616;
    --muted: #6d6d67;
    --line: #ecece5;
    --accent: #b7ef2f;
    --accent-strong: #a6e41f;
    --dark: #171717;
    --shadow: 0 18px 46px rgba(20, 20, 16, 0.08);
    --radius-xl: 34px;
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    position: relative;
    margin: 0;
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(180deg, #fafaf7 0%, #f3f3ee 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 0 0, rgba(183, 239, 47, 0.14), transparent 24%),
        radial-gradient(circle at 100% 0, rgba(183, 239, 47, 0.1), transparent 20%),
        radial-gradient(circle at 12% 68%, rgba(183, 239, 47, 0.11), transparent 20%),
        linear-gradient(180deg, #fafaf7 0%, #f3f3ee 100%);
}

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

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

[hidden] {
    display: none !important;
}

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

button {
    border: 0;
}

.site-shell {
    width: min(1280px, calc(100vw - 28px));
    max-width: calc(100% - 28px);
    margin: 0 auto;
    padding: 14px 0 96px;
}

.page-content {
    display: grid;
    gap: 22px;
    margin-top: 18px;
}

.page-glow,
.page-scribble {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.page-glow {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(46px);
    opacity: 0.32;
}

.page-glow-left {
    left: -160px;
    top: 120px;
    background: rgba(183, 239, 47, 0.45);
}

.page-glow-right {
    right: -140px;
    top: 30px;
    background: rgba(255, 255, 255, 0.72);
}

.page-scribble {
    width: 180px;
    height: 120px;
    opacity: 0.45;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='120' viewBox='0 0 180 120'%3E%3Cg fill='none' stroke='%23171717' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M15 84c19-18 39-25 58-18 7 3 10 9 6 14-5 7-14 9-25 10'/%3E%3Cpath d='M86 33c16 14 28 17 37 10 8-6 15-6 21 0'/%3E%3Cpath d='M120 84c7 5 13 6 18 1 5-4 10-4 15 1'/%3E%3C/g%3E%3Cg fill='none' stroke='%23b7ef2f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M136 16c9 5 14 12 15 20'/%3E%3Cpath d='M50 22c5 2 10 6 13 12'/%3E%3C/g%3E%3C/svg%3E");
}

.page-scribble-top {
    top: 110px;
    right: 80px;
}

.page-scribble-bottom {
    bottom: 90px;
    left: 60px;
    transform: scaleX(-1);
}

.surface,
.message {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid rgba(236, 236, 229, 0.95);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.site-header {
    position: sticky;
    top: 12px;
    z-index: 10;
    overflow: hidden;
    padding: 14px 16px 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(236, 236, 229, 0.95);
    border-radius: 30px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.site-header__row,
.site-nav,
.site-actions,
.section-intro,
.product-card__footer,
.product-card__meta,
.summary-row,
.hero__actions,
.detail-gallery__head,
.delivery-switch {
    display: flex;
    align-items: center;
}

.site-header__row {
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 150px;
}

.brand__main {
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.brand__side {
    padding-top: 10px;
    font-size: 0.62rem;
    line-height: 1.05;
    color: var(--muted);
}

.site-nav {
    gap: 34px;
    font-size: 0.95rem;
}

.site-nav a:hover,
.section-link:hover {
    color: #85bd11;
}

.site-actions {
    gap: 10px;
}

.icon-button,
.cart-pill,
.category-pill,
.round-button,
.delivery-switch__item,
.cart-item__qty {
    border: 1px solid var(--line);
    background: var(--surface);
}

.icon-button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.round-button:hover {
    transform: translateY(-1px);
}

.button--accent {
    background: linear-gradient(180deg, #c8fb4b 0%, var(--accent) 100%);
    color: #151515;
    box-shadow: 0 14px 28px rgba(183, 239, 47, 0.28);
}

.button--ghost {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}

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

.button-primary {
    background: linear-gradient(180deg, #c8fb4b 0%, var(--accent) 100%);
    color: #151515;
    box-shadow: 0 14px 28px rgba(183, 239, 47, 0.28);
}

.button-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}

.button--header {
    padding-inline: 22px;
}

.wide {
    width: 100%;
}

.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px 9px 11px;
    border-radius: 999px;
}

.cart-pill__label {
    font-size: 0.92rem;
}

.cart-pill__count {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    font-size: 0.8rem;
}

.cart-pill__icon,
.mobile-nav__icon--cart,
.mobile-nav__icon--menu,
.mobile-nav__icon--home,
.mobile-nav__icon--user,
.icon-user,
.icon-dot-grid {
    position: relative;
    display: inline-block;
}

.cart-pill__icon,
.mobile-nav__icon--cart {
    width: 18px;
    height: 14px;
    border: 2px solid var(--text);
    border-top: 0;
    border-radius: 3px 3px 5px 5px;
}

.cart-pill__icon::before,
.mobile-nav__icon--cart::before {
    content: "";
    position: absolute;
    left: 2px;
    top: -7px;
    width: 12px;
    height: 7px;
    border: 2px solid var(--text);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.cart-pill__icon::after,
.mobile-nav__icon--cart::after {
    content: "";
    position: absolute;
    left: 2px;
    bottom: -5px;
    width: 12px;
    height: 4px;
    background:
        radial-gradient(circle, var(--text) 55%, transparent 56%) left center / 4px 4px no-repeat,
        radial-gradient(circle, var(--text) 55%, transparent 56%) right center / 4px 4px no-repeat;
}

.icon-user,
.mobile-nav__icon--user {
    width: 18px;
    height: 18px;
}

.icon-user::before,
.mobile-nav__icon--user::before {
    content: "";
    position: absolute;
    top: 0;
    left: 4px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--text);
    border-radius: 50%;
}

.icon-user::after,
.mobile-nav__icon--user::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1px;
    width: 16px;
    height: 9px;
    border: 2px solid var(--text);
    border-top: 0;
    border-radius: 0 0 12px 12px;
}

.icon-dot-grid {
    width: 18px;
    height: 18px;
    background:
        radial-gradient(circle, var(--text) 50%, transparent 52%) 0 0 / 8px 8px,
        radial-gradient(circle, var(--text) 50%, transparent 52%) 100% 0 / 8px 8px,
        radial-gradient(circle, var(--text) 50%, transparent 52%) 0 100% / 8px 8px,
        radial-gradient(circle, var(--text) 50%, transparent 52%) 100% 100% / 8px 8px;
    background-repeat: no-repeat;
}

.mobile-nav__icon--menu,
.mobile-nav__icon--home {
    width: 18px;
    height: 18px;
}

.mobile-nav__icon--menu::before {
    content: "";
    position: absolute;
    inset: 2px 0;
    background:
        linear-gradient(var(--text), var(--text)) 0 2px / 18px 2px no-repeat,
        linear-gradient(var(--text), var(--text)) 0 8px / 18px 2px no-repeat,
        linear-gradient(var(--text), var(--text)) 0 14px / 18px 2px no-repeat;
}

.mobile-nav__icon--home::before {
    content: "";
    position: absolute;
    inset: 1px 1px 0;
    border: 2px solid var(--text);
    border-top: 0;
    border-radius: 0 0 4px 4px;
}

.mobile-nav__icon--home::after {
    content: "";
    position: absolute;
    left: 1px;
    top: -1px;
    width: 16px;
    height: 16px;
    border-top: 2px solid var(--text);
    border-left: 2px solid var(--text);
    transform: rotate(45deg);
}

.category-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    margin-top: 16px;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.category-scroller::-webkit-scrollbar {
    display: none;
}

.category-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.category-pill.is-active {
    background: var(--surface-soft);
    color: #151515;
    border-color: #dff5a8;
    box-shadow: inset 0 0 0 1px rgba(183, 239, 47, 0.3);
}

.category-pill__icon {
    width: 20px;
    height: 20px;
    border-radius: 8px;
    background:
        radial-gradient(circle, #7bae0e 48%, transparent 50%) 0 0 / 8px 8px,
        radial-gradient(circle, #7bae0e 48%, transparent 50%) 100% 0 / 8px 8px,
        radial-gradient(circle, #7bae0e 48%, transparent 50%) 0 100% / 8px 8px,
        radial-gradient(circle, #7bae0e 48%, transparent 50%) 100% 100% / 8px 8px;
    background-repeat: no-repeat;
}

.messages {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.message {
    padding: 16px 20px;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.48fr;
    gap: 18px;
}

.hero__content,
.hero__visual,
.hero__phone,
.catalog-hero,
.promo-banner,
.cart-surface,
.summary-surface,
.checkout-surface,
.success-surface,
.detail-gallery,
.detail-summary,
.empty-panel {
    padding: 26px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero h1,
.page-title {
    margin: 0;
    font-size: clamp(2.6rem, 4vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.page-title--small {
    font-size: clamp(2rem, 3vw, 3.1rem);
}

.hero__text {
    max-width: 520px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.hero-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.hero__actions {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

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

.hero__metrics div {
    position: relative;
    z-index: 1;
    padding: 14px 16px;
    border-radius: 20px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.hero__metrics strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.02rem;
}

.hero__metrics span {
    color: var(--muted);
    font-size: 0.88rem;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-highlights span {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

.hero__content,
.hero__visual {
    min-height: 430px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero__visual {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__visual img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__badge {
    position: absolute;
    right: 30px;
    bottom: 28px;
    width: 138px;
    height: 138px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    box-shadow: 0 18px 40px rgba(20, 20, 16, 0.08);
    overflow: hidden;
}

.hero__badge span {
    display: block;
    max-width: 90px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.1;
    text-align: center;
    overflow-wrap: anywhere;
}

.hero__badge strong {
    display: block;
    font-size: 1rem;
    line-height: 1.1;
    text-align: center;
    max-width: 92px;
    overflow-wrap: anywhere;
}

.hero__scribble {
    position: absolute;
    width: 120px;
    height: 80px;
    opacity: 0.8;
    background-repeat: no-repeat;
    background-size: contain;
}

.hero__scribble--left {
    left: 28px;
    bottom: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80'%3E%3Cg fill='none' stroke='%23171717' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M8 62c18-12 35-11 50 2 7 6 18 6 33 0'/%3E%3Cpath d='M68 24c9 7 18 10 29 10'/%3E%3C/g%3E%3Cg fill='none' stroke='%23b7ef2f' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M92 48c9 1 16 5 20 12'/%3E%3C/g%3E%3C/svg%3E");
}

.hero__scribble--right {
    left: 20px;
    top: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80'%3E%3Cg fill='none' stroke='%23171717' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M16 30c16-17 35-22 58-16'/%3E%3Cpath d='M66 12c9 8 20 11 34 10'/%3E%3C/g%3E%3Cg fill='none' stroke='%23b7ef2f' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M84 46c8 1 15 5 19 10'/%3E%3C/g%3E%3C/svg%3E");
}

.hero__phone {
    padding: 14px;
}

.phone-frame {
    display: grid;
    gap: 14px;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 16px 18px 20px;
    background: linear-gradient(180deg, #fff 0%, #fafaf7 100%);
}

.phone-frame__status {
    font-weight: 700;
}

.phone-frame__brand {
    font-weight: 900;
    line-height: 0.95;
}

.phone-frame h2 {
    margin: 8px 0 0;
    font-size: 1.2rem;
    line-height: 1.05;
}

.phone-frame p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.phone-frame img {
    margin-top: auto;
    border-radius: 22px;
    object-fit: cover;
}

.section-intro {
    justify-content: space-between;
    gap: 14px;
}

.section-intro h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.section-intro--tight {
    margin-bottom: 18px;
}

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

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

.quick-categories {
    display: flex;
    gap: 12px;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding: 14px 18px;
    scrollbar-width: none;
}

.quick-categories::-webkit-scrollbar {
    display: none;
}

.quick-categories__item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    white-space: nowrap;
}

.quick-categories__item.is-active {
    background: #fbffe9;
    border-color: #dff5a8;
}

.catalog-showcase {
    padding: 22px 22px 24px;
    margin-top: 12px;
}

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

.product-grid--compact {
    gap: 26px;
}

.product-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(20, 20, 16, 0.12);
}

.product-card__media {
    position: relative;
    display: block;
    padding: 10px 10px 0;
}

.product-card__media img {
    aspect-ratio: 1.14 / 1;
    object-fit: cover;
    object-position: center 56%;
    border-radius: 20px;
}

.product-card__body {
    display: grid;
    gap: 8px;
    padding: 10px 14px 14px;
}

.product-card__body h3 {
    margin: 0;
    font-size: 1.14rem;
    line-height: 1.08;
}

.product-card__body p,
.product-card__meta,
.cart-item__copy span,
.summary-note,
.success-copy,
.detail-summary p,
.checkout-order__item span,
.phone-frame p {
    color: var(--muted);
}

.product-card__body p {
    min-height: 38px;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
}

.product-card__meta {
    justify-content: space-between;
    gap: 10px;
    font-size: 0.92rem;
}

.product-card__footer {
    justify-content: space-between;
    gap: 10px;
}

.product-card__footer strong,
.detail-price,
.summary-row strong,
.cart-item__price {
    font-size: 1.22rem;
    line-height: 1;
}

.product-tag {
    position: absolute;
    left: 18px;
    top: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.product-tag.is-hit,
.product-tag.is-best,
.product-tag.is-new {
    background: var(--accent);
}

.product-tag.is-hot {
    color: #fff;
    background: #ff6d2d;
}

.round-button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    background: linear-gradient(180deg, #c8fb4b 0%, var(--accent) 100%);
}

.cart-inline-control,
.detail-cart-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.qty-pill {
    display: grid;
    grid-template-columns: 32px 32px 32px;
    align-items: center;
    justify-items: center;
    justify-content: center;
    gap: 0;
    min-width: 112px;
    height: 46px;
    padding: 0 7px;
    border-radius: 999px;
    background: linear-gradient(180deg, #c8fb4b 0%, var(--accent) 100%);
    animation: pillExpand 0.25s ease;
}

.qty-pill[hidden] {
    display: none !important;
}

.qty-pill--always {
    display: grid;
}

.qty-pill-detail {
    width: 100%;
    height: 54px;
    padding: 0 12px;
}

.qty-pill--cart {
    min-width: 112px;
    margin: 0 auto;
}

.qty-pill-button {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.64);
    cursor: pointer;
}

.qty-pill-value {
    font-weight: 800;
    width: 32px;
    text-align: center;
}

.cart-detail-add-button[hidden] {
    display: none !important;
}

.catalog-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.catalog-search,
.promo-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 10px;
}

.catalog-search input,
.promo-form input,
.field input,
.field textarea,
.field select,
.detail-quantity input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 18px;
}

.detail-gallery__head {
    justify-content: space-between;
    margin-bottom: 18px;
}

.detail-gallery__actions {
    display: flex;
    gap: 10px;
}

.detail-gallery__actions span {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text);
    border-radius: 50%;
}

.detail-gallery__body {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: start;
}

.detail-thumbs {
    display: grid;
    gap: 10px;
}

.detail-thumbs img,
.detail-gallery__hero img {
    border-radius: 22px;
}

.detail-thumbs img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.detail-gallery__hero img {
    min-height: 480px;
    object-fit: cover;
}

.detail-summary {
    display: grid;
    gap: 18px;
    align-content: start;
}

.detail-summary__top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.detail-summary h1 {
    margin: 0;
    font-size: 3rem;
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.detail-summary__top p,
.detail-info p {
    margin: 10px 0 0;
    line-height: 1.55;
}

.detail-rating {
    color: #f4b400;
    font-weight: 700;
}

.detail-rating span {
    color: var(--muted);
    font-weight: 400;
}

.detail-order,
.detail-quantity,
.checkout-block,
.field {
    display: grid;
    gap: 10px;
}

.detail-option-group {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.detail-option-group__head h2 {
    margin: 0;
    font-size: 1rem;
}

.detail-option-group__head p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.detail-option-group__controls ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-option-group__controls label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.detail-option-group__controls select {
    width: 100%;
}

.detail-quantity {
    max-width: 170px;
}

.nutrition-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.nutrition-cards div {
    padding: 14px 10px;
    border-radius: 18px;
    text-align: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.nutrition-cards small {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
}

.detail-info {
    display: grid;
    gap: 14px;
}

.detail-info h2,
.checkout-block h2,
.summary-surface h2 {
    margin: 0;
    font-size: 1.2rem;
}

.promo-banner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 18px;
    align-items: center;
    background: linear-gradient(180deg, #fbffe9 0%, #f2f8d9 100%);
}

.site-footer {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 24px;
    margin-top: 28px;
    padding: 26px;
    overflow: hidden;
}

.site-footer__brand,
.site-footer__nav,
.site-footer__contacts {
    display: grid;
    align-content: start;
    gap: 10px;
}

.site-footer__brand p,
.site-footer__contacts span {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.site-footer__nav strong,
.site-footer__contacts strong {
    font-size: 1rem;
}

.site-footer__nav a,
.site-footer__contacts a {
    color: var(--text);
}

.promo-banner__copy h2 {
    margin: 0 0 8px;
    font-size: 3rem;
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.promo-banner__copy p {
    margin: 0 0 18px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.promo-banner__visual img {
    max-height: 280px;
    object-fit: cover;
    border-radius: 28px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.cart-surface,
.summary-surface,
.checkout-surface {
    display: grid;
    align-content: start;
    gap: 14px;
}

.checkout-surface {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.cart-list,
.checkout-order__list {
    display: grid;
    gap: 12px;
}

.cart-item,
.checkout-order__item {
    display: grid;
    gap: 14px;
    align-items: center;
    border-radius: 22px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.cart-item {
    grid-template-columns: 88px 1fr auto auto auto;
    padding: 12px;
}

.checkout-order__item {
    grid-template-columns: 64px 1fr auto;
    padding: 10px;
}

.cart-item img,
.checkout-order__item img {
    border-radius: 18px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.cart-item__copy {
    display: grid;
    gap: 4px;
}

.cart-item__options,
.checkout-order__options {
    display: block;
    color: var(--muted);
    line-height: 1.45;
}

.cart-item__qty {
    padding: 12px 16px;
    border-radius: 999px;
}

.cart-item__qty-form {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-item__remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.summary-row {
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
}

.summary-row--total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.summary-note {
    margin: 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 18px;
    align-items: start;
}

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

.delivery-switch__item {
    min-width: 160px;
    padding: 14px 20px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    cursor: pointer;
}

.delivery-switch__item.is-active {
    box-shadow: inset 0 0 0 1px rgba(183, 239, 47, 0.45);
    background: #fbffe9;
}

.field span {
    font-size: 0.95rem;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.checkout-order {
    display: grid;
}

.delivery-zone-card {
    display: grid;
    gap: 16px;
}

.delivery-map-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line);
    min-height: 360px;
    background:
        radial-gradient(circle at top, rgba(183, 239, 47, 0.18), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 244, 238, 0.96));
}

.delivery-map-canvas {
    width: 100%;
    height: 360px;
    display: block;
}

.delivery-map-status {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 500;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.78);
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.4;
    backdrop-filter: blur(10px);
}

.delivery-map-status.is-error {
    background: rgba(130, 26, 13, 0.9);
}

.delivery-map-status.is-ready {
    background: rgba(17, 24, 39, 0.62);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    box-shadow: 0 22px 44px rgba(17, 24, 39, 0.18);
}

.delivery-map-popup {
    font: inherit;
}

.delivery-map-popup strong {
    display: block;
    margin-bottom: 4px;
}

.delivery-zone-copy {
    display: grid;
    gap: 10px;
}

.delivery-zone-copy p {
    margin: 0;
}

.delivery-address-status {
    margin: -4px 0 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.05);
}

.delivery-address-status.is-checking {
    color: #425466;
    background: rgba(17, 24, 39, 0.06);
}

.delivery-address-status.is-success {
    color: #1e5128;
    background: rgba(183, 239, 47, 0.22);
}

.delivery-address-status.is-error {
    color: #821a0d;
    background: rgba(193, 63, 34, 0.12);
}

.success-surface {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.success-mark {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(180deg, #c8fb4b 0%, var(--accent) 100%);
    font-size: 2rem;
    font-weight: 800;
}

.success-surface h1 {
    margin: 0;
    font-size: 2.8rem;
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.success-copy {
    max-width: 560px;
    margin: 18px auto 0;
    line-height: 1.6;
}

.success-meta {
    max-width: 520px;
    margin: 22px auto 0;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.empty-panel {
    padding: 28px;
}

.panel {
    position: relative;
    z-index: 1;
    padding: 26px;
    background: var(--surface);
    border: 1px solid rgba(236, 236, 229, 0.95);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.empty-panel h3 {
    margin: 0 0 8px;
}

.empty-panel p {
    margin: 0;
    color: var(--muted);
}

.form-errors,
.field .errorlist,
.field-errors {
    margin: 0;
    padding: 12px 14px;
    border-radius: 16px;
    list-style: none;
    color: #982b1b;
    background: rgba(255, 109, 45, 0.1);
}

.mobile-nav {
    display: none;
}

.food-card.is-adding,
.product-card.is-adding {
    transform: translateY(-5px);
}

.round-button.is-adding {
    animation: addPulse 0.5s ease;
}

.cart-pill__count.is-bump,
.mobile-nav__badge.is-bump {
    animation: cartBump 0.45s ease;
}

.mobile-nav__badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    font-size: 0.68rem;
    font-style: normal;
}

@keyframes addPulse {
    0% { transform: scale(1); }
    35% { transform: scale(0.92); }
    70% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@keyframes cartBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.24); }
    100% { transform: scale(1); }
}

@keyframes pillExpand {
    0% { opacity: 0; transform: scaleX(0.6); }
    100% { opacity: 1; transform: scaleX(1); }
}

.auth-layout,
.profile-layout {
    display: grid;
    gap: 18px;
}

.auth-layout {
    grid-template-columns: 0.92fr 1.08fr;
}

.auth-layout--compact {
    grid-template-columns: minmax(0, 820px);
    justify-content: center;
}

.profile-layout {
    grid-template-columns: 0.78fr 1fr;
    align-items: start;
}

.auth-stack,
.form-panel,
.profile-summary-card,
.profile-form-card,
.order-history-card,
.auth-provider-card {
    display: grid;
    gap: 14px;
}

.order-history-card {
    grid-column: 1 / -1;
}

.profile-bonus-line,
.auth-switch {
    margin: 0;
}

.auth-switch a {
    color: #85bd11;
}

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

.profile-identity-list {
    display: grid;
    gap: 10px;
}

.profile-identity-item,
.order-history-row,
.cost-result-card,
.debug-code-chip {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.profile-identity-item {
    display: grid;
    gap: 4px;
}

.profile-identity-item span,
.order-history-row span,
.cost-result-card span,
.cost-result-card small {
    color: var(--muted);
}

.order-history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.order-history-row div {
    display: grid;
    gap: 4px;
}

.debug-code-chip {
    background: #fbffe9;
}

@media (max-width: 1120px) {
    .hero,
    .detail-layout,
    .checkout-layout,
    .checkout-grid,
    .auth-layout,
    .profile-layout {
        grid-template-columns: 1fr;
    }

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

    .hero__phone {
        display: none;
    }

    .hero__scribble--left {
        display: none;
    }

    .hero__badge {
        right: 20px;
        bottom: 20px;
        width: 126px;
        height: 126px;
        padding: 14px;
    }

    .site-nav {
        gap: 22px;
        font-size: 0.88rem;
    }

    .site-actions {
        gap: 8px;
    }

    .button--header {
        padding-inline: 16px;
    }

    .cart-pill {
        padding-inline: 10px;
    }

    .cart-pill__label {
        display: none;
    }
}

@media (max-width: 1024px) {
    .site-shell {
        width: calc(100vw - 16px);
        max-width: calc(100% - 16px);
        padding-bottom: 92px;
    }

    .page-glow,
    .page-scribble {
        display: none;
    }

    .site-header {
        padding: 14px;
        border-radius: 24px;
    }

    .site-header__row {
        flex-wrap: wrap;
    }

    .site-nav,
    .site-actions .button--header,
    .site-actions .icon-button,
    .cart-pill__label {
        display: none;
    }

    .site-actions {
        margin-left: auto;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 18px;
    }

    .hero,
    .promo-banner {
        grid-template-columns: 1fr;
    }

    .hero__scribble--right {
        display: none;
    }

    .catalog-hero,
    .section-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-search,
    .promo-form {
        width: 100%;
        grid-template-columns: 1fr;
    }

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

    .product-grid--compact {
        gap: 14px;
    }

    .catalog-showcase {
        padding: 18px 16px 18px;
    }

    .quick-categories {
        padding: 10px 12px;
        gap: 8px;
    }

    .quick-categories__item {
        min-height: 40px;
        padding: 0 12px;
        font-size: 0.84rem;
    }

    .product-card {
        border-radius: 22px;
    }

    .product-card__media {
        padding: 8px 8px 0;
    }

    .product-card__media img {
        aspect-ratio: 1 / 0.84;
        border-radius: 16px;
    }

    .product-tag {
        left: 12px;
        top: 12px;
        min-height: 24px;
        padding: 4px 8px;
        font-size: 0.64rem;
    }

    .product-card__body {
        gap: 6px;
        padding: 8px 10px 10px;
    }

    .product-card__body h3 {
        font-size: 0.94rem;
        line-height: 1.08;
    }

    .product-card__body p {
        min-height: 30px;
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .product-card__meta {
        font-size: 0.72rem;
    }

    .product-card__footer strong {
        font-size: 1rem;
    }

    .round-button {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

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

    .hero__metrics div {
        padding: 12px 14px;
    }

    .nutrition-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-gallery__body {
        grid-template-columns: 1fr;
    }

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

    .detail-gallery__hero img {
        min-height: 280px;
    }

    .cart-item {
        grid-template-columns: 72px 1fr auto;
    }

    .cart-item__price {
        grid-column: 2 / 3;
    }

    .cart-item__remove {
        grid-column: 3 / 4;
    }

    .mobile-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 12;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--line);
        border-radius: 24px;
        box-shadow: var(--shadow);
        backdrop-filter: blur(14px);
    }

    .mobile-nav__item {
        display: grid;
        justify-items: center;
        gap: 6px;
        padding: 8px 4px;
        border-radius: 16px;
    }

    .mobile-nav__item small {
        font-size: 0.72rem;
    }
}

@media (max-width: 520px) {
    .site-shell {
        width: calc(100vw - 12px);
        max-width: calc(100% - 12px);
    }

    .page-content {
        gap: 16px;
    }

    .surface,
    .panel,
    .message {
        border-radius: 24px;
    }

    .hero__content,
    .hero__visual,
    .catalog-hero,
    .promo-banner,
    .cart-surface,
    .summary-surface,
    .checkout-surface,
    .success-surface,
    .detail-gallery,
    .detail-summary,
    .empty-panel {
        padding: 18px;
    }

    .product-grid {
        gap: 12px;
    }

    .product-card__media img {
        aspect-ratio: 1 / 0.88;
    }

    .product-card__body {
        padding: 8px 9px 10px;
    }

    .product-card__body h3 {
        font-size: 0.88rem;
    }

    .product-card__body p {
        min-height: 28px;
        font-size: 0.74rem;
    }

    .product-card__footer strong {
        font-size: 0.94rem;
    }

    .round-button {
        width: 34px;
        height: 34px;
    }
}
