:root {
  --ink: #242424;
  --text: #333333;
  --muted: #757575;
  --green: #d23c33;
  --green-light: #fff2ef;
  --coral: #d23c33;
  --line: #e5e5e2;
  --paper: #ffffff;
  --accent: #d23c33;
  --accent-hover: #b72e26;
  --accent-soft: #fff2ef;
  --status-yellow: #f5d56a;
  --surface: #f7f7f5;
  --surface-strong: #efefec;
  --radius: 4px;
}

body {
  color: var(--text);
  background: var(--paper);
}

body, button, input, select, textarea, h1, h2, h3, h4 {
  letter-spacing: 0;
}

h1, h2, h3, h4 { color: var(--ink); }

button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

input, select, textarea { accent-color: var(--accent); }

.announcement {
  background: var(--ink);
  color: white;
}
.announcement b { color: var(--status-yellow); }
.announcement > span:first-child, .announcement .demo-label { opacity: .8; }

.site-header { border-color: var(--line); }
.header-inner { height: 88px; }
.brand, .footer-brand { color: var(--ink); }
.brand small { color: #777773; }
.brand-mark svg, .brand-dot { color: var(--accent); }
.header-action { color: #444440; }
.header-action:hover, .header-action[aria-pressed="true"] { color: var(--accent); }
.count-badge { background: var(--accent); color: white; }
#cart-count { background: var(--status-yellow); color: var(--ink); font-weight: 700; }

.search-form {
  background: var(--surface);
  border-color: #d9d9d5;
  border-radius: 4px;
}
.search-form > svg { color: #696964; }
.search-form input { color: var(--ink); }
.search-form input::placeholder { color: #74746e; }
.search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.icon-button:hover { background: var(--surface-strong); }

.category-link { color: #686864; }
.category-link.is-active { color: var(--ink); }
.category-link.is-active::after { background: var(--accent); }
.category-link:hover { color: var(--accent); }
.nav-note { color: var(--muted); }

.hero {
  min-height: 280px;
  background-color: #f0f0ed;
  border-radius: 4px;
}
.hero .eyebrow { color: var(--accent); }
.hero-copy { color: #53534e; }
.hero-caption { color: #494944; }
.eyebrow { color: #72726d; }
.catalog-section { padding-top: 34px; }
.section-heading { margin-bottom: 20px; }
.price-rule { color: #777770; }
.price-rule svg { color: var(--accent); }

.primary-button {
  background: var(--accent);
  color: white;
  border-radius: 4px;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.primary-button:hover:not(:disabled) { background: var(--accent-hover); }
.primary-button:active:not(:disabled) { background: #a82620; }
.primary-button:disabled,
.commerce-page .primary-button:disabled {
  background: #deded9;
  color: #85857e;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}
.secondary-button { background: white; border-color: #d3d3cc; }
.secondary-button:hover:not(:disabled) {
  background: #fff8f6;
  border-color: var(--accent);
  color: var(--accent);
}
.text-button { color: #777770; }
.text-button:hover { color: var(--accent); }

.catalog-toolbar, .filter-chip, .dialog-footer { border-color: var(--line); }
.sort-tab { color: #777770; }
.sort-tab.is-active { color: var(--ink); }
.sort-tab.is-active::after { background: var(--accent); }
.sort-tab:hover { color: var(--accent); }
.filter-button { background: white; border-color: #d6d6d0; color: #4e4e48; }
.filter-button:hover { background: #fff8f6; border-color: var(--accent); }
.filter-count { background: var(--accent); color: white; }
.filter-chip { background: var(--surface); color: #575750; }
.filter-chip:hover { border-color: #bebeb6; }
.clear-filters { color: #777770; }
.catalog-note { color: #74746e; }

.product-visual, .detail-photo, .cart-item-image { background: #f3f3f0; }
.product-open img, .cart-item-image img, .checkout-summary-items img {
  object-fit: contain;
  background: white;
}
.detail-photo {
  object-fit: contain;
  width: 100%;
  height: 460px;
  max-height: 65vh;
  aspect-ratio: 1;
  background: white;
}
.product-visual { border-radius: 4px; }
.discount-badge { background: var(--accent); color: white; border-radius: 2px; }
.save-button { color: #696963; box-shadow: 0 1px 6px #2222220d; }
.save-button:hover, .save-button[aria-pressed="true"] { color: var(--accent); }
.save-button[aria-pressed="true"] svg { fill: var(--accent); }
.product-brand { color: #74746e; }
.product-name { color: #383833; }
.product-name:hover { color: var(--accent); }
.product-price { color: var(--accent); }
.product-original { color: #74746e; }
.product-saving { color: #77715b; }
.product-saving::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 3px;
  margin: 0 5px 2px 0;
  background: var(--status-yellow);
}
.catalog-end { color: #b7b7af; }
.catalog-end span { background: #e3e3dd; }
.empty-state { color: var(--muted); }
.empty-state h3 { color: var(--ink); }

.editorial-band { background: #f5f5f1; border-color: #eaeae4; }
.editorial-inner { min-height: 200px; }
.editorial-inner > p { color: #787871; }
.editorial-symbol { color: #d9d9d1; }
.footer-links button { color: #787871; }
.footer-links button:hover { color: var(--accent); }
.footer-bottom { border-color: var(--line); color: #74746e; }
.back-top { border-color: #dcdcd5; color: #777770; }
.back-top:hover { border-color: var(--accent); color: var(--accent); }

dialog {
  background: white;
  border-color: #deded8;
  box-shadow: 0 20px 100px #22222226;
}
dialog::backdrop { background: #20201c80; }
.filter-field { border-color: var(--line); }
.filter-category-options input, .filter-field input[type="range"] { accent-color: var(--accent); }
.price-inputs input { border-color: #d9d9d2; background: #fafaf8; color: var(--ink); }
.filter-field output { color: var(--accent); }
.detail-tag { background: #f0f0eb; color: #6a6a62; }
.detail-discount { color: var(--accent); }
.detail-description, .detail-specs, .info-content { color: #71716a; }
.detail-specs { border-color: var(--line); }
.detail-specs svg { color: #8b8270; }
.detail-save { border-color: #d9d9d2; box-shadow: none; }
.detail-note, .detail-shop-link { color: #74746e; }
.detail-shop-link:hover { color: var(--accent); }
.toast { background: var(--ink); color: white; box-shadow: 0 4px 20px #22222222; }

.commerce-breadcrumb { color: #74746e; }
.commerce-breadcrumb a:hover, .member-continue { color: var(--accent); }
.member-aside { border-color: var(--line); }
.member-field input { border-color: #d7d7d0; background: white; color: var(--ink); }
.member-field input[readonly] { background: #f4f4f0; color: #74746d; }
.member-consent input { accent-color: var(--accent); }
.member-consent button, .member-signout a:hover { color: var(--accent); }
.member-account-status { color: #55554e; }
.member-account-status svg { color: #ad861b; }
.member-signout { border-color: var(--line); }
.member-signout a { color: #7c7c74; }
.member-login p { color: #75756d; }
.member-success {
  background: #fffae9;
  border-left-color: var(--status-yellow);
  color: #5f542f;
}
.member-success-links a:hover { color: var(--accent); }
.form-error, .commerce-form-error { color: #b32e27; }
.commerce-notice { background: #fff9e8; border-color: #e9dca9; color: #67582c; }
.commerce-loading, .commerce-busy-line { color: #7c7c73; }
.continue-shopping { color: #696961; }
.continue-shopping:hover { color: var(--accent); }
.commerce-demo-note { color: #74746e; }

.cart-list-heading, .cart-line { border-color: var(--line); }
.cart-list-heading { color: #74746e; }
.cart-item-name { color: var(--ink); }
.cart-item-name:hover { color: var(--accent); }
.cart-unit-price { color: #7d7d74; }
.cart-stepper { background: white; border-color: #d6d6cd; }
.cart-stepper button:hover:not(:disabled) { color: var(--accent); background: var(--accent-soft); }
.cart-stepper button:disabled { color: #b5b5ab; opacity: 1; }
.cart-remove { color: #96968d; }
.cart-remove:hover:not(:disabled) { color: var(--accent); }
.cart-summary {
  background: #f8f8f5;
  border: 1px solid #e3e3dc;
  border-top: 3px solid var(--accent);
}
.cart-summary dt { color: #77776d; }
.cart-summary .cart-savings dd { color: #74601a; border-bottom: 2px solid var(--status-yellow); }
.cart-summary .cart-total-row { border-color: #ddddd3; }
.cart-total-row dt { color: var(--ink); }
.cart-total-row dd { color: var(--accent); }
.cart-total-label { color: #74746e; }
.cart-summary-note, .cart-summary-footnote { color: #74746e; }
.cart-account-banner { color: #78786d; }
.cart-account-banner > svg { color: #9b8c53; }
.cart-account-banner a { color: var(--accent); }
.cart-empty > svg { color: #a8a89b; }

.store-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}
.store-intro h1 { font-size: 28px; line-height: 1.4; margin: 0 0 7px; }
.store-intro p { margin: 0; font-size: 13px; color: var(--muted); }
.store-intro .eyebrow { margin-bottom: 7px; font-size: 10px; }
.store-intro-copy span { display: block; margin-top: 5px; font-size: 11px; }
.store-policy-list { display: flex; gap: 24px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.store-policy-list li { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.store-policy-list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.detail-media { min-width: 0; align-self: start; }
.detail-image-note, .product-image-note { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 10px 0; }
.detail-image-note { padding-inline: 14px; }
.store-intro-policies { display: flex; gap: 25px; flex-wrap: wrap; }
.store-intro-policies span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; white-space: nowrap; }
.store-intro-policies svg { width: 18px; height: 18px; color: var(--accent); }
.store-policy-band { border-top: 1px solid var(--line); background: #f7f7f5; }
.store-policy-band .wrap { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; padding-block: 27px; }
.store-policy-band h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 9px; }
.store-policy-band h2 svg { width: 18px; height: 18px; color: var(--accent); }
.store-policy-band p { margin: 0; font-size: 12px; line-height: 1.9; color: var(--muted); }
.info-content dl { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 15px 20px; margin-top: 24px; }
.info-content dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.checkout-confirm-total { border-block: 1px solid var(--line); padding-block: 18px; margin-block: 24px; }
body[data-page="orders"] #orders-link, body[data-page="order"] #orders-link { color: var(--accent); }

@media (min-width: 1500px) {
  .hero { min-height: 300px; }
}

@media (max-width: 1050px) {
  .hero { min-height: 270px; }
}

@media (max-width: 700px) {
  .header-inner { height: auto; }
  .hero { min-height: 238px; }
  .hero::before { background: rgba(247, 247, 243, .68); }
  .catalog-section { padding-top: 28px; }
  .editorial-inner { min-height: 218px; }
  .store-intro { align-items: flex-start; flex-direction: column; padding-block: 24px; gap: 18px; }
  .store-intro h1 { font-size: 24px; }
  .store-intro-policies { gap: 14px; }
  .store-intro-policies span { font-size: 11px; }
  .store-policy-list { gap: 12px 18px; }
  .store-policy-list li { font-size: 11px; }
  .product-name { font-size: 12px; min-height: 60px; }
  .detail-photo { height: 280px; max-height: 40vh; }
  .store-policy-band .wrap { grid-template-columns: 1fr; gap: 24px; }
  .info-content dl { grid-template-columns: 1fr; gap: 7px; }
  .info-content dd { margin-bottom: 12px; }
}

@media (max-width: 380px) {
  .header-inner { column-gap: 7px; }
  .header-inner > .brand { font-size: 23px; gap: 4px; }
  .header-inner > .brand .brand-mark svg { width: 21px; height: 21px; }
  .header-actions { gap: 8px; }
  .header-actions .header-action { width: 24px; min-width: 24px; min-height: 32px; }
  .header-actions .header-action svg { width: 19px; height: 19px; }
}
