:root {
  color-scheme: light;
  --paper: #fcfdfa;
  --surface: #fff;
  --photo-surface: #f1f2ec;
  --photo-note: #fcfdfafa;
  --control-border: #c4cebc;
  --control-hover-border: #98a98b;
  --guide-line: #c8d4b2;
  --focus: #688515;
  --backdrop: #1b1d16a3;
  --pale-green: #f0f5e3;
  --charcoal: #101210;
  --ink: #161a13;
  --muted: #50574b;
  --line: #dde3d6;
  --lime: #a3c236;
  --lime-hover: #b4d14a;
  --lime-border: #8caa28;
  --green: #405616;
  --heading: "Montagu Slab", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101010;
  --surface: #1b1b1b;
  --photo-surface: #242424;
  --photo-note: #1b1b1bfa;
  --control-border: #757575;
  --control-hover-border: #a0a0a0;
  --guide-line: #4e4e4e;
  --focus: #c4dc67;
  --backdrop: #000c;
  --pale-green: #161616;
  --charcoal: #101010;
  --ink: #f2f2f2;
  --muted: #bfbfbf;
  --line: #424242;
  --green: #bdd66d;
  --header-line: #383838;
  --header-control-border: #737373;
  --header-hover: #292929;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; min-width: 280px; line-height: 1.55; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
img { display: block; width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--lime); }
.container { width: min(100% - 112px, 1320px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus { position: fixed; top: 10px; left: 12px; z-index: 20; background: var(--lime); color: var(--charcoal); padding: 10px 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--charcoal);
  border-bottom: 1px solid var(--header-line, #363c30);
  color: white;
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 94px; gap: 28px; padding-block: 6px; }
.brand { display: inline-flex; justify-self: start; padding: 2px 6px 1px; background: white; border-radius: 4px 13px 4px 4px; }
.brand-logo {
  width: clamp(126px, 13vw, 162px);
  height: auto;
  clip-path: polygon(1% 2%, 99% 2%, 99% 95%, 59.9% 95%, 59.9% 77%, 1% 77%);
}
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 31px); }
.main-nav a, .footer-inner > a:not(.brand) { color: #f5f7f1; text-decoration: none; font-size: .9rem; font-weight: 600; }
.main-nav a { white-space: nowrap; }
.main-nav a:hover, .footer-inner > a:not(.brand):hover { color: var(--lime); }
.main-nav .featured-nav-link { color: var(--lime); }
.header-actions { display: flex; justify-self: end; align-items: center; gap: 8px; }
.theme-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--header-control-border, #646e5b);
  border-radius: 7px;
  background: transparent;
  color: white;
}
.theme-toggle:hover { background: var(--header-hover, #2f3828); }
.theme-toggle[aria-pressed="true"] { border-color: var(--lime-border); color: var(--lime); }
.theme-toggle[aria-pressed="false"] .theme-sun,
.theme-toggle[aria-pressed="true"] .theme-moon { display: none; }
.order-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 11px 8px 13px;
  min-height: 44px;
  white-space: nowrap;
  border-radius: 7px;
  border: 1px solid var(--header-control-border, #646e5b);
  background: transparent;
  color: white;
  font-size: .875rem;
  font-weight: 700;
}
.order-toggle:hover { background: var(--header-hover, #2f3828); }
.order-count { display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 5px; border-radius: 20px; background: var(--lime); color: var(--charcoal); font-size: .75rem; }
.icon-bag { position: relative; display: inline-block; width: 15px; height: 13px; border: 1.5px solid currentColor; border-radius: 2px 2px 3px 3px; margin-top: 4px; flex: none; }
.icon-bag::before { content: ""; position: absolute; width: 7px; height: 5px; left: 50%; top: -6px; transform: translateX(-50%); border: 1.5px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }

.hero { background: var(--charcoal); color: white; border-bottom: 4px solid var(--lime); }
.hero-inner { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(30px, 4.5vw, 75px); align-items: center; padding-block: 40px 48px; }
.hero-copy { padding-block: 8px; }
.hero-copy::before { content: ""; display: block; width: 49px; height: 5px; background: var(--lime); border-radius: 1px 6px 1px 1px; }
.hero h1 { font-family: var(--heading); font-weight: 700; font-size: clamp(3.15rem, 5.65vw, 5.35rem); letter-spacing: -.065em; line-height: 1.01; margin: 16px 0 19px; }
.hero h1 span { display: block; color: var(--lime); }
.hero-description { max-width: 355px; color: #d5dbd0; font-size: 1.0625rem; margin-bottom: 23px; }
.hero-photo { position: relative; isolation: isolate; margin: 0 10px 10px 0; }
.hero-photo::before { content: ""; position: absolute; z-index: -1; inset: 13% -10px -10px 11%; background: var(--lime); border-radius: 6px 24px 6px 6px; }
.hero-photo img { aspect-ratio: 1.52; object-fit: cover; object-position: center 51%; border-radius: 6px 24px 6px 6px; background: #b8b09f; }
.photo-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  color: white;
  background: #101210e5;
  border-radius: 4px;
  font-size: .75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  transition: background-color .15s, border-color .15s;
}
.button-primary { background: var(--lime); color: var(--charcoal); border-color: var(--lime-border); }
.button-primary:hover { background: var(--lime-hover); }
.button-outline { background: transparent; color: var(--ink); border-color: var(--control-border); }
.button-outline:hover { background: var(--pale-green); border-color: var(--control-hover-border); }

.featured-section { background: var(--pale-green); border-bottom: 1px solid var(--line); }
.featured-inner { padding-block: clamp(28px, 4vw, 52px); }
.featured-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.featured-heading a { color: var(--green); font-weight: 700; text-underline-offset: 4px; }
.featured-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.featured-card { position: relative; }
.featured-card .featured-photo :is(img, .photo-placeholder) { aspect-ratio: 1.5; }
.featured-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: clamp(14px, 1.8vw, 22px); }
.featured-copy h3 { font-size: clamp(1.16rem, 1.7vw, 1.4rem); line-height: 1.2; margin-top: 4px; }
.featured-description { color: var(--muted); margin: 7px 0 15px; }
.featured-open { margin-top: auto; }
.featured-open::after { content: ""; position: absolute; inset: 0; }
.featured-card:hover .featured-photo img { transform: scale(1.025); }

.catalog-section { padding-block: 49px 71px; }
.recent-section { margin-bottom: clamp(27px, 4vw, 50px); }
.recent-section h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 12px; }
.recent-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.recent-product {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 80px;
  padding: 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); text-align: left;
}
.recent-product:hover { border-color: var(--control-hover-border); }
.recent-product img {
  flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain;
  border-radius: 5px; background: var(--photo-surface);
}
.recent-product strong, .recent-product small { display: block; overflow-wrap: anywhere; }
.recent-product strong { font-size: .95rem; line-height: 1.25; }
.recent-product small { color: var(--muted); margin-top: 4px; font-size: .875rem; line-height: 1.2; }
.catalog-heading { display: flex; gap: 20px; justify-content: space-between; align-items: end; }
h2 { font-family: var(--heading); font-weight: 600; font-size: clamp(2rem, 3.7vw, 3.25rem); letter-spacing: -.055em; line-height: 1.08; }
.catalog-heading p { color: var(--muted); margin-top: 9px; }
.search { position: relative; flex: 0 1 274px; color: var(--green); }
.search input { display: block; width: 100%; min-height: 45px; border: 1px solid var(--control-border); padding: 8px 12px 8px 39px; border-radius: 7px; color: var(--ink); background: var(--surface); }
.search input::placeholder { color: var(--muted); }
.icon-search { position: absolute; top: 14px; left: 14px; width: 13px; height: 13px; border: 1.6px solid currentColor; border-radius: 50%; pointer-events: none; }
.icon-search::after { content: ""; position: absolute; width: 6px; height: 1.6px; left: 9px; top: 10px; background: currentColor; transform: rotate(45deg); transform-origin: left; }
.filter-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 23px 0 18px; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: transparent; padding: 7px 15px; min-height: 38px; border-radius: 24px; font-size: .875rem; font-weight: 600; }
.filters button:hover { background: var(--pale-green); }
.filters button[aria-pressed="true"] { background: var(--lime); color: var(--charcoal); border-color: var(--lime-border); }
.advanced-filters { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 18px; }
.advanced-filters summary { min-height: 46px; padding: 11px 15px; font-weight: 700; cursor: pointer; }
.advanced-filters summary::marker { color: var(--green); }
.advanced-filter-count { margin-left: 6px; padding: 1px 7px; border-radius: 20px; background: var(--lime); color: var(--charcoal); font-size: .75rem; }
.advanced-filter-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(175px, 100%), 1fr)); gap: 12px; padding: 13px 15px 0; border-top: 1px solid var(--line); }
.advanced-filter-fields label { display: grid; align-content: end; gap: 5px; min-width: 0; font-size: .875rem; font-weight: 700; }
.advanced-filter-fields :is(select, input) { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--control-border); border-radius: 7px; padding: 7px 9px; background: var(--paper); color: var(--ink); font-weight: 500; }
.advanced-filter-fields input::placeholder { color: var(--muted); }
.advanced-filter-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 15px 15px; }
.advanced-filter-footer p { color: var(--muted); font-size: .875rem; }
.advanced-filter-footer button:disabled { opacity: .55; cursor: default; }
.result-count { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 25px); }
.product-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.photo-gallery { position: relative; }
.photo-arrow {
  position: absolute; z-index: 1; inset-block-start: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: #fff; background: #141a14dc; border: 1px solid #ffffffa6;
  border-radius: 50%; touch-action: manipulation;
}
.photo-arrow:hover { background: #141a14; }
.photo-arrow:focus-visible { outline-color: var(--lime); outline-offset: 2px; }
.photo-arrow::before { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; }
.photo-arrow-prev { inset-inline-start: 7px; }
.photo-arrow-next { inset-inline-end: 7px; }
.photo-arrow-prev::before { transform: translateX(2px) rotate(135deg); }
.photo-arrow-next::before { transform: translateX(-2px) rotate(-45deg); }
.product-visual { display: block; position: relative; width: 100%; padding: 0; border: 0; overflow: hidden; background: var(--photo-surface); }
.product-visual:focus-visible { outline-offset: -5px; }
.product-visual img { aspect-ratio: 1.16; object-fit: contain; transition: transform .25s ease; }
.product-visual:hover img { transform: scale(1.025); }
.photo-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 1.16; min-height: 150px; padding: 10px; background: var(--photo-surface); color: var(--muted); font-size: .875rem; }
.card-photo-note { position: absolute; inset: auto 8px 8px; padding: 4px 7px; border-radius: 4px; background: var(--photo-note); color: var(--muted); font-size: .75rem; text-align: left; }
.product-content { display: grid; gap: 13px; align-content: space-between; flex: 1; padding: clamp(13px, 1.6vw, 22px); }
.product-category { color: var(--green); font-size: .875rem; font-weight: 700; }
.product-content h3 { font-weight: 800; line-height: 1.2; font-size: clamp(1.13rem, 1.7vw, 1.45rem); letter-spacing: -.025em; margin-top: 3px; }
.product-price { color: var(--muted); font-size: .875rem; margin-top: 6px; }
.finish-field { position: relative; display: grid; gap: 4px; margin-top: 12px; font-size: .875rem; font-weight: 650; }
.finish-select { appearance: none; width: 100%; min-width: 0; min-height: 44px; padding: 8px 31px 8px 10px; border: 1px solid var(--control-border); border-radius: 6px; background-color: var(--surface); color: var(--ink); font-size: 1rem; font-weight: 500; }
.finish-field::after { content: ""; position: absolute; right: 13px; bottom: 19px; width: 8px; height: 8px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.single-finish { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.single-finish, .finish-label { display: flex; align-items: center; gap: 6px; }
.finish-swatch { width: 18px; height: 18px; flex: none; border: 1px solid #a7aa9d; border-radius: 50%; object-fit: cover; }
.product-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-actions .button { flex: 1; }
.add-button { border: 1px solid var(--lime-border); border-radius: 7px; background: var(--lime); color: var(--charcoal); min-width: 46px; min-height: 46px; font-size: 1.5rem; line-height: 1; }
.add-button:hover { background: var(--lime-hover); }
.catalog-more:has(button:not([hidden])) { display: flex; justify-content: center; margin-top: 24px; }
.empty-results { text-align: center; border: 1px dashed var(--control-border); border-radius: 9px; padding: 45px 15px; }
.empty-results p { margin: 5px 0 16px; color: var(--muted); }
.catalog-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 24px; padding: clamp(15px, 2.2vw, 26px); background: var(--pale-green); border: 1px solid var(--line); border-radius: 9px; }
.catalog-help h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.2; }
.catalog-help p { color: var(--muted); margin-top: 5px; }

.order-guide { background: var(--pale-green); border-top: 1px solid var(--line); }
.guide-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 7vw, 110px); padding-block: 59px; }
.guide-intro p { color: var(--muted); margin: 12px 0 20px; }
.guide-steps { margin: 0; padding: 0; list-style: none; }
.guide-steps li { border-top: 1px solid var(--guide-line); padding: 13px 0; }
.guide-steps li:last-child { border-bottom: 1px solid var(--guide-line); }
.guide-steps h3 { font-size: 1rem; }
.guide-steps p { color: var(--muted); margin-top: 3px; }
.site-footer { color: white; background: var(--charcoal); border-top: 3px solid var(--lime); }
.footer-inner { min-height: 83px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 15px; }
.footer-inner .brand-logo { width: 126px; }
.footer-inner p { color: #cbd0c0; font-size: .875rem; }
.footer-inner > .footer-admin { color: #cbd0c0; font-weight: 500; }
.footer-contact span { white-space: nowrap; }

dialog { border: 0; color: var(--ink); padding: 0; background: var(--paper); }
dialog::backdrop { background: var(--backdrop); }
.detail-dialog { width: min(850px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); border-radius: 13px; }
.detail-layout { display: grid; grid-template-columns: 1.02fr 1fr; }
.detail-visual { display: grid; align-content: center; min-width: 0; background: var(--photo-surface); }
.detail-image { aspect-ratio: 1; max-height: min(550px, calc(100vh - 64px)); object-fit: contain; }
.detail-photo-note { display: block; margin: 0; padding: 7px 12px; color: var(--muted); font-size: .8125rem; }
.detail-copy { align-self: center; padding: 42px 28px 32px; }
.detail-copy h2 { margin: 6px 20px 12px 0; font-size: clamp(1.75rem, 3.5vw, 2.65rem); }
.detail-description, .product-maker, .detail-consult { color: var(--muted); }
.product-maker { font-size: .875rem; margin-top: 5px; }
.product-specifications { padding-top: 12px; margin-top: 15px; border-top: 1px solid var(--line); }
.product-specifications h3 { font-size: 1rem; }
.product-specifications h3:not(:first-child) { margin-top: 10px; }
.product-measurements { display: grid; gap: 3px; margin: 5px 0 0; }
.product-measurements div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.product-measurements dt, .product-features { color: var(--muted); }
.product-measurements dd { margin: 0; font-weight: 650; }
.product-features { margin: 4px 0 0; padding-left: 20px; }
.detail-consult { padding-top: 12px; margin: 15px 0; border-top: 1px solid var(--line); }
.close-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 1.55rem; line-height: 1; }
.close-button:hover { background: var(--pale-green); }
.detail-close { position: absolute; top: 10px; right: 10px; z-index: 1; }
.order-dialog { position: fixed; inset: 0 0 0 auto; width: min(490px, 100%); max-width: none; height: 100%; max-height: none; margin: 0; overflow: hidden; }
.order-panel { display: flex; flex-direction: column; height: 100%; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 23px 22px 19px; border-bottom: 1px solid var(--line); }
.panel-header h2 { font-size: clamp(1.85rem, 7vw, 2.5rem); }
.panel-header p { color: var(--muted); font-size: .875rem; margin-top: 4px; }
.panel-body { padding: 16px 22px 26px; overflow: auto; overscroll-behavior: contain; }
.cart-empty { display: grid; justify-items: center; text-align: center; padding: 30px 0; gap: 10px; }
.cart-empty .icon-bag { color: var(--green); margin-bottom: 4px; transform: scale(1.25); }
.cart-empty p { color: var(--muted); }
.cart-items { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0 0 20px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-item img { aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: var(--photo-surface); }
.cart-photo-empty { display: grid; place-items: center; height: 64px; border-radius: 6px; background: var(--photo-surface); color: var(--green); }
.cart-finish { color: var(--muted); font-size: .875rem; }
.cart-item h3 { font-size: 1rem; }
.cart-item-actions { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.cart-item-actions button { min-width: 36px; min-height: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.cart-item-actions button:hover { background: var(--pale-green); }
.cart-item-actions button:disabled { cursor: default; opacity: .5; }
.cart-item-actions .remove-item { margin-left: auto; padding: 5px 8px; border-color: transparent; background: transparent; font-size: .8125rem; text-decoration: underline; }
.cart-quantity { min-width: 24px; text-align: center; }
.full-width { width: 100%; }
.cart-guidance { margin-top: 10px; color: var(--muted); font-size: .875rem; }
.toast { display: none; position: fixed; z-index: 10; bottom: 20px; right: 20px; max-width: calc(100vw - 40px); background: var(--charcoal); color: white; border: 1px solid #626752; border-radius: 8px; padding: 11px 16px; font-size: .875rem; box-shadow: 0 6px 20px #20221b33; }
.toast:not(:empty) { display: block; }

@media (max-width: 1000px) {
  .container { width: calc(100% - 64px); }
  .hero-inner { gap: 32px; }
  .hero h1 { font-size: clamp(2.2rem, 5.1vw, 3.85rem); }
  .hero-photo img { aspect-ratio: 1.2; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 133px; }
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 77px; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding-block: 6px 0; }
  .brand-logo { width: clamp(106px, 30vw, 135px); }
  .main-nav { grid-area: 2 / 1 / auto / -1; justify-content: center; gap: clamp(12px, 5vw, 30px); border-top: 1px solid var(--header-line, #363c30); }
  .main-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .hero-inner { grid-template-columns: 1fr; gap: 25px; padding-block: 25px 22px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.45rem, 9vw, 4.4rem); margin: 13px 0 14px; }
  .hero-description { margin-bottom: 17px; font-size: 1rem; }
  .hero-photo img { aspect-ratio: 1.54; }
  .featured-products { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 4px; margin-inline: -4px; padding: 4px 4px 12px; }
  .featured-card { scroll-snap-align: start; }
  .catalog-section { padding-block: 32px 45px; }
  .recent-products {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(77%, 250px);
    overflow-x: auto; padding: 4px 4px 9px; margin-inline: -4px;
    scroll-snap-type: x proximity; scroll-padding-inline: 4px;
  }
  .recent-product { scroll-snap-align: start; }
  .catalog-heading { display: grid; gap: 14px; }
  .filter-row { flex-direction: column; align-items: flex-start; margin-top: 15px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-content { padding: 10px; }
  .product-actions { gap: 5px; }
  .product-actions .button { padding-inline: 5px; }
  .add-button { min-width: 39px; }
  .product-visual img, .product-visual .photo-placeholder { aspect-ratio: 1; }
  .guide-inner { grid-template-columns: 1fr; gap: 22px; padding-block: 36px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { order: 3; width: 100%; }
}
@media (max-width: 520px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-image { max-height: min(42vh, 320px); }
  .detail-copy { padding: 20px; }
}
@media (max-width: 390px) {
  .order-toggle { gap: 6px; padding-inline: 8px; }
  .order-toggle .icon-bag { display: none; }
}
@media (max-width: 370px) {
  .container { width: calc(100% - 26px); }
  .products { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.05rem, 10.5vw, 2.45rem); }
}
@media (max-width: 330px) {
  .order-toggle .icon-bag { display: inline-block; }
  .order-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
