/* ==========================================================================
   pages/products.css — صفحة المنتجات
   ========================================================================== */

body.page-products{
  --gold:#d8a748;
  --gold-light:#f1cd78;
  --gold-dark:#8d651f;
  --black:#070808;
  --dark:#101212;
  --dark-2:#171919;
  --cream:#f4f0e8;
  --cream-2:#fffdf8;
  --text:#252525;
  --muted:#6d6962;
  --line:rgba(216,167,72,.42);
  --container:1200px;
  --shadow:0 16px 40px rgba(0,0,0,.18);

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

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

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

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

body.page-products .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 ease;
  cursor:pointer;
}

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

body.page-products .eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--gold);
  font-size:12px;
  margin-bottom:12px;
}

body.page-products .eyebrow::before{content:"";width:28px;height:2px;background:var(--gold)}

/* ---------- الواجهة ---------- */
body.page-products .hero{
  min-height:440px;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:
    linear-gradient(to right,rgba(5,6,6,.06) 0%,rgba(5,6,6,.32) 25%,rgba(5,6,6,.6) 50%,rgba(5,6,6,.8) 75%,rgba(5,6,6,.82) 100%),
    url("../../images/home/hero-home.webp") center/cover no-repeat;
}

[dir="ltr"] body.page-products .hero{
  background:
    linear-gradient(to left,rgba(5,6,6,.06) 0%,rgba(5,6,6,.32) 25%,rgba(5,6,6,.6) 50%,rgba(5,6,6,.8) 75%,rgba(5,6,6,.82) 100%),
    url("../../images/home/hero-home.webp") center/cover no-repeat;
}

body.page-products .hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 74% 18%,rgba(216,167,72,.18),transparent 33%),
    linear-gradient(to bottom,transparent 65%,rgba(4,5,5,.68));
}

body.page-products .hero-content{position:relative;z-index:2;max-width:690px}

body.page-products .hero h1{
  font-size:clamp(48px,5.4vw,74px);
  line-height:1.12;
  color:#fff;
  margin-bottom:14px;
  text-shadow:0 2px 14px rgba(0,0,0,.65),0 1px 4px rgba(0,0,0,.85);
}

body.page-products .hero h1 span{display:block;color:var(--gold-light)}
body.page-products .hero p{max-width:600px;color:#d0cbc1;font-size:14px;line-height:2;text-shadow:0 2px 10px rgba(0,0,0,.6),0 1px 3px rgba(0,0,0,.8)}
body.page-products .hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}

/* ---------- كتالوج المنتجات ---------- */
body.page-products .catalogue{background:var(--cream-2);color:var(--text);padding:34px 0 52px}

body.page-products .catalogue-head{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  align-items:end;
}

body.page-products .catalogue-title .eyebrow{color:var(--gold-dark);margin-bottom:5px}
body.page-products .catalogue-title h2{font-size:clamp(32px,3.6vw,50px);line-height:1.25;font-weight:500}

body.page-products .search-box{
  height:48px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 15px;
  border:1px solid rgba(40,40,40,.2);
  border-radius:8px;
  background:#fff;
}

body.page-products .search-box i{color:#777}

body.page-products .search-box input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#333;
}

body.page-products .filters{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px;
  margin-top:20px;
}

body.page-products .filter-btn{
  min-height:46px;
  padding:0 12px;
  border:1px solid rgba(50,50,50,.17);
  border-radius:8px;
  background:#fff;
  color:#4f4b45;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  cursor:pointer;
  transition:.25s ease;
  font-size:11px;
}

body.page-products .filter-btn i{font-size:17px}

body.page-products .filter-btn.active,
body.page-products .filter-btn:hover{background:#101212;color:#fff;border-color:#101212}

body.page-products .products-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
  margin-top:28px;
}

body.page-products .product-card{
  min-height:420px;
  position:relative;
  overflow:hidden;
  border:1px solid var(--gold);
  border-radius:10px;
  background:#111;
  box-shadow:var(--shadow);
  transition:.35s ease;
}

body.page-products .product-card:hover{transform:translateY(-8px);box-shadow:0 22px 50px rgba(0,0,0,.26)}
body.page-products .product-card img{height:100%;object-fit:cover;transition:.55s ease}
body.page-products .product-card:hover img{transform:scale(1.06)}

body.page-products .product-card::after{
  content:"";
  position:absolute;
  inset:25% 0 0;
  background:linear-gradient(to top,rgba(6,7,7,.98),rgba(6,7,7,.14));
}

body.page-products .product-content{position:absolute;inset:auto 0 0;z-index:2;padding:24px;color:#fff}

body.page-products .product-tag{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 11px;
  border:1px solid var(--gold);
  border-radius:18px;
  color:var(--gold-light);
  font-size:9px;
  margin-bottom:10px;
}

body.page-products .product-content h3{font-size:22px;margin-bottom:8px;font-weight:500}
body.page-products .product-content p{color:#d0ccc4;font-size:11px;line-height:1.8;min-height:42px}

body.page-products .product-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:18px;
}

body.page-products .product-code{color:#ddd7cb;font-size:11px;direction:ltr}

body.page-products .round-arrow{
  width:46px;
  height:46px;
  border:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--gold-light),var(--gold));
  color:#171208;
  font-size:16px;
  transition:.25s;
}

body.page-products .round-arrow:hover{transform:translateX(-4px)}

body.page-products .details-btn{min-height:40px;padding:0 18px;font-size:10px}

/* حالة عدم وجود نتائج للبحث أو الفلترة */
body.page-products .products-empty{
  grid-column:1/-1;
  padding:44px 20px;
  border:1px dashed rgba(50,50,50,.24);
  border-radius:10px;
  color:#6d6962;
  text-align:center;
  font-size:13px;
}

body.page-products .products-empty i{display:block;margin-bottom:10px;color:var(--gold-dark);font-size:30px}

/* ---------- التوريد المخصص ---------- */
body.page-products .sourcing{
  min-height:310px;
  display:flex;
  align-items:center;
  color:#fff;
  background:
    linear-gradient(90deg,rgba(6,7,7,.96),rgba(6,7,7,.62)),
    url("../../images/products/products-sourcing-bg.webp") center/cover no-repeat;
}

body.page-products .sourcing-copy{max-width:610px}
body.page-products .sourcing h2{font-size:clamp(36px,4vw,56px);line-height:1.2;margin-bottom:14px}
body.page-products .sourcing h2 span{color:var(--gold-light)}
body.page-products .sourcing p{color:#cfcac0;font-size:13px;line-height:2}
body.page-products .sourcing-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:22px}

/* ---------- المميزات ---------- */
body.page-products .advantages{background:var(--cream-2);padding:34px 0}
body.page-products .advantages h2{font-size:36px;margin-bottom:20px;font-weight:500}
body.page-products .adv-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}

body.page-products .adv-card{
  min-height:130px;
  border:1px solid rgba(50,50,50,.17);
  border-radius:8px;
  background:#fff;
  padding:22px;
  display:flex;
  align-items:center;
  gap:16px;
}

body.page-products .adv-card i{color:var(--gold-dark);font-size:44px}
body.page-products .adv-card h3{font-size:15px;margin-bottom:5px}
body.page-products .adv-card p{color:#6f6a63;font-size:10px;line-height:1.8}

/* ---------- الفئات المرتبطة ---------- */
body.page-products .related{padding:18px 0;background:#111313;color:#fff}
body.page-products .related-title{color:var(--gold);font-size:11px;margin-bottom:12px}
body.page-products .related-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}

body.page-products .related-card{
  min-height:58px;
  border:1px solid rgba(255,255,255,.12);
  background:#181a1a;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:11px;
  transition:.25s;
}

body.page-products .related-card:hover{border-color:var(--gold);color:var(--gold-light)}
body.page-products .related-card i{color:var(--gold);font-size:22px}

/* ---------- شريط طلب عرض السعر ---------- */
body.page-products .quote{
  padding:22px 0;
  background:#0a0c0c;
  color:#fff;
  border-top:1px solid rgba(216,167,72,.22);
}

body.page-products .quote-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

body.page-products .quote-copy{display:flex;align-items:center;gap:18px}

body.page-products .quote-icon{
  width:66px;
  height:66px;
  border:1px solid var(--gold);
  border-radius:50%;
  display:grid;
  place-items:center;
  color:var(--gold);
  font-size:27px;
}

body.page-products .quote-copy h2{font-size:24px;font-weight:500}
body.page-products .quote-copy p{color:#aaa59c;font-size:10px}

/* ==========================  الاستجابة  ========================== */
@media(max-width:1000px){
  body.page-products .filters{grid-template-columns:repeat(3,1fr)}
  body.page-products .products-grid{gap:18px}
  body.page-products .related-grid{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:820px){
  body.page-products .catalogue-head{grid-template-columns:1fr}
  body.page-products .products-grid{grid-template-columns:repeat(2,1fr)}
  body.page-products .adv-grid{grid-template-columns:1fr}
  body.page-products .related-grid{grid-template-columns:repeat(2,1fr)}
  body.page-products .quote-box{flex-direction:column;align-items:flex-start}
}

@media(max-width:560px){
  body.page-products main .container{width:min(calc(100% - 24px),1200px)}
  body.page-products .hero{min-height:570px}
  body.page-products .hero h1{font-size:46px}
  body.page-products .hero-actions,
  body.page-products .sourcing-actions{display:grid}
  body.page-products .filters{grid-template-columns:1fr 1fr}
  body.page-products .products-grid{grid-template-columns:1fr}
  body.page-products .product-card{min-height:430px}
  body.page-products .related-grid{grid-template-columns:1fr}
}
