/* ============================================================
   NorthCo — Product pages only (4 detail pages)
   Breadcrumb · Gallery · Info · Sizes · CTA · Offers · Delivery
   Highlights · Reviews · Related · Trust · Sticky ATC · Modal
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 1.2rem 5%;
  max-width: var(--maxw);
  margin: 0 auto;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.breadcrumb a { color: var(--ink-soft); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span + span::before { content: " / "; margin: 0 0.6rem; color: var(--line-strong); }

/* ---------- Product layout ---------- */
.product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  max-width: var(--maxw);
  margin: 1rem auto 4rem;
  padding: 0 5%;
}

/* Gallery */
.gallery { display: flex; flex-direction: column; gap: 1rem; }
.main-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--beige);
  position: relative;
}
.main-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.6s ease;
}
.main-img.zoomable { cursor: zoom-in; }
.main-img.zoomable:hover img { transform: scale(1.06); }

.thumbs {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.4rem;
}
.thumbs::-webkit-scrollbar { height: 4px; }
.thumbs::-webkit-scrollbar-thumb { background: var(--line-strong); }
.thumb {
  flex: 0 0 86px;
  height: 110px;
  overflow: hidden;
  border: 1.5px solid transparent;
  transition: border-color 0.25s;
  scroll-snap-align: start;
  cursor: pointer;
  background: var(--beige);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--ink); }

/* Info column */
.info { padding-top: 0.5rem; }
.info .brand {
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}
.info h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.info h1 em { font-style: italic; font-weight: 400; }
.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.stars { display: inline-flex; gap: 1px; color: var(--ink); }
.stars svg { width: 14px; height: 14px; fill: currentColor; }
.rating a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

.price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.price-now {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.price-was {
  color: var(--ink-soft);
  text-decoration: line-through;
  font-size: 1.1rem;
}
.pill-discount {
  background: var(--ink);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.tax-note { font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 1.5rem; }

.social-proof {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--beige);
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  margin-bottom: 2rem;
  color: var(--ink-soft);
}
.social-proof .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(26,61,46,0.15);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 7px rgba(26,61,46,0.05); }
}

.group { margin-bottom: 1.6rem; }
.group-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}
.group-label a { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: none; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

.swatches { display: flex; gap: 0.6rem; align-items: center; }
.swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active::after {
  content: ""; position: absolute;
  inset: -5px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.swatch-name { margin-left: 0.6rem; font-size: 0.84rem; color: var(--ink); }

.sizes { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.size {
  min-width: 54px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  transition: all 0.2s;
}
.size:hover:not(.is-disabled) { border-color: var(--ink); }
.size.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size.is-disabled { color: var(--line-strong); cursor: not-allowed; text-decoration: line-through; background: transparent; }
.sizes-group.error .size { animation: shake 0.4s ease; border-color: var(--danger); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--line-strong);
  width: fit-content;
}
.qty-stepper button {
  width: 44px; height: 44px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.qty-stepper button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.qty-stepper button:disabled { color: var(--line-strong); cursor: not-allowed; }
.qty-stepper .qty-num {
  min-width: 50px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 500;
  border-left: 1.5px solid var(--line-strong);
  border-right: 1.5px solid var(--line-strong);
}

.cta-row { display: flex; gap: 0.7rem; margin-top: 1.4rem; flex-wrap: wrap; }
.btn-primary {
  flex: 2;
  min-width: 200px;
  background: var(--ink);
  color: #fff;
  padding: 1rem 1.4rem;
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: #000; }
.btn-primary:active { transform: scale(0.99); }
.btn-secondary {
  flex: 1;
  min-width: 140px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 1rem 1.4rem;
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.25s, color 0.25s;
}
.btn-secondary:hover { background: var(--ink); color: #fff; }

.atc-confirm {
  max-height: 0;
  overflow: hidden;
  background: var(--accent);
  color: #f1ede6;
  padding: 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  transition: max-height 0.4s ease, padding 0.3s ease;
  text-align: center;
  border-radius: 4px;
}
.atc-confirm.is-shown { max-height: 60px; padding: 0.7rem 1rem; margin-top: 0.8rem; }

/* ---------- Offers accordion ---------- */
.offers {
  max-width: var(--maxw);
  margin: 2rem auto;
  padding: 0 5%;
}
.offer-card {
  border: 1px solid var(--line);
  background: var(--paper);
}
.offer-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.offer-toggle .chev { transition: transform 0.3s; }
.offer-card.is-open .chev { transform: rotate(180deg); }
.offer-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1.2rem;
}
.offer-card.is-open .offer-list { max-height: 400px; padding-bottom: 1.2rem; }
.offer-line {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.offer-line:first-child { border-top: none; }
.offer-icon {
  width: 32px; height: 32px;
  background: var(--beige);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.offer-icon svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.offer-line strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 0.15rem; }

/* ---------- Delivery check ---------- */
.delivery {
  max-width: var(--maxw);
  margin: 1rem auto 4rem;
  padding: 1.6rem 5%;
  background: var(--beige);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.delivery h4 { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.5rem; }
.delivery-row { display: flex; gap: 0.6rem; align-items: center; }
.delivery input {
  width: 200px;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font: inherit;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
}
.delivery input:focus { outline: none; border-color: var(--ink); }
.delivery button {
  padding: 0.7rem 1.2rem;
  border: 1.5px solid var(--ink);
  background: transparent;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.delivery button:hover { background: var(--ink); color: #fff; }
.delivery-meta { font-size: 0.82rem; color: var(--ink-soft); }
.truck-icon {
  width: 56px; height: 56px;
  background: var(--paper);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.truck-icon svg { width: 28px; height: 28px; stroke: var(--ink); fill: none; stroke-width: 1.4; }

/* ---------- Highlights ---------- */
.highlights {
  max-width: var(--maxw);
  margin: 2rem auto;
  padding: 0 5%;
}
.highlights h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin-bottom: 1.4rem;
}
.hl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.hl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.hl:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 1.2rem; }
.hl:nth-child(even) { padding-left: 1.2rem; }
.hl .k { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.hl .v { font-size: 0.92rem; color: var(--ink); }

/* ---------- Description ---------- */
.desc {
  max-width: 760px;
  margin: 4rem auto;
  padding: 0 5%;
}
.desc h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
.desc p { font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 1rem; }
.features {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 2rem;
}
.features li {
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
  padding-left: 1.4rem;
}
.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Reviews ---------- */
.reviews {
  max-width: 980px;
  margin: 5rem auto;
  padding: 0 5%;
}
.reviews h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1.6rem;
}
.rev-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.rev-score { text-align: center; }
.rev-score .num {
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}
.rev-score .big-stars { display: inline-flex; gap: 1px; margin: 0.5rem 0; color: var(--ink); }
.rev-score .big-stars svg { width: 18px; height: 18px; fill: currentColor; }
.rev-score .total { font-size: 0.84rem; color: var(--ink-soft); }
.rev-bars { display: flex; flex-direction: column; gap: 0.5rem; }
.bar-row {
  display: grid;
  grid-template-columns: 36px 1fr 40px;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.bar-track {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill { height: 100%; background: var(--ink); border-radius: 999px; }

.rev-list { display: flex; flex-direction: column; gap: 1.6rem; }
.review {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.review .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--beige);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
}
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.review-name { font-weight: 600; font-size: 0.92rem; }
.review-date { font-size: 0.78rem; color: var(--ink-soft); }
.review-stars { display: inline-flex; gap: 1px; color: var(--ink); margin-bottom: 0.4rem; }
.review-stars svg { width: 12px; height: 12px; fill: currentColor; }
.review-body { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }
.write-btn {
  margin: 2rem auto 0;
  display: block;
  padding: 0.9rem 2rem;
  border: 1.5px solid var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.25s, color 0.25s;
}
.write-btn:hover { background: var(--ink); color: #fff; }

/* ---------- Related ---------- */
.related {
  max-width: var(--maxw);
  margin: 4rem auto;
  padding: 0 5%;
}
.related h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1.6rem;
  text-align: center;
}
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.rel { display: block; background: var(--paper); }
.rel-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--beige);
}
.rel-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.rel:hover .rel-img img { transform: scale(1.05); }
.rel-info { padding: 0.9rem 0.2rem 0.4rem; }
.rel-cat { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.rel-name { font-family: var(--display); font-size: 1.05rem; font-weight: 400; margin: 0.25rem 0; }
.rel-price { font-size: 0.9rem; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 5%;
  margin-top: 4rem;
}
.trust-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.trust-item svg {
  width: 32px; height: 32px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.4;
  margin-bottom: 0.6rem;
}
.trust-item h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.trust-item p { color: var(--ink-soft); font-size: 0.86rem; }

/* ---------- Sticky ATC desktop ---------- */
.sticky-atc {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 0.8rem 5%;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(.2,.6,.2,1);
  z-index: 40;
}
.sticky-atc.is-shown { transform: none; }
.sticky-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 1rem;
  align-items: center;
}
.sticky-thumb {
  width: 56px; height: 56px;
  overflow: hidden;
  background: var(--beige);
}
.sticky-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sticky-title { font-family: var(--display); font-size: 1rem; font-weight: 400; }
.sticky-sub { color: var(--ink-soft); font-size: 0.78rem; }
.sticky-atc .btn-primary {
  padding: 0.85rem 1.4rem;
  font-size: 0.78rem;
}

/* ---------- Mobile bottom bar ---------- */
.mob-atc {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 0.8rem 5%;
  z-index: 40;
}
.mob-atc-inner {
  display: flex;
  gap: 0.6rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.mob-atc .btn-secondary {
  flex: 1; padding: 0.9rem; font-size: 0.78rem;
  border-width: 1px;
}
.mob-atc .btn-primary {
  flex: 2; padding: 0.9rem; font-size: 0.78rem;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 1rem;
}
.modal-overlay.is-open { display: flex; opacity: 1; }
.modal {
  background: var(--paper);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 2rem;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--beige);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--ink); color: #fff; }
.modal h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.modal p { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 1.4rem; }
.modal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.modal th, .modal td {
  text-align: center;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
}
.modal th {
  background: var(--beige);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.modal th:first-child, .modal td:first-child {
  text-align: left;
  padding-left: 0.6rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
}

/* ---------- Product responsive ---------- */
@media (max-width: 980px) {
  .product { grid-template-columns: 1fr; gap: 2rem; }
  .hl { grid-template-columns: 130px 1fr; }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .breadcrumb { font-size: 0.72rem; }
  .desc { padding: 0 6%; }
  .features { grid-template-columns: 1fr; }
  .rev-summary { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .delivery { grid-template-columns: 1fr; }
  .sticky-atc { display: none !important; }
  .mob-atc { display: block; }
  body { padding-bottom: 76px; }
  .review { grid-template-columns: 44px 1fr; }
  .hl { grid-template-columns: 110px 1fr; padding: 0.8rem 0; }
  .hl:nth-child(odd) { padding-right: 0.8rem; border-right: none; }
  .hl:nth-child(even) { padding-left: 0.8rem; }
  .hl-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
  .btn-primary, .btn-secondary { min-width: 0; }
  .thumb { flex: 0 0 72px; height: 92px; }
}
