/* ==========================================================================
   pages/product-details.css — صفحة تفاصيل المنتج
   ========================================================================== */

body.page-product-details{
  --gold:#d8a748;
  --gold-light:#f1ce7a;
  --gold-dark:#8d651f;
  --black:#070808;
  --dark:#0f1111;
  --dark-2:#171919;
  --cream:#f3efe7;
  --cream-2:#fffdf8;
  --text:#262626;
  --muted:#6d6962;
  --line:rgba(216,167,72,.42);
  --container:1180px;
  --shadow:0 16px 40px rgba(0,0,0,.2);

  background:var(--cream);
  color:var(--text);
  line-height:1.8;
}

body.page-product-details main .container{width:min(calc(100% - 34px),1180px);margin:auto}

body.page-product-details .reveal{transform:translateY(22px);transition:opacity .65s ease,transform .65s ease}

/* ---------- عناصر عامة ---------- */
body.page-product-details .section{padding:68px 0}

body.page-product-details .btn{
  min-height:48px;
  padding:0 24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid var(--gold);
  transition:.3s;
  cursor:pointer;
}

body.page-product-details .btn:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,0,0,.22)}
body.page-product-details .btn-gold{background:linear-gradient(135deg,var(--gold-light),var(--gold));color:#171208}
body.page-product-details .btn-dark{background:#111;color:#fff}

/* ---------- واجهة المنتج ---------- */
body.page-product-details .product-hero{
  background:
    linear-gradient(90deg,rgba(7,8,8,.96),rgba(7,8,8,.92)),
    radial-gradient(circle at 85% 20%,rgba(216,167,72,.12),transparent 35%);
  color:#fff;
  padding:20px 0 28px;
}

body.page-product-details .breadcrumb{font-size:10px;color:#b7b1a8;margin-bottom:18px}
body.page-product-details .breadcrumb span{color:var(--gold)}
body.page-product-details .breadcrumb a:hover{color:var(--gold-light)}

body.page-product-details .product-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:42px;
  align-items:start;
}

body.page-product-details .main-image{
  height:430px;
  overflow:hidden;
  border:1px solid var(--gold);
  border-radius:8px;
  background:#111;
  position:relative;
}

body.page-product-details .main-image img{height:100%;object-fit:cover}

body.page-product-details .zoom-btn{
  position:absolute;
  top:16px;
  left:16px;
  width:44px;
  height:44px;
  border:1px solid var(--gold);
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(6,7,7,.72);
  color:var(--gold);
}

body.page-product-details .thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:12px}

body.page-product-details .thumb{
  height:84px;
  border:1px solid rgba(216,167,72,.34);
  overflow:hidden;
  border-radius:6px;
  cursor:pointer;
  padding:0;
  background:transparent;
}

body.page-product-details .thumb.active{border-color:var(--gold);box-shadow:0 0 0 2px rgba(216,167,72,.16)}
body.page-product-details .thumb img{height:100%;object-fit:cover}

body.page-product-details .product-info .eyebrow{color:var(--gold);font-size:11px;letter-spacing:1px;margin-bottom:6px}
body.page-product-details .product-info h1{font-size:48px;line-height:1.15;font-weight:500;margin-bottom:14px}
body.page-product-details .product-info p{color:#c8c3b9;font-size:13px;line-height:1.95}

body.page-product-details .availability{margin-top:18px;color:#7fca74;font-size:12px}
body.page-product-details .code{margin-top:10px;color:#d3cec3;font-size:12px}
body.page-product-details .code i{color:var(--gold);margin-left:7px}

body.page-product-details .info-actions{display:grid;gap:10px;margin-top:20px}
body.page-product-details .info-actions .btn{width:100%}

body.page-product-details .feature-strip{
  margin-top:28px;
  border:1px solid rgba(216,167,72,.22);
  background:#141616;
  display:grid;
  grid-template-columns:repeat(4,1fr);
}

body.page-product-details .strip-item{
  padding:18px;
  display:flex;
  gap:12px;
  align-items:center;
  border-left:1px solid rgba(255,255,255,.07);
}

body.page-product-details .strip-item:last-child{border-left:0}
body.page-product-details .strip-item i{color:var(--gold);font-size:28px}
body.page-product-details .strip-item h3{font-size:12px;color:var(--gold-light)}
body.page-product-details .strip-item p{font-size:10px;color:#aaa59d;line-height:1.6}

/* ---------- التفاصيل والمواصفات ---------- */
body.page-product-details .details{background:var(--cream-2)}
body.page-product-details .details-grid{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:start}
body.page-product-details .details-copy h2{font-size:36px;line-height:1.25;margin-bottom:14px}
body.page-product-details .details-copy .line{width:58px;height:3px;background:var(--gold);margin-bottom:18px}
body.page-product-details .details-copy p{color:#6d6962;font-size:13px;line-height:2;margin-bottom:14px}

body.page-product-details .detail-icons{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:28px}
body.page-product-details .detail-icon{text-align:center}

body.page-product-details .detail-icon i{
  width:52px;
  height:52px;
  border:1px solid var(--gold);
  border-radius:50%;
  display:grid;
  place-items:center;
  color:var(--gold);
  font-size:20px;
  margin:0 auto 9px;
}

body.page-product-details .detail-icon span{font-size:10px;color:#666158}

body.page-product-details .specs{border:1px solid var(--gold);border-radius:8px;overflow:hidden}

body.page-product-details .spec-row{
  display:grid;
  grid-template-columns:150px 1fr;
  border-bottom:1px solid rgba(216,167,72,.3);
}

body.page-product-details .spec-row:last-child{border-bottom:0}

body.page-product-details .spec-label{
  padding:15px;
  background:#faf6ed;
  font-size:11px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:9px;
}

body.page-product-details .spec-label i{color:var(--gold)}
body.page-product-details .spec-value{padding:15px;background:#fff;font-size:11px;color:#5f5a53}

/* ---------- خطوات التوريد ---------- */
body.page-product-details .process{background:linear-gradient(135deg,#0b0d0d,#171919);color:#fff}
body.page-product-details .section-title{text-align:center;margin-bottom:34px}
body.page-product-details .section-title h2{font-size:36px}
body.page-product-details .steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}

body.page-product-details .step{
  border:1px solid rgba(216,167,72,.26);
  background:#171919;
  padding:30px;
  text-align:center;
  position:relative;
}

body.page-product-details .step-num{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--gold-light),var(--gold));
  color:#171208;
  position:absolute;
  top:-18px;
  left:50%;
  transform:translateX(-50%);
  font-weight:700;
}

body.page-product-details .step i{font-size:42px;color:var(--gold);margin:16px 0}
body.page-product-details .step h3{font-size:18px;margin-bottom:8px}
body.page-product-details .step p{font-size:11px;color:#bcb7ae;line-height:1.8}

/* ---------- لماذا هذا المنتج ---------- */
body.page-product-details .why{
  min-height:330px;
  color:#fff;
  display:flex;
  align-items:center;
  background:
    linear-gradient(90deg,rgba(5,6,6,.96),rgba(5,6,6,.35)),
    url("../../images/products/product-packaging-cartons.webp") center/cover no-repeat;
}

body.page-product-details .why-copy{max-width:520px}
body.page-product-details .why h2{font-size:38px;line-height:1.25;margin-bottom:18px}
body.page-product-details .why-list{display:grid;gap:14px}
body.page-product-details .why-item{display:grid;grid-template-columns:36px 1fr;gap:10px}

body.page-product-details .why-item i{
  width:34px;
  height:34px;
  border:1px solid var(--gold);
  border-radius:50%;
  display:grid;
  place-items:center;
  color:var(--gold);
}

body.page-product-details .why-item h3{font-size:12px;color:var(--gold-light)}
body.page-product-details .why-item p{font-size:10px;color:#c4bfb5}

/* ---------- نموذج طلب عرض السعر ---------- */
body.page-product-details .quote-form{background:var(--cream-2)}
body.page-product-details .quote-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:40px}
body.page-product-details .form-box h2,
body.page-product-details .quick-box h2{font-size:34px;margin-bottom:18px}
body.page-product-details .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}

body.page-product-details .field{
  min-height:46px;
  width:100%;
  border:1px solid rgba(50,50,50,.18);
  background:#fff;
  padding:0 12px;
  outline:0;
}

body.page-product-details textarea.field{min-height:100px;padding-top:12px;resize:vertical}
body.page-product-details .full{grid-column:1/-1}

body.page-product-details .form-field{display:grid;gap:4px}
body.page-product-details .form-field label{font-size:11px;color:#5f5a53}

body.page-product-details .field.has-error{border-color:#c0392b;background:#fff6f5}

body.page-product-details .field-error{
  display:none;
  color:#c0392b;
  font-size:10px;
  line-height:1.6;
}

body.page-product-details .field-error.visible{display:block}

body.page-product-details .form-success{
  display:none;
  margin-top:14px;
  padding:12px 14px;
  border:1px solid rgba(216,167,72,.5);
  background:#fdf7ea;
  color:#5c4813;
  font-size:11px;
  line-height:1.8;
}

body.page-product-details .form-success.visible{display:block}
body.page-product-details .form-success.is-error{border-color:#c0392b;background:#fff6f5;color:#c0392b}

body.page-product-details .form-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:14px;
}

body.page-product-details .form-note{font-size:9px;color:#666}

body.page-product-details .quick-box{background:#111;color:#fff;border:1px solid var(--gold);padding:28px}
body.page-product-details .quick-box p{color:#c7c1b7;font-size:11px;line-height:1.8;margin-bottom:18px}
body.page-product-details .quick-box .btn{width:100%;margin-bottom:10px}
body.page-product-details .quick-time{margin-top:14px;font-size:10px;color:#aaa59c}

/* ---------- منتجات مرتبطة ---------- */
body.page-product-details .related{background:#0c0e0e;color:#fff}

body.page-product-details .related-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
}

body.page-product-details .related-head h2{font-size:30px}
body.page-product-details .related-head a{color:var(--gold);font-size:11px}
body.page-product-details .related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}

body.page-product-details .related-card{
  border:1px solid rgba(216,167,72,.3);
  background:#161818;
  overflow:hidden;
  position:relative;
}

body.page-product-details .related-card img{height:200px;object-fit:cover}
body.page-product-details .related-body{padding:16px}
body.page-product-details .related-body span{color:var(--gold);font-size:9px}
body.page-product-details .related-body h3{font-size:17px;margin:4px 0}
body.page-product-details .related-body p{font-size:10px;color:#bcb7ae;line-height:1.7}

body.page-product-details .related-body .round{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--gold-light),var(--gold));
  color:#171208;
  position:absolute;
  left:14px;
  bottom:14px;
}

/* ---------- شريط الدعوة ---------- */
body.page-product-details .cta{
  padding:26px 0;
  background:linear-gradient(90deg,#9a6d24,#f0c870,#9a6d24);
  color:#171208;
}

body.page-product-details .cta-box{display:flex;align-items:center;justify-content:space-between;gap:30px}
body.page-product-details .cta-copy{display:flex;align-items:center;gap:18px}

body.page-product-details .cta-icon{
  width:66px;
  height:66px;
  border-radius:50%;
  background:#111;
  color:var(--gold);
  display:grid;
  place-items:center;
  font-size:28px;
}

body.page-product-details .cta h2{font-size:28px;line-height:1.3}

/* ==========================  الاستجابة  ========================== */
@media(max-width:900px){
  body.page-product-details .product-grid,
  body.page-product-details .details-grid,
  body.page-product-details .quote-grid{grid-template-columns:1fr}
  body.page-product-details .feature-strip{grid-template-columns:repeat(2,1fr)}
  body.page-product-details .related-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:820px){
  body.page-product-details .steps{grid-template-columns:1fr}
}

@media(max-width:560px){
  body.page-product-details main .container{width:min(calc(100% - 24px),1180px)}
  body.page-product-details .product-info h1{font-size:38px}
  body.page-product-details .main-image{height:330px}
  body.page-product-details .thumbs{grid-template-columns:repeat(4,1fr)}
  body.page-product-details .feature-strip{grid-template-columns:1fr}
  body.page-product-details .detail-icons{grid-template-columns:repeat(2,1fr)}
  body.page-product-details .spec-row{grid-template-columns:1fr}
  body.page-product-details .form-grid{grid-template-columns:1fr}
  body.page-product-details .full{grid-column:auto}
  body.page-product-details .form-footer,
  body.page-product-details .cta-box{flex-direction:column;align-items:flex-start}
  body.page-product-details .related-grid{grid-template-columns:1fr}
}
