
:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-2: #f0f3f2;
  --text: #202322;
  --muted: #69716d;
  --line: #d9ded9;
  --accent: #2d6b5f;
  --accent-2: #9a6b2f;
  --danger: #a4433b;
  --shadow: 0 18px 50px rgba(32, 35, 34, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; background: #eceeea; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 244, .94);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font: 700 22px Georgia, serif;
}
.brand strong { display: block; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.top-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.top-nav a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #39403d;
  font-size: 14px;
}
.top-nav a:hover { border-color: var(--line); background: #fff; }
main { padding: 0 clamp(18px, 4vw, 48px) 54px; }
.catalog-head, .list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0 22px;
}
.catalog-head h1, .list-head h1, .product-summary h1 {
  margin: 0;
  max-width: 940px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}
.lead, .list-head p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.rate-note {
  min-width: 190px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.rate-note span, .rate-note small { display: block; color: var(--muted); }
.rate-note strong { display: block; font-size: 28px; line-height: 1; margin: 5px 0; }
.stats-panel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}
.stats-panel div {
  padding: 18px;
  background: var(--surface);
}
.stats-panel strong { display: block; font-size: 26px; }
.stats-panel span { color: var(--muted); font-size: 13px; }
.section-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}
.section-strip a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.section-strip span { color: var(--muted); }
.catalog-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.filters {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
input, select, button {
  font: inherit;
}
input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--text);
  background: #fff;
}
input:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ghost-button, .load-more, .primary-cta {
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--accent);
  background: #fff;
  cursor: pointer;
}
.load-more, .primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  color: #fff;
  background: var(--accent);
}
.result-bar, .list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.result-bar h2 { margin: 0; font-size: 22px; }
.result-bar span, .list-meta span { color: var(--muted); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.static-grid { margin-top: 18px; }
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: transform .16s ease, box-shadow .16s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #eceeea;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(32, 35, 34, .72);
  font-size: 12px;
}
.card-body { display: grid; gap: 10px; padding: 14px; }
.card-badges { display: flex; min-height: 24px; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #36524c;
  background: #e7f1ee;
}
.badge-new { color: #704813; background: #f3eadf; }
.badge-stock { color: #285447; background: #e1f1ea; }
.card-title {
  min-height: 48px;
  font-weight: 650;
  line-height: 1.25;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.card-meta span {
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow-wrap: anywhere;
}
.card-bottom {
  display: grid;
  gap: 2px;
  padding-top: 4px;
}
.card-bottom strong { font-size: 18px; }
.card-bottom span { color: var(--muted); font-size: 13px; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumbs a { color: var(--accent); }
.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: start;
  padding: 10px 0 28px;
}
.gallery {
  display: grid;
  gap: 12px;
}
.main-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.main-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}
.thumb {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.thumb.is-active { border-color: var(--accent); }
.thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.product-summary {
  position: sticky;
  top: 88px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.product-summary h1 {
  font-size: clamp(28px, 3vw, 42px);
}
.full-name { color: var(--muted); }
.price-line {
  margin: 20px 0 12px;
  font-size: 30px;
  font-weight: 760;
}
.status-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.summary-list, .spec-table {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}
.summary-list div, .spec-table div {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) minmax(0, 1.25fr);
  gap: 16px;
  padding: 12px 14px;
  background: var(--surface);
}
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.content-section {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.content-section h2 { margin: 0 0 14px; font-size: 22px; }
.content-section p { max-width: 920px; margin: 0; }
.table-scroll { overflow-x: auto; }
.variant-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.variant-table th, .variant-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.variant-table th { color: var(--muted); font-weight: 600; }
.related-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 28px 0 0;
}
.pagination a, .page-gap {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.pagination a[aria-current="page"] {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}
.muted, .noscript-note { color: var(--muted); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}
.site-footer strong { color: var(--text); margin-right: 8px; }
.site-footer a { color: var(--accent); }
@media (max-width: 980px) {
  .catalog-shell, .product-page { grid-template-columns: 1fr; }
  .filters, .product-summary { position: static; }
  .stats-panel { grid-template-columns: repeat(2, 1fr); }
  .catalog-head, .list-head { display: block; }
  .rate-note { margin-top: 16px; }
}
@media (max-width: 640px) {
  .site-header { position: static; align-items: flex-start; }
  .top-nav { justify-content: flex-start; }
  main { padding-inline: 14px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px; }
  .card-title { min-height: 58px; font-size: 14px; }
  .card-bottom strong { font-size: 15px; }
  .summary-list div, .spec-table div { grid-template-columns: 1fr; gap: 4px; }
  .content-section, .product-summary { padding: 16px; }
  .site-footer { display: block; }
}

/* Commercial polish overrides */
.brand { min-width: 220px; }
.brand-logo {
  display: block;
  width: 220px;
  max-width: 34vw;
  height: auto;
}
.home-source-link {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.home-source-link a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.home-source-link a:hover { text-decoration: underline; }
.sales-contact {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.sales-contact span,
.footer-contact span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sales-contact a {
  color: var(--text);
  text-decoration: none;
}
.sales-contact .sales-phone {
  font-size: 20px;
  font-weight: 700;
}
.site-footer {
  display: block;
  padding: 30px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}
.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: start;
}
.footer-brand,
.footer-contact {
  display: grid;
  gap: 8px;
}
.footer-brand strong,
.footer-phone {
  color: var(--text);
  font-weight: 700;
}
.footer-contact a {
  color: var(--text);
  text-decoration: none;
}
.footer-contact address {
  margin: 0;
  font-style: normal;
}
@media (max-width: 640px) {
  .brand { min-width: 0; }
  .brand-logo { max-width: 210px; }
  .site-footer-inner { grid-template-columns: 1fr; }
}


/* Product detail scale and Astra-style footer */
.product-page {
  grid-template-columns: minmax(0, 760px) minmax(340px, 420px);
  justify-content: center;
}
.gallery {
  max-width: 760px;
  width: 100%;
}
.main-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(360px, 54vh, 560px);
  padding: 18px;
}
.main-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}
.thumbs {
  grid-template-columns: repeat(auto-fill, minmax(64px, 76px));
}
.site-footer {
  margin-top: 34px;
  padding: 34px clamp(24px, 4vw, 78px);
  border-top: 0;
  color: #aeb6bd;
  background: #202931;
}
.site-footer-inner {
  max-width: 1920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(260px, .8fr) minmax(320px, 1fr);
  gap: clamp(36px, 8vw, 180px);
  align-items: start;
}
.footer-brand,
.footer-contact,
.footer-projects {
  display: grid;
  gap: 12px;
}
.footer-logo {
  display: block;
  width: 178px;
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
  filter: invert(1) brightness(1.8);
}
.footer-brand p,
.footer-projects p {
  margin: 0;
  max-width: 620px;
  color: #b7bec4;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.55;
}
.footer-contact span,
.footer-projects span {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
.footer-contact a {
  width: fit-content;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-contact address {
  max-width: 440px;
  margin: 2px 0 0;
  color: #aeb6bd;
  font-style: normal;
  font-size: 15px;
  line-height: 1.45;
}
.sales-contact a[href^="mailto:"] {
  color: var(--text);
}
@media (max-width: 1180px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 56px;
  }
  .footer-projects { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .product-page {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .gallery {
    max-width: none;
  }
  .main-photo {
    height: clamp(320px, 58vh, 500px);
  }
}
@media (max-width: 640px) {
  .site-footer {
    padding: 30px 22px;
  }
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-projects { grid-column: auto; }
  .footer-brand p,
  .footer-projects p {
    font-size: 16px;
  }
  .main-photo {
    height: clamp(300px, 56vh, 440px);
    padding: 12px;
  }
}


/* Footer refinement and cohesive product details */
.site-footer {
  padding: 32px clamp(24px, 4vw, 72px);
  color: #b5bdc3;
}
.site-footer-inner {
  grid-template-columns: minmax(340px, 1.35fr) minmax(250px, .72fr) minmax(300px, .92fr);
  gap: clamp(34px, 7vw, 150px);
}
.site-footer,
.site-footer a,
.site-footer span,
.site-footer p,
.site-footer address {
  font-weight: 400;
}
.footer-brand,
.footer-contact,
.footer-projects {
  gap: 9px;
}
.footer-logo {
  width: 166px;
  margin-bottom: 6px;
}
.footer-brand p,
.footer-projects p {
  color: #b5bdc3;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.footer-service-link {
  width: fit-content;
  color: #fff;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-contact span,
.footer-projects span {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}
.footer-contact a {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}
.footer-contact address {
  font-size: 14px;
}
.product-page,
.product-info-grid,
.variants-section,
.related {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.product-page {
  grid-template-columns: minmax(360px, 560px) minmax(340px, 390px);
  gap: 24px;
}
.gallery {
  max-width: 560px;
}
.main-photo {
  height: clamp(300px, 45vh, 430px);
  padding: 16px;
}
.product-summary {
  padding: 20px;
}
.product-summary h1 {
  font-size: clamp(27px, 2.5vw, 38px);
}
.price-line {
  margin: 16px 0 12px;
  font-size: 28px;
}
.product-info-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr);
  gap: 24px;
  align-items: start;
  margin-top: 8px;
}
.product-info-grid .content-section {
  margin-top: 0;
  height: 100%;
}
.product-description p {
  max-width: none;
  line-height: 1.62;
}
.product-specs .spec-table div {
  grid-template-columns: minmax(145px, .62fr) minmax(0, 1.38fr);
  padding: 10px 12px;
}
.variants-section,
.related {
  margin-top: 24px;
}
@media (max-width: 1060px) {
  .product-info-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 980px) {
  .product-page {
    grid-template-columns: 1fr;
  }
  .gallery {
    max-width: none;
  }
  .main-photo {
    height: clamp(300px, 52vh, 440px);
  }
}
@media (max-width: 640px) {
  .main-photo {
    height: clamp(280px, 50vh, 400px);
  }
  .footer-service-link,
  .footer-contact a,
  .footer-contact span,
  .footer-projects span,
  .footer-brand p,
  .footer-projects p {
    font-size: 15px;
  }
}

