/* ═══════════════════════════════════════════════
   TEXTILES MARKET DZ — Product Page v3.2
   ═══════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.breadcrumb { padding: 10px 60px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--cream); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.bc-sep { opacity: .4; }
@media (max-width: 768px) { .breadcrumb { padding: 8px 16px; } }

/* ── Product page wrap ── */
.product-page-wrap { max-width: 1100px; margin: 0 auto; padding: 20px 40px 80px; }
.product-page-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 52px;
}
@media (max-width: 900px) { .product-page-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .product-page-wrap { padding: 12px 16px 100px; } }

/* ── Gallery ── */
.gallery-col { order: 2; }
.gallery-main-wrap { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: #EDEAE5; border: 0.5px solid var(--border); margin-bottom: 10px; }
.gallery-main-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-badge { position: absolute; top: 14px; right: 14px; background: var(--navy); color: var(--gold); font-size: 11px; font-weight: 500; padding: 4px 11px; border-radius: var(--r-md); }
.gallery-badge.best { background: var(--gold); color: #fff; }
.gallery-badge.hot { background: #DC2626; color: #fff; }
.gallery-badge.new { background: var(--navy); color: var(--gold); }
.gallery-wish { position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; background: var(--white); border: 0.5px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: all .15s; }
.gallery-wish:hover { border-color: var(--gold); color: var(--gold); }
.gallery-stock { position: absolute; bottom: 14px; right: 14px; background: rgba(0,0,0,.62); color: rgba(255,255,255,.9); font-size: 11px; padding: 3px 11px; border-radius: 100px; display: flex; align-items: center; gap: 5px; }
.stock-dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; flex-shrink: 0; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gthumb { width: 68px; height: 68px; border-radius: var(--r-md); overflow: hidden; border: 0.5px solid var(--border); cursor: pointer; object-fit: cover; transition: border-color .15s; display: block; flex-shrink: 0; }
.gthumb.active { border-color: var(--gold); border-width: 1.5px; }
@media (max-width: 900px) {
  .gallery-col { order: 2; }
  .order-col { order: 1; }
}

/* ── Order card ── */
.order-col { order: 1; }
.order-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  position: sticky;
  top: 76px;
}
.oc-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 20px 16px;
}
.oc-brand { font-size: 11px; font-weight: 600; color: var(--gold); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 5px; }
.oc-name { font-family: var(--serif); font-size: 18px; font-weight: 700; color: #111; line-height: 1.25; margin-bottom: 12px; }
.oc-price-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.oc-price { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--navy); }
.oc-price-info { text-align: left; }
.oc-old-price { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.oc-save { display: inline-block; background: rgba(201,168,76,.14); color: #9A7A1A; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 100px; margin-top: 3px; }
.oc-rating { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.oc-stars { color: var(--gold); font-size: 13px; }
.oc-rating-txt { font-size: 12px; color: var(--muted); }
.oc-body { padding: 18px 20px; }

/* ── Form fields ── */
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.f-group { margin-bottom: 12px; }
.f-label { font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 5px; display: flex; align-items: center; justify-content: space-between; }
.f-input {
  width: 100%; background: #fff;
  border: 1.5px solid #D8D2CA;
  border-radius: var(--r-md);
  padding: 10px 13px;
  font-family: var(--sans); font-size: 14px; color: #111;
  transition: border-color .15s;
  -webkit-appearance: none; appearance: none;
}
.f-input:focus { outline: none; border-color: var(--navy); background: #fff; }
.f-select {
  width: 100%; background: #fff;
  border: 1.5px solid #D8D2CA;
  border-radius: var(--r-md);
  padding: 10px 13px;
  font-family: var(--sans); font-size: 14px; color: #111;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%230D1B2A'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  transition: border-color .15s;
  cursor: pointer;
}
.f-select:focus { outline: none; border-color: var(--navy); }
.f-textarea {
  width: 100%; background: #fff;
  border: 1.5px solid #D8D2CA;
  border-radius: var(--r-md);
  padding: 10px 13px;
  font-family: var(--sans); font-size: 14px; color: #111;
  resize: vertical; min-height: 72px;
  transition: border-color .15s;
}
.f-textarea:focus { outline: none; border-color: var(--navy); }

/* ── Sizes inside form ── */
.f-sizes { display: flex; gap: 7px; flex-wrap: wrap; }
.f-sz {
  min-width: 42px; height: 38px; padding: 0 10px;
  border: 1px solid #E0DBD4; border-radius: var(--r-md);
  background: var(--white); font-family: var(--sans);
  font-size: 13px; color: var(--text); cursor: pointer; transition: all .15s;
}
.f-sz:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(13,27,42,.08); }
.f-sz.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; box-shadow: 0 2px 10px rgba(13,27,42,.2); }
.f-sz.out { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/* ── Delivery options ── */
.f-delivery-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.f-dopt {
  border: 1px solid #E0DBD4; border-radius: var(--r-md);
  padding: 10px; cursor: pointer; text-align: center;
  background: var(--cream); transition: all .15s;
}
.f-dopt.active { border-color: var(--gold); background: linear-gradient(135deg, rgba(201,168,76,.06), rgba(201,168,76,.14)); box-shadow: 0 2px 10px rgba(201,168,76,.15); }
.f-dopt-icon { font-size: 18px; margin-bottom: 3px; }
.f-dopt-title { font-size: 12px; font-weight: 500; color: var(--text); }
.f-dopt-sub { font-size: 10px; color: var(--muted); }
.f-dopt-price { font-size: 13px; font-weight: 700; color: var(--navy); margin-top: 3px; }

/* ── Delivery badge ── */
.delivery-badge {
  display: none; align-items: center; gap: 10px;
  background: rgba(0,196,140,.06); border: 0.5px solid rgba(0,196,140,.25);
  border-radius: var(--r-md); padding: 10px 13px; margin: 8px 0 12px;
}

/* ── Price summary ── */
.oc-summary {
  background: var(--gold-pl); border: 0.5px solid var(--gold-lt);
  border-radius: var(--r-md); padding: 13px 15px; margin: 14px 0 12px;
}
.oc-sum-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 2px 0; }
.oc-sum-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; color: var(--navy); padding: 8px 0 2px; border-top: 0.5px solid var(--gold-lt); margin-top: 6px; }

/* ── Qty row ── */
.f-qty-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 10px; }
.f-qty { display: flex; align-items: center; border: 1px solid #E0DBD4; border-radius: var(--r-md); overflow: hidden; background: var(--white); flex-shrink: 0; }
.f-qty button { width: 38px; height: 46px; border: none; background: transparent; font-size: 18px; cursor: pointer; color: var(--text); transition: background .15s; font-family: var(--sans); }
.f-qty button:hover { background: #EDEAE5; }
.f-qty span { width: 36px; text-align: center; font-size: 14px; font-weight: 500; }

/* ── Submit button ── */
.oc-btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #D4A836 0%, #C9A84C 50%, #E0B84A 100%);
  color: #fff; border: none;
  padding: 0 20px; border-radius: var(--r-md);
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 8px; height: 52px; flex: 1; transition: all .2s;
  box-shadow: 0 4px 14px rgba(201,168,76,.35);
}
.oc-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,.5); }
.oc-btn-submit:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(201,168,76,.25); }
.oc-btn-wa {
  width: 100%; background: var(--navy); color: #fff; border: none;
  padding: 13px; border-radius: var(--r-md);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 8px; text-decoration: none; transition: opacity .15s;
}
.oc-btn-wa:hover { opacity: .88; }
.oc-secure { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; color: var(--muted); margin-top: 8px; }

/* ── Trust inside form ── */
.oc-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
.oc-trust-item { background: var(--cream); border: 0.5px solid var(--border); border-radius: var(--r-md); padding: 8px 10px; display: flex; align-items: center; gap: 7px; font-size: 11px; }
.oc-trust-item i { color: var(--gold); font-size: 14px; flex-shrink: 0; }

/* ── Specs accordion ── */
.p-accordion { border: 0.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 32px; }
.pacc-item { border-bottom: 0.5px solid var(--border); }
.pacc-item:last-child { border-bottom: none; }
.pacc-q { padding: 13px 16px; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: space-between; color: var(--navy); user-select: none; width: 100%; background: none; border: none; font-family: var(--sans); text-align: right; }
.pacc-q i { font-size: 15px; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.pacc-q:hover { color: var(--gold); }
.pacc-item.open .pacc-q { color: var(--gold); background: var(--gold-pl); }
.pacc-item.open .pacc-q i { transform: rotate(180deg); color: var(--gold); }
.pacc-a { padding: 0 16px 13px; font-size: 13px; color: var(--muted); line-height: 1.75; display: none; }
.pacc-item.open .pacc-a { display: block; }
.spec-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 0.5px solid var(--border); font-size: 13px; }
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: var(--muted); }
.spec-row span:last-child { font-weight: 500; }

/* ── Reviews ── */
.p-reviews-section { margin-bottom: 52px; }
.p-rating-summary { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--r-lg); padding: 18px 22px; display: flex; align-items: center; gap: 24px; margin: 18px 0 14px; flex-wrap: wrap; }
.p-rs-big { text-align: center; flex-shrink: 0; }
.p-rs-score { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--navy); line-height: 1; }
.p-rs-stars { color: var(--gold); font-size: 14px; margin: 4px 0; }
.p-rs-count { font-size: 12px; color: var(--muted); }
.p-rs-bars { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 180px; }
.bar-row { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.bar-track { flex: 1; height: 6px; border-radius: 100px; background: #EDEAE5; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 100px; background: var(--gold); }
.p-reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 768px) { .p-reviews-grid { grid-template-columns: 1fr; } }

/* ── Sticky CTA bar ── */
.sticky-cta-bar { display: none; }
@media (max-width: 900px) {
  .sticky-cta-bar {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--border);
    padding: 10px 16px; z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  }
  .sticky-price { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.2; }
  .sticky-wa-btn { background: #25D366; color: #fff; padding: 10px 20px; border-radius: 100px; font-family: var(--sans); font-size: 13px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
  .sticky-cta-bar-btn { background: var(--gold); color: #fff; padding: 10px 18px; border-radius: 100px; font-family: var(--sans); font-size: 13px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
  .order-card { position: static; }
}

/* ── Delivery loading ── */
.dloading { animation: dload 1s ease-in-out infinite; color: var(--muted); }
@keyframes dload { 0%,100%{opacity:.3}50%{opacity:1} }

/* ── Hide legacy ── */
.lux-social-proof, .lux-order-timer, .lux-emotion-block,
.lux-rating-bar, .lux-verified, .lux-wa-float { display: none !important; }
.p-brand, .p-name, .p-rating, .p-price-block, .p-label, .p-sizes, .p-colors,
.p-order-row, .p-btn-main, .p-btn-wa, .p-trust-grid { display: none !important; }
.size-guide { max-height: 0; overflow: hidden; transition: max-height .35s; margin-bottom: 8px; }
.size-guide.open { max-height: 200px; }

/* ── Form step sections ── */
.f-sep { height: 1px; background: var(--border); margin: 16px -20px; }
.f-step-header { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.f-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-size: 12px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.f-step-title { font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: .2px; }
