/* ═══════════════════════════════════════════════
   PRODUCT.CSS — Product Detail Page
   Cadenita De Carmen
═══════════════════════════════════════════════ */

/* ── PAGE WRAPPER ── */
.product-page { padding-top: 0; }

/* ── GALLERY ── */
.gallery-main {
  position: relative;
  background: var(--black-3);
  border: 1px solid rgba(201,168,76,.1);
  overflow: hidden;
  aspect-ratio: 1;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.gallery-main:hover img { transform: scale(1.04); }
.gallery-zoom {
  position: absolute; bottom: 1rem; right: 1rem;
  width: 38px; height: 38px;
  background: rgba(8,8,8,.8);
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--ease);
}
.gallery-zoom:hover { background: var(--gold); color: var(--black); }

.gallery-thumbs {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: .6rem; margin-top: .6rem;
}
.thumb {
  aspect-ratio: 1; overflow: hidden;
  border: 1px solid rgba(201,168,76,.1);
  cursor: pointer; transition: var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); transition: var(--ease); }
.thumb:hover, .thumb.active { border-color: var(--gold); }
.thumb.active img, .thumb:hover img { filter: brightness(1); }

/* ── PRODUCT INFO PANEL ── */
.product-info-panel { padding-left: 1.5rem; }
@media(max-width:991px){ .product-info-panel { padding-left: 0; margin-top: 2rem; } }

.product-cat-badge {
  display: inline-block;
  font-size: .58rem; letter-spacing: .35em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(201,168,76,.3);
  padding: .25rem .8rem; margin-bottom: 1rem;
}
.product-title {
  font-family: var(--font-d);
  font-size: clamp(1.8rem,3vw,2.8rem);
  font-weight: 300; line-height: 1.1;
  color: var(--white); margin-bottom: .8rem;
}
.product-rating {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1.2rem;
}
.product-stars { color: var(--gold); font-size: .85rem; }
.product-review-count {
  font-size: .65rem; color: var(--muted);
  letter-spacing: .1em; text-decoration: none;
}
.product-review-count:hover { color: var(--gold); }

.price-wrap { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.5rem; }
.price-main { font-family: var(--font-d); font-size: 2rem; color: var(--gold); font-weight: 500; }
.price-old { font-size: .9rem; color: var(--muted); text-decoration: line-through; }
.price-save { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; background: rgba(201,168,76,.15); color: var(--gold); padding: .2rem .6rem; }

.product-short-desc { font-size: .78rem; line-height: 1.9; color: var(--muted); letter-spacing: .05em; }

/* ── SELECTOR LABEL ── */
.selector-row { margin-bottom: 1.4rem; }
.selector-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .7rem;
}
.selector-label {
  font-size: .62rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--white);
}
.selector-guide {
  font-size: .6rem; color: var(--gold);
  text-decoration: none; letter-spacing: .1em;
  transition: var(--ease);
}
.selector-guide:hover { color: var(--gold-bright); }

/* ── SIZE OPTIONS ── */
.size-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-opt {
  min-width: 42px; height: 42px; padding: 0 .6rem;
  background: transparent;
  border: 1px solid rgba(201,168,76,.2);
  color: rgba(245,240,232,.7);
  font-family: var(--font-b); font-size: .7rem;
  cursor: pointer; transition: var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.size-opt:hover { border-color: var(--gold); color: var(--gold); }
.size-opt.active { background: var(--gold); border-color: var(--gold); color: var(--black); font-weight: 600; }
.size-opt.sold-out { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* ── QUANTITY ── */
.qty-wrap {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(201,168,76,.2);
}
.qty-btn {
  width: 42px; height: 42px;
  background: transparent; border: none;
  color: var(--gold); font-size: 1.2rem;
  cursor: pointer; transition: var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: rgba(201,168,76,.1); }
.qty-val {
  width: 50px; text-align: center;
  font-family: var(--font-d); font-size: 1.2rem;
  color: var(--white);
  border-left: 1px solid rgba(201,168,76,.2);
  border-right: 1px solid rgba(201,168,76,.2);
  line-height: 42px;
}

/* ── ADD TO CART ── */
.action-row { display: flex; gap: .8rem; margin-bottom: 1.4rem; }
.btn-add-cart {
  flex: 1; padding: 1rem;
  background: var(--gold); border: none;
  color: var(--black);
  font-family: var(--font-b); font-size: .65rem;
  letter-spacing: .3em; text-transform: uppercase; font-weight: 600;
  cursor: pointer; transition: var(--ease);
  display: flex; align-items: center; justify-content: center; gap: .6rem;
}
.btn-add-cart:hover { background: var(--gold-bright); }
.btn-add-cart.added { background: var(--black-3); color: var(--gold); border: 1px solid var(--gold); }

.btn-wishlist {
  width: 52px; height: 52px;
  background: transparent;
  border: 1px solid rgba(201,168,76,.25);
  color: var(--gold); font-size: 1.1rem;
  cursor: pointer; transition: var(--ease);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.btn-wishlist:hover, .btn-wishlist.active { background: rgba(201,168,76,.1); border-color: var(--gold); }

/* ── TRUST BADGES ── */
.trust-badges {
  display: flex; flex-wrap: wrap; gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(201,168,76,.1);
  border-bottom: 1px solid rgba(201,168,76,.1);
  margin-bottom: 1rem;
}
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .62rem; letter-spacing: .1em; color: var(--muted);
}
.trust-item i { color: var(--gold); font-size: 1rem; }

/* ── PRODUCT TABS ── */
.product-tabs-section { background: var(--black-2); padding: 4rem 0; }
.tabs-nav {
  display: flex;
  border-bottom: 1px solid rgba(201,168,76,.15);
  margin-bottom: 2.5rem; gap: 0;
  overflow-x: auto;
}
.tab-btn {
  background: transparent; border: none;
  color: var(--muted);
  font-family: var(--font-b); font-size: .62rem;
  letter-spacing: .25em; text-transform: uppercase;
  padding: 1rem 2rem;
  cursor: pointer; transition: var(--ease);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--gold); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane p {
  font-size: .8rem; line-height: 1.9;
  color: var(--muted); letter-spacing: .05em;
  margin-bottom: 1rem; max-width: 700px;
}
.tab-pane ul {
  padding-left: 1.2rem; margin-bottom: 1rem;
}
.tab-pane ul li {
  font-size: .78rem; line-height: 1.9;
  color: var(--muted); letter-spacing: .05em; margin-bottom: .4rem;
}
.tab-pane ul li::marker { color: var(--gold); }

/* ── REVIEWS ── */
.reviews-section { background: var(--black); padding: 5rem 0; }
.reviews-summary {
  display: flex; align-items: center; gap: 3rem;
  padding: 2rem; background: var(--black-3);
  border: 1px solid rgba(201,168,76,.1);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.rating-big {
  font-family: var(--font-d); font-size: 4rem;
  color: var(--gold); font-weight: 300; line-height: 1;
}
.rating-stars-big { color: var(--gold); font-size: 1rem; margin-bottom: .3rem; }
.rating-count { font-size: .62rem; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; }

.review-card {
  background: var(--black-3);
  border: 1px solid rgba(201,168,76,.08);
  padding: 1.8rem;
  transition: var(--ease); margin-bottom: 1rem;
}
.review-card:hover { border-color: rgba(201,168,76,.25); }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; flex-wrap: wrap; gap: .5rem; }
.review-author { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.review-location { font-size: .6rem; color: var(--muted); }
.review-date { font-size: .58rem; color: var(--muted); letter-spacing: .08em; }
.review-stars { color: var(--gold); font-size: .75rem; margin-bottom: .6rem; }
.review-text { font-family: var(--font-d); font-size: 1rem; font-style: italic; color: var(--white); line-height: 1.7; font-weight: 300; }

/* ── RELATED PRODUCTS ── */
.related-section { background: var(--black-2); padding: 5rem 0; }

/* ── LIGHTBOX ── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--ease);
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--ease);
}
.lightbox-close:hover { background: var(--gold); color: var(--black); }

/* ── SKELETON LOADER ── */
.skeleton {
  background: linear-gradient(90deg, var(--black-3) 25%, var(--black-4) 50%, var(--black-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 2px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

@media(max-width:768px){
  .trust-badges { gap: .7rem; }
  .tabs-nav .tab-btn { padding: .8rem 1.2rem; }
  .reviews-summary { gap: 1.5rem; }
}
