/* ---------- Breadcrumb (self-contained; product page doesn't load shop.css) ---------- */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--blue); font-weight: 500; }
.breadcrumb .sep { margin: 0 6px; }

/* ---------- Category gradient tints (mirrors shop.css's cat-* accent system) ---------- */
.cat-freshwater { --accent: var(--blue); }
.cat-seafish     { --accent: var(--lightblue); }
.cat-shrimp      { --accent: var(--green); }
.cat-dryfish     { --accent: var(--orange); }
.cat-meat        { --accent: var(--red); }
.cat-sweets      { --accent: var(--purple); }
.cat-organic     { --accent: #1c7a42; }

/* ---------- Layout ---------- */
.product-page { padding: 20px 0 60px; }
.product-top {
  display: grid;
  grid-template-columns: 420px 1fr 320px;
  gap: 28px;
  align-items: start;
}

/* ---------- Gallery ---------- */
.gallery-main {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, white) 0%, white 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
}
.gallery-emoji { font-size: 100px; line-height: 1; }
.hero-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gold-dark);
  color: var(--gold-text);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: border-color .15s ease;
}
.thumb:hover { border-color: var(--lightblue); }
.thumb.active { border-color: var(--blue); }

/* ---------- Info column ---------- */
.pd-badge-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 20px;
  color: white;
  margin-bottom: 8px;
}
.pd-tag-bestseller { background: #e07a1f; }
.pd-tag-magicpick { background: var(--gold); color: var(--gold-text); }

.product-info-col h1 {
  font-size: 25px;
  color: var(--navy-text);
  margin: 0 0 8px;
}
.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--blue);
  font-weight: 500;
  margin: 0 0 22px;
}

.option-block { margin-bottom: 22px; }
.option-block h3 {
  font-size: 14.5px;
  color: var(--navy-text);
  margin: 0 0 4px;
}
.option-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.tier-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tier-opt {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: white;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: border-color .15s ease, background .15s ease;
}
.tier-opt:hover { border-color: var(--lightblue); }
.tier-opt.active { border-color: var(--blue); background: var(--bg-tint); }
.tier-label { font-size: 13px; font-weight: 600; color: var(--navy-text); }
.tier-price { font-size: 12.5px; color: var(--text-muted); }
.tier-opt.active .tier-price { color: var(--blue); font-weight: 600; }

.processing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.processing-opt {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: white;
  padding: 14px 16px;
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.processing-opt:hover { border-color: var(--lightblue); }
.processing-opt.active { border-color: var(--blue); background: var(--bg-tint); }
.proc-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.processing-opt.active .proc-check { border-color: var(--blue); background: var(--blue); color: white; }
.proc-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-text);
  margin: 0 0 10px;
  padding-right: 24px;
}
.proc-weight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.proc-weight-row strong { color: var(--navy-text); font-size: 12.5px; }
.info-tip {
  margin-left: 4px;
  color: var(--lightblue);
  cursor: help;
}

.weight-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-tint);
  border-radius: 12px;
  padding: 14px 16px;
}
.weight-note-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.weight-note strong { display: block; font-size: 13px; color: var(--navy-text); margin-bottom: 3px; }
.weight-note p { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.55; }

/* ---------- Buy box ---------- */
.buy-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--card-shadow);
}
.buy-price { font-size: 30px; font-weight: 800; color: var(--blue); }
.buy-price-sub { font-size: 12.5px; color: var(--text-muted); margin: -8px 0 4px; }

.qty-row { display: flex; }
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.qty-btn {
  width: 36px;
  height: 38px;
  background: var(--bg-tint);
  color: var(--navy-text);
  font-size: 16px;
  font-weight: 600;
}
.qty-btn:hover { background: var(--blue); color: white; }
#qtyValue { width: 40px; text-align: center; font-weight: 600; font-size: 14px; color: var(--navy-text); }

.btn-addcart-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  font-size: 14px;
}
.btn-buynow {
  width: 100%;
  padding: 13px;
  border: 1.5px solid var(--blue);
  background: white;
  color: var(--blue);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
.btn-buynow:hover { background: var(--blue); color: white; }

.buy-trust {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.buy-trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--navy-text);
}
.bt-ico { font-size: 15px; }

/* ---------- Tabs ---------- */
.product-tabs-section { margin-top: 44px; }
.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  padding: 13px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.tab-btn:hover { color: var(--blue); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }

.tab-panels { padding-top: 26px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h2 { font-size: 18px; color: var(--navy-text); margin: 0 0 12px; }

/* About panel */
.tab-panel p { font-size: 13.5px; line-height: 1.75; color: #4a5178; margin: 0 0 18px; max-width: 640px; }
.fact-list { max-width: 480px; }
.fact-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.fact-list li:last-child { border-bottom: none; }
.fact-label { color: var(--text-muted); }
.fact-value { color: var(--navy-text); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.fact-stars { color: var(--gold); font-size: 12px; }

/* Nutrition panel */
.nutrition-list { max-width: 380px; }
.nutrition-list li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--navy-text);
}
.nutrition-list li:last-child { border-bottom: none; }
.nutrition-list li span { color: var(--text-muted); }
.nutrition-note { font-size: 11.5px; color: var(--text-muted); font-style: italic; margin-top: 10px; }

/* Recipe panel */
.recipe-card {
  display: flex;
  gap: 20px;
  max-width: 560px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.recipe-media {
  width: 200px;
  flex-shrink: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, white) 0%, white 75%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.recipe-body { padding: 16px 18px 16px 0; }
.recipe-body h3 { font-size: 15px; color: var(--navy-text); margin: 0 0 6px; }
.recipe-link { color: var(--blue); font-weight: 700; font-size: 13px; }

/* FAQ panel */
.pd-faq-list { max-width: 640px; display: flex; flex-direction: column; gap: 10px; }
.pd-faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 18px;
}
.pd-faq-item[open] { border-color: var(--blue); }
.pd-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-text);
}
.pd-faq-item summary::-webkit-details-marker { display: none; }
.pd-faq-item .faq-chevron { color: var(--blue); transition: transform .2s ease; flex-shrink: 0; }
.pd-faq-item[open] .faq-chevron { transform: rotate(180deg); }
.pd-faq-item p { margin: 0 0 16px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
  .product-top { grid-template-columns: 380px 1fr; }
  .buy-box { grid-column: 1 / -1; position: static; max-width: 480px; }
}

@media (max-width: 780px) {
  .product-top { grid-template-columns: 1fr; }
  .processing-grid { grid-template-columns: 1fr; }
  .recipe-card { flex-direction: column; }
  .recipe-media { width: 100%; aspect-ratio: 16/9; }
}
