@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');
:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --primary: #15803d;
    --primary-2: #16a34a;
    --primary-soft: #dcfce7;
    --accent: #f59e0b;
    --danger: #dc2626;
    --success: #0f766e;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
    --radius: 24px;
    --radius-lg: 32px;
    --container: min(1180px, calc(100% - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    color: var(--text);
    line-height: 1.6;
}

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

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

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

button {
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary);
    text-transform: uppercase;
}

.brand__mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    box-shadow: 0 16px 30px rgba(21, 128, 61, 0.28);
}

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

.site-nav__menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 999px;
    color: #334155;
    font-weight: 600;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    background: var(--primary-soft);
    color: var(--primary);
}

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

.icon-button {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.icon-button--cart {
    min-width: 110px;
    border-radius: 999px;
    padding: 0 14px;
    gap: 8px;
}

.icon-button__count {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.nav-toggle {
    display: none;
}

.page-shell {
    padding-bottom: 54px;
}

.hero {
    padding: 40px 0 28px;
}

.hero__panel {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: center;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #effaf1 0%, #ffffff 55%, #f0fdf4 100%);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(21, 128, 61, 0.1);
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 700;
}

.hero h1,
.section-title,
.page-title,
.success-card h1,
.success-card h2 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero h1 {
    margin-top: 18px;
    font-size: clamp(2.6rem, 4vw, 4.8rem);
}

.hero p {
    margin: 18px 0 0;
    max-width: 60ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    box-shadow: 0 16px 30px rgba(21, 128, 61, 0.24);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    box-shadow: 0 20px 36px rgba(21, 128, 61, 0.3);
}

.btn--ghost {
    background: white;
    color: var(--primary);
    border-color: var(--primary-soft);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: var(--primary-soft);
}

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

.hero__visual {
    position: relative;
    display: grid;
    place-items: center;
}

.hero__visual-frame {
    width: min(100%, 460px);
    padding: 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.hero__stats {
    position: absolute;
    inset: auto 18px 18px auto;
    display: grid;
    gap: 12px;
}

.stat-chip {
    display: grid;
    gap: 2px;
    min-width: 170px;
    padding: 14px 16px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.stat-chip strong {
    font-size: 1.02rem;
}

.stat-chip span {
    color: var(--muted);
    font-size: 0.9rem;
}

.section {
    padding: 28px 0;
}

.section--alt {
    background: var(--surface-2);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}

.section-subtitle,
.page-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 70ch;
}

.categories-grid,
.features-grid,
.products-grid,
.offer-grid,
.orders-list {
    display: grid;
    gap: 18px;
}

.categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.category-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: white;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card:hover,
.category-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-soft);
}

.category-card__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.2rem;
}

.category-card strong {
    font-size: 1rem;
}

.featured-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

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

.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    background: white;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-soft);
}

.product-card:focus-visible {
    outline: none;
}

.product-card__media {
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 14px;
}

.product-card__image {
    width: 100%;
    aspect-ratio: 1 / 0.86;
    object-fit: cover;
    border-radius: 20px;
    background: #f8fafc;
}

.product-card__badge-row {
    position: absolute;
    inset: 22px 22px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-card__body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.product-card__meta-top,
.product-card__pricing,
.product-card__actions,
.cart-item__controls,
.summary-row,
.success-details,
.recent-order-card__meta,
.product-modal__meta,
.product-modal__pricing,
.order-card__meta,
.order-card__top,
.cart-item__meta,
.cart-item__title-row,
.checkout-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-card__unit,
.rating-badge,
.pill,
.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.rating-badge {
    background: #fff7ed;
    color: #b45309;
}

.pill--category {
    background: rgba(21, 128, 61, 0.12);
    color: var(--primary);
}

.pill--discount,
.order-status {
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
}

.product-card__title,
.product-modal h3,
.order-card strong,
.summary-card h3,
.empty-state h2,
.empty-state h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.product-card__title {
    font-size: 1.08rem;
}

.product-card__description {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.product-card__pricing strong,
.cart-item__subtotal,
.summary-row strong,
.success-details strong,
.recent-order-card__meta strong,
.order-card strong,
.checkout-summary-item span {
    font-weight: 800;
}

.product-card__price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
}

.product-card__original,
.cart-item__meta,
.summary-note,
.section-note,
.product-modal p,
.order-card p,
.empty-state p,
.checkout-summary-item p,
.page-kicker,
.muted {
    color: var(--muted);
}

.product-card__save,
.cart-item__saving {
    color: var(--primary);
    font-size: 0.9rem;
}

.product-card__actions {
    display: grid;
    gap: 10px;
}

.quantity-stepper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 18px;
    background: var(--surface-2);
}

.quantity-stepper__value {
    min-width: 32px;
    text-align: center;
    font-weight: 800;
}

.stepper-btn {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.feature-card {
    padding: 24px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.offer-banner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 32px;
    background: linear-gradient(135deg, #14532d 0%, #16a34a 45%, #22c55e 100%);
    color: white;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.offer-banner h2,
.offer-banner p,
.offer-banner strong {
    margin: 0;
}

.offer-banner__content {
    display: grid;
    gap: 12px;
}

.offer-banner__offer {
    font-size: clamp(2rem, 3.8vw, 4rem);
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.offer-banner__visual {
    width: min(100%, 280px);
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

.catalog-controls {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-weight: 700;
    font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
    color: var(--text);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: none;
    border-color: var(--primary-2);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.field-error {
    min-height: 18px;
    color: var(--danger);
    font-size: 0.88rem;
}

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.summary-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.summary-card--sticky {
    position: sticky;
    top: 108px;
}

.summary-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.summary-row:last-of-type {
    border-bottom: 0;
}

.summary-row--total {
    padding-top: 14px;
    font-size: 1.08rem;
}

.summary-row__discount {
    color: var(--primary);
}

.summary-note,
.section-note,
.orders-note {
    font-size: 0.92rem;
}

.empty-state {
    display: grid;
    place-items: center;
    gap: 14px;
    padding: 28px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.empty-state__icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.5rem;
}

.empty-state--inline {
    padding: 18px;
}

.empty-state--modal {
    border: 0;
    background: transparent;
}

.empty-state--cart {
    margin: 14px 0;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
}

.cart-list {
    display: grid;
    gap: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.cart-item__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    background: #f8fafc;
}

.cart-item__details {
    display: grid;
    gap: 12px;
}

.cart-item__title-row h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.cart-item__title-row p,
.cart-item__meta {
    margin: 2px 0 0;
}

.cart-item__meta {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.quantity-stepper--cart {
    width: auto;
    min-width: 180px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 20px;
}

.checkout-panel,
.checkout-sidebar {
    display: grid;
    gap: 18px;
}

.checkout-form {
    display: grid;
    gap: 18px;
}

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

.form-grid--full {
    grid-template-columns: 1fr;
}

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

.payment-option {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    text-align: center;
    font-weight: 700;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.payment-option:hover,
.payment-option:focus-visible,
.payment-option.is-selected {
    transform: translateY(-2px);
    border-color: var(--primary-soft);
    box-shadow: var(--shadow-sm);
    background: var(--primary-soft);
}

.form-alert {
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff7ed;
    color: #92400e;
    border: 1px solid #fed7aa;
}

.checkout-summary-list {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.checkout-summary-item {
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}

.checkout-summary-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.checkout-summary-item p {
    margin: 4px 0 0;
}

.success-page {
    padding: 44px 0;
}

.success-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 34px;
    text-align: center;
    border-radius: 34px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.success-card__icon {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 2.2rem;
}

.success-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0;
}

.success-details div {
    padding: 16px;
    border-radius: 18px;
    background: white;
    text-align: left;
    border: 1px solid var(--border);
}

.success-details span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.92rem;
}

.success-card__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.recent-order-card,
.order-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: white;
    box-shadow: var(--shadow-sm);
}

.recent-order-card {
    display: grid;
    gap: 14px;
}

.order-card {
    display: grid;
    gap: 10px;
}

.order-card p {
    margin: 0;
}

.orders-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal__dialog {
    width: min(960px, 100%);
    max-height: min(90vh, 900px);
    overflow: auto;
    border-radius: 30px;
    background: white;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    transform: translateY(16px) scale(0.98);
    transition: transform 180ms ease;
}

.modal.is-open .modal__dialog {
    transform: translateY(0) scale(1);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 0;
}

.modal__body {
    padding: 20px;
}

.product-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.product-modal__image-wrap {
    padding: 10px;
    border-radius: 26px;
    background: var(--surface-2);
}

.product-modal__image {
    width: 100%;
    aspect-ratio: 1 / 0.92;
    object-fit: cover;
    border-radius: 20px;
}

.product-modal__content {
    display: grid;
    align-content: start;
    gap: 14px;
}

.product-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.toast-container {
    position: fixed;
    inset: auto 20px 20px auto;
    z-index: 1100;
    display: grid;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    max-width: min(380px, calc(100vw - 40px));
    padding: 14px 16px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    border: 1px solid var(--border);
    transform: translateY(14px);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
}

.toast--show {
    transform: translateY(0);
    opacity: 1;
}

.toast__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    flex: none;
}

.toast--success .toast__icon {
    background: var(--primary-soft);
    color: var(--primary);
}

.toast--error .toast__icon {
    background: #fee2e2;
    color: var(--danger);
}

.site-footer {
    padding: 44px 0 28px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 24px;
}

.footer-grid h4 {
    margin: 0 0 12px;
    font-family: 'Poppins', sans-serif;
}

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

.footer-grid a {
    color: var(--muted);
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
    color: var(--primary);
}

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

.social-link {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--primary);
}

.footer-bottom {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 1120px) {
    .hero__panel,
    .page-layout,
    .checkout-grid,
    .product-modal__grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero__stats {
        position: static;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        margin-top: 18px;
    }
    .offer-banner {
        grid-template-columns: 1fr;
    }
    .catalog-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .site-header__inner {
        flex-wrap: wrap;
        gap: 14px;
        padding: 14px 0;
    }
    .site-nav {
        order: 3;
        width: 100%;
    }
    .site-nav__menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: white;
        box-shadow: var(--shadow-sm);
    }
    .site-nav__menu.is-open {
        display: flex;
    }
    .site-nav__link {
        width: 100%;
        justify-content: center;
    }
    .nav-toggle {
        display: inline-grid;
    }
    .featured-toolbar,
    .results-bar,
    .section-head,
    .order-card__top,
    .success-details,
    .product-card__meta-top,
    .product-card__pricing,
    .product-card__actions,
    .cart-item__title-row,
    .cart-item__controls,
    .checkout-summary-item,
    .summary-row,
    .product-modal__meta,
    .product-modal__pricing,
    .product-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .summary-card--sticky {
        position: static;
    }
    .cart-item {
        grid-template-columns: 1fr;
    }
    .form-grid,
    .payment-options,
    .catalog-controls {
        grid-template-columns: 1fr;
    }
    .hero__actions,
    .success-card__actions,
    .site-header__actions {
        width: 100%;
    }
    .icon-button--cart {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 560px) {
     :root {
        --container: min(100% - 20px, 1180px);
    }
    .hero__panel,
    .success-card,
    .offer-banner,
    .summary-card,
    .category-card,
    .feature-card,
    .product-card__body,
    .cart-item,
    .modal__body {
        padding-left: 16px;
        padding-right: 16px;
    }
    .hero {
        padding-top: 24px;
    }
    .hero__panel,
    .success-card,
    .offer-banner {
        border-radius: 24px;
        padding-top: 22px;
        padding-bottom: 22px;
    }
    .site-header__inner {
        min-height: 72px;
    }
    .brand__mark {
        width: 38px;
        height: 38px;
    }
    .icon-button {
        width: 42px;
        height: 42px;
    }
    .icon-button--cart {
        min-width: 100%;
    }
    .toast-container {
        inset: auto 10px 10px 10px;
    }
}