:root {
  color-scheme: light;
  --page: #fbf8f2;
  --paper: #fff;
  --ink: #332824;
  --muted: #65584f;
  --line: #dfd3c7;
  --lime: #eecbb6;
  --lime-hover: #f2dacb;
  --olive: #844936;
  --dark: #413129;
  --width: 1160px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.55; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-underline-offset: .2em; }
p, h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; }
.icon-library { position: absolute; }
.icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:focus-visible { outline: 2px solid #9d5439; outline-offset: 4px; }

.wrap { width: min(var(--width), calc(100% - 3rem)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: .65rem 1rem; background: var(--lime); }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -.045em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-light { font-weight: 650; }
 .brand-mark { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; }
.brand-mark svg { width: 32px; height: 32px; fill: currentColor; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-size: .93rem; font-weight: 650; text-decoration: none; }
.main-nav .icon { color: var(--olive); }
.main-nav a:hover, .site-footer a:hover { text-decoration: underline; }
.cart-toggle {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: .55rem;
  min-height: 44px;
  padding: .45rem .65rem .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .9rem;
  font-weight: 700;
}
.cart-toggle:hover, .btn-outline:hover { background: #f4e8df; }
.cart-toggle span {
  display: grid;
  place-items: center;
  min-width: 25px;
  min-height: 25px;
  padding-inline: .35rem;
  border-radius: 999px;
  background: var(--lime);
  font-size: .82rem;
}

.hero {
  display: grid;
  grid-template-columns: 41% 59%;
  overflow: hidden;
  margin-block: 1.25rem 3.75rem;
  border-radius: 24px;
  background: var(--dark);
  color: #fbfcf7;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(2rem, 4.5vw, 4rem);
}
.eyebrow { margin-bottom: 1rem; color: var(--lime); font-size: .875rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
h1 { font-size: clamp(3rem, 5.2vw, 4.25rem); font-weight: 780; letter-spacing: -.06em; line-height: .99; }
.hero-copy h1 + p { max-width: 29ch; margin-block: 1.2rem 1.5rem; color: #d7dbcf; }
.hero-image { width: 100%; height: 100%; min-height: 385px; object-fit: cover; object-position: 54% 50%; }
.hero a:focus-visible { outline-color: var(--lime); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .62rem 1rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 750;
  font-size: .93rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.btn-primary { background: var(--lime); }
.btn-primary:hover { background: var(--lime-hover); }
.btn-outline { background: var(--paper); border-color: var(--line); }

.section-head, .filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); line-height: 1.15; letter-spacing: -.05em; }
.section-head p { margin-top: .45rem; color: var(--muted); }
.search-label { position: relative; display: block; width: min(100%, 17rem); }
.search-label .icon { position: absolute; top: 50%; left: .8rem; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search-label input {
  width: 100%;
  min-height: 44px;
  padding: .55rem .85rem .55rem 2.2rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
}
.search-label input::placeholder { color: var(--muted); }
.filter-row { align-items: center; margin-block: 1.15rem .85rem; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filters button {
  min-height: 44px;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 650;
}
.filters button:hover { background: #f4e8df; }
.filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.result-count { color: var(--muted); font-size: .9rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}
.product-image, .detail-image { width: 100%; height: auto; aspect-ratio: 1; background: #f3e8db; }
.product-content { display: flex; flex: 1; flex-direction: column; padding: .85rem 1.05rem; }
.product-card h3 { font-size: 1.05rem; line-height: 1.3; }
.product-type { margin-bottom: .35rem; color: var(--olive); font-size: .875rem; font-weight: 700; }
.product-name { padding: .2rem 0; border: 0; background: none; color: inherit; font-weight: 750; text-align: left; }
.product-name:hover { text-decoration: underline; text-underline-offset: .2em; }
.product-spec { flex: 1; margin-block: .28rem .65rem; color: var(--muted); font-size: .9rem; }
.product-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem .65rem; }
.product-price { white-space: nowrap; }
.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-width: 56px;
  min-height: 44px;
  padding: .38rem .65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7eee6;
  color: var(--olive);
  font-weight: 750;
  font-size: .875rem;
}
.add-button .icon { width: .85rem; height: .85rem; }
.add-button:hover { border-color: #ccb1a1; background: #f0e0d1; }
.more-row { margin-top: 1rem; text-align: center; }
.empty-message { padding: 1.15rem; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }

.company {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2rem;
  margin-block: 3.5rem 2.75rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f4ebe1;
}
.company h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.company h3 { font-size: 1.1rem; }
.company-registration { margin-block: .4rem .55rem; font-weight: 650; }
.company p, address { color: #55483e; }
address { margin-top: .35rem; font-style: normal; }
.contact-links { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .4rem; font-weight: 650; }
.contact-links a { display: flex; align-items: center; gap: .42rem; min-height: 44px; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1rem; min-height: 60px; }
.footer-row a { display: inline-flex; align-items: center; min-height: 44px; }

dialog {
  width: min(37rem, calc(100% - 1.5rem));
  max-height: calc(100% - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop { background: rgb(20 23 17 / 64%); }
.dialog-head {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.dialog-head h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); }
.dialog-head h2:focus { outline: none; }
.dialog-body { padding: 1.05rem 1.1rem 1.2rem; }
.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}
.icon-button:hover { background: var(--page); }
.detail-image { max-width: 280px; margin: 0 auto .9rem; border-radius: 10px; }
.detail-price { margin-block: .85rem; font-size: 1.3rem; font-weight: 750; }
.cart-items, .checkout-items { margin: 0; padding: 0; list-style: none; }
.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .4rem 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-item:first-child { padding-top: 0; }
.cart-item-main strong, .line-unit-price { display: block; }
.line-unit-price { color: var(--muted); }
.line-controls { display: flex; flex-wrap: wrap; gap: .4rem .65rem; grid-column: span 2; }
.quantity-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; }
.quantity-control button, .remove-button { min-width: 44px; min-height: 44px; padding: .3rem .45rem; border: 0; background: none; color: var(--ink); }
.quantity-control button { font-size: 1.1rem; }
.quantity-control button:not(:disabled):hover, .remove-button:hover { background: var(--page); }
.quantity { min-width: 2ch; text-align: center; }
.remove-button { color: var(--muted); font-size: .875rem; text-decoration: underline; }
.dialog-summary { margin-top: .9rem; }
.total-line, .checkout-item { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.total-line { margin-block: .9rem; font-size: 1.05rem; font-weight: 700; }
.line-price, .total-line strong, .checkout-item strong { white-space: nowrap; }
.checkout-item { padding-block: .6rem; border-bottom: 1px solid var(--line); }
.payment-status { display: flex; align-items: center; gap: .55rem; margin-bottom: .9rem; padding: .8rem; border-radius: 8px; background: #f4ebe1; color: #59443a; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 45% 55%; }
  .hero-copy { padding: 1.75rem; }
  .hero-image { min-height: 345px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 7rem; }
  .wrap { width: calc(100% - 1.5rem); }
  .header-row { grid-template-columns: 1fr auto; grid-template-rows: 56px auto; gap: 0 .75rem; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-around; gap: 0; border-top: 1px solid var(--line); }
  .main-nav a { flex: 1; justify-content: center; font-size: .875rem; }
  .hero { grid-template-columns: 1fr; margin-block: .75rem 2.15rem; border-radius: 16px; }
  .hero-copy { padding: 1.4rem 1.15rem 1.55rem; }
  .hero-copy h1 + p { margin-block: .85rem 1rem; }
  .hero-image { height: auto; min-height: 0; aspect-ratio: 1.95; object-position: 50% 50%; }
  .section-head { gap: .7rem; }
  .search-label { width: 100%; }
  .filter-row { gap: .35rem; margin-top: .75rem; }
  .filters { gap: .35rem; }
  .filters button { padding-inline: .64rem; }
  .company { grid-template-columns: 1fr; gap: 1rem; margin-block: 2.3rem 1.5rem; }
}

@media (max-width: 390px) {
  .product-content { padding-inline: .68rem; }
  .product-grid { gap: .5rem; }
  .product-price { font-size: .9rem; }
  .add-button { padding-inline: .48rem; }
  .filters button { padding-inline: .48rem; font-size: .875rem; }
}

.dialog-actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: space-between; margin-top: 1rem; }

.checkout-header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.checkout-header .btn { white-space: nowrap; }
.checkout-page { padding-block: clamp(1.25rem, 3vw, 2.6rem) 3rem; }
.checkout-page h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.05em; margin-bottom: 1.2rem; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.checkout-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: clamp(.9rem, 2.5vw, 1.45rem); }
.checkout-card h2 { font-size: 1.35rem; margin-bottom: .7rem; }
.checkout-empty { max-width: 32rem; }
.checkout-empty p, .checkout-note { color: var(--muted); margin-bottom: .9rem; }
.checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem .85rem; margin-bottom: 1rem; }
.checkout-field { display: flex; flex-direction: column; gap: .22rem; min-width: 0; font-size: .9rem; font-weight: 650; }
.checkout-field-wide { grid-column: 1 / -1; }
.checkout-field :is(input, select, textarea) {
  width: 100%;
  min-height: 44px;
  padding: .55rem .65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}
.checkout-field input[readonly] { background: var(--page); }
.checkout-field textarea { resize: vertical; }
.checkout-review dl { margin-block: .7rem 1rem; }
.checkout-review dt { font-weight: 700; margin-top: .6rem; }
.checkout-review dd { margin-inline: 0; overflow-wrap: anywhere; }
.checkout-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; font-size: .9rem; }
.checkout-item img { border-radius: 5px; }
.checkout-order .payment-status { margin-bottom: 0; }

@media (max-width: 720px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .checkout-order { grid-row: 1; }
}
@media (max-width: 440px) {
  .checkout-fields { grid-template-columns: minmax(0, 1fr); }
  .checkout-item { grid-template-columns: 42px minmax(0, 1fr) auto; gap: .5rem; }
  .checkout-item img { width: 42px; height: auto; }
}


.product-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .65rem; }
.spec-badge { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .35rem; padding: .26rem .48rem; border: 1px solid #e2d4c6; border-radius: 7px; background: #faf3eb; color: var(--olive); font-size: .875rem; line-height: 1.35; }
.spec-badge strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.cart-empty, .checkout-empty { text-align: center; }
.cart-empty { padding: .85rem .6rem .65rem; }
.cart-empty p:not(.empty-title) { color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto .65rem; border-radius: 13px; background: #f4e8dc; color: var(--olive); }
.empty-icon .icon { width: 1.4rem; height: 1.4rem; }
.empty-title { margin-bottom: .25rem; font-weight: 750; }
.detail-specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .45rem .75rem; margin: .85rem 0 .55rem; padding: .75rem; border: 1px solid var(--line); border-radius: 9px; font-size: .9rem; }
.detail-specs dt { font-weight: 650; }
.detail-specs dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.estimate-note { color: var(--muted); font-size: .875rem; }

.hero-media { display: block; min-width: 0; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .cart-toggle, .add-button { transition: background-color 140ms ease, border-color 140ms ease; }

  dialog[open] { animation: panel-enter 180ms ease-out both; }
  dialog[open]::backdrop { animation: backdrop-enter 160ms ease-out both; }
  .checkout-review:not([hidden]) { animation: panel-enter 180ms ease-out both; }

  @keyframes panel-enter {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes backdrop-enter {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

.footer-row nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.payment-consent { margin-block: 1rem; color: var(--ink); }
.payment-consent label { display: flex; gap: .6rem; align-items: flex-start; min-height: 44px; }
.payment-consent input { margin: .2rem 0 0; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--olive); }
.payment-consent p, .payment-error { margin: .4rem 0 1rem; }
.payment-error { color: #8f1e1e; }
.checkout-final { border-top: 1px solid var(--line); padding-top: .75rem; }
.policy-page { max-width: 52rem; padding-block: 2rem 3rem; }
.policy-page h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: .65rem; }
.policy-page h2 { font-size: 1.45rem; margin: 1.6rem 0 .55rem; }
.policy-page h3 { font-size: 1.12rem; margin: 1.1rem 0 .35rem; }
.policy-page p { margin-bottom: .75rem; }
.policy-nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }

.dialog-actions:has(#open-checkout[hidden]) { justify-content: center; }
@media (max-width: 480px) {
  .product-actions { display: grid; grid-template-columns: 1fr; }
  .product-actions .add-button { width: 100%; }
}


.payment-step { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1.1rem; }
.payment-step h3 { font-size: 1rem; margin: 0; }
.payment-step .payment-consent { margin: .7rem 0 .9rem; }
.payment-step .payment-consent p { margin: .25rem 0 0 1.75rem; }
.pay-button { width: 100%; min-height: 64px; justify-content: flex-start; gap: .85rem; padding: .55rem .8rem; text-align: left; }
.pay-logo { width: 90px; min-height: 40px; padding: .35rem .45rem; display: grid; place-items: center; flex: none; border-radius: 6px; background: #fff; }
.pay-logo img { width: 100%; height: auto; }
.pay-button-copy { display: grid; gap: .16rem; line-height: 1.3; min-width: 0; }
.pay-button-copy small { font-size: .875rem; font-weight: 550; }
@media (max-width: 400px) { .pay-button { gap: .65rem; } .pay-logo { width: 80px; } }

.checkout-item img { object-fit: contain; height: auto; }
.merchant-note { margin-block: .5rem .8rem; font-size: .94rem; color: var(--muted); }

:root { font-family: "Segoe UI", system-ui, sans-serif; }
.wordmark { gap: .5rem; color: #502e26; }
.brand-mark { background: #773c2d; border-radius: 50%; color: #fff2dd; }
.brand-mark svg { width: 27px; }
.brand-name { font-family: Georgia,serif; font-size: 1.6rem; font-weight: 550; letter-spacing: -.065em; }
.brand-name i { font-weight: 400; }
.hero { background: #f4e4d4; color: #352721; margin-top: 1.4rem; border-radius: 0; }
.hero-copy h1 + p { color: #644e42; max-width: 35ch; }
.hero .eyebrow { color: #794435; letter-spacing: .12em; font-size: .78rem; }
.hero h1,.catalogue h2,.company h2,.checkout-page h1,.policy-page h1 { font-family: Georgia,serif; font-weight: 400; letter-spacing: -.055em; }
.hero h1 { font-size: clamp(3.3rem,5.6vw,5.2rem); }
.hero h1 em { font-weight: 400; color: #834a37; }
.hero .btn,.btn-primary { background: #783f30; color: #fff8f0; }
.hero .btn:hover,.btn-primary:hover { background:#5d2c22; color:#fff; }
.section-head { padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.filters button { border-radius: 30px; }
.filters button[aria-pressed="true"] { background: #783f30; border-color:#783f30; }
.product-card { border-radius: 3px; }
.product-type { font-weight: 650; }
.product-card h3 { font-family: Georgia,serif; font-size: 1.25rem; }
.product-name { font-weight: 500; }
.btn,.add-button { border-radius: 24px; }
.pay-button { border-radius: 12px; }
.product-grid { gap: 1rem; }
.company { background: #f2e8da; border: 0; border-block: 1px solid var(--line); border-radius: 0; }
@media(min-width:681px){ .hero { grid-template-columns: 52% 48%; } .hero-media { grid-column: 1; grid-row:1; } .hero-copy { grid-column: 2; grid-row:1; } }
@media(max-width:680px){ .hero-media { grid-row: 1; } .hero-image { aspect-ratio:2.25; } .hero-copy {padding:1.25rem 1.15rem 1.5rem;} .product-grid{ gap:.6rem; } }
