/* =====================================================================
   PRODUCT DETAIL — product_detail.css
   ===================================================================== */

:root {
  --navy:  #17344c;
  --navy2: #0f2235;
  --cyan:  #43dde6;
  --red:   #f02443;
  --gold:  #f5a623;
  --ok:    #28a745;
  --err:   #dc3545;
  --border: #e8edf2;
  --bg2:   #f5f8fa;
}

.pd-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* ── BREADCRUMB ── */
.pd-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: #999; margin-bottom: 28px;
}
.pd-breadcrumb a { color: var(--navy); text-decoration: none; transition: color .2s; }
.pd-breadcrumb a:hover { color: var(--cyan); }
.pd-breadcrumb span { color: #ccc; }

/* ═══════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════ */
.pd-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
  align-items: start;
}

/* ── GALERIE ── */
.pd-gallery {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: sticky;
  top: 20px;
}

/* Colonne de miniatures */
.pd-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.pd-thumb {
  width: 72px; height: 72px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--bg2);
  overflow: hidden; cursor: pointer;
  transition: border-color .2s, transform .15s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pd-thumb:hover  { border-color: #aac; transform: scale(1.04); }
.pd-thumb.active { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(67,221,230,.2); }
.pd-thumb img    { width: 100%; height: 100%; object-fit: cover; }

/* Image principale */
.pd-main-img-wrap {
  position: relative;
  flex: 1;
  background: var(--bg2);
  border-radius: 16px;
  padding: 24px;
  display: flex; align-items: center; justify-content: center;
  min-height: 400px;
  overflow: hidden;
}
.pd-main-img-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.pd-main-img-wrap:hover img { transform: scale(1.05); }

.pd-no-img {
  height: 400px;
  display: flex; align-items: center; justify-content: center;
  color: #ddd; font-size: 5rem;
}

.pd-discount-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 5px 11px; border-radius: 6px; z-index: 2;
}

/* Flèches navigation galerie */
.pd-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.85); border: 1px solid var(--border);
  font-size: 22px; line-height: 1; color: var(--navy);
  cursor: pointer; transition: background .2s, color .2s;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.pd-arrow:hover { background: var(--navy); color: #fff; }
.pd-arrow-prev { left: 10px; }
.pd-arrow-next { right: 10px; }

/* ── INFO ── */
.pd-info { display: flex; flex-direction: column; gap: 16px; }

.pd-title { font-size: 23px; font-weight: 700; color: var(--navy); margin: 0; line-height: 1.3; }

/* Rating row */
.pd-rating-row { display: flex; align-items: center; gap: 8px; }
.pd-stars-sm i { color: var(--gold); font-size: 14px; }
.pd-rating-val { font-weight: 700; color: var(--navy); font-size: 13px; }
.pd-rating-link { font-size: 13px; color: #888; text-decoration: underline; cursor: pointer; background: none; border: none; }
.pd-rating-link:hover { color: var(--navy); }

/* Prix */
.pd-price-row { display: flex; align-items: baseline; gap: 14px; }
.pd-price      { font-size: 32px; font-weight: 800; color: var(--navy); }
.pd-price small{ font-size: 16px; font-weight: 600; margin-left: 2px; }
.pd-old-price  { font-size: 18px; color: #bbb; text-decoration: line-through; }

/* Stock */
.pd-stock { font-size: 14px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 6px; }
.pd-stock.ok { color: var(--ok); }
.pd-stock.no { color: var(--err); }

/* Meta */
.pd-meta-block { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: #555; }
.pd-meta-row b { color: var(--navy); margin-right: 4px; }
.pd-meta-block a { color: var(--navy); font-weight: 600; text-decoration: none; }
.pd-meta-block a:hover { color: var(--cyan); }

/* Cart form */
.pd-cart-form { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }

.pd-qty-ctrl {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; flex-shrink: 0;
}
.pd-qty-btn {
  background: var(--bg2); border: none; padding: 11px 16px;
  font-size: 20px; cursor: pointer; color: var(--navy);
  transition: background .2s; line-height: 1;
}
.pd-qty-btn:hover { background: #e0e7ed; }
.pd-qty-ctrl input {
  width: 46px; border: none;
  border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border);
  text-align: center; font-size: 16px; font-weight: 700; color: var(--navy);
  padding: 11px 0; outline: none; background: #fff;
}

.pd-btn-cart {
  flex: 1; padding: 12px 20px;
  background: #17344c;
  border: 2px solid #17344c; border-radius: 8px; border-radius: 8px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  cursor: pointer; transition: .25s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
  color: #fff;
}
.pd-btn-cart:hover { background: #43dde6; color: #fff; }
.pd-btn-cart.disabled { border-color: #ccc; color: #aaa; cursor: not-allowed; }

.pd-btn-buy {
  display: flex; align-items: center; justify-content: center;
  padding: 14px; background: var(--navy); color: #fff;
  text-decoration: none; border-radius: 8px; font-size: 15px; font-weight: 700;
  transition: .25s; text-align: center;
}
.pd-btn-buy:hover { background: var(--cyan); color: var(--navy); }

.pd-btn-wish {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: var(--bg2); color: var(--navy);
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .25s; width: fit-content;
}
.pd-btn-wish:hover, .pd-btn-wish.active { background: var(--red); color: #fff; border-color: var(--red); }
.pd-btn-wish i { transition: transform .2s; }
.pd-btn-wish.active i { transform: scale(1.2); }

/* Trust badges */
.pd-badges {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--border); margin-top: 4px;
}
.pd-badge-card {
  background: #dfebf7; border-radius: 14px; padding: 18px 10px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 10px; min-height: 118px;
  transition: all .3s ease; cursor: pointer;
}
.pd-badge-card:hover {
  transform: translateY(-6px); background: #17344c;
  box-shadow: 0 12px 28px rgba(14,37,55,.2);
}
.pd-badge-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }
.pd-badge-icon svg { width: 100%; height: 100%; transition: fill .3s ease; }
.pd-badge-label {
  font-size: 13px; font-weight: 700; color: #17344c; line-height: 1.15; margin: 0;
  font-family: "degular", Sans-serif;
  transition: color .3s ease;
}
.pd-badge-card:hover .pd-badge-label { color: #fff; }
/* couleurs d'icône (mêmes classes .cls-1/.cls-2 que la section avantages) */
.pd-badge-icon svg .cls-1 { fill: #17344c; }
.pd-badge-card.icon-red  .pd-badge-icon svg .cls-2 { fill: #f02443; }
.pd-badge-card.icon-blue .pd-badge-icon svg .cls-2 { fill: #17344c; }
.pd-badge-card.icon-cyan .pd-badge-icon svg .cls-2 { fill: #43dde6; }
.pd-badge-card:hover .pd-badge-icon svg .cls-1,
.pd-badge-card:hover .pd-badge-icon svg .cls-2 { fill: #fff; }
.pd-badge-card.icon-red:hover  .pd-badge-icon svg .cls-2 { fill: #f02443; }
.pd-badge-card.icon-cyan:hover .pd-badge-icon svg .cls-2 { fill: #43dde6; }


/* ═══════════════════════════════════════════
   TABS
═══════════════════════════════════════════ */
.pd-tabs-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 56px;
}

.pd-tabs-nav {
  display: flex;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.pd-tab-btn {
  flex: 1; padding: 16px 18px;
  background: transparent; border: none;
  border-bottom: 3px solid transparent;
  font-size: 14px; font-weight: 600; color: #888;
  cursor: pointer; transition: .2s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.pd-tab-btn:hover { color: var(--navy); }
.pd-tab-btn.active { color: var(--navy); border-bottom-color: var(--navy); background: #fff; }
.pd-tab-chip {
  background: var(--navy); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
}
.pd-tab-btn.active .pd-tab-chip { background: var(--cyan); color: var(--navy); }

.pd-tab-panel {
  display: none; padding: 30px 32px;
  animation: pdFadeIn .2s ease;
}
.pd-tab-panel.active { display: block; }
@keyframes pdFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* Description */
.pd-desc-body { font-size: 15px; color: #444; line-height: 1.9; }
.pd-desc-body p { margin: 0 0 12px; }
.pd-desc-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; display: block; }
.pd-desc-body h2 { font-size: 20px; }
.pd-desc-body h3 { font-size: 17px; }
.pd-desc-body h2, .pd-desc-body h3 { color: var(--navy); margin: 18px 0 8px; font-weight: 700; }
.pd-desc-body ul, .pd-desc-body ol { margin: 0 0 12px; padding-inline-start: 22px; }
.pd-desc-body a { color: var(--cyan); text-decoration: underline; }
.pd-empty { color: #bbb; font-style: italic; font-size: 14px; margin: 0; }

/* Specs table */
/* Informations complémentaires — design en sections (fiche technique) */
.pd-specs { max-width: 760px; }
.pd-spec-group { margin-bottom: 24px; }
.pd-spec-group:last-child { margin-bottom: 0; }
.pd-spec-group + .pd-spec-group { border-top: 1px solid #e8eef4; padding-top: 22px; }
.pd-spec-title {
  color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; margin: 0 0 10px;
}
.pd-spec-list { list-style: none; margin: 0; padding: 0; }
.pd-spec-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 14px; border-radius: 10px;
}
.pd-spec-row:nth-child(odd) { background: #eef5fc; }
.pd-spec-label { color: #5b6b7b; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; }
.pd-spec-row:nth-child(odd) .pd-spec-label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); margin-inline-end: 9px; flex-shrink: 0;
}
.pd-spec-value {
  color: var(--navy); font-size: 14px; font-weight: 700; text-align: right;
  font-family: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace !important;
}
.specs-old { color: #aaa; text-decoration: line-through; margin-left: 8px; font-size: 12px; font-weight: 400; }
.specs-ok  { color: var(--ok); font-weight: 700; }
.specs-no  { color: var(--err); font-weight: 700; }

/* Reviews overview */
.pd-rev-overview {
  display: flex; gap: 36px; align-items: flex-start;
  padding: 22px 24px; background: var(--bg2);
  border-radius: 10px; margin-bottom: 24px;
}
.pd-rev-score { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 110px; }
.pd-rev-big   { font-size: 54px; font-weight: 800; color: var(--navy); line-height: 1; }
.pd-rev-stars i, .pd-rev-stars-row i { color: var(--gold); font-size: 16px; }
.pd-rev-based { font-size: 11px; color: #999; text-align: center; }

.pd-rev-bars { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.pd-bar-row  { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.pd-bar-lbl  { width: 30px; color: var(--navy); font-weight: 600; }
.pd-bar-lbl i{ color: var(--gold); font-size: 10px; }
.pd-bar-track{ flex: 1; height: 7px; background: #e0e0e0; border-radius: 4px; overflow: hidden; }
.pd-bar-fill { height: 100%; background: var(--gold); border-radius: 4px; transition: width .7s ease; }
.pd-bar-num  { width: 18px; color: #999; font-size: 11px; text-align: right; }

/* Messages */
.pd-msg {
  padding: 13px 16px; border-radius: 8px;
  font-size: 14px; display: flex; align-items: flex-start; gap: 9px;
  margin-bottom: 18px;
}
.pd-msg i { margin-top: 2px; flex-shrink: 0; }
.pd-msg.success { background: #eaf7f0; color: #1a7a45; border: 1px solid #b2dfcf; }
.pd-msg.error   { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6cb; }
.pd-msg.info    { background: #eaf2ff; color: #1a4a80; border: 1px solid #bed0f7; }
.pd-msg a { color: inherit; font-weight: 700; }

/* Reviews list */
.pd-rev-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.pd-rev-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 22px; transition: box-shadow .2s;
}
.pd-rev-card:hover { box-shadow: 0 4px 16px rgba(23,52,76,.08); }

.pd-rev-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pd-rev-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.pd-rev-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pd-rev-meta strong { font-size: 14px; color: var(--navy); }
.pd-rev-meta time   { font-size: 11px; color: #bbb; }
.pd-rev-stars-row i { color: var(--gold); font-size: 13px; }
.pd-rev-title { font-size: 15px; color: var(--navy); margin: 0 0 6px; }
.pd-rev-body  { font-size: 14px; color: #555; line-height: 1.7; margin: 0; }

/* Write review */
.pd-rev-form-wrap { border-top: 2px solid #f0f0f0; padding-top: 26px; margin-top: 6px; }
.pd-rev-form-wrap h3 { font-size: 18px; color: var(--navy); margin: 0 0 18px; }
.pd-rev-form { display: flex; flex-direction: column; gap: 16px; max-width: 580px; }
.pd-rev-fgroup { display: flex; flex-direction: column; gap: 5px; }
.pd-rev-fgroup label { font-size: 13px; font-weight: 700; color: var(--navy); }
.req { color: var(--red); }
.opt { color: #bbb; font-weight: 400; font-size: 11px; }
.pd-rev-fgroup input,
.pd-rev-fgroup textarea {
  padding: 11px 13px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 14px; color: var(--navy);
  font-family: 'urbane', sans-serif; resize: vertical; transition: border-color .2s;
}
.pd-rev-fgroup input:focus,
.pd-rev-fgroup textarea:focus { outline: none; border-color: var(--cyan); }

/* Star picker */
.pd-star-pick { display: flex; gap: 4px; align-items: center; }
.sp-star { cursor: pointer; padding: 4px; transition: transform .15s; }
.sp-star:hover { transform: scale(1.25); }
.sp-star i    { font-size: 26px; color: #ddd; transition: color .15s; }
.sp-star.on i { color: var(--gold); }

.pd-btn-submit {
  padding: 13px 26px; background: var(--navy); color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: .25s;
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
}
.pd-btn-submit:hover { background: var(--cyan); color: var(--navy); }


/* ═══════════════════════════════════════════
   PRODUITS SIMILAIRES
═══════════════════════════════════════════ */
.pd-related { border-top: 1px solid var(--border); padding-top: 36px; }
.pd-related-hd { margin-bottom: 20px; }
.pd-related-hd h2 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.pd-related-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
/* Produits similaires en slider (style home) */
.pd-related-slider-wrap { position: relative; }
.pd-related-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; padding: 4px 2px 12px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.pd-related-track::-webkit-scrollbar { display: none; }
.pd-related-track > .product-card-list {
  flex: 0 0 calc((100% - 56px) / 5); max-width: calc((100% - 56px) / 5);
  scroll-snap-align: start;
}
.pd-slider-btn {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: #17344c; color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 6;
  box-shadow: 0 4px 14px rgba(14,37,55,.22); transition: background .2s, transform .2s;
}
.pd-slider-btn:hover { background: #0f2235; }
.pd-slider-btn.left  { left: -14px; }
.pd-slider-btn.right { right: -14px; }
@media (max-width: 992px) { .pd-related-track > .product-card-list { flex-basis: calc((100% - 42px)/4); max-width: calc((100% - 42px)/4); } }
@media (max-width: 768px) { .pd-related-track > .product-card-list { flex-basis: calc((100% - 28px)/3); max-width: calc((100% - 28px)/3); } }
@media (max-width: 560px) { .pd-related-track > .product-card-list { flex-basis: calc((100% - 14px)/2); max-width: calc((100% - 14px)/2); } .pd-slider-btn { display: none; } }
/* Cartes du slider "similaires" — style identique aux cartes produit (home/shop) */
.pd-related-track .product-card-list { background:#fff; border-radius:14px; box-shadow:0 2px 12px rgba(0,0,0,.07); position:relative; display:flex; flex-direction:column; overflow:hidden; transition:transform .2s, box-shadow .2s; }
.pd-related-track .product-card-list:hover { transform:translateY(-4px); box-shadow:0 8px 28px rgba(0,0,0,.12); }
.pd-related-track .badge { position:absolute; top:10px; left:10px; padding:4px 8px; border-radius:5px; color:#fff; font-weight:500; font-size:13px; z-index:2; }
.pd-related-track .badge.sale { background:#f02443; }
.pd-related-track .card-img-link { display:block; background:#f8f8f8; }
.pd-related-track .card-img-link img { width:100%; height:170px; object-fit:cover; display:block; }
.pd-related-track .card-no-img { width:100%; height:170px; display:flex; align-items:center; justify-content:center; background:#f8f8f8; color:#ddd; font-size:2.2rem; }
.pd-related-track .card-body { padding:12px 14px 4px; display:flex; flex-direction:column; gap:5px; flex:1; }
.pd-related-track .card-category { font-family:"urbane",sans-serif; font-size:10px; font-weight:300; background:#DFEBF7; padding:4px 8px; border-radius:6px; display:inline-block; align-self:flex-start; color:#17344c; margin-bottom:5px; }
.pd-related-track .card-name { font-family:"urbane",sans-serif; color:#17344c; margin:5px 0 8px; text-decoration:none; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; min-height:36px; line-height:1.4; font-size:15px; font-weight:700; }
.pd-related-track .card-name:hover { color:#f02443; }
.pd-related-track .price-row { display:flex; align-items:center; gap:8px; }
.pd-related-track .old-price { color:#bbb; text-decoration:line-through; font-size:16px; font-weight:700; }
.pd-related-track .new-price { font-family:"degular",sans-serif !important; color:#17344c; font-weight:700; font-size:18px; }
.pd-related-track .card-actions { display:flex; gap:8px; padding:10px 14px 14px; align-items:center; margin-top:auto; }
.pd-related-track .btn-add-cart { flex:1; padding:8px 12px; background:#17344c; color:#fff !important; border:2px solid #17344c; border-radius:8px; text-align:center; text-decoration:none !important; cursor:pointer; transition:.3s; display:inline-flex; align-items:center; justify-content:center; gap:6px; font-size:13px; }
.pd-related-track .btn-add-cart:hover { background:#43dde6; color:#17344c !important; }
.pd-related-track .btn-add-cart.btn-disabled { background:#f0f0f0; color:#bbb !important; cursor:not-allowed; border-color:#f0f0f0; }


/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .pd-related-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
  .pd-main { grid-template-columns: 1fr; gap: 24px; }
  .pd-gallery { flex-direction: column-reverse; position: static; }
  .pd-thumbs  { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: visible; }
  .pd-thumb   { width: 62px; height: 62px; flex-shrink: 0; }
  .pd-main-img-wrap { min-height: 300px; }
  .pd-badges  { grid-template-columns: repeat(2, 1fr); }
  .pd-related-grid { grid-template-columns: repeat(3, 1fr); }
  .pd-rev-overview { gap: 20px; }
}

@media (max-width: 767px) {
  .pd-page { padding: 16px 14px 40px; }
  .pd-title { font-size: 19px; }
  .pd-price { font-size: 26px; }
  .pd-tabs-nav { flex-wrap: wrap; }
  .pd-tab-btn { flex: none; width: 50%; font-size: 12px; padding: 12px 8px; }
  .pd-tab-panel { padding: 20px 16px; }
  .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-rev-overview { flex-direction: column; gap: 14px; }
  .pd-rev-form { max-width: 100%; }
  .pd-cart-form { flex-direction: column; }
  .pd-btn-cart { width: 100%; }
}

@media (max-width: 480px) {
  .pd-tab-btn { width: 100%; }
  .pd-badges  { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .pd-badge-icon  { width: 40px; height: 40px; }
  .pd-badge-label { font-size: 12px; }
  .pd-related-grid    { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pd-rev-card        { padding: 14px 14px; }
}

/* ═══════════════════════════════════════════
   POINTS BLOCK
═══════════════════════════════════════════ */
.pd-points-block {
  background: linear-gradient(135deg, #fffbea 0%, #fff8e1 100%);
  border: 1.5px solid #f5a623;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pd-points-price,
.pd-points-earn,
.pd-points-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}
.pd-points-price i { color: #f5a623; font-size: 16px; }
.pd-points-price strong { color: #d4860a; font-size: 16px; }
.pd-points-earn  i { color: #28a745; font-size: 14px; }
.pd-points-earn  strong { color: #28a745; }
.pd-points-balance i { color: #17344c; font-size: 14px; }
.pd-points-balance strong { color: #17344c; }

/* Buy with points button */
.pd-btn-points {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 22px;
  background: linear-gradient(135deg, #f5a623 0%, #e8930e 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: opacity .2s, transform .15s;
}
.pd-btn-points:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.pd-btn-points:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: .7;
  transform: none;
}
.pd-btn-points .pd-pts-missing {
  font-size: 11px;
  font-weight: 400;
  opacity: .85;
  margin-left: 4px;
}

/* ── Points extras ────────────────────────────── */
.pd-pts-ok {
  font-size: 12px;
  font-weight: 500;
  color: #d4f0d4;
  margin-left: 4px;
}
.pd-btn-points-disabled {
  background: linear-gradient(135deg, #ccc 0%, #bbb 100%) !important;
  cursor: not-allowed !important;
}
/* Make points block always visible even when pointPrice = 0 */
.pd-points-block {
  display: flex !important;
}

/* ── Points formula line ────────────────────── */
.pd-points-formula {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #78716c;
  background: rgba(245,166,35,.06);
  border-radius: 6px;
  padding: 5px 8px;
}
.pd-points-formula i { color: #f5a623; margin-top: 1px; flex-shrink: 0; }
.pd-points-formula strong { color: #92400e; }
