/* ============================================
   Anchors — Landing & Shop styles
   ============================================ */

/* ===== Landing Hero ===== */
.hero {
  padding: 40px 0 50px;
  /* Leave room so the promo banner below peeks at the bottom of the first screen
     (was full-height calc(100vh - 70px); shortened by ~300px for the promo). */
  min-height: calc(100vh - 70px - 300px);
  display: flex;
  align-items: center;
}
.hero .container { width: 100%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}

.hero h1 em { font-style: italic; font-weight: 400; color: var(--blue); }

.hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 420px;
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== Promo / news banner (landing, admin-managed, full-bleed) ===== */
.promo-banner { position: relative; }

/* Carousel: a horizontal sliding track; JS shifts it by translateX per slide.
   Without JS the track stays at 0 and overflow:hidden shows the first banner. */
.promo-carousel { overflow: hidden; }
.promo-track {
  display: flex;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.promo-slide { position: relative; flex: 0 0 100%; min-width: 0; }

/* Image-only mode: a ready-made banner graphic shown whole, no crop, no scrim. */
.promo-banner .promo-link { display: block; line-height: 0; text-align: center; }
/* Full-bleed: the banner image fills the whole width edge-to-edge (no side gaps /
   "frames"). height:auto keeps its proportions so the baked-in Georgian text shows
   at full scale & isn't cropped. max-height + object-fit:cover is a safety so an
   unusually tall banner (e.g. a near-square one) can't blow the strip up. */
.promo-banner .promo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
}

/* Overlay mode: photo background + admin text on a left-to-right dark scrim. */
.promo-slide.has-overlay {
  min-height: clamp(240px, 30vw, 360px);
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(13, 32, 44, 0.86) 0%, rgba(13, 32, 44, 0.60) 40%, rgba(13, 32, 44, 0.16) 72%, rgba(13, 32, 44, 0) 100%),
    var(--promo-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
/* Fill the banner so the container's own max-width + auto margins center it and
   the content stays left-aligned (without width:100% the flex item shrinks). */
.promo-slide.has-overlay > .container { width: 100%; }
.promo-content {
  max-width: 560px;
  color: #fff;
  padding: 44px 0;
}
.promo-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 12px;
}
.promo-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 14px;
}
.promo-body {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 22px;
  max-width: 520px;
}
.promo-btn { margin-top: 2px; }

/* Carousel dots — translucent pill so they read on any banner (light or dark) */
.promo-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 7px;
  padding: 6px 10px;
  background: rgba(13, 32, 44, 0.34);
  border-radius: 100px;
}
.promo-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s, transform 0.2s;
}
.promo-dot:hover { background: rgba(255, 255, 255, 0.8); }
.promo-dot.is-active { background: #fff; transform: scale(1.25); }

@media (max-width: 768px) {
  .promo-slide.has-overlay {
    min-height: 0;
    background-image:
      linear-gradient(180deg, rgba(13, 32, 44, 0.45) 0%, rgba(13, 32, 44, 0.84) 100%),
      var(--promo-img);
  }
  .promo-content { padding: 34px 0; max-width: 100%; }
  .promo-body { max-width: 100%; }
}

/* ===== "About us" single text (landing, admin-managed) ===== */
#about .about-accent {
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 22px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--terra), var(--blue));
}
.about-text {
  max-width: 740px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: -0.004em;
  color: var(--ink-soft);
  white-space: pre-line;   /* preserve the admin's line breaks / paragraphs */
}
@media (max-width: 860px) {
  .about-text { font-size: 18px; line-height: 1.72; }
  #about .about-accent { margin-top: 18px; }
}

/* ===== Engineering drawing ===== */
.tech-drawing {
  border: 1px solid var(--line);
  background: var(--paper-warm);
  padding: 22px;
  position: relative;
}

.tech-drawing .corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
}
.tech-drawing .corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.tech-drawing .corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.tech-drawing .corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.tech-drawing .corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.tech-drawing svg { width: 100%; height: auto; display: block; }

.tech-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.tech-meta strong { display: block; color: var(--ink); font-weight: 500; margin-top: 2px; }
.tech-meta .col { position: relative; padding-left: 12px; }
.tech-meta .col::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 3px; height: 28px;
}
.tech-meta .col:nth-child(1)::before { background: var(--terra); }
.tech-meta .col:nth-child(2)::before { background: var(--green); }
.tech-meta .col:nth-child(3)::before { background: var(--ochre); }

/* ===== Process steps ===== */
.process { display: grid; grid-template-columns: 220px 1fr; gap: 60px; }
.process-list { border-top: 1px solid var(--line); }

.step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 36px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.3s ease;
}

.step::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--terra);
  opacity: 0;
  transition: opacity 0.3s;
}

.step:hover { padding-left: 12px; }
.step:hover::before { opacity: 1; }

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding-top: 8px;
  color: var(--terra);
  display: flex; align-items: center; gap: 8px;
}
.step-num::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terra); }

.step h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
}

.step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 420px;
}

#process .sec-num, #process .section-head h2 em { color: var(--terra); }

/* ===== Products grid (landing) ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.product-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 0.3s;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Category photo — now BELOW the name; grows to fill so cards stay equal height */
.product-card-img {
  width: 100%;
  flex: 1;
  min-height: 180px;
  overflow: hidden;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

/* Text block (name + accent line) — sits at the TOP of the card now */
.product-card-body {
  padding: 30px 26px 26px;
}

/* Cards with no photo: centre the name so a stretched card has no empty gap */
.product-card:not(.has-img) .product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-c, var(--blue));
  transform: translateY(-3px);
  transition: transform 0.3s;
}

.product-card:hover::before { transform: translateY(0); }
.product-card:hover { background: var(--paper-warm); }

.product-card h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 8px;
}

.product-card .desc {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

#products .sec-num, #products .section-head h2 em { color: var(--blue); }

/* ===== Shop catalog (full page) ===== */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 56px 0;
}

.shop-sidebar h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.cat-list { list-style: none; }
.cat-list li { margin-bottom: 4px; }

.cat-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s;
}

.cat-list a:hover { background: var(--paper-warm); }
.cat-list a.active { background: var(--ink); color: var(--paper); }
.cat-list a .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.shop-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.shop-header h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.shop-header h1 em { font-style: italic; color: var(--blue); }

.shop-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ===== Search input ===== */
.shop-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}

.shop-search-icon {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}

.shop-search input[type="search"] {
  width: 100%;
  padding: 9px 36px 9px 34px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.shop-search input[type="search"]::placeholder { color: var(--muted); }

.shop-search input[type="search"]:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(28, 78, 128, 0.1);
}

.shop-search input[type="search"]::-webkit-search-cancel-button { display: none; }

.shop-search-clear {
  position: absolute;
  right: 8px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.shop-search-clear:hover {
  background: var(--terra);
  color: var(--paper);
}

/* ===== Search results summary banner ===== */
.shop-search-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 18px;
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  font-size: 13px;
}

.shop-search-summary-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.shop-search-summary-term {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
}

.shop-search-summary-clear {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--terra);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--terra);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.shop-search-summary-clear:hover {
  background: var(--terra);
  color: var(--paper);
}

@media (max-width: 720px) {
  .shop-header {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }
  .shop-search { max-width: none; margin: 0; }
  .shop-meta { text-align: right; }
}

/* ===== Sort / filter toolbar ===== */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.shop-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.shop-filters-label,
.sort-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  background: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-chip .chip-x { font-size: 13px; line-height: 1; opacity: 0.85; }

.price-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 5px 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.price-filter-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.price-input {
  width: 56px;
  padding: 5px 4px;
  border: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.price-input:focus { outline: none; }
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-input::placeholder { color: var(--muted); }
.price-dash { color: var(--muted); }
.price-go {
  width: 26px;
  height: 26px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.price-go:hover { background: var(--blue-deep); }

.filter-clear {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--terra);
  text-decoration: none;
  white-space: nowrap;
}
.filter-clear:hover { text-decoration: underline; }

.shop-sort { display: inline-flex; align-items: center; gap: 10px; }
.sort-select {
  padding: 8px 34px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b7785' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 13px center;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.sort-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28, 78, 128, 0.1); }

@media (max-width: 720px) {
  .shop-toolbar { gap: 12px; }
  .shop-sort { width: 100%; justify-content: space-between; }
  .sort-select { flex: 1; }
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.shop-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
}

.shop-card:hover { background: var(--paper-warm); }

.shop-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.shop-card .cat-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 3px;
}

.shop-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
}

.shop-card .desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.shop-card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.shop-card .price {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.shop-card .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ===== Product detail ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  padding: 56px 0;
}

.product-detail-info .breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.product-detail-info .breadcrumb a { color: inherit; text-decoration: none; }
.product-detail-info .breadcrumb a:hover { color: var(--blue); }

.product-detail-info h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 12px;
}

.product-detail-info .name-en {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 28px;
}

.product-detail-info .desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-specs .spec .label {
  display: block;
  margin-bottom: 4px;
}

.product-specs .spec .val {
  font-family: var(--serif);
  font-size: 18px;
}

.product-side {
  position: sticky;
  top: 90px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 28px;
  /* Let the column shrink below its content's intrinsic width so the implant
     scroller's overflow-x scrolls internally instead of widening the page. */
  min-width: 0;
}

.product-side .price-block {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.product-side .price-block .label { display: block; margin-bottom: 6px; }
.product-side .price-block .price {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
}

.product-side form { display: flex; flex-direction: column; gap: 14px; }

.qty-input {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  width: fit-content;
  border-radius: 4px;
  overflow: hidden;
}

.qty-input button {
  background: transparent;
  border: none;
  font-size: 18px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s;
}

.qty-input button:hover { background: var(--paper); }

.qty-input input {
  width: 50px;
  border: none;
  text-align: center;
  font-family: var(--mono);
  font-size: 14px;
  background: transparent;
}

.qty-input input:focus { outline: none; }

.file-drop {
  border: 1.5px dashed var(--line);
  border-radius: 4px;
  padding: 11px 14px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  background: var(--paper);
}

.file-drop:hover, .file-drop.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.file-drop p { font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
.file-drop small { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.file-drop input { display: none; }
.file-drop .filename {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  margin-top: 6px;
}

/* ===== Cart page ===== */
.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  padding: 56px 0;
}

.cart-items { border-top: 1px solid var(--line); }

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}

.cart-row .name {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 4px;
}

.cart-row .sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.cart-row .notes {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
  padding-left: 10px;
  border-left: 2px solid var(--line);
}

.cart-row .stl-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  margin-top: 6px;
}

.cart-summary {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 28px;
  position: sticky;
  top: 90px;
  height: fit-content;
}

.cart-summary h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.summary-row.total {
  border-bottom: none;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  font-family: var(--serif);
  font-size: 20px;
}

.cart-empty {
  text-align: center;
  padding: 80px 20px;
}

.cart-empty .icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  color: var(--muted);
}

.cart-empty h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.cart-empty p { color: var(--muted); margin-bottom: 24px; }

/* ===== My space — header + client profile ===== */
.space-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.space-title { font-family: var(--serif); font-size: 34px; font-weight: 400; }
.space-title em { font-style: italic; color: var(--blue); }
.space-profile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 20px;
  margin-bottom: 44px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.space-profile-name { font-family: var(--serif); font-size: 17px; }
.space-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 13px;
  color: var(--muted);
}
.space-section-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.space-empty-cart {
  padding: 28px;
  margin-bottom: 8px;
  background: var(--paper-warm);
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.space-empty-cart .space-section-title { margin-bottom: 8px; }
.space-empty-cart p { color: var(--muted); margin: 0 0 18px; }

/* ===== My space — order lists (active / completed) ===== */
.space-orders {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.space-orders-section { margin-bottom: 44px; }
.space-orders-section:last-child { margin-bottom: 0; }
.space-orders-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.space-orders-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--paper-2);
  border-radius: 20px;
  padding: 2px 10px;
}

/* ===== Implant recommendation (lives in the TAD product sidebar) ===== */
.implant-rec {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.implant-rec-head { margin-bottom: 14px; }
.implant-rec-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 3px;
}
.implant-rec-sub {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.implant-rec-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 2px 2px 14px;
  margin: 0 -2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.implant-rec-scroller::-webkit-scrollbar { height: 7px; }
.implant-rec-scroller::-webkit-scrollbar-track { background: transparent; }
.implant-rec-scroller::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 8px;
}
.implant-card {
  flex: 0 0 158px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.implant-card:hover {
  border-color: var(--muted);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}
.implant-card-img {
  display: block;
  height: 104px;
  background: var(--paper-2);
  overflow: hidden;
}
.implant-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.implant-card-img.placeholder svg,
.implant-card-img.placeholder > * {
  width: 100%;
  height: 100%;
  display: block;
}
.implant-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 11px 12px;
}
.implant-card-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.implant-card-name:hover { color: var(--blue); }
.implant-card-price {
  font-family: var(--serif);
  font-size: 15px;
}
.implant-card-add { margin-top: auto; }
.implant-card-btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}
.implant-card-add .implant-card-btn { margin-top: 0; }
/* Persistent "added" state — stays for the whole page visit so the user can see
   at a glance which accessories they've already put in the cart. */
.implant-card-btn.is-added,
.implant-card-btn.is-added:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
/* Quantity stepper on accessory cards (− [n] +) */
.implant-card-add .qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 6px;
  background: var(--paper);
}
.implant-card-add .qty-btn {
  flex: 0 0 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background .15s ease;
}
.implant-card-add .qty-btn:hover { background: var(--paper-2); }
.implant-card-add .qty-val {
  flex: 1;
  min-width: 0;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  pointer-events: none;
}

/* ===== Auth pages ===== */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 40px 36px;
  position: relative;
}

.auth-card .corner {
  position: absolute;
  width: 8px; height: 8px;
  border: 1px solid var(--ink);
}
.auth-card .corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.auth-card .corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.auth-card .corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.auth-card .corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.auth-card h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 6px;
}

.auth-card h1 em { font-style: italic; color: var(--blue); }
.auth-card .sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

.auth-card .alt {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}

.auth-card .alt a { color: var(--blue); text-decoration: none; font-weight: 500; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; min-height: 0; display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: 1fr; gap: 20px; }
  .step { grid-template-columns: 60px 1fr; gap: 16px; padding: 22px 0; }
  .step p { grid-column: 2; max-width: 100%; }
  .products-grid { grid-template-columns: 1fr; border-left: none; }
  .product-card { border-left: 1px solid var(--line); }
  .shop-layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .shop-grid { grid-template-columns: 1fr; border-left: none; }
  .shop-card { border-left: 1px solid var(--line); }
  .product-detail { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .product-side { position: relative; top: 0; }
  .cart-layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .cart-summary { position: relative; top: 0; }
  .cart-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
}


/* ============================================
   Work section — constrain the blueprint card
   ============================================ */
.section-work .tech-drawing {
  max-width: 640px;
  margin: 0 auto;
  padding: 18px 20px;
}
.section-work .tech-drawing svg {
  max-height: 460px;
}
.section-work .tech-meta {
  margin-top: 12px;
  padding-top: 10px;
  font-size: 9px;
}

@media (max-width: 720px) {
  .section-work .tech-drawing { padding: 12px 14px; }
}
/* ============================================
   Hero visual — intraoral scanner line drawing
   ============================================ */
.hero-visual {
  width: 100%;
  align-self: center;
}
.hero-visual .hv-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 400px;
  height: auto;
  margin: 0 auto;
}
/* Georgian brand subtitle under the "Anchors.ge" wordmark (replaces the old
   baked-in English "ORTHODONTIC LABORATORY" line; tiny tagline dropped). */
.hv-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px auto 0;
}
.hv-subtitle .hv-rule {
  width: 30px;
  height: 1px;
  background: #c4ccd3;
}
.hv-subtitle .hv-sub-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #6a6a6a;
  white-space: nowrap;
}

/* ============================================
   Product 3D model viewer (STL/OBJ/PLY)
   ============================================ */
.product-model-3d {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  /* Soft near-white backdrop, just a hint of cream — the dark metal model
     reads clearly against it. */
  background: radial-gradient(ellipse at 50% 36%, #FFFFFF 0%, #FBF7F0 60%, #F2EBDF 100%);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 28px;
}
.product-model-3d .model-3d-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}
.product-model-3d .model-3d-canvas:active { cursor: grabbing; }
.product-model-3d .model-3d-canvas canvas { display: block; width: 100% !important; height: 100% !important; }

.product-model-3d .model-3d-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
}

/* Mobile: ensure 3D viewer has visible height */
@media (max-width: 720px) {
  .product-model-3d {
    aspect-ratio: 4 / 3;
    min-height: 320px;
  }
}

/* ─── Loading overlay ─────────────────────────────────── */
.product-model-3d .model-3d-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--paper-warm);
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.product-model-3d .model-3d-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.product-model-3d .model-3d-loading span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.product-model-3d .model-3d-loading.is-error span {
  color: var(--terra);
}

.product-model-3d .model-3d-spinner {
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-right-color: var(--blue);
  border-radius: 50%;
  animation: m3d-spin 0.9s linear infinite;
}

.product-model-3d .model-3d-loading.is-error .model-3d-spinner {
  border-color: var(--line);
  border-top-color: var(--terra);
  border-right-color: var(--terra);
  animation: none;
}

@keyframes m3d-spin {
  to { transform: rotate(360deg); }
}

/* ─── Overlay control buttons ─────────────────────────── */
.product-model-3d .model-3d-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 4;
}

.product-model-3d .m3d-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.product-model-3d .m3d-btn:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.product-model-3d .m3d-btn:active {
  transform: translateY(0);
}

.product-model-3d .m3d-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.product-model-3d .m3d-btn.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.product-model-3d .m3d-btn svg {
  display: block;
}

/* Reposition hint so it doesn't collide with the controls */
.product-model-3d .model-3d-hint {
  z-index: 2;
}

/* ─── Fullscreen mode adaptations ─────────────────────── */
.product-model-3d:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  min-height: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: #0E1B29;
}

.product-model-3d:fullscreen .model-3d-loading {
  background: #0E1B29;
}

.product-model-3d:fullscreen .model-3d-loading span {
  color: rgba(255, 255, 255, 0.6);
}

.product-model-3d:fullscreen .m3d-btn {
  background: rgba(20, 18, 14, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}

.product-model-3d:fullscreen .m3d-btn:hover {
  background: rgba(28, 40, 54, 0.92);
  color: #fff;
  border-color: #6FA8DC;
}

.product-model-3d:fullscreen .m3d-btn.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.product-model-3d:fullscreen .model-3d-hint {
  background: rgba(20, 18, 14, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
}

.product-model-3d:fullscreen .model-3d-controls {
  top: 20px;
  right: 20px;
}

/* Mobile: smaller buttons */
@media (max-width: 720px) {
  .product-model-3d .m3d-btn {
    width: 30px;
    height: 30px;
  }
  .product-model-3d .model-3d-controls {
    top: 10px;
    right: 10px;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-model-3d .model-3d-spinner { animation-duration: 2.4s; }
}

/* ============================================
   Cart multi-file upload list
   ============================================ */
.cart-file-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-file-item {
  display: grid;
  grid-template-columns: 42px 1fr 28px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cart-file-item.is-uploading { border-color: var(--blue); background: rgba(28, 78, 128, 0.05); }
.cart-file-item.is-done      { border-color: var(--green); }
.cart-file-item.is-error     { border-color: var(--terra); background: rgba(184, 71, 45, 0.05); }

.cf-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.cart-file-item.is-done .cf-icon  { background: var(--green); }
.cart-file-item.is-error .cf-icon { background: var(--terra); }

.cf-body { min-width: 0; }

.cf-name {
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.cf-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.cf-ok  { color: var(--green); }
.cf-err { color: var(--terra); }
.cf-pct { color: var(--blue); font-weight: 500; }

.cf-bar {
  margin-top: 6px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.cf-bar-fill {
  height: 100%;
  background: var(--blue);
  transition: width 0.18s ease;
}

.cf-remove {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cf-remove:hover { background: var(--terra); color: var(--paper); border-color: var(--terra); }
.cart-file-item.is-uploading .cf-remove { opacity: 0.4; cursor: not-allowed; }

/* ============================================
   Cart row file list (cart page) + order file list (admin/account order pages)
   ============================================ */
.cart-row-files {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}

.cart-row-files-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.cart-row-files ul,
.order-file-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.cart-row-files li,
.order-file-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  margin-bottom: 4px;
  font-size: 12px;
}

.cart-row-files .cf-ext,
.order-file-list .cf-ext {
  display: inline-block;
  padding: 2px 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.cart-row-files .cf-link,
.order-file-list .cf-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}

.cart-row-files .cf-link:hover,
.order-file-list .cf-link:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.cart-row-files .cf-size,
.order-file-list .cf-size {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ============================================
   Doctor reviews — landing carousel (#reviews)
   ============================================ */

#reviews.section {
  background: linear-gradient(180deg, #F6F9FC 0%, #E9F1F8 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.reviews-accent {
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--terra), var(--blue));
}

.reviews-sub {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}

.reviews-arrows { display: flex; gap: 8px; }

.reviews-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
  transition: all 0.18s;
}

.reviews-arrow:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.reviews-flash {
  margin: 4px 0 18px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 14px;
}

.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.review-card {
  --rev-accent: var(--blue);
  position: relative;
  overflow: hidden;
  flex: 0 0 min(360px, 86vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 28px 26px 22px;
  box-shadow: 0 12px 30px rgba(19, 32, 44, 0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rev-accent), transparent 85%);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(19, 32, 44, 0.11);
}

.review-quote {
  position: absolute;
  bottom: -18px;
  right: 18px;
  font-family: var(--serif);
  font-size: 84px;
  line-height: 1;
  color: var(--blue-soft);
  pointer-events: none;
  user-select: none;
}

.review-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ink);
  position: relative;
}

.review-body {
  flex: 1;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}

/* author header — sits at the TOP of the card */
.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.review-avatar {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--line-soft);
}

.review-author-meta { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.review-author-meta strong {
  font-family: "Noto Sans Georgian", "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.review-clinic {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* — write / edit form — */

.reviews-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.review-form-wrap { flex: 1 1 100%; }
.review-form-wrap summary { list-style: none; display: inline-block; }
.review-form-wrap summary::-webkit-details-marker { display: none; }

.review-form {
  margin-top: 18px;
  max-width: 640px;
  padding: 24px;
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-form-row { display: flex; flex-direction: column; gap: 6px; }
.review-form-row .label { color: var(--muted); }

.review-form input[type="text"],
.review-form textarea {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.review-form textarea { resize: vertical; min-height: 110px; }

.review-form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.review-form-note { font-size: 12.5px; color: var(--muted); max-width: 380px; }

@media (max-width: 640px) {
  .reviews-arrows { display: none; }
  .review-card { padding: 20px 18px 18px; }
}
