:root {
    --bg: #f5ebdf;
    --bg-alt: #efe1d1;
    --paper: #fff7ef;
    --paper-strong: #fffdf8;
    --ink: #211611;
    --muted: #65534a;
    --line: #2a1b14;
    --tomato: #db5b2f;
    --butter: #f2c34b;
    --mint: #82b69b;
    --rose: #d48d7b;
    --sky: #b9d5df;
    --card-shadow: 8px 8px 0 rgba(33, 22, 17, 0.94);
    --card-shadow-soft: 12px 12px 28px rgba(59, 38, 28, 0.1);
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Space Grotesk", sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(242, 195, 75, 0.22), transparent 0 24rem),
        radial-gradient(circle at 88% 18%, rgba(130, 182, 155, 0.22), transparent 0 22rem),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(33, 22, 17, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 22, 17, 0.03) 1px, transparent 1px);
    background-size: 18px 18px;
}

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

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

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

button {
    cursor: pointer;
}

.site-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    overflow: clip;
}

.site-bg {
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(2px);
    opacity: 0.5;
    z-index: 0;
}

.site-bg-one {
    top: -4rem;
    right: -3rem;
    width: 17rem;
    height: 17rem;
    background: rgba(219, 91, 47, 0.24);
}

.site-bg-two {
    left: -3rem;
    bottom: 10%;
    width: 14rem;
    height: 14rem;
    background: rgba(130, 182, 155, 0.34);
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 18px 0 8px;
}

.header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 16px 22px;
    border: 2px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 248, 241, 0.95);
    box-shadow: var(--card-shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand strong {
    display: block;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-family: "IBM Plex Mono", monospace;
    text-transform: lowercase;
}

.brand__badge {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 2px solid var(--line);
    border-radius: 16px;
    background: var(--butter);
    box-shadow: 4px 4px 0 var(--line);
    font-family: "Instrument Serif", serif;
    font-size: 1.9rem;
    line-height: 1;
}

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

.nav a {
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.nav a.is-active,
.nav a:hover {
    color: var(--ink);
    background: rgba(33, 22, 17, 0.06);
}

.header__actions {
    display: flex;
    gap: 10px;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--line);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--ink);
}

.nav-toggle span + span {
    margin-top: 6px;
}

.main {
    padding-bottom: 48px;
}

.hero,
.section,
.page-head,
.auth-section {
    position: relative;
    z-index: 1;
}

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

.hero__grid,
.page-head__grid,
.product-view__grid,
.contacts-grid,
.cart-layout,
.story-grid,
.auth-card,
.admin-grid {
    display: grid;
    gap: 26px;
}

.hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: start;
}

.hero__content {
    position: relative;
    padding: 38px 40px 34px;
    border: 2px solid var(--line);
    border-radius: 42px 42px 26px 42px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 243, 233, 0.96)),
        var(--paper);
    box-shadow: var(--card-shadow);
}

.hero__content::after {
    content: "new roast / city energy / coffee with color";
    position: absolute;
    right: -18px;
    bottom: 32px;
    padding: 8px 12px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--mint);
    box-shadow: 4px 4px 0 var(--line);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transform: rotate(-3deg);
}

.hero__visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-content: start;
    padding-top: 22px;
}

.hero-card,
.summary-card,
.search-panel,
.callout,
.panel,
.empty-state,
.feature-card,
.category-card,
.product-card,
.catalog-card,
.gallery-card {
    position: relative;
    border: 2px solid var(--line);
    background: var(--paper);
    box-shadow: var(--card-shadow);
}

.hero-card,
.summary-card,
.search-panel,
.callout,
.panel,
.empty-state {
    padding: 26px;
}

.hero-card {
    border-radius: 32px;
}

.hero-card--accent {
    background: linear-gradient(145deg, #221611, #433027);
    color: #fff5eb;
}

.hero-card--accent::before {
    content: "special";
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 6px 10px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--butter);
    color: var(--ink);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.hero-card:last-child {
    background: linear-gradient(135deg, #fff7ec, #f3d7bd);
    transform: rotate(-2deg);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(33, 22, 17, 0.08);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero h1,
.page-head h1,
.auth-card h1,
.product-view h1,
.section-heading h2,
.callout h2 {
    margin: 0;
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.hero h1,
.page-head h1,
.auth-card h1,
.product-view h1 {
    font-size: clamp(3rem, 7vw, 6.6rem);
    line-height: 0.88;
}

.hero__lead,
.page-head p,
.product-view__lead,
.feature-card p,
.category-card p,
.product-card p,
.catalog-card p,
.panel p,
.footer__text,
.auth-note,
.order-card__items,
.contact-list,
.cart-item p,
.gallery-card p,
.hero-card p {
    color: var(--muted);
    line-height: 1.7;
}

.hero__lead,
.page-head p,
.product-view__lead {
    margin: 18px 0 0;
    max-width: 720px;
    font-size: 1.02rem;
}

.hero__actions,
.form-actions,
.filter-row,
.tag-row,
.admin-tabs,
.status-form,
.cart-item__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__actions {
    margin-top: 28px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.hero__stats div,
.product-view__facts div {
    padding: 16px 18px;
    border: 2px solid rgba(33, 22, 17, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
}

.hero__stats strong,
.product-view__facts strong,
.summary-card strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.2;
}

.hero__stats span,
.product-view__facts span,
.summary-card span,
.search-panel label,
.form-grid span,
.summary-card small {
    color: var(--muted);
    font-size: 0.82rem;
}

.hero-card span,
.hero-card small {
    display: block;
    margin-bottom: 8px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-card strong {
    display: block;
    margin-bottom: 12px;
    font-family: "Instrument Serif", serif;
    font-size: 2.15rem;
    line-height: 0.95;
}

.hero-card ul {
    margin: 14px 0 0;
    padding-left: 18px;
    line-height: 1.8;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 18px;
    border: 2px solid var(--line);
    border-radius: 14px;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.button--primary {
    background: var(--tomato);
    color: #fff6ee;
    box-shadow: 6px 6px 0 var(--line);
}

.button--secondary {
    background: var(--butter);
    box-shadow: 6px 6px 0 var(--line);
}

.button--ghost {
    background: var(--paper-strong);
    box-shadow: 6px 6px 0 var(--line);
}

.button--large {
    min-height: 56px;
    padding-inline: 24px;
}

.button--block {
    width: 100%;
}

.button:disabled {
    opacity: 0.5;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.badge,
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: #fff7ec;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 500;
    box-shadow: 3px 3px 0 var(--line);
}

.tag--light {
    background: #ece2d3;
    box-shadow: none;
}

.tag--link:hover {
    background: var(--sky);
}

.section {
    padding: 34px 0;
}

.section--soft {
    padding: 42px 0;
}

.section--compact {
    padding: 16px 0 34px;
}

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

.section-heading--split,
.page-head__grid,
.admin-card__topline,
.cart-item,
.product-card__topline,
.catalog-card__meta,
.catalog-card__actions,
.order-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.section-heading h2 {
    max-width: 840px;
    font-size: clamp(2.1rem, 4vw, 4.3rem);
    line-height: 0.95;
}

.feature-grid,
.category-grid,
.product-grid,
.venue-grid,
.gallery-grid,
.catalog-grid,
.footer__grid {
    display: grid;
    gap: 20px;
}

.feature-grid {
    grid-template-columns: 0.9fr 1.15fr 0.95fr;
}

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

.venue-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    align-items: stretch;
}

.product-grid,
.catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
}

.feature-card,
.category-card {
    padding: 26px;
    border-radius: 28px;
}

.feature-card:nth-child(1) {
    background: #f2d3bd;
    transform: rotate(-1.2deg);
}

.feature-card:nth-child(2) {
    background: #fffaf3;
    transform: translateY(18px);
}

.feature-card:nth-child(3) {
    background: #d9eadc;
    transform: rotate(1.4deg);
}

.category-card {
    border-radius: 30px 30px 18px 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.9)),
        radial-gradient(circle at 88% 12%, var(--card-accent), transparent 0 9rem);
}

.category-card:nth-child(2) {
    transform: translateY(16px);
}

.category-card:nth-child(3) {
    transform: rotate(-1.4deg);
}

.category-card__meta {
    display: inline-block;
    margin-bottom: 18px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feature-card h3,
.category-card h3,
.product-card h3,
.catalog-card h3,
.panel h2,
.panel h3,
.order-card h3,
.gallery-card h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.1;
}

.product-card,
.catalog-card,
.gallery-card,
.venue-card {
    overflow: hidden;
    border-radius: 34px 34px 20px 34px;
}

.product-card {
    background: #fff8f1;
    height: 100%;
}

.product-card--compact {
    transform: none !important;
}

.product-card__image,
.venue-card__image,
.gallery-card img,
.catalog-card img {
    aspect-ratio: 16 / 11;
    background: linear-gradient(180deg, #f0e1cf, #fff7ef);
}
.venue-card__image {
    max-height: 500px;
    overflow: hidden;
}
.product-card__image img,
.venue-card__image img,
.gallery-card img,
.catalog-card img,
.product-view__media img,
.cart-item img {
    height: 100%;
    object-fit: cover;
}

.product-card__content,
.catalog-card__body,
.gallery-card div,
.venue-card__body {
    padding: 22px;
}

.venue-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff9f3;
}

.venue-card--wide {
    grid-column: span 2;
}

.venue-card--tall .venue-card__image {
    aspect-ratio: 4 / 5;
}

.venue-card__image {
    flex: 0 0 auto;
}

.venue-card__body {
    flex: 0 0 auto;
    margin-top: auto;
}

.venue-card h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    line-height: 1.1;
}

.venue-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.catalog-card {
    background: #fffef9;
}

.catalog-card.is-hidden {
    display: none;
}

.catalog-card__image-link {
    display: block;
}

.catalog-card__title-link {
    display: inline-block;
}

.catalog-card__title-link h3 {
    transition: color 0.15s ease;
}

.catalog-card__title-link:hover h3 {
    color: var(--tomato);
}

.catalog-card__footer {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.catalog-card__quick-form {
    display: inline-flex;
    margin: 0;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: #fff7ec;
    box-shadow: 4px 4px 0 var(--line);
    font-weight: 700;
}

.filter-pill.is-active {
    background: var(--ink);
    color: #fff7ef;
}

.page-head,
.auth-section {
    padding: 20px 0 12px;
}

.page-head__grid,
.auth-card {
    align-items: start;
    grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.92fr);
}

.page-head__grid > div:first-child,
.auth-card > div:first-child {
    padding: 28px 30px 18px;
    border: 2px solid var(--line);
    border-radius: 34px;
    background: rgba(255, 252, 247, 0.7);
    box-shadow: var(--card-shadow-soft);
}

.summary-card,
.search-panel {
    border-radius: 24px;
    background: #fffaf5;
}

.summary-card {
    background:
        linear-gradient(135deg, rgba(242, 195, 75, 0.42), rgba(255, 255, 255, 0.92)),
        #fffaf3;
    box-shadow: 10px 10px 0 var(--line);
}

.summary-card--warm {
    background:
        linear-gradient(135deg, rgba(219, 91, 47, 0.18), rgba(255, 255, 255, 0.95)),
        #fffaf3;
}

.summary-card--spotlight {
    padding: 30px;
    border-radius: 30px 30px 18px 30px;
    background:
        linear-gradient(140deg, rgba(219, 91, 47, 0.16), rgba(242, 195, 75, 0.36), rgba(255, 255, 255, 0.98)),
        #fffaf3;
}

.summary-card__metrics {
    display: grid;
    gap: 14px;
    margin: 16px 0 18px;
}

.summary-card__metrics div {
    padding: 14px 16px;
    border: 2px solid rgba(33, 22, 17, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
}

.summary-card--spotlight .button {
    margin-top: 4px;
}

.search-panel input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.status-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    outline: none;
}

.search-panel input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.status-form select:focus {
    box-shadow: 0 0 0 4px rgba(130, 182, 155, 0.35);
}

.search-panel--wide {
    padding: 24px 28px;
    box-shadow: 10px 10px 0 var(--line);
}

.search-panel--wide label {
    margin-bottom: 12px;
    font-size: 0.88rem;
}

.search-panel--wide input {
    min-height: 62px;
    font-size: 1rem;
}

.form-grid {
    display: grid;
    gap: 16px;
}

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

.checkbox input {
    width: auto;
}

.product-view__grid,
.contacts-grid,
.cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
    align-items: start;
}

.product-view__media {
    padding: 26px;
    border: 2px solid var(--line);
    border-radius: 40px;
    background: #fff8f1;
    box-shadow: var(--card-shadow);
}

.product-view__content {
    padding: 18px 0;
}

.product-view__facts {
    display: grid;
    gap: 14px;
    margin: 26px 0;
}

.cart-list,
.order-list,
.admin-list {
    display: grid;
    gap: 18px;
}

.cart-item {
    position: relative;
    padding: 16px 0;
    border-bottom: 2px dashed rgba(33, 22, 17, 0.18);
}

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

.cart-item img {
    width: 116px;
    min-width: 116px;
    height: 116px;
    border: 2px solid var(--line);
    border-radius: 20px;
    background: #f3e1d0;
}

.cart-item__body {
    flex: 1;
}

.cart-item__remove {
    align-self: center;
}

.cart-summary-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 16px 18px;
    border: 2px solid var(--line);
    border-radius: 18px;
    background: #f8ebcf;
    box-shadow: 6px 6px 0 var(--line);
}

.checkout-note {
    padding: 14px 16px;
    border: 2px dashed var(--line);
    border-radius: 16px;
    background: rgba(130, 182, 155, 0.16);
    color: var(--ink);
    line-height: 1.6;
}

.contact-list,
.order-card__items,
.footer__links,
.check-list {
    margin: 0;
    padding-left: 18px;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.74rem;
    text-transform: uppercase;
}

.status-dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: #b7ada3;
}

.status-dot.is-available::before {
    background: var(--mint);
}

.status-dot.is-unavailable::before {
    background: var(--tomato);
}

.callout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 22px;
    border-radius: 38px;
    background: #1f1511;
    color: #fff5eb;
}

.callout::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 18px;
    width: 54px;
    height: 54px;
    border: 2px solid #fff5eb;
    border-radius: 50%;
}

.callout h2,
.callout .eyebrow,
.callout li {
    color: inherit;
}

.callout .eyebrow {
    background: rgba(255, 255, 255, 0.12);
}

.check-list {
    display: grid;
    gap: 12px;
}

.flash-stack {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.flash {
    padding: 14px 18px;
    border: 2px solid var(--line);
    border-radius: 18px;
    background: #fff8f1;
    box-shadow: 6px 6px 0 var(--line);
    font-weight: 700;
}

.flash--success {
    background: #dcecdf;
}

.flash--warning {
    background: #f5e5a6;
}

.flash--danger {
    background: #f1c7b8;
}

.empty-state {
    border-radius: 28px;
    text-align: center;
}

.prose p + p {
    margin-top: 14px;
}

.map-frame {
    min-height: 420px;
    border: 2px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
}

.order-card {
    padding: 20px 22px;
    border: 2px solid var(--line);
    border-radius: 24px;
    background: #fffaf4;
    box-shadow: 6px 6px 0 var(--line);
}

.order-card__tracking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0 16px;
    padding: 14px 16px;
    border: 2px dashed var(--line);
    border-radius: 18px;
    background: rgba(185, 213, 223, 0.26);
}

.order-card__tracking small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
}

.order-card__tracking strong {
    display: block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
}

.status-banner {
    margin: 16px 0 18px;
    padding: 18px;
    border: 2px solid var(--line);
    border-radius: 20px;
    box-shadow: 6px 6px 0 var(--line);
}

.status-banner strong {
    display: block;
    margin-bottom: 6px;
}

.status-banner--new {
    background: #f5e5a6;
}

.status-banner--in_progress {
    background: #dcecdf;
}

.status-banner--ready {
    background: #cfe4f8;
}

.status-banner--completed {
    background: #ead9d1;
}

.gallery-card:nth-child(2) {
    transform: translateY(18px);
}

.gallery-card:nth-child(3) {
    transform: rotate(-1.2deg);
}

.footer {
    padding: 32px 0 44px;
}

.footer__grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    padding: 28px;
    border: 2px solid var(--line);
    border-radius: 34px;
    background: #1d1410;
    color: #fff7ef;
    box-shadow: var(--card-shadow);
}

.footer h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer__links {
    display: grid;
    gap: 10px;
    list-style: square;
}

.brand--footer small,
.footer__text,
.footer__links li,
.footer__links a {
    color: rgba(255, 247, 239, 0.78);
}

.brand--footer .brand__badge {
    background: var(--mint);
}

.admin-grid {
    grid-template-columns: 0.78fr 1.22fr;
}

.admin-card {
    display: grid;
    gap: 18px;
    border-radius: 28px;
}

.auth-note {
    font-size: 0.92rem;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1040px) {
    .hero__grid,
    .page-head__grid,
    .product-view__grid,
    .contacts-grid,
    .cart-layout,
    .story-grid,
    .auth-card,
    .admin-grid,
    .callout,
    .feature-grid,
    .category-grid,
    .venue-grid,
    .gallery-grid,
    .product-grid,
    .catalog-grid,
    .footer__grid {
        grid-template-columns: 1fr;
    }

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

    .feature-card,
    .category-card,
    .product-card,
    .gallery-card,
    .venue-card {
        transform: none !important;
    }

    .venue-card--wide {
        grid-column: auto;
    }
}

@media (max-width: 920px) {
    .header__inner {
        grid-template-columns: auto auto;
    }

    .nav-toggle {
        display: inline-block;
        justify-self: end;
    }

    .nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 2px solid var(--line);
        border-radius: 24px;
        background: rgba(255, 248, 241, 0.98);
        box-shadow: var(--card-shadow);
    }

    .nav.is-open {
        display: flex;
    }

    .header__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 20px), var(--container));
    }

    .header {
        padding-top: 12px;
    }

    .header__inner,
    .hero__content,
    .hero-card,
    .panel,
    .summary-card,
    .category-card,
    .feature-card,
    .callout,
    .empty-state,
    .search-panel {
        padding: 20px;
    }

    .hero__content::after,
    .callout::after {
        display: none;
    }

    .hero h1,
    .page-head h1,
    .auth-card h1,
    .product-view h1 {
        font-size: clamp(2.5rem, 13vw, 4rem);
    }

    .section-heading h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .cart-item,
    .cart-item__topline,
    .section-heading--split,
    .page-head__grid,
    .admin-card__topline,
    .product-card__topline,
    .catalog-card__meta,
    .catalog-card__actions,
    .order-card__topline {
        display: block;
    }

    .order-card__tracking {
        display: block;
    }

    .cart-item img {
        width: 100%;
        height: auto;
        margin-bottom: 12px;
    }

    .cart-summary-inline {
        display: block;
    }

    .header__actions {
        display: none;
    }
}
