/* ============================================================
   PRODUCT.CSS — Página individual de producto
   YEYSON INOX PERU S.A.C.
   ============================================================ */

/* ── BREADCRUMB BAR ───────────────────────────────────────────── */
.prod-breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 90;
  box-shadow: var(--shadow-sm);
}
.prod-breadcrumb-bar .container {
  display: flex; align-items: center; justify-content: space-between;
}
.breadcrumb-trail-sm {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-lt);
}
.breadcrumb-trail-sm a { color: var(--text-mid); transition: color var(--t); }
.breadcrumb-trail-sm a:hover { color: var(--orange); }
.breadcrumb-trail-sm .sep { color: var(--border); }
.breadcrumb-trail-sm .cur { color: var(--orange); font-weight: 600; }
.prod-nav-arrows { display: flex; gap: 8px; }
.prod-nav-arrows button {
  width: 34px; height: 34px; border: 1.5px solid var(--border);
  background: #fff; border-radius: var(--r); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-mid); transition: all var(--t);
}
.prod-nav-arrows button:hover { border-color: var(--navy); color: var(--navy); background: rgba(26,47,94,.05); }

/* ── PRODUCT PAGE LAYOUT ──────────────────────────────────────── */
.product-page { padding: 48px 0 72px; }
.product-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start; margin-bottom: 64px;
}

/* ── GALLERY ──────────────────────────────────────────────────── */
.prod-gallery { position: sticky; top: 72px; }
.prod-main-img {
  width: 100%; height: 500px;
  background: #f8f9fb;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: box-shadow var(--t);
  box-shadow: var(--shadow);
}
.prod-main-img:hover { box-shadow: var(--shadow-lg); }

.prod-img-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.prod-img-placeholder i {
  font-size: 80px; color: var(--silver-lt);
}

.prod-zoom-hint {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(0,0,0,.45); color: #fff;
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; opacity: 0; transition: opacity var(--t);
}
.prod-main-img:hover .prod-zoom-hint { opacity: 1; }

.prod-badges-img {
  position: absolute; top: 14px; left: 14px;
  display: flex; flex-direction: column; gap: 5px;
}

.prod-thumb-row {
  display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.prod-thumb {
  width: 80px; height: 80px; border-radius: 10px;
  border: 2px solid var(--border); cursor: pointer;
  transition: all var(--t); overflow: hidden;
  background: #f8f9fb;
  background-size: cover;
}
.prod-thumb.active { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(212,105,30,.2); }
.prod-thumb:hover  { border-color: var(--navy); }

/* Lightbox */
.prod-lightbox {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,.92); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 24px;
}
.prod-lightbox.open { display: flex; }
.lb-close {
  position: fixed; top: 80px; right: 24px; z-index: 99999;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); border: 3px solid #fff; color: #fff;
  font-size: 20px; font-weight: 900; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
  pointer-events: all;
  box-shadow: 0 4px 20px rgba(0,0,0,.8);
}
.lb-close:hover { background: var(--orange-dark); }
.lb-close:active { background: var(--orange-dark); }
.lb-img {
  display: block;
  max-width: 90vw; max-height: 85vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
}

/* ── PRODUCT INFO ─────────────────────────────────────────────── */
.prod-info { padding-top: 8px; }

.prod-info-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.prod-cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(26,47,94,.08); color: var(--navy);
  font-size: 11px; font-weight: 700; padding: 5px 14px;
  border-radius: 50px; text-transform: uppercase; letter-spacing: .6px;
  border: 1px solid rgba(26,47,94,.12);
}
.prod-sku-line { font-size: 12px; color: var(--text-lt); font-weight: 600; }

.prod-title {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 44px; font-weight: 900; color: var(--navy-dark);
  line-height: 1.0; margin-bottom: 16px; letter-spacing: -0.5px;
}

.prod-badges-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.prod-badges-row .badge { font-size: 11px; padding: 4px 12px; border-radius: 50px; }

/* Price */
.prod-price-block { margin-bottom: 22px; }
.prod-price {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 42px; font-weight: 900; color: var(--navy);
  line-height: 1; margin-bottom: 4px;
}
.prod-price .old-price {
  font-size: 22px; color: var(--text-lt); text-decoration: line-through;
  font-weight: 400; display: block; line-height: 1; margin-bottom: 4px;
}
.prod-price small { font-size: 16px; color: var(--text-lt); font-weight: 400; }
.prod-price.price-consult {
  font-size: 22px !important; color: var(--text-lt) !important;
  font-style: italic;
}
.prod-price-note { font-size: 12px; color: var(--text-lt); }

/* Description */
.prod-desc {
  font-size: 15px; color: var(--text-mid); line-height: 1.8;
  margin-bottom: 24px; border-left: 3px solid var(--orange);
  padding-left: 16px;
}

/* Quick specs — texto puro, sin cuadros */
.prod-quick-specs { display: none; }
.prod-specs-text {
  margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.prod-specs-text p {
  margin: 0; font-size: 14px; color: var(--text-mid); line-height: 1.6;
  display: flex; align-items: baseline; gap: 8px;
}
.prod-specs-text p::before {
  content: '—'; color: var(--orange); flex-shrink: 0; font-size: 12px;
}
.prod-specs-text strong { color: var(--navy-dark); font-weight: 700; margin-right: 2px; }
/* legacy selectors kept for compat */
.qspec { display: none; }
.qspec-icon, .qspec-body, .qsl, .qsv { display: none; }

/* CTA buttons */
.prod-cta { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.btn-wa-lg {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--whatsapp); color: #fff; border-radius: 50px;
  padding: 15px 28px; font-size: 15px; font-weight: 700;
  transition: all var(--t); box-shadow: 0 6px 20px rgba(37,211,102,.35);
  flex: 1; justify-content: center; min-width: 200px;
}
.btn-wa-lg:hover { background: var(--whatsapp-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,211,102,.45); }
.btn-outline-lg {
  display: inline-flex; align-items: center; gap: 10px;
  border: 2px solid var(--navy); color: var(--navy); border-radius: 50px;
  padding: 15px 28px; font-size: 15px; font-weight: 700;
  transition: all var(--t); flex: 1; justify-content: center; min-width: 160px;
}
.btn-outline-lg:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* Guarantees */
.prod-guarantees {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 20px; background: var(--bg);
  border-radius: var(--rl); border: 1px solid var(--border);
}
.pg-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; color: var(--text-mid);
}
.pg-item i { color: var(--orange); font-size: 14px; width: 16px; }

/* ── TABS ─────────────────────────────────────────────────────── */
.prod-tabs-section { margin-top: 0; }
.prod-tabs-nav {
  display: flex; gap: 0; border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
}
.ptab {
  padding: 14px 28px; font-size: 13px; font-weight: 700;
  color: var(--text-lt); background: transparent; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: all var(--t); display: flex; align-items: center; gap: 8px;
}
.ptab:hover  { color: var(--navy); }
.ptab.active { color: var(--navy); border-bottom-color: var(--orange); }

.tab-panel { display: none; animation: fadeIn .3s ease; }
.tab-panel.active { display: block; }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) { background: var(--bg); }
.specs-table td { padding: 14px 18px; font-size: 14px; border-bottom: 1px solid var(--border); }
.specs-table .spec-label { font-weight: 700; color: var(--navy-dark); width: 200px; }
.specs-table .spec-val   { color: var(--text-mid); }

/* Full desc */
.prod-full-desc p { font-size: 15px; color: var(--text-mid); line-height: 1.85; margin-bottom: 16px; }
.desc-bullets { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.desc-bullets li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-mid); font-weight: 500;
}
.desc-bullets li i { color: var(--success); }

/* Ship grid */
.ship-info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ship-item {
  background: var(--bg); border-radius: var(--rl); padding: 24px;
  border: 1px solid var(--border); transition: all var(--t);
}
.ship-item:hover { border-color: var(--orange); transform: translateY(-2px); }
.ship-item i { font-size: 28px; color: var(--orange); margin-bottom: 12px; display: block; }
.ship-item h4 { font-size: 15px; font-weight: 700; color: var(--navy-dark); margin-bottom: 8px; }
.ship-item p  { font-size: 13px; color: var(--text-lt); line-height: 1.7; }

/* ── RELATED PRODUCTS ─────────────────────────────────────────── */
.related-section { padding: 72px 0; background: var(--bg); }
.related-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 40px;
}
.related-card {
  background: var(--white); border-radius: var(--rl);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid transparent; transition: all var(--t);
  display: block;
}
.related-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}
.related-img {
  height: 200px; background: #f8f9fb;
  display: flex; align-items: center; justify-content: center;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  position: relative; overflow: hidden; transition: transform var(--t);
}
.related-card:hover .related-img { transform: scale(1.02); }
.related-img i { font-size: 48px; color: var(--silver-lt); }
.related-info { padding: 18px; }
.related-cat  { font-size: 10px; color: var(--text-lt); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.related-name { font-size: 14px; font-weight: 700; color: var(--navy-dark); margin-bottom: 10px; line-height: 1.3; }
.rp-price     { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.rp-price.consult { font-size: 13px !important; color: var(--text-lt) !important; font-style: italic; }
.rp-price small { font-size: 11px; color: var(--text-lt); font-weight: 400; }
.related-cta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--orange);
  transition: gap var(--t);
}
.related-card:hover .related-cta { gap: 10px; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .product-layout { grid-template-columns: 1fr; gap: 36px; }
  .prod-gallery   { position: static; }
  .prod-main-img  { height: 380px; }
  .related-grid   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .prod-title     { font-size: 34px; }
  .prod-price     { font-size: 32px; }
  .prod-cta       { flex-direction: column; }
  .prod-quick-specs { grid-template-columns: 1fr; }
  .prod-specs-text  { grid-template-columns: 1fr; }
  .prod-guarantees  { grid-template-columns: 1fr; }
  .ship-info-grid   { grid-template-columns: 1fr; }
  .prod-main-img    { height: 300px; }
  .prod-tabs-nav    { overflow-x: auto; }
  .ptab             { padding: 12px 18px; white-space: nowrap; }
}
@media (max-width: 540px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}
