:root {
  --ink: #201c19;
  --muted: #71665f;
  --line: #e7ded5;
  --paper: #fffaf4;
  --surface: #ffffff;
  --soft: #f5eee6;
  --gold: #c49a55;
  --rose: #ad6f6f;
  --sage: #71816d;
  --shadow: 0 20px 60px rgba(46, 34, 25, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 50;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(32, 28, 25, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand img { width: 166px; height: auto; }
.main-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.main-nav a {
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  background: #f4dcae;
}
.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 9px 12px;
}
.header-cart strong {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #f4dcae;
  border-radius: 50%;
  font-size: 13px;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  border-radius: 50%;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.hero {
  min-height: 720px;
  display: grid;
  align-items: end;
  padding: 120px 0 56px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(32, 28, 25, 0.82), rgba(32, 28, 25, 0.28)),
    url("/img/main_bg.JPG") center/cover no-repeat;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) 1fr;
  align-items: end;
  gap: 36px;
}
.hero h1 {
  max-width: 780px;
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}
.hero p {
  max-width: 650px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
}
.hero-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-proof {
  display: grid;
  gap: 10px;
  justify-self: end;
}
.hero-proof span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.section { padding: 76px 0; }
.section-muted { background: var(--soft); }
.section-heading {
  max-width: 760px;
  text-align: center;
  margin-bottom: 32px;
}
.section-heading h2,
.page-hero h1,
.about-grid h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: 0;
}
.section-heading p,
.page-hero p,
.about-grid p {
  color: var(--muted);
  font-size: 17px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: 0.6; cursor: wait; }
.button-dark { color: #fff; background: var(--ink); }
.button-light { color: var(--ink); background: #f5dfb5; }
.button-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.button-ghost { color: var(--ink); background: transparent; border-color: var(--line); }

.brand-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
.brand-card {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.brand-card img {
  max-height: 70px;
  object-fit: contain;
}
.category-grid,
.review-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.category-card,
.product-card,
.contact-card,
.contact-info-panel,
.checkout-panel,
.cart-line,
.empty-state,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(46, 34, 25, 0.06);
}
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.category-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  padding: 24px;
}
.category-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #fff;
  background: rgba(32, 28, 25, 0.84);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
}
.about-band { background: #fbf7f1; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: center;
}
.about-grid img {
  width: min(420px, 100%);
  justify-self: center;
}
.review-grid img {
  width: 100%;
  height: 440px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-hero {
  padding: 74px 0 42px;
  background: linear-gradient(135deg, #f8efe5, #fffaf4);
}
.page-hero.compact { padding-bottom: 28px; }
.catalog-layout,
.checkout-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 34px 0 78px;
  align-items: start;
}
.filters {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 118px);
  overflow: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}
.filter-group {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.filter-group + .filter-group { margin-top: 0; }
.filter-group h2,
.results-toolbar h2,
.checkout-panel h2,
.contact-card h2,
.contact-info-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.filter-group a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
}
.filter-group a:focus-visible,
.product-card a:focus-visible,
.product-card button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.filter-group a:hover,
.filter-group a.active {
  color: var(--ink);
  background: var(--soft);
}
.results-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.results-toolbar p { margin: 0; color: var(--muted); }
.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.product-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 154, 85, 0.55);
  box-shadow: var(--shadow);
}
.product-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  background: #fbf7f1;
  padding: 18px;
  cursor: pointer;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.24s ease;
}
.product-card:hover .product-media img {
  transform: scale(1.04);
}
.product-info {
  padding: 16px 16px 0;
}
.product-info h2 {
  min-height: 54px;
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.35;
}
.product-price {
  margin: 0;
  color: var(--rose);
  font-weight: 900;
}
.product-actions {
  padding: 16px;
  margin: 0;
}
.product-actions .button {
  flex: 1 1 130px;
}
.product-actions a.button {
  text-align: center;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 30px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumbs a {
  color: var(--ink);
  font-weight: 800;
}
.product-page-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: start;
  padding: 28px 0 58px;
}
.product-page-summary {
  position: sticky;
  top: 98px;
}
.product-page-summary h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}
.product-main-cta {
  width: min(100%, 360px);
  margin-top: 10px;
}
.product-assurance {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
}
.product-assurance span {
  padding-left: 18px;
  position: relative;
}
.product-assurance span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.product-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-bottom: 58px;
}
.product-content section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.product-content h2 {
  margin: 0 0 10px;
  font-size: 18px;
}
.product-content p {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
}
.related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-dialog {
  width: min(980px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.product-dialog::backdrop { background: rgba(32, 28, 25, 0.55); }
.product-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}
.product-gallery > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fbf7f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.gallery-thumbs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  cursor: pointer;
}
.gallery-thumbs button.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(196, 154, 85, 0.18);
}
.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.product-detail-copy h2 {
  margin: 0 34px 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}
.detail-colors {
  margin: 18px 0;
}
.detail-colors h3,
.detail-sections h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.color-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
}
.color-option span {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 50%;
}
.color-option.active {
  border-color: var(--gold);
  background: var(--soft);
}
.detail-sections {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}
.detail-sections section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.detail-sections p {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 320px;
  padding: 14px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
}
.toast.active { opacity: 1; transform: translateY(0); }

.checkout-layout { grid-template-columns: minmax(0, 1fr) 420px; }
.cart-items { display: grid; gap: 14px; }
.cart-line {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  padding: 16px;
  align-items: center;
}
.cart-line img {
  width: 120px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fbf7f1;
  border-radius: 8px;
}
.cart-line h2 { margin: 0 0 6px; font-size: 18px; }
.cart-line-option {
  margin: 0 0 4px;
  color: var(--rose);
  font-weight: 800;
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.quantity-control input { width: 76px; }
.line-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}
.line-actions button {
  border: 0;
  color: #9a3d3d;
  background: transparent;
  cursor: pointer;
}
.checkout-panel {
  position: sticky;
  top: 98px;
  padding: 20px;
}
.summary-box {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.summary-box p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
label span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 800;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(196, 154, 85, 0.35);
  border-color: var(--gold);
}
.checkout-form,
.cta-form,
.contact-card {
  display: grid;
  gap: 14px;
}
.form-status { margin: 0; color: var(--sage); font-weight: 800; }
.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.np-field {
  position: relative;
  display: block;
}
.np-field input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}
.np-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 18px);
  z-index: 30;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.np-option,
.np-empty {
  width: 100%;
  min-height: 44px;
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.np-option {
  cursor: pointer;
}
.np-option:hover,
.np-option:focus {
  background: var(--soft);
  outline: none;
}
.np-empty {
  color: var(--muted);
}
.trust-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.contact-layout { grid-template-columns: minmax(0, 1fr) 380px; }
.contact-card,
.contact-info-panel { padding: 24px; }
.contact-info-panel {
  display: grid;
  gap: 12px;
}
.delivery-box {
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cta-section {
  padding: 64px 0;
  background: var(--ink);
  color: #fff;
}
.cta-panel {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: center;
}
.cta-panel h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
}
.cta-panel p { color: rgba(255, 255, 255, 0.78); }
.cta-form {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 20px;
}
.cta-form .button-dark {
  background: #f5dfb5;
  color: var(--ink);
}

.site-footer {
  padding: 54px 0 20px;
  color: #fff;
  background: #151210;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}
.footer-logo { width: 190px; height: auto; margin-bottom: 12px; }
.footer-grid h2 { margin: 0 0 12px; font-size: 16px; color: #f5dfb5; }
.footer-grid a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.82);
}
.social-links { display: flex; gap: 10px; margin-top: 10px; }
.social-links a { display: inline-flex; }
.social-links img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
}

.empty-state,
.notice {
  padding: 30px;
  text-align: center;
}
.empty-state.wide { grid-column: 1 / -1; }
.text-page {
  padding: 60px 0;
  max-width: 900px;
}
.text-page h1,
.text-page h2 { font-family: Georgia, "Times New Roman", serif; }
.text-page p,
.text-page li { color: var(--muted); }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto auto auto; }
  .nav-toggle { display: block; order: 2; }
  .main-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    padding: 18px;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .main-nav.active { display: grid; }
  .header-cart { justify-self: end; }
  .hero { min-height: 640px; }
  .hero-grid,
  .about-grid,
  .product-detail,
  .product-page-grid,
  .catalog-layout,
  .checkout-layout,
  .contact-layout,
  .cta-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-proof { justify-self: start; }
  .filters,
  .checkout-panel { position: static; }
  .filters {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    gap: 12px;
  }
  .filter-group {
    overflow: hidden;
  }
  .filter-group a {
    display: inline-flex;
    white-space: nowrap;
  }
  .filter-group {
    display: block;
  }
  .filter-group h2 {
    margin-bottom: 10px;
  }
  .filter-group {
    padding: 12px;
  }
  .filter-group:not(:last-child) {
    margin-bottom: 0;
  }
  .filter-group {
    scrollbar-width: none;
  }
  .filter-group::-webkit-scrollbar {
    display: none;
  }
  .filter-group {
    overflow-x: auto;
    white-space: nowrap;
  }
  .brand-strip { grid-template-columns: repeat(3, 1fr); }
  .product-grid,
  .related-grid,
  .category-grid,
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .product-page-summary { position: static; }
  .product-content { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .site-header .brand img { width: 128px; }
  .header-inner { min-height: 68px; gap: 10px; }
  .main-nav { inset: 68px 0 auto 0; }
  .header-cart span { display: none; }
  .hero {
    min-height: 600px;
    padding: 92px 0 34px;
  }
  .hero p { font-size: 16px; }
  .section { padding: 54px 0; }
  .catalog-page .page-hero {
    padding: 24px 0 14px;
  }
  .catalog-page .page-hero h1 {
    margin-bottom: 6px;
    font-size: 30px;
  }
  .catalog-page .page-hero p {
    display: none;
  }
  .catalog-layout {
    gap: 12px;
    padding: 12px 0 44px;
  }
  .filters {
    gap: 8px;
  }
  .filter-group {
    padding: 10px;
  }
  .filter-group h2 {
    margin-bottom: 6px;
    font-size: 14px;
  }
  .filter-group a {
    min-height: 38px;
    align-items: center;
    padding: 8px 10px;
    font-size: 14px;
  }
  .results-toolbar {
    gap: 8px;
    margin-bottom: 10px;
  }
  .results-toolbar h2 {
    margin-bottom: 2px;
    font-size: 18px;
  }
  .results-toolbar p {
    font-size: 13px;
  }
  .brand-strip,
  .product-grid,
  .related-grid,
  .category-grid,
  .review-grid { grid-template-columns: 1fr; }
  .product-grid {
    gap: 12px;
  }
  .brand-card { min-height: 96px; }
  .category-card img { height: 240px; }
  .review-grid img { height: auto; }
  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .cart-line {
    grid-template-columns: 96px 1fr;
    align-items: start;
  }
  .cart-line img { width: 96px; }
  .line-actions {
    grid-column: 1 / -1;
    justify-items: stretch;
  }
  .button { width: 100%; }
  .product-actions .button { flex-basis: 100%; }
  .product-card {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .product-card .product-media {
    grid-row: 1 / 3;
    aspect-ratio: 1 / 1;
    padding: 10px;
  }
  .product-info {
    padding: 12px 12px 0;
  }
  .product-info h2 {
    min-height: 0;
    margin-bottom: 6px;
    font-size: 14px;
  }
  .product-actions {
    padding: 10px 12px 12px;
    gap: 8px;
  }
  .product-actions .button {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 13px;
  }
  .product-detail {
    gap: 18px;
  }
  .product-dialog {
    padding: 18px;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
  .np-dropdown {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 18px;
    max-height: min(360px, 58vh);
  }
}
