:root {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  --sand: #E8D9C8;
  --blue: #CBD2DD;
  --rose: #F2DDE0;
  --paper: #F6F0EB;
  --taupe: #C9B9AC;
  --canvas: #FAF8F4;
  --surface: #FAF8F4;
  --featured: #F7F3F0;
  --sage: #C1C4B8;
  --line: color-mix(in srgb, var(--taupe) 50%, var(--paper));
  --rose-wash: color-mix(in srgb, var(--rose) 42%, var(--paper));
  --blue-wash: color-mix(in srgb, var(--blue) 30%, var(--paper));
  --ink: #52443C;
  --muted: #64554D;
  --accent: #796A61;
  --accent-dark: #473C36;
  --control-line: #857365;
  --danger: #822F43;
  --serif: Georgia, 'Times New Roman', serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
img { display: block; max-width: 100%; }
p { line-height: 1.65; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; }
::selection { background: var(--rose-wash); color: var(--ink); }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 12px; background: var(--blue); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: clamp(1.2rem, 2.1vw, 1.78rem); white-space: nowrap; }
.brand-name { line-height: 1.06; }
.brand-name small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font: 550 .72rem/1.15 system-ui, -apple-system, sans-serif;
  letter-spacing: .075em;
}
.ornament { width: 36px; height: 24px; color: var(--accent); flex: none; }
.top .site-nav { display: flex; gap: clamp(13px, 2.4vw, 34px); }
.top .site-nav a { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.top .site-nav a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .3em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
.hero {
  position: relative;
  isolation: isolate;
  background: var(--paper);
}
.hero-photo, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: center top; z-index: -2; }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #F6F0EB30, #F6F0EB40 30%, transparent 62%);
  pointer-events: none;
}
.hero-inner { display: grid; align-items: center; min-height: clamp(440px, 43vw, 620px); padding-block: 42px; }
.hero-copy { margin-inline-start: clamp(10px, 6vw, 100px); max-width: 44%; }
.hero h1 { font-size: clamp(3.05rem, 5.65vw, 5.55rem); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.hero-description { margin: 20px 0 24px; max-width: 29ch; color: var(--ink); font: 1.2rem/1.4 var(--serif); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 47px;
  width: fit-content;
  padding: 10px 20px;
  border: 1px solid var(--sage);
  border-radius: 24px;
  background: var(--sage);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.35;
  text-align: center;
  transition: background-color .18s, border-color .18s;
}
.button:hover {
  background: color-mix(in srgb, var(--sage) 82%, var(--taupe));
  border-color: var(--control-line);
}
.button-outline { background: var(--surface); border-color: var(--taupe); color: var(--accent-dark); }
.button-outline:hover { background: var(--blue-wash); border-color: var(--taupe); }
.text-link { font-size: .9rem; color: var(--accent-dark); text-decoration: underline; text-underline-offset: .28em; }

.values-band { background: var(--paper); }
.value-list, .category-tiles { list-style: none; padding-inline: 0; margin-block: 0; display: grid; }
.value-list { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 17px; text-align: center; color: var(--muted); font: 1rem/1.35 var(--serif); }
.value-list li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 5px 10px; }
.value-list svg { flex: none; width: 27px; height: 27px; color: var(--accent); }
.value-list li + li { border-inline-start: 1px solid var(--line); }
.category-band { background: var(--canvas); }
.category-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 3vw, 38px); max-width: 900px; padding-block: clamp(25px, 4vw, 45px); }
.category-tiles a { display: grid; gap: 10px; justify-items: center; color: var(--ink); text-align: center; font: 1rem/1.35 var(--serif); }
.category-tiles a:hover span { text-decoration: underline; text-underline-offset: .22em; }
.category-tiles img { width: min(100%, 153px); aspect-ratio: 1; height: auto; object-fit: cover; border-radius: 50%; background: var(--paper); }
.featured-section { background: var(--featured); padding-block: clamp(32px, 5vw, 62px); }
.featured-section h2, .guidance-block h2, .about-section h2, .reviews-section h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: -.04em; line-height: 1.08; }
.section-intro { margin-bottom: 24px; }
.section-intro p { max-width: 56ch; margin: 10px 0 0; color: var(--muted); }
.featured-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.featured-catalog { min-height: 36px; padding: 5px 14px; border-color: var(--control-line); background: transparent; font-size: .875rem; }
.featured-catalog:hover { border-color: var(--accent-dark); background: transparent; }
.about-section { display: grid; grid-template-columns: minmax(0, min(48%, 420px)) minmax(0, 1fr); gap: clamp(24px, 6vw, 76px); align-items: center; padding-block: clamp(34px, 6vw, 76px); }
.about-section img { width: 100%; height: auto; border-radius: 12px; background: var(--paper); }
.about-section p { color: var(--muted); max-width: 64ch; }
.reviews-section { padding-block: clamp(24px, 4vw, 45px); }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: 20px; }
.review-card { margin: 0; padding: clamp(16px, 2.4vw, 28px); background: var(--paper); border-radius: 12px; overflow-wrap: anywhere; }
.review-card blockquote { margin: 0; line-height: 1.6; white-space: pre-line; }
.review-card figcaption { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.product-cover { display: block; background: var(--sand); }
.product-cover img { width: 100%; aspect-ratio: 1.16; object-fit: cover; }
.product-photos { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; }
.product-photos img { width: 54px; height: 54px; object-fit: cover; border-radius: 4px; }
.lines, .detail-specs dd { white-space: pre-line; }
.guidance-block {
  padding-block: clamp(30px, 4.5vw, 58px);
  scroll-margin-top: 18px;
}
.guidance-block p { max-width: 56ch; margin: 12px 0 0; color: var(--muted); }
.contact-links { display: flex; gap: 10px; }
.contact-links a { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-dark); }
.contact-links a:hover { background: var(--paper); border-color: var(--taupe); }
.contact-links svg { width: 25px; height: 25px; }
.care-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  align-items: start;
  gap: 28px clamp(22px, 3.2vw, 46px);
  margin-top: 22px;
}
.care-step { min-width: 0; overflow-wrap: anywhere; }
.care-step h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.2; }
.care-step ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-inline-start: 19px;
  color: var(--muted);
  line-height: 1.55;
}
.care-step li::marker { color: var(--accent); }
.product-care { margin-top: 26px; }
.product-care h2 { font-size: clamp(1.35rem, 2.15vw, 1.72rem); }
.product-care p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.product-care .care-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
.product-care .care-step { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.product-care summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 36px 11px 12px;
  border-radius: inherit;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
}
.product-care summary::-webkit-details-marker { display: none; }
.product-care summary:hover { color: var(--accent-dark); }
.care-step h3 svg, .product-care summary svg { flex: none; width: 22px; height: 22px; color: var(--accent); }
.care-step h3 span, .product-care summary span { min-width: 0; }
.product-care .care-step ul { margin: 0 14px 14px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 25px; }

.admin-nav, .admin-heading, .dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.admin-main { max-width: 880px; padding-block: 48px; }
.admin-heading { margin-bottom: 26px; }
.admin-heading h1, .auth-card h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -.045em; }
.admin-heading p, .auth-card p { color: var(--muted); margin: 10px 0 0; }
.quiet-button { background: transparent; border: 0; padding: 8px; color: var(--accent-dark); font-size: .9rem; text-decoration: underline; text-underline-offset: .23em; }
.auth-wrap { max-width: 490px; padding-block: clamp(38px, 7vw, 85px); }
.auth-card, dialog { padding: clamp(22px, 5vw, 45px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.auth-card > .ornament { margin-bottom: 16px; }
.auth-card > .button { margin-top: 18px; }
.auth-link { display: inline-block; margin-top: 20px; }
form { display: grid; gap: 15px; margin-top: 22px; }
form label { display: block; font-size: .9rem; font-weight: 650; }
form input, form textarea, form select { display: block; width: 100%; padding: 10px 11px; margin-top: 6px; border: 1px solid var(--control-line); border-radius: 5px; color: var(--ink); background: var(--surface); font-weight: 400; font-size: 1rem; }
form textarea { resize: vertical; }
form input[type=file] { padding: 9px; }
form input::placeholder, form textarea::placeholder { color: var(--muted); opacity: 1; }
form input::file-selector-button {
  margin-inline-end: 10px;
  padding: 5px 9px;
  border: 1px solid var(--control-line);
  border-radius: 4px;
  background: var(--blue-wash);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.field-help, .auth-card .field-help { margin: -8px 0 0; color: var(--muted); font-size: .88rem; }
.required-mark, .form-message { color: var(--danger); }
.form-message, .auth-card .form-message { color: var(--danger); margin: 0; }
dialog { color: var(--ink); max-height: calc(100dvh - 32px); width: min(560px, calc(100% - 24px)); padding: clamp(18px, 4vw, 30px); }
dialog::backdrop { background: #493B364D; }
.dialog-head h2 { font-size: 2rem; line-height: 1.08; }
.photo-preview { display: flex; flex-wrap: wrap; gap: 9px; }
.photo-preview:empty { display: none; }
.preview-item { position: relative; margin: 0; }
.preview-item img { height: 64px; width: 64px; object-fit: cover; border-radius: 5px; }
.preview-item button { position: absolute; top: 0; right: 0; width: 28px; height: 28px; border: 1px solid var(--control-line); color: var(--ink); background: var(--paper); border-radius: 5px; }
.admin-item { display: flex; align-items: center; gap: 14px; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
.admin-item > img { width: 65px; height: 65px; object-fit: cover; flex: none; border-radius: 5px; }
.item-details { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.item-details p { font-size: .9rem; color: var(--muted); margin: 3px 0 0; }
.item-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.item-actions .button { min-height: 44px; padding: 7px 12px; }
.notice { padding: 10px 14px; background: var(--blue-wash); border-radius: 5px; }
.admin-reviews { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 18px; }
.admin-reviews h2 { font-size: 2rem; }
.admin-review-quote { white-space: pre-line; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 56px); }
  .hero-copy { margin-inline-start: 0; }
  .hero h1 { font-size: clamp(2.8rem, 6.9vw, 4.7rem); }
  .catalog-page .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .top-inner { min-height: 0; padding-block: 14px 11px; gap: 10px 15px; flex-wrap: wrap; }
  .top .site-nav { display: none; }
  .brand { font-size: 1.16rem; gap: 6px; }
  .brand .ornament { width: 26px; }
  .brand-name small { font-size: .65rem; letter-spacing: .025em; }
  .hero-inner { min-height: clamp(395px, 104vw, 480px); }
  .hero-copy { max-width: 53%; }
  .hero-photo { object-position: 74% center; }
  .hero::after { background: linear-gradient(90deg, #F6F0EBE8, #F6F0EBC9 37%, #F6F0EB60 53%, transparent 72%); }
  .hero h1 { font-size: clamp(1.9rem, 7.5vw, 3.15rem); }
  .hero-description { margin-block: 12px 17px; font-size: 1rem; }
  .hero .button { padding-inline: 12px; }
  .value-list { padding-block: 13px; font-size: .875rem; }
  .value-list li { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 3px 4px; }
  .value-list span { max-width: 100%; overflow-wrap: anywhere; text-wrap: balance; }
  .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 19px; max-width: 460px; }
  .category-tiles img { width: min(100%, 117px); }
  .product-grid, .catalog-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .about-section { grid-template-columns: 1fr; }
  .about-section img { max-width: 300px; justify-self: start; }
  .about-section p { max-width: 42ch; }
  .review-grid { grid-template-columns: 1fr; }
  .footer { flex-wrap: wrap; }
  .admin-main { padding-block: 29px; }
  .admin-heading, .admin-item { flex-wrap: wrap; }
  .item-actions { flex-basis: 100%; }
}
@media (max-width: 380px) {
  .top .brand-name small { max-width: 125px; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gallery-frame { position: relative; }
.gallery-frame .product-cover { touch-action: pan-y pinch-zoom; }
.gallery-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--control-line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: 2rem/1 var(--serif);
}
.gallery-control:hover { background: var(--blue-wash); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-thumb { padding: 2px; border: 1px solid transparent; border-radius: 6px; background: transparent; }
.gallery-thumb:disabled { cursor: default; opacity: 1; }
.gallery-thumb:hover { background: var(--blue-wash); border-color: var(--control-line); }
.gallery-thumb[aria-current=true] { background: var(--rose-wash); border-color: var(--accent); }
.checkbox-label { display: flex; align-items: center; gap: 8px; }
.checkbox-label input { width: auto; margin: 0; accent-color: var(--accent); }
.preview-item { display: flex; width: 94px; flex-direction: column; align-items: start; gap: 4px; }
.preview-item img { height: 80px; width: 94px; }
.preview-item .remove-photo { right: 3px; top: 3px; }
.preview-item .cover-choice { position: static; width: auto; height: auto; padding: 3px 0; border: 0; }
.preview-item .cover-caption { padding: 3px 0; font-size: .9rem; }
.item-actions .delete-button { color: var(--danger); }

.language-switch { display: flex; align-items: center; gap: 2px; }
.language-switch a { display: grid; place-items: center; min-width: 32px; min-height: 36px; border-radius: 4px; padding: 4px; font-size: .86rem; color: var(--accent-dark); }
.language-switch a:hover { background: var(--paper); }
.language-switch a[aria-current=true] {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--taupe);
  font-weight: 650;
}
.translation-fields { border: 1px solid var(--control-line); padding: 12px; border-radius: 8px; background: var(--rose-wash); }
.translation-fields summary { cursor: pointer; font-weight: 650; }
.translation-fields .field-help { margin: 10px 0 0; }
.translation-fields fieldset, .product-descriptions {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 10px;
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.product-descriptions { margin: 0; gap: 12px; background: var(--paper); }
.translation-fields legend, .product-descriptions legend { padding-inline: 5px; font-weight: 650; }
.catalog-page, .product-page { padding-block: clamp(30px, 5vw, 64px); }
.product-page { padding-block-start: 24px; }
.catalog-page h1, .detail-info h1 {
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.category-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.category-list a, .pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 7px 13px;
  color: var(--accent-dark);
  font-size: .9rem;
}
.category-list a:hover, .pagination a:hover { background: var(--surface); }
.category-list a[aria-current=true] { background: var(--rose-wash); border-color: var(--taupe); font-weight: 650; }
.catalog-count, .catalog-empty { color: var(--muted); margin: 23px 0 14px; }
.product-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.product-tile-link { display: block; width: 100%; }
.product-tile-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface);
}
.product-tile-copy { padding: 11px 2px 0; }
.product-tile h3 { font: 600 1rem/1.35 system-ui, -apple-system, sans-serif; }
.product-tile-link:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.tile-price, .tile-notes { margin: 4px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.tile-notes { color: var(--accent-dark); font-size: .85rem; }
.tile-order { min-height: 44px; margin-top: auto; padding: 7px 14px; }
.order-form { margin-top: 14px; scroll-margin-top: 25px; }
.order-variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.select-field { position: relative; margin-top: 6px; }
.select-field select { appearance: none; margin-top: 0; padding-inline-end: 36px; text-overflow: ellipsis; }
.select-picker summary {
  position: relative;
  display: block;
  padding: 10px 36px 10px 11px;
  border: 1px solid var(--control-line);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.select-picker summary::-webkit-details-marker { display: none; }
.select-options {
  position: absolute;
  z-index: 2;
  top: calc(100% + 5px);
  inset-inline: 0;
  max-height: min(14rem, 45vh);
  overflow: auto;
  border: 1px solid var(--control-line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 4px 14px #52443c24;
}
.select-options button { display: block; width: 100%; min-height: 44px; padding: 7px 10px; border: 0; color: inherit; background: transparent; text-align: start; overflow-wrap: anywhere; }
.select-options button:focus-visible { outline-offset: -3px; }
.select-options button:hover, .select-options button[aria-pressed=true] { background: var(--rose-wash); }
.select-field:not(.enhanced)::after, .select-picker summary::after, .product-care summary::after {
  content: '';
  position: absolute;
  inset-inline-end: 13px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-picker[open] summary::after, .product-care details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.order-preview p { max-width: 60ch; }
.variant-fields { min-width: 0; display: grid; gap: 12px; padding: 12px; margin: 0; border: 1px solid var(--line); border-radius: 5px; }
.variant-fields legend { padding-inline: 5px; font-weight: 650; }
.variant-fields .field-help { margin: 0; }
.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: clamp(24px, 4vw, 42px);
  color: var(--muted);
  font-size: .9rem;
}
.pagination > div:last-child { justify-self: end; }
.product-brand { display: flex; align-items: center; gap: 10px; }
.product-back {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
  font-size: 1.45rem;
  line-height: 1;
}
.product-back:hover { background: var(--canvas); border-color: var(--taupe); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: clamp(26px, 5vw, 65px); }
.detail-media .gallery-frame, .detail-media .product-cover { border-radius: 14px; overflow: hidden; }
.detail-media .product-cover { background: var(--surface); }
.detail-media .product-cover img { aspect-ratio: 1 / 1; object-fit: contain; }
.detail-media .product-photos { padding-inline: 0; }
.detail-category { color: var(--accent-dark); font-size: .9rem; margin: 0 0 12px; }
.detail-price { font-weight: 650; margin: 13px 0 4px; }
.detail-price span { color: var(--muted); font-weight: 400; }
.detail-delivery { margin: 0; color: var(--muted); font-size: .875rem; }
.detail-description { color: var(--muted); margin: 24px 0 0; overflow-wrap: anywhere; }
.detail-contents, .detail-specs { margin: 22px 0 0; padding-top: 17px; border-top: 1px solid var(--line); }
.detail-contents h2 { font-size: 1.4rem; }
.detail-contents ul { padding-inline-start: 22px; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.detail-specs { display: grid; gap: 12px; overflow-wrap: anywhere; }
.detail-specs dt { font-weight: 650; }
.detail-specs dd { margin: 4px 0 0; color: var(--muted); line-height: 1.6; }
.related-products { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.related-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.related-heading h2 { font-size: clamp(1.35rem, 2.15vw, 1.72rem); }
.related-controls { display: flex; flex: none; gap: 4px; }
.related-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--accent-dark);
  font: 1.6rem/1 var(--serif);
}
.related-controls button:hover { background: var(--paper); border-color: var(--taupe); }
.related-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.related-items[data-loop] { touch-action: pan-y pinch-zoom; }
.related-card { display: grid; gap: 5px; border-radius: 8px; }
.related-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--paper); }
.related-card:focus-visible { outline-offset: -2px; }
.related-card:hover .related-name { text-decoration: underline; text-underline-offset: .2em; }
.related-name { font-family: var(--serif); line-height: 1.25; overflow-wrap: anywhere; }
.related-price { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
#contents-help { margin: 6px 0 0; }
@media (min-width: 641px) and (max-width: 900px) {
  .product-top .top-inner { gap: 14px; padding-block: 10px; }
}
@media (max-width: 640px) {
  .product-tile h3 { font-size: .9rem; }
  .product-page { padding-block-start: 16px; }
  .product-detail { grid-template-columns: 1fr; }
  .related-items[data-loop] { grid-template-columns: repeat(2, 76%); overflow: clip; }
}
@media (max-width: 380px) {
  .product-top .top-inner, .product-brand { column-gap: 4px; }
  .product-top .language-switch a { min-width: 24px; padding-inline: 2px; }
}
