/* ============================================================
   BOYA SHOP — CSS Page Produit
============================================================ */

/* BREADCRUMB */
.breadcrumb {
  padding: 14px 24px;
  font-size: 0.8rem;
  color: var(--text-sub);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ─── PRODUCT PAGE LAYOUT ─── */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 32px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .product-page { grid-template-columns: 1fr; padding: 20px 16px; }
}

/* ─── GALERIE ─── */
.product-gallery {
  display: flex;
  gap: 14px;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumb {
  width: 72px;
  height: 80px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  padding: 0;
}
.thumb.active, .thumb:hover { border-color: var(--gold); }
.thumb-placeholder { font-size: 2rem; }

.gallery-main {
  flex: 1;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.gallery-main-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; min-height: 400px; }
.gallery-placeholder-icon { font-size: 9rem; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-badge-new {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.gallery-fav {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.gallery-fav.active { background: #e00; border-color: #e00; }
.gallery-fav:hover { background: rgba(255,0,0,0.3); }

/* ─── PRODUCT DETAILS ─── */
.product-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pd-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.pd-price {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pd-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; }
.rating-count { color: var(--text-sub); font-size: 0.8rem; }

.pd-desc {
  color: var(--text-sub);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.pd-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.pd-section { margin-bottom: 16px; }

.pd-label {
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.pd-selected { color: var(--text); font-weight: 600; }

.pd-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pd-color {
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}
.pd-color.active, .pd-color:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px var(--gold);
}

.pd-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.pd-size {
  min-width: 44px;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: 0.2s;
}
.pd-size.active, .pd-size:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.pd-guide {
  font-size: 0.78rem;
  color: var(--gold);
  text-decoration: none;
}
.pd-guide:hover { text-decoration: underline; }

/* Quantité */
.pd-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 40px; height: 40px;
  background: var(--card-bg);
  border: none;
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s;
}
.qty-btn:hover { background: var(--border); }
.qty-val {
  min-width: 48px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  padding: 0 8px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 40px;
}

/* CTA */
.pd-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 15px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { background: #20b857; transform: translateY(-2px); }

.btn-cart-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 13px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s, color 0.2s;
}
.btn-cart-add:hover { background: var(--gold); color: #000; }

/* Garanties mini */
.pd-guarantees {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.pd-guarantee {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-sub);
}
.pd-guarantee span { color: var(--text); }

/* ─── TABS ─── */
.product-tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 40px;
}
@media (max-width: 900px) { .product-tabs { padding: 0 16px 32px; } }

.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  gap: 4px;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 0.88rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: 0.2s;
}
.tab-btn.active, .tab-btn:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 14px;
}
.tab-content p {
  color: var(--text-sub);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 10px;
}
.tab-content ul {
  list-style: none;
  padding: 0;
  color: var(--text-sub);
  font-size: 0.88rem;
  line-height: 2;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.size-table th, .size-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.size-table th { color: var(--gold); font-weight: 600; }
.size-table td { color: var(--text-sub); }
.size-table tr:hover td { background: var(--card-bg); }

/* ─── PRODUITS SIMILAIRES ─── */
.similar-products {
  padding-bottom: 20px;
}
.similar-products .products-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 700px) {
  .similar-products .products-grid { grid-template-columns: 1fr 1fr; }
}
