:root {
    --paper: #fff8f2;
    --cream: #fbf2ea;
    --warm: #f2dfcb;
    --ink: #2f2b28;
    --muted: #756c64;
    --gold: #d6972c;
    --sage: #89936f;
    --clay: #ba6d4d;
    --line: rgba(47, 43, 40, 0.14);
    --shadow: 0 24px 70px rgba(73, 55, 41, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

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

button {
    font: inherit;
}

.welcome-offer {
    width: min(560px, calc(100% - 32px));
    padding: clamp(42px, 7vw, 72px) clamp(24px, 7vw, 64px);
    overflow: visible;
    border: 1px solid rgba(255, 248, 242, 0.25);
    border-radius: 16px;
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 30px 100px rgba(30, 22, 17, 0.42);
    text-align: center;
}

.welcome-offer::backdrop {
    background: rgba(47, 43, 40, 0.7);
    backdrop-filter: blur(5px);
}

.welcome-offer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 248, 242, 0.28);
    border-radius: 50%;
    background: transparent;
    color: var(--paper);
    cursor: pointer;
    font-size: 1.65rem;
    line-height: 1;
}

.welcome-offer-kicker {
    margin-bottom: 12px;
    color: #efb85a;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.welcome-offer-discount {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(4.6rem, 15vw, 8rem);
    font-variant-numeric: lining-nums;
    line-height: 0.8;
    white-space: nowrap;
}

.welcome-offer-copy {
    margin: 24px 0;
    color: rgba(255, 248, 242, 0.78);
    font-size: 1.08rem;
}

.welcome-offer-action {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 900;
}

.promotion-bar {
    display: grid;
    min-height: 34px;
    place-items: center;
    padding: 7px 18px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 14px max(clamp(18px, 4vw, 54px), env(safe-area-inset-right)) 14px max(clamp(18px, 4vw, 54px), env(safe-area-inset-left));
    background: rgba(255, 248, 242, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
}

.brand img {
    width: 120px;
    height: 90px;
    object-fit: contain;
    object-position: left center;
}

.nav-links a {
    white-space: nowrap;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: clamp(18px, 4vw, 42px);
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
}

.menu-button {
    display: none;
    width: 48px;
    height: 48px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fffdf9;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.cart-button,
.add-button,
.primary-action,
.secondary-action,
.checkout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 800;
}

.cart-button {
    gap: 8px;
    padding: 0 16px;
    background: var(--ink);
    color: #fff8f2;
}

.cart-button strong {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    font-size: 0.78rem;
}

.cart-icon {
    width: 17px;
    height: 14px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 2px 2px 5px 5px;
    position: relative;
}

.cart-icon::before {
    content: "";
    position: absolute;
    left: 3px;
    top: -9px;
    width: 7px;
    height: 9px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.hero {
    position: relative;
    min-height: calc(100vh - 93px);
    display: grid;
    align-items: end;
    padding: clamp(34px, 6vw, 76px) clamp(18px, 6vw, 82px) 42px;
    background:
        linear-gradient(180deg, rgba(255, 248, 242, 0) 44%, rgba(255, 248, 242, 0.84) 100%),
        url("../images/background.png") center / cover no-repeat;
    overflow: hidden;
}

.hero-copy {
    display: flex;
    justify-content: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--clay);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    line-height: 0.95;
    letter-spacing: 0;
}

h1 {
    max-width: 730px;
    margin-bottom: 22px;
    font-size: clamp(3.35rem, 8vw, 7.3rem);
}

h2 {
    font-size: clamp(2.15rem, 5vw, 4.5rem);
}

.hero-text {
    max-width: 620px;
    color: #5f554c;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 0;
}

.primary-action,
.secondary-action {
    padding: 0 24px;
}

.primary-action {
    background: var(--ink);
    color: var(--paper);
}

.secondary-action {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.shop-section,
.about-section,
.contact-section {
    padding-inline: clamp(18px, 6vw, 82px);
}

.shop-section {
    padding-top: clamp(54px, 9vw, 104px);
    padding-bottom: clamp(56px, 9vw, 104px);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 690px) auto;
    align-items: end;
    gap: 24px;
    margin-bottom: 32px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 18px;
}

.product-card {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 12px 12px 16px;
    background: #fffdf9;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(73, 55, 41, 0.08);
    container-type: inline-size;
}

.product-visual {
    position: relative;
    min-height: 230px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: var(--warm);
}

.product-visual.gold {
    background: linear-gradient(145deg, #f6dfad, #fff4df);
}

.product-visual.sage {
    background: linear-gradient(145deg, #dce5d0, #fff7ed);
}

.product-visual.clay {
    background: linear-gradient(145deg, #f0cab9, #fff4e9);
}

.product-visual.ink {
    background: linear-gradient(145deg, #d7d3cd, #fff6ed);
}

.product-image {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    display: block;
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.86);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 900;
}

.product-shape {
    width: min(56%, 160px);
    aspect-ratio: 1;
    border-radius: 36% 64% 45% 55%;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.72), transparent 45%),
        currentColor;
    color: rgba(47, 43, 40, 0.62);
    box-shadow:
        inset -18px -24px 0 rgba(255, 255, 255, 0.24),
        0 18px 34px rgba(47, 43, 40, 0.14);
}

.product-info {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    min-height: 72px;
}

.product-info p {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-info h3 {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

.product-name-link:hover,
.product-name-link:focus-visible {
    color: var(--clay);
}

.product-visual:hover .product-image,
.product-visual:focus-visible .product-image {
    transform: scale(1.025);
}

.product-image {
    transition: transform 180ms ease;
}

.product-info small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
}

.product-pricing {
    display: grid;
    align-content: start;
    justify-items: end;
    gap: 3px;
    text-align: right;
    white-space: nowrap;
}

.product-pricing > span,
.product-detail-price > span {
    color: var(--muted);
    font-size: 0.84rem;
    text-decoration: line-through;
}

.product-pricing strong {
    font-size: 1.1rem;
}

.product-pricing small,
.product-detail-price small {
    color: var(--clay);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.add-button {
    width: 100%;
    background: var(--ink);
    color: var(--paper);
}

.product-detail-shell {
    padding: clamp(30px, 6vw, 72px) clamp(18px, 6vw, 82px) 80px;
}

.product-back {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--muted);
    font-weight: 800;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: clamp(32px, 7vw, 84px);
    align-items: center;
}

.product-detail-gallery {
    min-width: 0;
}

.product-detail-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.product-detail-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 253, 249, 0.92);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(47, 43, 40, 0.14);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 160ms ease, transform 160ms ease;
}

.gallery-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.gallery-arrow:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.gallery-arrow-previous {
    left: 14px;
}

.gallery-arrow-next {
    right: 14px;
}

.gallery-arrow span {
    font-size: 1.35rem;
    line-height: 1;
}

.gallery-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(47, 43, 40, 0.82);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.product-thumbnail {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    opacity: 0.72;
    transition: border-color 160ms ease, opacity 160ms ease;
}

.product-thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-thumbnail:hover,
.product-thumbnail:focus-visible,
.product-thumbnail.is-selected {
    border-color: var(--ink);
    opacity: 1;
}

.product-thumbnail:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.product-detail-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(3rem, 6vw, 5.5rem);
}

.product-detail-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}

.product-detail-price strong {
    font-size: 1.6rem;
}

.product-description,
.product-features {
    color: var(--muted);
    line-height: 1.7;
}

.product-features {
    display: grid;
    gap: 8px;
    margin: 24px 0 30px;
    padding-left: 22px;
}

@media (max-width: 760px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}

.about-section,
.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: clamp(34px, 7vw, 100px);
    align-items: center;
    padding-top: clamp(58px, 8vw, 92px);
    padding-bottom: clamp(58px, 8vw, 92px);
    background: #efe4d8;
    border-top: 1px solid var(--line);
}

.about-section h2,
.contact-section h2 {
    margin: 0;
    max-width: 900px;
}

.about-copy,
.contact-card {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.about-copy p:last-child,
.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-section {
    background: var(--ink);
    color: var(--paper);
}

.contact-section .eyebrow {
    color: #efb85a;
}

.contact-card {
    color: rgba(255, 248, 242, 0.76);
}

.contact-card .primary-action {
    margin-top: 8px;
    background: var(--paper);
    color: var(--ink);
}

.cart-panel {
    position: fixed;
    top: 128px;
    right: clamp(14px, 3vw, 38px);
    z-index: 30;
    width: min(360px, calc(100vw - 28px));
    display: none;
    padding: 18px;
    background: #fffdf9;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-height: calc(100dvh - 146px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cart-panel.is-open {
    display: grid;
    gap: 14px;
}

.cart-panel > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#closeCart {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

#cartItems {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#cartItems li {
    padding: 12px;
    border-radius: 8px;
    background: var(--cream);
    font-weight: 700;
}

.checkout-link {
    width: 100%;
    background: var(--gold);
    color: var(--ink);
}

.checkout-link.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cart-total,
.summary-totals {
    display: grid;
    gap: 10px;
    margin: 0;
}

.cart-total div,
.summary-totals div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.cart-total dt,
.summary-totals dt {
    color: var(--muted);
    font-weight: 800;
}

.cart-total dd,
.summary-totals dd {
    margin: 0;
    font-weight: 900;
}

.cart-item,
.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cart-item > div:first-child,
.summary-item > div:first-child {
    display: grid;
    gap: 4px;
}

.cart-item span,
.summary-item span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.quantity-control {
    display: inline-grid;
    grid-template-columns: 32px 28px 32px;
    align-items: center;
    justify-items: center;
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fffdf9;
}

.quantity-control button {
    width: 32px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
}

.quantity-control span {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 900;
}

.checkout-page {
    min-height: 100vh;
}

.checkout-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
    padding: clamp(34px, 6vw, 72px) clamp(18px, 6vw, 82px);
}

.checkout-form-panel h1 {
    margin-bottom: 24px;
    font-size: clamp(3rem, 7vw, 6.4rem);
}

.inquiry-intro {
    max-width: 680px;
    margin-bottom: 28px;
    color: var(--muted);
    line-height: 1.7;
}

.inquiry-submit {
    width: 100%;
    margin-top: 8px;
    padding-inline: 24px;
}

.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 28px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    list-style: none;
    background: var(--line);
}

.checkout-steps li {
    min-width: 0;
    padding: 13px 12px;
    background: #fffdf9;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-align: center;
}

.checkout-steps li.is-active,
.checkout-steps li.is-complete {
    background: var(--ink);
    color: var(--paper);
}

.checkout-step {
    display: none;
}

.checkout-step.is-active {
    display: block;
}

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

.field-grid label,
.choice-group {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

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

.field-grid input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    color: var(--ink);
    font: inherit;
}

.field-grid input:focus {
    outline: 3px solid rgba(214, 151, 44, 0.26);
    border-color: rgba(214, 151, 44, 0.72);
}

.choice-group {
    margin: 18px 0 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.choice-group legend {
    padding: 0 6px;
    color: var(--ink);
}

.choice-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.review-box,
.confirmation-panel,
.order-summary {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    box-shadow: 0 12px 30px rgba(73, 55, 41, 0.08);
}

.review-box p,
.confirmation-panel p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.form-error {
    min-height: 24px;
    margin: 16px 0 0;
    color: #9a3d2b;
    font-weight: 800;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.checkout-actions button {
    min-width: 132px;
    padding: 0 20px;
}

.checkout-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.order-summary {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 18px;
}

.order-summary h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

#checkoutItems {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.summary-item {
    padding: 14px;
    border-radius: 8px;
    background: var(--cream);
}

.summary-grand-total {
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 1.18rem;
}

.confirmation-panel {
    margin-top: 24px;
}

.confirmation-panel h2 {
    margin-bottom: 0;
}

.confirmation-panel .primary-action {
    margin-top: 18px;
    padding: 0 22px;
}

.status-shell {
    min-height: calc(100vh - 93px);
    display: grid;
    place-items: center;
    padding: clamp(34px, 6vw, 72px) clamp(18px, 6vw, 82px);
}

.status-shell .confirmation-panel {
    width: min(760px, 100%);
    margin: 0;
}

.status-shell h1 {
    margin-bottom: 0;
    font-size: clamp(3rem, 7vw, 6.4rem);
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.status-actions a {
    padding: 0 22px;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "brand menu cart";
        gap: 12px;
    }

    .brand {
        grid-area: brand;
    }

    .cart-button {
        grid-area: cart;
    }

    .menu-button {
        grid-area: menu;
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        left: clamp(18px, 4vw, 54px);
        right: clamp(18px, 4vw, 54px);
        display: none;
        gap: 0;
        padding: 8px;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fffdf9;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: grid;
    }

    .nav-links a {
        padding: 14px 16px;
        border-radius: 8px;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
        background: var(--cream);
    }

    .hero,
    .about-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: clamp(480px, 72svh, 720px);
        background:
            linear-gradient(180deg, rgba(255, 248, 242, 0) 38%, rgba(255, 248, 242, 0.9) 100%),
            url("../images/background.png") center / cover no-repeat;
    }

    .section-heading {
        grid-template-columns: 1fr;
    }

    .checkout-shell {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 620px) {
    .site-header {
        padding-top: max(10px, env(safe-area-inset-top));
        padding-bottom: 8px;
    }

    .brand img {
        width: 86px;
        height: 52px;
    }

    .cart-button span:last-of-type {
        display: none;
    }

    .cart-button {
        min-width: 48px;
        min-height: 48px;
        padding-inline: 14px;
    }

    .nav-links {
        font-size: 0.9rem;
    }

    h1 {
        font-size: clamp(3rem, 15vw, 4.8rem);
    }

    .hero {
        padding-top: 30px;
        min-height: clamp(430px, 68svh, 620px);
        background:
            linear-gradient(180deg, rgba(255, 248, 242, 0) 38%, rgba(255, 248, 242, 0.9) 100%),
            url("../images/background_phone.png") center / cover no-repeat;
    }

    .hero-actions a {
        width: 100%;
    }

    .product-visual {
        min-height: 260px;
    }

    .product-image {
        min-height: 260px;
    }

    .product-info {
        flex-direction: column;
        min-height: 0;
    }

    .product-pricing {
        justify-items: start;
        text-align: left;
    }

    .cart-panel {
        inset: auto 0 0;
        width: 100%;
        max-height: min(78dvh, 680px);
        padding: 20px max(18px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
        border-radius: 18px 18px 0 0;
    }

    .checkout-shell {
        padding-top: 28px;
    }

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

    .checkout-steps li {
        padding-inline: 6px;
        font-size: 0.74rem;
    }

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

    .checkout-actions {
        display: grid;
    }

    .checkout-actions button,
    .checkout-actions a {
        width: 100%;
    }

    .cart-item,
    .summary-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .quantity-control {
        grid-template-columns: 40px 32px 40px;
        min-height: 44px;
    }

    .quantity-control button {
        width: 40px;
        height: 44px;
    }

    .product-detail-shell {
        padding-top: 24px;
    }

    .gallery-arrow {
        width: 44px;
        height: 44px;
    }

    .product-detail-copy h1 {
        font-size: clamp(2.7rem, 14vw, 4.2rem);
    }
}

@media (min-width: 1440px) {
    .shop-section,
    .about-section,
    .contact-section,
    .product-detail-shell,
    .checkout-shell {
        padding-inline: max(82px, calc((100vw - 1440px) / 2));
    }

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

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

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