@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --ink: #213b31;
  --paper: #faf9f6;
  --muted: #667168;
  --line: #dce1d7;
  --lime: #d6e8a9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px "DM Sans",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  max-width: 100%;
}
button {
  cursor: pointer;
}
a,
button,
input,
select,
textarea {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8da849;
  outline-offset: 4px;
}
img {
  max-width: 100%;
  display: block;
}
.announcement {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
}
header {
  height: 96px;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.logo {
  font:
    800 32px Manrope,
    sans-serif;
  letter-spacing: -2px;
  white-space: nowrap;
}
.logo span {
  font-weight: 400;
}
.logo sup {
  font-size: 11px;
  letter-spacing: 0;
  margin-left: 4px;
}
nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
}
nav small {
  font-size: 8px;
  padding: 3px;
  background: var(--lime);
}
.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
.actions button {
  background: none;
  border: 0;
  font-size: 28px;
  width: 44px;
  height: 44px;
}
.actions span {
  border: 1px solid;
  border-radius: 50%;
  padding: 4px 8px;
  margin-left: 7px;
  font-size: 12px;
}
#menu {
  display: none;
}
.hero {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 570px;
  margin: 28px 3% 0;
  background: #e9ecdf;
  overflow: hidden;
}
.hero-copy {
  padding: 65px 12%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
}
.hero h1 {
  font:
    500 clamp(50px, 5.5vw, 83px)/1.05 Manrope,
    sans-serif;
  letter-spacing: -4px;
  margin: 25px 0;
}
.hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
}
.hero p {
  font-size: 15px;
  line-height: 1.8;
  max-width: 310px;
  color: #526355;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  min-height: 48px;
  padding: 15px 28px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
}
.btn:hover {
  background: #3d594b;
  transform: translateY(-2px);
}
.btn.light {
  background: transparent;
  color: var(--ink);
}
.hero .btn {
  margin-top: 22px;
}
.hero-visual {
  position: relative;
  min-height: 570px;
  background: #b1b6a5;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: center 35%;
}
.hero-label {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  text-shadow: 0 1px 6px #000;
  font-size: 12px;
}
.hero-label span:last-child {
  padding: 8px 12px;
  border: 1px solid #ffffff88;
  border-radius: 30px;
}
.benefits {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  padding: 25px 5%;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.benefits b {
  font-weight: 400;
  font-size: 19px;
  margin-right: 10px;
}
.section {
  padding: 70px 5%;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
h2 {
  font:
    500 36px Manrope,
    sans-serif;
  letter-spacing: -1.5px;
  margin: 12px 0;
}
.text-link {
  font-size: 13px;
  border-bottom: 1px solid;
  padding-bottom: 5px;
}
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.category {
  position: relative;
  height: 290px;
  background: #e9e8e2;
  overflow: hidden;
}
.category img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.category:hover img {
  transform: scale(1.05);
}
.category-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: var(--paper);
  padding: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}
.category-label small {
  font-size: 11px;
  color: var(--muted);
}
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.product-picture {
  position: relative;
  aspect-ratio: 1.18;
  background: #eceae4;
  overflow: hidden;
}
.product-picture > a {
  height: 100%;
  display: block;
}
.product-picture img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-picture:hover img {
  transform: scale(1.07);
}
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  background: white;
  padding: 6px 9px;
  letter-spacing: 0.06em;
}
.quick {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 10px;
  border: 0;
  background: #fffffff0;
  font-size: 12px;
  opacity: 0;
  transition: 0.2s;
}
.product-picture:hover .quick,
.product-picture:focus-within .quick {
  opacity: 1;
}
.product-info {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}
.product-info h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}
.product-info p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0;
}
.price {
  font-size: 14px;
  white-space: nowrap;
}
.dots {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}
.dots i {
  width: 9px;
  height: 9px;
  background: #35332c;
  border-radius: 50%;
}
.dots i:nth-child(2) {
  background: #aa8e6e;
}
.dots i:nth-child(3) {
  background: #c0bdaa;
}
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px 3%;
  background: var(--ink);
  color: white;
}
.editorial img {
  width: 100%;
  height: 490px;
  object-fit: cover;
}
.editorial-copy {
  padding: 60px 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.editorial h2 {
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -2px;
}
.editorial p {
  font-size: 15px;
  line-height: 1.8;
  color: #c9d3c8;
}
.editorial .btn {
  border-color: white;
  margin-top: 20px;
}
.statement {
  text-align: center;
  padding: 65px 20%;
  border-top: 1px solid var(--line);
}
.statement h2 {
  font:
    38px/1.35 Georgia,
    serif;
}
.statement p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
footer {
  background: #e9ede3;
  padding: 50px 5% 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
}
.footer-grid p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 270px;
}
.footer-grid h4 {
  font-size: 13px;
  margin: 8px 0 20px;
}
.footer-grid > div > a:not(.logo) {
  display: block;
  font-size: 13px;
  margin: 13px 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #cbd3c6;
  margin-top: 40px;
  padding-top: 22px;
  font-size: 11px;
  color: var(--muted);
}
.page-title {
  padding: 50px 5% 25px;
}
.page-title h1 {
  font:
    500 52px Manrope,
    sans-serif;
  letter-spacing: -2px;
  margin: 14px 0;
}
.page-title p {
  color: var(--muted);
  line-height: 1.7;
}
.shop-controls {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tabs button {
  border: 1px solid var(--line);
  background: none;
  border-radius: 30px;
  padding: 11px 17px;
  font-size: 13px;
}
.filter-tabs button.active {
  background: var(--ink);
  color: white;
}
.shop-bottom {
  display: flex;
  gap: 12px;
}
input,
select,
textarea {
  padding: 13px;
  background: white;
  border: 1px solid #b6c1b2;
  min-height: 46px;
  border-radius: 0;
}
input[type="search"] {
  width: 220px;
}
.results {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 25px;
}
.empty {
  text-align: center;
  padding: 70px 20px;
  grid-column: 1/-1;
}
.breadcrumb {
  padding: 25px 5% 0;
  color: var(--muted);
  font-size: 12px;
}
.detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 7%;
  padding: 35px 5% 60px;
}
.detail-main {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  background: #eae7e0;
}
.thumbs {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}
.thumbs button {
  width: 90px;
  padding: 0;
  border: 1px solid var(--line);
  background: #eee;
}
.thumbs img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
}
.detail h1 {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -1.5px;
  margin: 15px 0;
}
.large-price {
  font-size: 23px;
  margin-bottom: 24px;
}
.detail p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
}
.field label {
  font-size: 13px;
  font-weight: 500;
}
.options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.options button {
  border: 1px solid var(--line);
  background: none;
  padding: 11px 17px;
  font-size: 13px;
}
.options button.selected {
  border: 2px solid var(--ink);
  padding: 10px 16px;
  background: #e5ecdc;
}
.add-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.add-row .btn {
  flex: 1;
}
.quantity {
  display: flex;
  align-items: center;
  border: 1px solid #b6c1b2;
  background: white;
}
.quantity button {
  background: none;
  border: 0;
  width: 42px;
  height: 46px;
}
.quantity span {
  min-width: 26px;
  text-align: center;
  font-size: 14px;
}
.detail details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 14px;
}
.detail details:first-of-type {
  margin-top: 30px;
}
.detail summary {
  cursor: pointer;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 7%;
  padding: 10px 5% 70px;
}
.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 120px;
  height: 100px;
  object-fit: cover;
}
.cart-item h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}
.cart-item p {
  font-size: 12px;
  color: var(--muted);
}
.remove {
  border: 0;
  border-bottom: 1px solid;
  background: none;
  padding: 0;
  font-size: 12px;
  margin-top: 12px;
}
.summary-box {
  background: #e8ede1;
  padding: 28px;
  align-self: start;
}
.summary-box h2 {
  font-size: 24px;
  margin-top: 0;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 20px 0;
}
.summary-box .btn {
  width: 100%;
  margin-top: 15px;
}
.small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.form {
  max-width: 650px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form .field {
  margin: 12px 0;
}
.form textarea {
  min-height: 140px;
  resize: vertical;
}
.form-message {
  padding: 16px;
  background: #e4eccf;
  margin-top: 20px;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 15%;
  padding: 0 5% 75px;
}
.contact-layout aside h3 {
  font-size: 20px;
  font-weight: 500;
  margin-top: 30px;
}
.contact-layout aside p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: center;
  margin: 30px 5%;
}
.about-hero img {
  height: 500px;
  width: 100%;
  object-fit: cover;
}
.about-hero h1 {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.1;
}
.about-hero p {
  color: var(--muted);
  line-height: 1.9;
}
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.values h3 {
  font-size: 24px;
  font-weight: 500;
}
.values p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
dialog {
  border: 0;
  padding: 30px;
  background: var(--paper);
  color: var(--ink);
  width: min(880px, 92vw);
  max-height: 90vh;
}
dialog::backdrop {
  background: #10221db3;
  backdrop-filter: blur(4px);
}
.dialog-close {
  float: right;
  border: 0;
  background: none;
  font-size: 27px;
  width: 44px;
  height: 44px;
}
.quick-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  clear: both;
}
.quick-layout img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.quick-layout p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: white;
  padding: 16px 25px;
  z-index: 20;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.success {
  max-width: 650px;
  margin: 70px auto;
  text-align: center;
  padding: 0 25px;
}
.success-mark {
  font-size: 40px;
  background: var(--lime);
  width: 85px;
  height: 85px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
}
.success h1 {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -1px;
}
.success p {
  line-height: 1.8;
  color: var(--muted);
}

/* Shared safeguards: let grid and flex children shrink without clipping content. */
html {
  scroll-padding-top: 1.5rem;
}
body {
  line-height: 1.5;
}
header {
  position: relative;
  z-index: 10;
  gap: 1.5rem;
  min-height: 96px;
  height: auto;
  padding-block: 1.25rem;
}
main,
header > *,
.section-head > *,
.products > *,
.categories > *,
.detail > *,
.cart-layout > *,
.cart-item > *,
.contact-layout > *,
.about-hero > *,
.footer-grid > *,
.quick-layout > *,
.form-grid > * {
  min-width: 0;
}
main,
footer {
  overflow-wrap: break-word;
}
nav {
  align-items: center;
}
nav a,
.actions > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
nav a {
  gap: 0.3rem;
}
.actions {
  flex-shrink: 0;
  gap: 1rem;
}
.actions button,
.quantity button {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
}
.actions > a {
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  z-index: 50;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
.section {
  padding-block: clamp(2.75rem, 5vw, 5rem);
}
.section-head {
  align-items: flex-end;
  flex-wrap: wrap;
}
.section-head > div {
  flex: 1 1 15rem;
}
.section-head .text-link {
  flex-shrink: 0;
}
.text-link {
  display: inline-block;
  padding-block: 0.6rem;
  white-space: normal;
}
.hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 0;
}
.hero-copy {
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 5vw, 5rem);
}
.hero h1 {
  font-size: clamp(3rem, 5.4vw, 5.2rem);
  letter-spacing: -0.055em;
  line-height: 1.09;
}
.hero p {
  font-size: 1rem;
}
.hero-visual {
  min-height: clamp(28rem, 42vw, 38rem);
}
.hero-label {
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-label span:last-child {
  flex-shrink: 0;
}
.benefits {
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.benefits span {
  display: inline-flex;
  align-items: center;
}
.categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.category {
  width: 100%;
  height: auto;
  aspect-ratio: 1.25;
  min-height: 250px;
}
.category-label {
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  padding: 1rem;
}
.category-label small {
  font-size: 0.75rem;
}
.products {
  gap: 2rem 1.5rem;
}
.product-picture {
  aspect-ratio: 1.15;
}
.product-info {
  flex-wrap: wrap;
  align-items: baseline;
}
.product-info p {
  font-size: 0.875rem;
  line-height: 1.5;
}
.product-info h3 {
  font-size: 1rem;
}
.price {
  font-size: 0.9375rem;
}
.quick {
  min-height: 44px;
  font-size: 0.875rem;
}
.badge {
  font-size: 0.75rem;
}
.editorial {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.editorial img {
  height: 100%;
  min-height: 420px;
}
.editorial-copy {
  padding: clamp(2rem, 5vw, 4rem);
}
.editorial h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}
.editorial p {
  font-size: 1rem;
}
.statement {
  padding: clamp(3rem, 5vw, 5rem) max(6%, calc((100% - 900px) / 2));
}
.statement h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.statement p {
  font-size: 1rem;
}
.page-title h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.15;
}
.shop-controls {
  align-items: stretch;
}
.shop-bottom {
  flex: 1 1 27rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
}
.shop-bottom input {
  flex: 1 1 14rem;
  width: auto;
  min-width: 0;
}
.shop-bottom select {
  flex: 0 1 12rem;
  min-width: 0;
}
.filter-tabs {
  align-items: center;
}
.filter-tabs button,
.options button {
  min-height: 44px;
  font-size: 0.875rem;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  font-size: 1rem;
}
input[type="checkbox"] {
  width: 22px;
  flex: 0 0 22px;
}
.field label {
  font-size: 0.875rem;
}
.btn {
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: normal;
  text-align: center;
}
.btn:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}
.detail {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}
.detail h1 {
  font-size: clamp(2rem, 3.5vw, 2.625rem);
}
.detail p {
  font-size: 1rem;
}
.gallery-frame {
  overflow: hidden;
  background: #eae7e0;
  aspect-ratio: 1.15;
}
.gallery-frame .detail-main {
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform 0.25s;
}
.gallery-frame .detail-main.is-zoomed {
  transform: scale(1.65);
}
.thumbs button[aria-pressed="true"] {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.detail summary {
  min-height: 44px;
  display: list-item;
  padding-block: 0.5rem;
}
.detail details {
  padding-block: 0.5rem;
}
.quantity {
  flex-shrink: 0;
  width: max-content;
}
.cart-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}
.cart-item {
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 1.25rem;
}
.cart-item img {
  width: 100px;
  height: 90px;
}
.cart-item p {
  font-size: 0.875rem;
}
.cart-item > div:last-child > p {
  text-align: right;
}
.remove {
  min-height: 44px;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  margin-top: 0;
  border-bottom: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.summary-box {
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.summary-line {
  gap: 1rem;
  flex-wrap: wrap;
}
.summary-line > :last-child {
  margin-left: auto;
  text-align: right;
}
.contact-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
}
.form {
  width: 100%;
}
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.about-hero {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
}
.about-hero h1 {
  font-size: clamp(2.5rem, 4.3vw, 3.5rem);
}
.about-hero img {
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.values {
  gap: clamp(1.5rem, 4vw, 3rem);
}
.footer-grid {
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) minmax(
      0,
      1.4fr
    );
}
.footer-grid > div > a:not(.logo) {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 0.875rem;
}
.footer-grid h4 {
  font-size: 0.875rem;
}
.small,
.results {
  font-size: 0.875rem;
}
.footer-bottom {
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
}
dialog {
  width: min(880px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(1rem, 3vw, 2rem);
  overscroll-behavior: contain;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.quick-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.quick-layout img {
  height: auto;
  aspect-ratio: 1.15;
}
.quick-layout p {
  font-size: 1rem;
}
#toast {
  width: max-content;
  max-width: calc(100% - 2rem);
  text-align: center;
  bottom: max(1rem, env(safe-area-inset-bottom));
}
.success h1 {
  font-size: clamp(2rem, 4vw, 2.625rem);
}

/* Compact navigation starts before desktop links crowd tablet headers. */
@media (max-width: 1100px) {
  header {
    min-height: 80px;
    padding-block: 1rem;
  }
  #menu {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 5%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px #213b3110;
  }
  nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  nav a {
    padding: 0.5rem 0;
    font-size: 1rem;
  }
  .categories {
    gap: 1rem;
  }
  .category-label {
    flex-direction: column;
    align-items: flex-start;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-info {
    flex-direction: column;
    gap: 0.2rem;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-layout .summary-box {
    width: 100%;
    max-width: 650px;
  }
  .cart-item {
    grid-template-columns: 120px minmax(0, 1fr) auto;
  }
  .cart-item img {
    width: 120px;
    height: 100px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
  .footer-grid > div:last-child p {
    max-width: 45rem;
  }
}

@media (max-width: 800px) {
  .hero-copy {
    padding: 2.5rem 1.5rem;
  }
  .hero h1 {
    font-size: clamp(2.7rem, 6vw, 4rem);
  }
  .hero-visual {
    min-height: 29rem;
  }
  .categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 2.5;
  }
  .category-label {
    flex-direction: row;
    align-items: center;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail,
  .contact-layout,
  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .detail > div:first-child {
    max-width: 650px;
    width: 100%;
    margin-inline: auto;
  }
  .about-hero img {
    aspect-ratio: 1.4;
    max-height: 500px;
  }
  .contact-layout aside {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }
  .editorial-copy {
    padding: 2rem 1.5rem;
  }
  .editorial img {
    min-height: 380px;
  }
  .values {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .values > div {
    max-width: 40rem;
  }
  .values h3 {
    margin-block: 0.5rem;
  }
  .benefits {
    justify-content: flex-start;
    gap: 1rem 2rem;
  }
}

@media (max-width: 600px) {
  header {
    gap: 0.5rem;
    padding-inline: 5%;
  }
  .logo {
    font-size: 1.75rem;
  }
  .actions {
    gap: 0;
  }
  .actions > a {
    padding-inline: 0.35rem;
  }
  .actions span {
    margin-left: 0.35rem;
  }
  .hero {
    grid-template-columns: 1fr;
    margin: 1rem 4% 0;
  }
  .hero-copy {
    padding: 2.25rem 8%;
  }
  .hero h1 {
    font-size: clamp(2.75rem, 12vw, 4rem);
    margin-block: 1.25rem;
  }
  .hero-visual {
    min-height: 0;
    aspect-ratio: 1.05;
  }
  .hero-label {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    font-size: 0.75rem;
    gap: 0.75rem;
  }
  .benefits {
    gap: 0.75rem;
    padding: 1.25rem 6%;
  }
  .benefits span {
    flex: 1 1 100%;
  }
  .benefits span:last-child {
    display: inline-flex;
  }
  .section {
    padding: 2.75rem 6%;
  }
  h2 {
    font-size: clamp(1.65rem, 6.5vw, 2rem);
    line-height: 1.25;
  }
  .section-head {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  .section-head > div {
    flex-basis: 100%;
  }
  .section-head .small {
    max-width: 100%;
  }
  .categories {
    grid-template-columns: 1fr;
  }
  .category,
  .category:last-child {
    grid-column: auto;
    aspect-ratio: 1.45;
    min-height: 230px;
  }
  .category-label {
    font-size: 1.125rem;
  }
  .products {
    gap: 1.75rem 0.875rem;
  }
  .product-picture {
    aspect-ratio: 1;
  }
  .product-info {
    margin-top: 0.75rem;
  }
  .product-info p {
    margin-block: 0.35rem;
  }
  .badge {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.4rem;
    font-size: 0.625rem;
  }
  .quick {
    position: static;
    width: 100%;
    opacity: 1;
    min-height: 44px;
    padding: 0.625rem 0.25rem;
    background: #e5e9df;
    font-size: 0.875rem;
  }
  .product-picture {
    overflow: visible;
    margin-bottom: 44px;
  }
  .product-picture > a {
    overflow: hidden;
  }
  .editorial {
    grid-template-columns: 1fr;
    margin: 0.5rem 4%;
  }
  .editorial img {
    min-height: 0;
    height: auto;
    aspect-ratio: 1.1;
  }
  .editorial-copy {
    padding: 2.5rem 8%;
  }
  .editorial h2 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
  .statement {
    padding: 2.75rem 8%;
  }
  .statement h2 br {
    display: none;
  }
  .page-title {
    padding: 2rem 6% 1rem;
  }
  .page-title h1 {
    letter-spacing: -0.045em;
  }
  .shop-controls {
    flex-direction: column;
    gap: 1rem;
  }
  .shop-bottom {
    flex: none;
    flex-direction: column;
    gap: 0.75rem;
  }
  .shop-bottom input,
  .shop-bottom select {
    flex: none;
    width: 100%;
  }
  .filter-tabs {
    gap: 0.5rem;
  }
  .filter-tabs button {
    flex: 1 1 auto;
    padding-inline: 0.75rem;
  }
  .detail {
    padding: 1.5rem 6% 2.75rem;
  }
  .breadcrumb {
    padding-inline: 6%;
  }
  .add-row {
    flex-wrap: wrap;
  }
  .add-row > .btn {
    flex-basis: 100%;
  }
  .detail .options {
    gap: 0.75rem;
  }
  .cart-layout {
    padding: 0 6% 2.75rem;
  }
  .cart-item {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 1rem;
  }
  .cart-item img {
    width: 80px;
    height: 80px;
  }
  .cart-item > div:last-child {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .cart-item > div:last-child > p {
    margin: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form > .btn {
    width: 100%;
  }
  .contact-layout {
    padding: 0 6% 2.75rem;
  }
  .about-hero {
    margin: 2rem 6%;
  }
  .about-hero h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }
  .about-hero img {
    aspect-ratio: 1.05;
  }
  footer {
    padding: 2.75rem 6% 1.25rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .quick-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .quick-layout img {
    max-height: 230px;
    object-fit: cover;
  }
  .quick-layout h2 {
    margin-block: 0.5rem;
  }
  .quick-layout .btn {
    width: 100%;
  }
  .dialog-close {
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 1;
  }
  .success {
    margin-block: 3rem;
  }
}

/* Short landscape screens and touch devices need usable menus and previews. */
@media (max-width: 1100px) and (max-height: 550px) {
  nav.open {
    max-height: 65dvh;
    overflow-y: auto;
  }
}
@media (hover: none), (pointer: coarse) {
  .quick {
    opacity: 1;
  }
  .btn:hover,
  .category:hover img,
  .product-picture:hover img {
    transform: none;
  }
}
@media (max-width: 360px) {
  .logo {
    font-size: 1.5rem;
  }
  .actions > a {
    font-size: 0.75rem;
  }
  .category-label {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-label {
    align-items: flex-start;
    flex-direction: column;
  }
  .cart-item > div:last-child {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1600px) {
  main {
    max-width: 1700px;
    margin-inline: auto;
  }
  header,
  footer {
    padding-inline: max(5%, calc((100% - 1530px) / 2));
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
