/* =========================================================
   Eagle Smart Lockers — Product Detail Page Styles
   Extends styles.css
   ========================================================= */

/* ----- Page hero ----- */
.pd-hero {
  position: relative;
  min-height: 48vh;
  display: flex; align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
  background: #04060a;
  isolation: isolate;
}
.pd-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: pdSlowZoom 18s ease-out forwards;
}
@keyframes pdSlowZoom { to { transform: scale(1); } }
.pd-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(4,6,10,.55) 0%, rgba(4,6,10,.25) 35%, rgba(4,6,10,.85) 100%),
    linear-gradient(90deg, rgba(4,6,10,.55) 0%, rgba(4,6,10,.10) 60%, transparent 100%);
}
.pd-hero-inner {
  position: relative; z-index: 2;
  width: 100%; padding: 56px 0 36px;
}
.pd-breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: 1.8px;
  color: rgba(246,246,247,.65);
  text-transform: uppercase; font-weight: 500;
  margin-bottom: 14px;
}
.pd-breadcrumb a { color: var(--gold-2); }
.pd-breadcrumb a:hover { color: #fff; }
.pd-breadcrumb i { font-size: 9px; opacity: .5; }
html[dir="rtl"] .pd-breadcrumb i { transform: scaleX(-1); }

.pd-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.08; margin: 0 0 12px;
  letter-spacing: -1px;
  color: #fff;
  max-width: 720px;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
html[dir="rtl"] .pd-hero h1 { font-family: var(--font-ar); font-weight: 700; letter-spacing: 0; }
.pd-hero h1 .accent {
  background: var(--grad-gold-bright);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic; font-weight: 400;
}
html[dir="rtl"] .pd-hero h1 .accent { font-style: normal; font-weight: 800; }
.pd-hero p {
  font-size: clamp(13px, 1.05vw, 14.5px); line-height: 1.6;
  color: rgba(246,246,247,.85);
  max-width: 600px;
  font-weight: 300;
  margin: 0 0 18px;
}
.pd-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ----- Section base ----- */
.pd-section { padding: 48px 0; }
.pd-section.pd-alt { background: var(--cream); }
.pd-section.pd-dark {
  background: #0a0d12;
  color: var(--ivory);
  position: relative;
}
.pd-section.pd-dark::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.pd-head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.pd-head.pd-left { text-align: left; margin: 0 0 22px; }
html[dir="rtl"] .pd-head.pd-left { text-align: right; }
.pd-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: 3px;
  color: var(--gold-deep); text-transform: uppercase;
  font-weight: 700; margin-bottom: 8px;
}
.pd-section.pd-dark .pd-eyebrow { color: var(--gold-2); }
.pd-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 500;
  line-height: 1.15; margin: 0;
  letter-spacing: -.4px;
  color: var(--ink);
}
.pd-section.pd-dark .pd-title { color: #fff; }
.pd-title .accent {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic; font-weight: 400;
}
.pd-section.pd-dark .pd-title .accent { background: var(--grad-gold-bright); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[dir="rtl"] .pd-title { font-family: var(--font-ar); font-weight: 700; letter-spacing: 0; }
html[dir="rtl"] .pd-title .accent { font-style: normal; font-weight: 800; }
.pd-lede {
  font-size: 14px; color: var(--text-soft); line-height: 1.6;
  margin: 10px auto 0; max-width: 660px;
}
.pd-section.pd-dark .pd-lede { color: rgba(246,246,247,.72); }

/* ----- Intro (image + text) ----- */
.pd-intro-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center;
}
@media (max-width: 880px) { .pd-intro-grid { grid-template-columns: 1fr; gap: 24px; } }
.pd-intro-text p { color: var(--text-soft); font-size: 14px; line-height: 1.65; margin: 10px 0; }
.pd-intro-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pd-intro-stats .s {
  padding: 0 14px;
  border-right: 1px solid var(--line);
}
.pd-intro-stats .s:first-child { padding-left: 0; }
.pd-intro-stats .s:last-child { border-right: 0; padding-right: 0; }
html[dir="rtl"] .pd-intro-stats .s { border-right: 0; border-left: 1px solid var(--line); }
html[dir="rtl"] .pd-intro-stats .s:last-child { border-left: 0; }
.pd-intro-stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 600;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.pd-intro-stats span {
  display: block; margin-top: 5px;
  font-size: 10px; letter-spacing: 1.4px;
  color: var(--text-soft); text-transform: uppercase; font-weight: 600;
}
.pd-intro-img {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.pd-intro-img > div {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}

/* ----- Features grid ----- */
.pd-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 980px) { .pd-feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pd-feat-grid { grid-template-columns: 1fr; } }
.pd-feat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 18px;
  transition: all .35s var(--ease);
  position: relative; overflow: hidden;
}
.pd-section.pd-dark .pd-feat {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
}
.pd-feat:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.pd-feat i {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad-dark);
  color: var(--gold-2);
  font-size: 14px;
  margin-bottom: 10px;
  box-shadow: 0 6px 14px rgba(12,15,18,.15);
}
.pd-feat h4 {
  font-family: var(--font-serif);
  font-size: 14.5px; font-weight: 600;
  margin: 0 0 5px;
  color: var(--ink);
  letter-spacing: -.2px;
}
.pd-section.pd-dark .pd-feat h4 { color: #fff; }
.pd-feat p {
  font-size: 12.5px; line-height: 1.55;
  color: var(--text-soft); margin: 0;
}
.pd-section.pd-dark .pd-feat p { color: rgba(246,246,247,.7); }

/* ----- Use cases / sectors ----- */
.pd-sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 10px;
}
@media (max-width: 980px) { .pd-sector-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .pd-sector-grid { grid-template-columns: repeat(2, 1fr); } }
.pd-sector {
  padding: 14px 12px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
  transition: all .35s var(--ease);
}
.pd-sector i {
  font-size: 18px;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 6px;
}
.pd-sector strong { font-size: 12.5px; color: var(--ink); display: block; font-weight: 600; }
.pd-sector small { display: block; font-size: 10.5px; color: var(--text-soft); margin-top: 2px; }
.pd-sector:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-sm); }

/* ----- Process / steps ----- */
.pd-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 12px;
  counter-reset: pdstep;
}
@media (max-width: 880px) { .pd-steps { grid-template-columns: repeat(2, 1fr); } }
.pd-step {
  position: relative;
  padding: 22px 18px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  counter-increment: pdstep;
}
.pd-step::before {
  content: counter(pdstep, decimal-leading-zero);
  position: absolute; top: -14px; left: 18px;
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 600;
  background: var(--grad-gold-bright);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
html[dir="rtl"] .pd-step::before { left: auto; right: 18px; }
.pd-step h4 {
  font-family: var(--font-serif);
  font-size: 14.5px; font-weight: 600;
  margin: 8px 0 5px;
  color: #fff;
}
.pd-step p {
  font-size: 12.5px; line-height: 1.55;
  color: rgba(246,246,247,.72); margin: 0;
}

/* ----- Characteristics (image + spec list) ----- */
.pd-chr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 880px) { .pd-chr { grid-template-columns: 1fr; gap: 18px; } }

.pd-chr-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(14, 16, 21, .12);
  background-size: cover;
  background-position: center;
  min-height: 340px;
}
.pd-chr-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4,6,10,.55) 100%);
}
.pd-chr-tag {
  position: absolute; left: 14px; bottom: 14px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(12, 15, 18, .72);
  border: 1px solid rgba(214, 214, 214, .3);
  color: var(--gold-2);
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.7px; text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html[dir="rtl"] .pd-chr-tag { left: auto; right: 18px; }
.pd-chr-tag i { font-size: 12px; }

.pd-chr-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 8px;
}
.pd-chr-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: all .3s var(--ease);
}
.pd-chr-list li:hover {
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
html[dir="rtl"] .pd-chr-list li:hover { transform: translateX(-4px); }
.pd-chr-list li > i {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--grad-dark);
  color: var(--gold-2);
  font-size: 12px;
  box-shadow: 0 5px 12px rgba(12, 15, 18, .15);
}
.pd-chr-list li > div { min-width: 0; }
.pd-chr-list li strong {
  display: block;
  font-size: 12.5px; font-weight: 600;
  color: var(--ink);
  letter-spacing: .1px;
  margin-bottom: 1px;
}
.pd-chr-list li span {
  display: block;
  font-size: 12px; color: var(--text-soft);
  line-height: 1.4;
}

/* dark variant for use inside .pd-dark sections */
.pd-section.pd-dark .pd-chr-list li {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
}
.pd-section.pd-dark .pd-chr-list li strong { color: #fff; }
.pd-section.pd-dark .pd-chr-list li span { color: rgba(246,246,247,.7); }

/* ----- Modules / options carousel-strip ----- */
.pd-modules {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 880px) { .pd-modules { grid-template-columns: 1fr; } }
.pd-module {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: all .35s var(--ease);
}
.pd-module .pd-mod-img {
  aspect-ratio: 5 / 3;
  background-size: cover; background-position: center;
}
.pd-module .pd-mod-body { padding: 16px 18px 18px; }
.pd-module h4 { font-family: var(--font-serif); font-size: 15px; margin: 0 0 5px; color: var(--ink); font-weight: 600; }
.pd-module p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-soft); }
.pd-module:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-md); }

/* ----- CTA band ----- */
.pd-cta-band {
  background: linear-gradient(115deg, #0c0f12 0%, #1a1f29 100%);
  color: var(--ivory);
  padding: 32px 0;
  position: relative; overflow: hidden;
}
.pd-cta-band::before {
  content: ""; position: absolute; top: -160px; right: -160px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,214,214,.15), transparent 70%);
  filter: blur(60px);
}
.pd-cta-inner {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 22px; align-items: center;
  position: relative; z-index: 2;
}
@media (max-width: 720px) { .pd-cta-inner { grid-template-columns: 1fr; text-align: center; } }
.pd-cta-inner h3 {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500; margin: 0 0 4px;
  color: #fff; letter-spacing: -.3px;
}
html[dir="rtl"] .pd-cta-inner h3 { font-family: var(--font-ar); font-weight: 700; letter-spacing: 0; }
.pd-cta-inner p { color: rgba(246,246,247,.72); margin: 0; font-size: 13px; line-height: 1.55; }
.pd-cta-inner .pd-cta-row { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 720px) { .pd-cta-inner .pd-cta-row { justify-content: center; } }

/* ----- Related products strip ----- */
.pd-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 880px) { .pd-related { grid-template-columns: 1fr; } }
.pd-rel {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
  color: var(--ivory);
}
.pd-rel-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.pd-rel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,6,10,.05) 30%, rgba(4,6,10,.85) 100%);
}
.pd-rel-inner {
  position: absolute; inset: 0; padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
  z-index: 2;
}
.pd-rel h4 { font-family: var(--font-serif); font-size: 14px; margin: 0; color: #fff; font-weight: 600; line-height: 1.25; }
.pd-rel small {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 1.8px;
  color: var(--gold-2); text-transform: uppercase; font-weight: 700;
  margin-top: 4px;
}
html[dir="rtl"] .pd-rel small i { transform: scaleX(-1); }
.pd-rel:hover .pd-rel-bg { transform: scale(1.08); }
.pd-rel:hover { border-color: var(--gold); }
