/* ════════════════════════════════════════════════════════════
   AL FAROOQUE MANUFACTURING — PRODUCTS PAGE v1.0
   Premium Industrial E-Commerce Layout
   ════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   HERO SLIDER
   ══════════════════════════════════════════ */
.ph-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}
.ph-slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.ph-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.90s ease;
  z-index: 1;
}
.ph-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.ph-slide-bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.12s linear;
}
.ph-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7,9,12,0.80) 0%,
    rgba(7,9,12,0.50) 50%,
    rgba(7,9,12,0.65) 100%
  );
  z-index: 1;
}
.ph-slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: calc(var(--nav-h,72px) + 70px) var(--px,48px) 90px;
  max-width: calc(var(--max-w,1320px) + var(--px,48px)*2);
  margin: 0 auto;
  left: 0; right: 0;
}

.ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pr-2, #7D8F5C);
  background: rgba(107,122,79,0.12);
  border: 1px solid rgba(107,122,79,0.30);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.60s ease 0.10s, transform 0.60s ease 0.10s;
}
.ph-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pr-2, #7D8F5C);
  flex-shrink: 0;
}
.ph-slide.active .ph-eyebrow { opacity: 1; transform: translateY(0); }

.ph-headline {
  font-family: var(--font-display,'Space Grotesk',sans-serif);
  font-size: clamp(38px, 6.5vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 22px;
  max-width: 720px;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s ease 0.26s, transform 0.75s ease 0.26s;
}
.ph-headline .accent {
  background: linear-gradient(100deg, var(--pr-2,#7D8F5C), #9DAE7E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ph-slide.active .ph-headline { opacity: 1; transform: translateY(0); }

.ph-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
  max-width: 500px;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.70s ease 0.42s, transform 0.70s ease 0.42s;
}
.ph-slide.active .ph-sub { opacity: 1; transform: translateY(0); }

.ph-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.70s ease 0.56s, transform 0.70s ease 0.56s;
}
.ph-slide.active .ph-cta { opacity: 1; transform: translateY(0); }

/* Hero nav arrows */
.ph-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.ph-arrow:hover {
  background: rgba(107,122,79,0.28);
  border-color: rgba(107,122,79,0.55);
  box-shadow: 0 0 24px rgba(107,122,79,0.35);
  transform: translateY(-50%) scale(1.08);
}
.ph-prev { left: 28px; }
.ph-next { right: 28px; }

/* Dots */
.ph-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.ph-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.40);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.ph-dot.active {
  width: 28px;
  background: var(--pr-2, #7D8F5C);
  border-color: var(--pr-2, #7D8F5C);
  box-shadow: 0 0 14px rgba(107,122,79,0.60);
}

/* Slide progress bar */
.ph-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pr,#6B7A4F), #9DAE7E);
  width: 0%;
  z-index: 10;
  box-shadow: 0 0 8px rgba(107,122,79,0.55);
  pointer-events: none;
}
.ph-progress.running {
  transition: width linear;
}

/* ══════════════════════════════════════════
   PRODUCTS SECTION
   ══════════════════════════════════════════ */
.products-section {
  position: relative;
  z-index: 1;
  padding: var(--nav-h, 76px) 0 120px;
}
.prod-section-header {
  text-align: center;
  margin-bottom: 52px;
}
.prod-section-header .section-label {
  justify-content: center;
}
.prod-section-header .section-label::before {
  display: none;
}

/* ══════════════════════════════════════════
   PRODUCT GRID — 4 per row (premium catalog)
   ══════════════════════════════════════════ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Load More */
.prod-loadmore-wrap { text-align: center; margin-top: 44px; }
.prod-loadmore {
  font-family: var(--font-body, inherit);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 38px; border-radius: 999px;
  border: 1px solid var(--bd-teal, rgba(107,122,79,0.32));
  background: var(--bg-teal, rgba(107,122,79,0.08));
  color: var(--pr-2, #7D8F5C);
  cursor: pointer;
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s, transform .3s cubic-bezier(0.34,1.56,0.64,1);
}
.prod-loadmore:hover {
  background: var(--bg-teal-2, rgba(107,122,79,0.14));
  border-color: var(--bd-teal-2, rgba(107,122,79,0.58));
  color: #fff;
  box-shadow: var(--gw-sm, 0 0 24px rgba(107,122,79,0.36));
  transform: translateY(-2px);
}

.prod-card {
  background: var(--bg-card, rgba(255,255,255,0.06));
  border: 1px solid var(--bd, rgba(255,255,255,0.08));
  border-radius: 22px;
  overflow: hidden;
  transition:
    transform 0.40s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.40s ease,
    border-color 0.40s ease,
    background 0.40s ease,
    opacity 0.35s ease;
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateY(28px);
  contain: layout paint;
}
.prod-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.prod-card.hidden {
  display: none;
}
.prod-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--sh-lg, 0 20px 60px rgba(26,26,24,0.60)), var(--gw-sm, 0 0 28px rgba(107,122,79,0.42));
  border-color: var(--bd-teal, rgba(107,122,79,0.36));
}

/* Product card image — ~55-60% of card height */
.prod-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 340px;
  background: rgba(255,255,255,0.03);
  contain: layout paint;
}

/* ── Image Stack (ProductImageStack) ──────────── */
.iss-wrap {
  position: absolute;
  inset: 0;
  contain: strict;
}

/* Each card in the 3-card fan stack */
.iss-card {
  position: absolute;
  width: 70%;
  aspect-ratio: 4 / 3;
  top: 50%;
  left: 50%;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(26,26,24,0.50), 0 3px 8px rgba(26,26,24,0.30);
  cursor: pointer;
  outline: none;
  transition:
    transform  0.46s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity    0.38s ease;
  will-change: transform, opacity;
}
.iss-card:focus-visible {
  box-shadow: 0 0 0 3px var(--pr-2, #7D8F5C), 0 8px 28px rgba(26,26,24,0.50);
}

.iss-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 10px;
  box-sizing: border-box;
  pointer-events: none; /* events handled by .iss-card */
}

/* Front — centered, full scale, cursor signals click = open gallery */
.iss-card[data-pos="front"] {
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  opacity: 1;
  filter: none;
  cursor: zoom-in;
}

/* Left — 35px left of center, scaled back, depth via opacity+scale only */
.iss-card[data-pos="left"] {
  transform: translate(calc(-50% - 35px), calc(-50% - 8px)) scale(0.87) rotate(-8deg);
  opacity: 0.62;
}

/* Right — 35px right of center, depth via opacity+scale only */
.iss-card[data-pos="right"] {
  transform: translate(calc(-50% + 35px), calc(-50% + 8px)) scale(0.87) rotate(8deg);
  opacity: 0.62;
}

/* 4th card hidden directly behind the front */
.iss-card[data-pos="back"] {
  transform: translate(-50%, calc(-50% - 10px)) scale(0.78) rotate(0deg);
  opacity: 0.40;
}

/* Brighten side cards on hover */
.iss-card[data-pos="left"]:hover,
.iss-card[data-pos="right"]:hover {
  opacity: 0.90;
  box-shadow: 0 12px 36px rgba(26,26,24,0.55), 0 3px 8px rgba(26,26,24,0.30);
}

/* Front card scales slightly when hovering the whole product card */
.prod-card:hover .iss-card[data-pos="front"] {
  transform: translate(-50%, -50%) scale(1.05) rotate(0deg);
}

/* Placeholder when no product image is available */
.prod-card-no-img {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--tx-3, rgba(148,163,184,0.5));
}
.prod-card-no-img svg {
  opacity: 0.35;
}
.prod-card-no-img span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0.45;
}

/* Image counter "1/3" — physical top-right in both LTR and RTL */
.iss-counter {
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto;
  z-index: 10;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.80);
  background: rgba(7,9,12,0.60);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 2px 8px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

/* Navigation dots below the stack */
.iss-dots {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 10;
  pointer-events: none;
}
.iss-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.30);
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}
.iss-dot.active {
  background: var(--pr-2, #7D8F5C);
  transform: scale(1.35);
}
.iss-dot:hover:not(.active) {
  background: rgba(255,255,255,0.55);
}

/* Category badge — removed (replaced by .prod-cat-badge) */

/* Image hover overlay with View Details button */
.prod-img-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,9,12,0.78) 0%, transparent 55%);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 18px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.prod-card:hover .prod-img-hover { opacity: 1; }
.prod-view-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(107,122,79,0.35);
  border: 1px solid rgba(107,122,79,0.55);
  padding: 8px 20px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translateY(8px);
  transition: transform 0.35s ease;
}
.prod-card:hover .prod-view-lbl { transform: translateY(0); }

/* Card body */
.prod-card-body {
  padding: 16px 18px 18px;
}
.prod-cat-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pr-2, #7D8F5C);
  display: block;
  margin-bottom: 5px;
}
.prod-name {
  font-family: var(--font-display,'Space Grotesk',sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--tx, #fff);
  line-height: 1.3;
  margin-bottom: 5px;
}
.prod-desc {
  font-size: 12px;
  color: var(--tx-3, #94a3b8);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  flex-wrap: wrap;
  gap: 8px;
}
.prod-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--tx, #fff);
  line-height: 1;
}
.prod-price-cur {
  font-size: 13px;
  font-weight: 500;
  color: var(--tx-3, #94a3b8);
  margin-left: 5px;
  vertical-align: middle;
}
.prod-avail {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #86efac;
  display: flex;
  align-items: center;
  gap: 5px;
}
.prod-avail::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
.prod-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.btn-add-cart,
.btn-order-now {
  font-family: var(--font-body, inherit);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 9px 7px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
.btn-add-cart {
  background: linear-gradient(
    135deg,
    rgba(5,150,105,0.20) 0%,
    rgba(4,120,87,0.28) 100%
  );
  border: 1px solid rgba(16,185,129,0.32);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 4px 16px rgba(5,150,105,0.18),
    inset 0 1px 0 rgba(255,255,255,0.07);
}
.btn-add-cart:hover {
  background: linear-gradient(
    135deg,
    rgba(16,185,129,0.26) 0%,
    rgba(5,150,105,0.32) 100%
  );
  border-color: rgba(16,185,129,0.50);
  box-shadow:
    0 8px 24px rgba(5,150,105,0.26),
    inset 0 1px 0 rgba(255,255,255,0.10);
  transform: translateY(-1px);
}
.btn-add-cart:active {
  transform: translateY(0);
  box-shadow:
    0 2px 8px rgba(5,150,105,0.16),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-add-cart.added {
  background: linear-gradient(
    135deg,
    rgba(22,163,74,0.24) 0%,
    rgba(22,101,52,0.32) 100%
  );
  border-color: rgba(34,197,94,0.40);
}
.btn-order-now {
  background: linear-gradient(135deg, var(--pr,#6B7A4F), #566440);
  border: 1px solid var(--pr-2, #7D8F5C);
  color: #fff;
  box-shadow: var(--sh-btn, 0 4px 24px rgba(107,122,79,0.42));
}
.btn-order-now:hover {
  background: linear-gradient(135deg, var(--pr-2,#7D8F5C), var(--pr,#6B7A4F));
  box-shadow: var(--sh-btn-h, 0 10px 36px rgba(107,122,79,0.62));
  transform: translateY(-2px);
}
.btn-view-images {
  font-family: var(--font-body, inherit);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--tx-3, #94a3b8);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.btn-view-images:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(107,122,79,0.36);
  color: var(--pr-2, #7D8F5C);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   IMAGE GALLERY MODAL
   ══════════════════════════════════════════ */
.img-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.30s ease;
}
.img-gallery-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.ig-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,9,12,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ig-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.img-gallery-modal.open .ig-inner {
  transform: scale(1);
}
/* Close: fixed to viewport top-right, unaffected by ig-inner transform */
.ig-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s ease, transform 0.25s ease;
}
.ig-close:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.08) rotate(90deg);
}
.ig-main {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ig-main-img-wrap {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  max-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ig-main-img-wrap img {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
}
/* Arrows: fixed to viewport center-sides, unaffected by ig-inner transform */
.ig-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.ig-arrow:hover {
  background: var(--pr, rgba(107,122,79,0.60));
  border-color: var(--pr-2, rgba(107,122,79,0.55));
  transform: translateY(-50%) scale(1.10);
}
.ig-prev { left: 20px; }
.ig-next { right: 20px; }
.ig-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.ig-thumb {
  width: 72px; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.10);
  cursor: pointer;
  padding: 0;
  background: rgba(255,255,255,0.04);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.ig-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ig-thumb.active {
  border-color: var(--pr-2, #7D8F5C);
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(107,122,79,0.38);
}
.ig-thumb:hover:not(.active) {
  border-color: rgba(107,122,79,0.42);
}
.ig-counter {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  min-height: 1em;
}
@media (max-width: 600px) {
  .img-gallery-modal { padding: 16px 54px; }
  .ig-inner { gap: 12px; }
  .ig-arrow { width: 38px; height: 38px; font-size: 15px; }
  .ig-thumb { width: 56px; height: 56px; }
  .ig-close { top: 16px; right: 16px; }
  .ig-prev { left: 8px; }
  .ig-next { right: 8px; }
}

/* ══════════════════════════════════════════
   PRODUCT MODAL
   ══════════════════════════════════════════ */
.prod-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.30s ease;
}
.prod-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.prod-modal-bd {
  position: absolute;
  inset: 0;
  background: rgba(7,9,12,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pm-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  height: 88vh;
  max-height: 88vh;
  background: var(--bg-2, #111827);
  border: 1px solid var(--bd-2, rgba(255,255,255,0.14));
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 58fr 42fr;
  box-shadow: var(--sh-xl, 0 40px 100px rgba(26,26,24,0.65));
  transform: scale(0.90);
  transition: transform 0.40s cubic-bezier(0.34,1.56,0.64,1);
}
.prod-modal.open .pm-inner {
  transform: scale(1);
}
.pm-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card-2, rgba(255,255,255,0.09));
  border: 1px solid var(--bd-2, rgba(255,255,255,0.14));
  color: var(--tx-3, #94a3b8);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.pm-close:hover {
  background: var(--bg-card-3, rgba(255,255,255,0.13));
  color: var(--tx, #fff);
  transform: rotate(90deg);
}

/* Gallery side — sticky image panel */
.pm-gallery-side {
  background: var(--bg, #0b0f14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  min-height: 0;
  height: 100%;
}

/* Gallery image prev/next nav */
.pm-img-prev,
.pm-img-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(7,9,12,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  will-change: opacity;
}
.pm-img-prev { left: 12px; }
.pm-img-next { right: 12px; }
.pm-gallery-side:hover .pm-img-prev,
.pm-gallery-side:hover .pm-img-next { opacity: 1; }
.pm-img-prev:hover,
.pm-img-next:hover {
  background: var(--pr, rgba(107,122,79,0.75));
  border-color: var(--pr-2, rgba(107,122,79,0.6));
  transform: translateY(-50%) scale(1.08);
}
.pm-main-img {
  flex: 1;
  overflow: hidden;
  min-height: 0;
  position: relative;
  contain: layout paint;
}
.pm-main-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 20px;
  box-sizing: border-box;
  transition: transform 0.55s ease;
}
.pm-main-img:hover img {
  transform: scale(1.03);
  will-change: transform;
}

.pm-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-card, rgba(255,255,255,0.06));
  overflow-x: auto;
  border-top: 1px solid var(--bd, rgba(255,255,255,0.08));
}
.pm-thumbs::-webkit-scrollbar { height: 3px; }
.pm-thumbs::-webkit-scrollbar-track { background: transparent; }
.pm-thumbs::-webkit-scrollbar-thumb { background: var(--bd-teal,rgba(107,122,79,0.32)); border-radius: 2px; }
.pm-thumb {
  width: 62px; height: 62px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.pm-thumb.active { border-color: var(--pr-2, #7D8F5C); }
.pm-thumb {
  background: var(--bg, #0b0f14);
}
.pm-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 4px;
  box-sizing: border-box;
}

/* Info side — independently scrollable details panel */
.pm-info-side {
  padding: 28px 26px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  height: 100%;
}
.pm-info-side::-webkit-scrollbar { width: 3px; }
.pm-info-side::-webkit-scrollbar-track { background: transparent; }
.pm-info-side::-webkit-scrollbar-thumb { background: var(--bd-teal); border-radius: 2px; }

/* ══════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE (product.html / product-ar.html)
   Reuses the modal's .pm-* markup/JS, rendered inline instead
   of as a fixed overlay.
   ══════════════════════════════════════════════════════════ */
.pd-page { position: relative; z-index: 1; padding: calc(var(--nav-h, 76px) + 28px) 0 40px; }

.pd-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12px; margin-bottom: 20px;
}
.pd-breadcrumb a { color: var(--tx-4, #64748b); transition: color 0.2s ease; }
.pd-breadcrumb a:hover { color: var(--pr, #8CA05B); }
.pd-bc-sep { color: var(--tx-4, #64748b); opacity: 0.5; }
.pd-bc-cat { color: var(--tx-3, #94a3b8); }
.pd-bc-current { color: var(--tx, #fff); font-weight: 600; }

.pd-not-found { text-align: center; padding: 80px 20px; }
.pd-not-found h1 { font-family: var(--font-display); font-size: 28px; margin-bottom: 12px; color: var(--tx, #fff); }
.pd-not-found p { color: var(--tx-3, #94a3b8); margin-bottom: 28px; }

.pd-rating { display: flex; }

.prod-modal.pd-inline {
  position: static;
  display: block;
  padding: 0;
  opacity: 1;
  pointer-events: auto;
  z-index: auto;
}
.prod-modal.pd-inline .prod-modal-bd,
.prod-modal.pd-inline .pm-close { display: none; }
.prod-modal.pd-inline .pm-inner {
  position: static;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  transform: none;
  box-shadow: var(--sh-lg, 0 20px 60px rgba(0,0,0,0.30));
}
.prod-modal.pd-inline .pm-gallery-side { height: auto; min-height: 460px; }
.prod-modal.pd-inline .pm-main-img { min-height: 380px; }
.prod-modal.pd-inline .pm-info-side { height: auto; overflow-y: visible; }

.pd-wishlist-btn {
  position: static;
  width: 44px; height: 44px;
  background: var(--bg-card, rgba(255,255,255,0.06));
  border: 1px solid var(--bd, rgba(255,255,255,0.10));
  color: var(--tx-3, #94a3b8);
  flex-shrink: 0;
}
.pd-wishlist-btn:hover { background: var(--bg-teal, rgba(107,122,79,0.08)); color: var(--pr, #8CA05B); }
.pd-wishlist-btn.wishlisted { color: #f43f5e; border-color: rgba(244,63,94,0.35); }
.pm-actions:has(.pd-wishlist-btn) { grid-template-columns: 44px 1fr 1fr; }

.pd-related { margin: clamp(48px, 6vw, 72px) 0 0; }

@media (max-width: 900px) {
  .prod-modal.pd-inline .pm-inner { grid-template-columns: 1fr; }
  .prod-modal.pd-inline .pm-gallery-side { min-height: 320px; }
  .pm-actions:has(.pd-wishlist-btn) { grid-template-columns: 44px 1fr 1fr; }
}
@media (max-width: 480px) {
  .pm-actions:has(.pd-wishlist-btn) { grid-template-columns: 1fr; }
  .pd-wishlist-btn { width: 100%; }
}

.pm-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pr-2,#7D8F5C); }
.pm-title {
  font-family: var(--font-display,'Space Grotesk',sans-serif);
  font-size: 22px; font-weight: 700;
  color: var(--tx,#fff); line-height: 1.2;
}
.pm-price {
  font-size: 30px; font-weight: 800;
  color: var(--tx,#fff); line-height: 1;
}
.pm-price span { font-size: 16px; font-weight: 500; color: var(--tx-3,#94a3b8); margin-left: 6px; }
.pm-desc { font-size: 13px; color: var(--tx-3,#94a3b8); line-height: 1.75; }

.pm-specs {
  border: 1px solid var(--bd, rgba(255,255,255,0.08));
  border-radius: 10px;
  overflow: hidden;
}
.pm-spec-row {
  display: flex;
  font-size: 13px;
  border-bottom: 1px solid var(--bd, rgba(255,255,255,0.08));
}
.pm-spec-row:last-child { border-bottom: none; }
.pm-spec-key {
  width: 44%;
  padding: 9px 13px;
  background: var(--bg-card, rgba(255,255,255,0.06));
  color: var(--tx-3, #94a3b8);
  font-weight: 500;
  flex-shrink: 0;
}
.pm-spec-val {
  flex: 1;
  padding: 9px 13px;
  color: var(--tx, #fff);
}

/* Quantity row */
.pm-qty-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.pm-qty-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--tx-3,#94a3b8);
}
.pm-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--bd-2, rgba(255,255,255,0.14));
  border-radius: 10px;
  overflow: hidden;
}
.pm-qty-btn {
  width: 36px; height: 36px;
  background: var(--bg-card-2, rgba(255,255,255,0.09));
  border: none;
  color: var(--tx, #fff);
  font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.pm-qty-btn:hover { background: var(--bg-teal-2); color: var(--pr-2); }
.pm-qty-num {
  min-width: 50px; text-align: center;
  font-size: 15px; font-weight: 700;
  color: var(--tx,#fff);
  background: var(--bg, #0b0f14);
  line-height: 36px;
  padding: 0 6px;
}
.pm-total {
  font-size: 14px;
  color: var(--tx-3,#94a3b8);
}
.pm-total strong { color: var(--pr-2,#7D8F5C); }

.pm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Card category badge ────────────────── */
.prod-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #C8860A;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 10;
  pointer-events: none;
}
[dir="rtl"] .prod-cat-badge { left: auto; right: 12px; }

/* ── Card warranty badge ────────────────── */
.prod-warranty-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86efac;
  white-space: nowrap;
}
.prod-warranty-badge svg { flex-shrink: 0; stroke: #22c55e; }

/* ── Quality badge (NEW, BEST SELLER, FEATURED …) ── */
.prod-q-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  z-index: 11;
  pointer-events: none;
  white-space: nowrap;
  color: #fff;
  background: #6b21a8;
}
[dir="rtl"] .prod-q-badge { right: auto; left: 12px; }
.prod-q-badge--best-seller  { background: #b45309; }
.prod-q-badge--new          { background: #15803d; }
.prod-q-badge--featured     { background: #475569; }
.prod-q-badge--sale         { background: var(--terracotta, #D98A67); }
.prod-q-badge--limited      { background: #9333ea; }
.prod-q-badge--custom       { background: #475569; }

/* ── Quick actions overlay ────────────────── */
.prod-qa {
  position: absolute;
  top: 52px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 12;
}
[dir="rtl"] .prod-qa { right: auto; left: 12px; }
.pqa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(5, 8, 12, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.82);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s, opacity 0.22s ease;
  flex-shrink: 0;
}
.pqa-btn:hover  { background: var(--pr, #8CA05B); color: #fff; transform: scale(1.1); }
.pqa-btn.wishlisted { color: #f43f5e; }
.pqa-btn.wishlisted:hover { background: #f43f5e; color: #fff; }
.pqa-btn svg    { display: block; pointer-events: none; }

/* Wishlist stays always visible (luxury e-commerce convention);
   quick-view and share only reveal on hover/focus. */
.pqa-btn.btn-quickview,
.pqa-btn.btn-share {
  opacity: 0;
  pointer-events: none;
}
.prod-card:hover .pqa-btn.btn-quickview,
.prod-card:hover .pqa-btn.btn-share,
.prod-card:focus-within .pqa-btn.btn-quickview,
.prod-card:focus-within .pqa-btn.btn-share {
  opacity: 1;
  pointer-events: auto;
}

/* ── Name row (name + stock side by side) ─── */
.prod-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

/* ── Stock status ────────────────────────── */
.prod-stock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}
.ps-instock { color: #22c55e; }
.ps-instock svg { stroke: #22c55e; }
.ps-order   { color: #f59e0b; }

/* ── Star rating ─────────────────────────── */
.prod-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}
.prod-stars { display: flex; gap: 1px; line-height: 1; }
.star { font-size: 13px; line-height: 1; }
.star-full  { color: #f59e0b; }
.star-half  { color: #f59e0b; opacity: 0.6; }
.star-empty { color: rgba(255,255,255,0.18); }
.prod-review-count {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

/* ── Old / strike-through price ──────────── */
.prod-old-price {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  text-decoration: line-through;
  margin-left: 6px;
}
[dir="rtl"] .prod-old-price { margin-left: 0; margin-right: 6px; }

/* ── Share toast ─────────────────────────── */
.pf-share-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(5,8,12,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  z-index: 9999;
  white-space: nowrap;
}
.pf-share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Page header (replaces hero) ─────────── */
.ps-breadcrumb {
  padding: var(--nav-h, 76px) 0 0;
  background: transparent;
}
.ps-bc-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.ps-bc-item { display: flex; align-items: center; }
.ps-bc-link {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.18s;
}
.ps-bc-link:hover { color: var(--pr, #8CA05B); }
.ps-bc-sep {
  font-size: 13px;
  color: rgba(255,255,255,0.22);
  padding: 0 8px;
}
.ps-bc-current {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.prod-section-header {
  margin-top: clamp(12px, 1.8vw, 28px);
  margin-bottom: clamp(22px, 2.8vw, 46px);
  padding: clamp(16px, 2.2vw, 30px) 0 clamp(10px, 1.2vw, 16px);
}
.ps-page-title {
  font-size: clamp(2.8rem, 6.5vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(7,9,12,0.50);
  min-height: 1.1em; /* reserve one line during typewriter clear */
}
.ps-page-title .accent { color: var(--pr, #8CA05B); }

/* ── Typewriter cursor ─────────────────────────────────────────── */
.ps-page-title.ps-typing::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.82em;
  background: var(--pr, #8CA05B);
  margin-left: 5px;
  vertical-align: middle;
  border-radius: 2px;
  animation: psCursorBlink 0.65s steps(1, end) infinite;
}
[dir="rtl"] .ps-page-title.ps-typing::after {
  margin-left: 0;
  margin-right: 5px;
}
@keyframes psCursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
:is(html.light, body.light) .ps-page-title.ps-typing::after {
  background: #6B7A4F;
}
.ps-page-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  margin: 0 auto;
  max-width: 560px;
  line-height: 1.6;
}

/* ── Light mode overrides ─────────────────── */
/* OS-preference query — kept for non-heading UI elements only */
@media (prefers-color-scheme: light) {
  .pqa-btn { background: rgba(255,255,255,0.85); color: rgba(26,26,24,0.6); }
  .pqa-btn:hover { background: var(--pr, #8CA05B); color: #fff; }
  .star-empty { color: rgba(26,26,24,0.15); }
  .prod-review-count { color: rgba(26,26,24,0.4); }
  .prod-old-price { color: rgba(26,26,24,0.35); }
  .ps-bc-link { color: rgba(26,26,24,0.45); }
  .ps-bc-sep  { color: rgba(26,26,24,0.2); }
  .ps-bc-current { color: rgba(26,26,24,0.65); }
  .pf-share-toast { background: rgba(255,255,255,0.95); color: #1e293b; border-color: rgba(26,26,24,0.1); }
}

/* Heading colours are controlled by the site's JS theme class, NOT the OS
   media query, so they are always pure white in dark mode regardless of the
   system preference, and switch to dark only when the user explicitly enables
   Light Mode (which adds the .light class via theme-switcher.js). */
:is(html.light, body.light) .ps-page-title {
  color: #0f172a;
  text-shadow: 0 2px 20px rgba(247,245,241,0.50);
}
:is(html.light, body.light) .ps-page-sub {
  color: rgba(26,26,24,0.72);
}

/* ── Split hero (text + featured product image) ──────────── */
.ps-hero {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  text-align: left;
}
[dir="rtl"] .ps-hero { text-align: right; }
.ps-hero-text { flex: 1 1 52%; min-width: 0; }
.ps-hero-text .ps-page-sub { margin: 0; }
.ps-hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.ps-hero-media {
  position: relative;
  flex: 1 1 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.ps-hero-media-glow {
  position: absolute;
  inset: 6%;
  background: radial-gradient(circle, rgba(140,160,91,0.28) 0%, transparent 68%);
  filter: blur(30px);
  z-index: 0;
}
.ps-hero-media img {
  position: relative;
  z-index: 1;
  max-width: 78%;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.35));
}
.ps-hero-chip {
  position: absolute;
  bottom: 6%;
  right: 4%;
  z-index: 2;
  animation-duration: 11s;
}
[dir="rtl"] .ps-hero-chip { right: auto; left: 4%; }

@media (max-width: 900px) {
  .ps-hero { flex-direction: column; text-align: center; }
  [dir="rtl"] .ps-hero { text-align: center; }
  .ps-hero-text { flex: 1 1 auto; }
  .ps-hero-cta { justify-content: center; }
  .ps-hero-media { flex: 1 1 auto; width: 100%; }
  .ps-hero-chip { right: 6%; }
  [dir="rtl"] .ps-hero-chip { left: 6%; }
}

/* ── New Arrivals strip ──────────────────────────────────── */
.new-arrival { margin-bottom: clamp(32px, 4vw, 56px); }
.new-arrival-head { margin-bottom: 20px; }
.new-arrival-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  color: var(--tx, #fff);
  margin: 4px 0 0;
}
.new-arrival-title .accent { color: var(--pr, #8CA05B); }
.new-arrival-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}
.new-arrival-track::-webkit-scrollbar { height: 5px; }
.new-arrival-track::-webkit-scrollbar-thumb { background: var(--bd-teal, rgba(107,122,79,0.32)); border-radius: 4px; }
.new-arrival-track .prod-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

/* ── Featured Collection Banner ──────────────────────────── */
.featured-banner {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 7vw, 100px) 0;
}
.featured-banner-inner {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
.featured-banner-media {
  flex: 1 1 44%;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--sh-lg, 0 20px 60px rgba(0,0,0,0.30));
}
.featured-banner-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-banner-body { flex: 1 1 48%; }
.featured-banner-body .section-title { margin-bottom: 18px; }
.featured-banner-body .section-body { margin-bottom: 28px; }
@media (max-width: 860px) {
  .featured-banner-inner { flex-direction: column; text-align: center; }
  .featured-banner-media { width: 100%; }
}

/* ── Newsletter ───────────────────────────────────────────── */
.newsletter {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--bg-2, #1B1B14);
  border-top: 1px solid var(--bd, rgba(255,255,255,0.08));
  border-bottom: 1px solid var(--bd, rgba(255,255,255,0.08));
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-copy { flex: 1 1 380px; }
.newsletter-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--tx, #fff);
  margin: 0 0 8px;
}
.newsletter-title .accent { color: var(--pr, #8CA05B); }
.newsletter-sub { font-size: 14px; color: var(--tx-3, rgba(255,255,255,0.65)); max-width: 480px; margin: 0; }
.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1 1 380px;
  max-width: 460px;
}
.newsletter-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--bd, rgba(255,255,255,0.14));
  background: var(--bg-card, rgba(255,255,255,0.06));
  color: var(--tx, #fff);
  font-family: inherit;
  font-size: 14px;
}
.newsletter-input::placeholder { color: var(--tx-4, rgba(255,255,255,0.4)); }
.newsletter-input:focus { outline: none; border-color: var(--bd-teal, rgba(107,122,79,0.45)); }
.newsletter-submit { height: 48px; white-space: nowrap; }
@media (max-width: 640px) {
  .newsletter-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .newsletter-form { max-width: none; }
}

/* ── View Details card button ───────────── */
.btn-view-details {
  font-family: var(--font-body, inherit);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 9px 7px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  grid-column: 1 / -1;
  background: var(--bg-teal, rgba(107,122,79,0.08));
  border: 1px solid var(--bd-teal, rgba(107,122,79,0.32));
  color: var(--pr-2, #7D8F5C);
}
.btn-view-details:hover {
  background: var(--bg-teal-2, rgba(107,122,79,0.14));
  border-color: var(--bd-teal-2, rgba(107,122,79,0.58));
  color: #fff;
  box-shadow: var(--gw-xs, 0 0 12px rgba(107,122,79,0.28));
  transform: translateY(-1px);
}

/* ── Modal header layout ────────────────── */
.pm-header { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.pm-price-row-modal {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pm-warranty-badge-modal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86efac;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.28);
  padding: 3px 10px;
  border-radius: 999px;
}
.pm-warranty-badge-modal::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  flex-shrink: 0;
}

/* ── Modal sections ─────────────────────── */
.pm-section { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.pm-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pr-2, #7D8F5C);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bd, rgba(255,255,255,0.08));
}
.pm-two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ── Features list ──────────────────────── */
.pm-features {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pm-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--tx-3, #94a3b8);
  line-height: 1.5;
}
.pm-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--pr-2, #7D8F5C);
}

/* ── Tag chips (applications, finishes, sizes) */
.pm-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pm-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-card, rgba(255,255,255,0.06));
  border: 1px solid var(--bd, rgba(255,255,255,0.10));
  color: var(--tx-3, #94a3b8);
}
.pm-tag-size {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  background: rgba(107,122,79,0.07);
  border-color: rgba(107,122,79,0.22);
  color: var(--pr-2, #7D8F5C);
}

/* ── Secondary CTA row ──────────────────── */
.pm-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex-shrink: 0;
}
.pm-btn-wa,
.pm-btn-quote {
  font-family: var(--font-body, inherit);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: opacity 0.28s ease, transform 0.28s ease;
  text-decoration: none;
  white-space: nowrap;
}
.pm-btn-wa {
  background: rgba(37,211,102,0.10);
  border: 1px solid rgba(37,211,102,0.30);
  color: #4ade80;
}
.pm-btn-wa:hover {
  background: rgba(37,211,102,0.18);
  border-color: rgba(37,211,102,0.55);
  color: #86efac;
  box-shadow: 0 0 16px rgba(37,211,102,0.20);
  transform: translateY(-1px);
}
.pm-btn-quote {
  background: var(--bg-card, rgba(255,255,255,0.06));
  border: 1px solid var(--bd-teal, rgba(107,122,79,0.30));
  color: var(--pr-2, #7D8F5C);
}
.pm-btn-quote:hover {
  background: rgba(107,122,79,0.12);
  border-color: rgba(107,122,79,0.55);
  color: #fff;
  box-shadow: 0 0 14px rgba(107,122,79,0.22);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   CART FAB (Floating Action Button)
   ══════════════════════════════════════════ */
.cart-fab {
  position: fixed;
  top: calc(var(--nav-h,72px) + 18px);
  right: 26px;
  z-index: 500;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pr,#6B7A4F), #566440);
  border: 1px solid var(--pr-2,#7D8F5C);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--sh-btn, 0 4px 24px rgba(107,122,79,0.42));
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  font-family: inherit;
}
.cart-fab:hover {
  transform: scale(1.12);
  box-shadow: var(--sh-btn-h, 0 10px 36px rgba(107,122,79,0.62));
}
.cart-fab svg {
  width: 22px; height: 22px;
  stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.cart-fab-badge {
  position: absolute;
  top: -5px; right: -5px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg,#0b0f14);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.35s cubic-bezier(0.34,1.56,0.64,1), transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.cart-fab-badge.show {
  opacity: 1;
  transform: scale(1);
}
.cart-fab-badge.bump {
  animation: fabBump 0.42s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes fabBump {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.65); }
}

/* ══════════════════════════════════════════
   CART DRAWER
   ══════════════════════════════════════════ */
.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(7,9,12,0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 700;
  width: 390px;
  max-width: 100vw;
  background: var(--bg-2, #111827);
  border-left: 1px solid var(--bd-2, rgba(255,255,255,0.14));
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.40s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--sh-xl, 0 40px 100px rgba(26,26,24,0.65));
}
.cart-drawer.open { transform: translateX(0); }

.cart-dr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--bd, rgba(255,255,255,0.08));
  flex-shrink: 0;
}
.cart-dr-title {
  font-family: var(--font-display,'Space Grotesk',sans-serif);
  font-size: 18px; font-weight: 700;
  color: var(--tx, #fff);
}
.cart-dr-count { font-size: 12px; color: var(--tx-4,#64748b); margin-top: 3px; }
.cart-dr-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-card-2, rgba(255,255,255,0.09));
  border: 1px solid var(--bd, rgba(255,255,255,0.08));
  color: var(--tx-3,#94a3b8); font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: inherit;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.cart-dr-close:hover { background: var(--bg-card-3); color: var(--tx); transform: rotate(90deg); }

.cart-dr-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-dr-items::-webkit-scrollbar { width: 3px; }
.cart-dr-items::-webkit-scrollbar-thumb { background: var(--bd-teal); border-radius: 2px; }

.cart-empty-msg {
  text-align: center;
  padding: 64px 20px;
  color: var(--tx-4, #64748b);
}
.cart-empty-ico { font-size: 44px; margin-bottom: 14px; opacity: 0.35; display: block; }
.cart-empty-txt { font-size: 15px; color: var(--tx-3,#94a3b8); }

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: var(--bg-card, rgba(255,255,255,0.06));
  border: 1px solid var(--bd, rgba(255,255,255,0.08));
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.cart-item:hover { border-color: var(--bd-2); background: var(--bg-card-2); }
.cart-item-img {
  width: 70px; height: 70px;
  border-radius: 8px;
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-info { min-width: 0; }
.cart-item-name {
  font-size: 13px; font-weight: 600;
  color: var(--tx,#fff); margin-bottom: 4px;
  word-break: break-word;
  line-height: 1.35;
}
.cart-item-unit-price {
  font-size: 14px; font-weight: 700;
  color: var(--pr-2,#7D8F5C); margin-bottom: 8px;
}
.ci-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--bd, rgba(255,255,255,0.08));
  border-radius: 7px;
  overflow: hidden;
  width: fit-content;
}
.ci-qty-btn {
  width: 28px; height: 28px;
  background: var(--bg-card-2);
  border: none; cursor: pointer;
  color: var(--tx,#fff); font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.ci-qty-btn:hover { background: var(--bg-teal); color: var(--pr-2); }
.ci-qty-val {
  min-width: 32px; text-align: center;
  font-size: 13px; font-weight: 700;
  color: var(--tx,#fff);
  background: var(--bg,#0b0f14);
  line-height: 28px; padding: 0 4px;
}
.cart-item-remove {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--tx-3,#94a3b8); font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: inherit;
  margin-top: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}
.cart-item-remove:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.50);
  color: #ef4444;
  box-shadow: 0 0 10px rgba(239,68,68,0.20);
}

.cart-dr-footer {
  flex-shrink: 0;
  padding: 14px 18px 20px;
  border-top: 1px solid var(--bd, rgba(255,255,255,0.08));
}
.cart-total-rows { margin-bottom: 14px; }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  color: var(--tx-3,#94a3b8);
}
.cart-total-row.grand {
  border-top: 1px solid var(--bd);
  margin-top: 7px; padding-top: 10px;
  font-size: 17px; font-weight: 700;
  color: var(--tx,#fff);
}
.cart-total-row.grand span:last-child { color: var(--pr-2,#7D8F5C); }
.cart-proceed-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pr,#6B7A4F), #566440);
  border: 1px solid var(--pr-2,#7D8F5C);
  color: #fff;
  font-family: var(--font-body,inherit);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--sh-btn);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.cart-proceed-btn:hover {
  background: linear-gradient(135deg, var(--pr-2,#7D8F5C), var(--pr,#6B7A4F));
  box-shadow: var(--sh-btn-h);
  transform: translateY(-2px);
}
.cart-proceed-btn:disabled {
  opacity: 0.4; cursor: not-allowed; transform: none;
}

/* ══════════════════════════════════════════
   ORDER MODAL
   ══════════════════════════════════════════ */
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 2.5vmin, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.30s ease;
  overflow: hidden;
}
.order-modal.open { opacity: 1; pointer-events: auto; }
.order-modal-bd {
  position: absolute;
  inset: 0;
  background: rgba(7,9,12,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.om-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(530px, 100%);
  max-height: min(92vh, calc(100vh - 2 * clamp(8px, 2.5vmin, 20px)));
  max-height: min(92svh, calc(100svh - 2 * clamp(8px, 2.5vmin, 20px)));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background: var(--bg-2,#111827);
  border: 1px solid var(--bd-2, rgba(255,255,255,0.14));
  border-radius: clamp(14px, 2vmin, 22px);
  padding: clamp(16px, 3.5vh, 32px) clamp(16px, 3.5vw, 28px);
  box-shadow: var(--sh-xl);
  transform: scale(0.90) translateY(24px);
  transition: transform 0.42s cubic-bezier(0.34,1.56,0.64,1);
}
.om-inner::-webkit-scrollbar { width: 3px; }
.om-inner::-webkit-scrollbar-thumb { background: var(--bd-teal); border-radius: 2px; }
.order-modal.open .om-inner { transform: scale(1) translateY(0); }

.om-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-2, #111827);
}
.om-hd-text .om-title {
  font-family: var(--font-display,'Space Grotesk',sans-serif);
  font-size: 21px; font-weight: 700;
  color: var(--tx,#fff);
}
.om-hd-text .om-sub { font-size: 13px; color: var(--tx-3,#94a3b8); margin-top: 4px; }
.om-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-card-2); border: 1px solid var(--bd);
  color: var(--tx-3); font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: inherit; flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.om-close:hover { background: var(--bg-card-3); color: var(--tx); transform: rotate(90deg); }

.om-product-preview {
  display: flex; gap: 14px; align-items: center;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--bd);
  border-radius: 12px;
  margin-bottom: 22px;
}
.om-product-preview img {
  width: 66px; height: 66px;
  border-radius: 8px;
  object-fit: cover; display: block;
  flex-shrink: 0;
}
.om-pp-name { font-size: 14px; font-weight: 600; color: var(--tx,#fff); margin-bottom: 4px; }
.om-pp-price { font-size: 16px; font-weight: 800; color: var(--pr-2,#7D8F5C); }
.om-pp-note { font-size: 11px; color: var(--tx-4,#64748b); margin-top: 3px; }

.om-form { display: flex; flex-direction: column; gap: 14px; }
.om-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.om-field { display: flex; flex-direction: column; gap: 6px; }
.om-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--tx-3,#94a3b8);
}
.om-input, .om-textarea {
  padding: 11px 14px;
  background: var(--fm-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--fm-bd, rgba(255,255,255,0.09));
  border-radius: 10px;
  color: var(--tx,#fff);
  font-size: 14px; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.om-input:focus, .om-textarea:focus {
  outline: none;
  border-color: var(--bd-teal, rgba(107,122,79,0.32));
  box-shadow: 0 0 0 3px var(--bg-teal, rgba(107,122,79,0.08));
}
.om-input::placeholder, .om-textarea::placeholder { color: var(--fm-ph,#374151); }
.om-textarea { min-height: 80px; resize: vertical; }

.om-qty-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.om-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--bd-2);
  border-radius: 10px;
  overflow: hidden;
}
.om-qty-btn {
  width: 38px; height: 38px;
  background: var(--bg-card-2);
  border: none; cursor: pointer;
  color: var(--tx,#fff); font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.om-qty-btn:hover { background: var(--bg-teal-2); color: var(--pr-2); }
.om-qty-val {
  min-width: 50px; text-align: center;
  font-size: 16px; font-weight: 700;
  color: var(--tx,#fff);
  background: var(--bg,#0b0f14);
  line-height: 38px; padding: 0 8px;
}

.om-total-line {
  font-size: 16px; font-weight: 700;
  color: var(--tx,#fff);
  padding: 10px 14px;
  background: var(--bg-teal, rgba(107,122,79,0.08));
  border: 1px solid var(--bd-teal);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.om-total-line span:last-child { color: var(--pr-2,#7D8F5C); }

.om-price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
}
.om-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 2px;
  font-size: 13px;
  color: var(--tx-3,#94a3b8);
  border-bottom: 1px solid var(--bd-2);
}
.om-breakdown-row span:last-child {
  font-weight: 600;
  color: var(--tx-2,#cbd5e1);
}
.om-price-breakdown .om-total-line {
  margin-top: 10px;
}

.om-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
  position: sticky;
  bottom: 0;
  z-index: 1;
  background: var(--bg-2, #111827);
  padding-top: 10px;
}
.om-wa-btn {
  padding: 13px 10px;
  border-radius: 10px;
  background: #25d366;
  border: 1px solid #1ab954;
  color: #fff;
  font-family: var(--font-body,inherit);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.om-wa-btn:hover {
  background: #1ab954;
  box-shadow: 0 6px 26px rgba(37,211,102,0.38);
  transform: translateY(-2px);
}
.om-em-btn {
  padding: 13px 10px;
  border-radius: 10px;
  background: var(--bg-teal, rgba(107,122,79,0.08));
  border: 1px solid var(--bd-teal);
  color: var(--pr-2,#7D8F5C);
  font-family: var(--font-body,inherit);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.om-em-btn:hover {
  background: var(--bg-teal-2);
  border-color: var(--bd-teal-2);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Submit Order button (backend-connected) ── */
.om-actions { grid-template-columns: 1fr; }
.om-submit-btn {
  width: 100%;
  padding: 15px 16px;
  border-radius: 10px;
  background: linear-gradient(100deg, #8CA05B, #6B7A4F);
  border: 1px solid #7D8F5C;
  color: #fff;
  font-family: var(--font-body, inherit);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 9px;
  transition: box-shadow 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
}
.om-submit-btn:hover {
  box-shadow: 0 8px 28px rgba(140, 160, 91, 0.40);
  transform: translateY(-2px);
}
.om-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.om-submit-btn.is-loading svg { display: none; }

/* ── Order status message ── */
.om-status {
  display: none;
  margin: 4px 0 2px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}
.om-status-info {
  display: block;
  background: rgba(140, 160, 91, 0.10);
  border: 1px solid rgba(140, 160, 91, 0.30);
  color: #67e8f9;
}
.om-status-success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #4ade80;
}
.om-status-error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.40);
  color: #f87171;
}
:is(html.light, body.light) .om-status-info    { color: #475569; }
:is(html.light, body.light) .om-status-success { color: #15803d; }
:is(html.light, body.light) .om-status-error   { color: #b91c1c; }

/* ══════════════════════════════════════════
   LIGHT THEME OVERRIDES — PREMIUM GLASS v2
   ══════════════════════════════════════════ */
:is(html.light,body.light) .ph-slide-overlay {
  background: linear-gradient(135deg, rgba(26,26,24,0.68) 0%, rgba(26,26,24,0.42) 50%, rgba(26,26,24,0.58) 100%);
}

/* Products section background */
:is(html.light,body.light) #products { background: #ECEFF3; }

/* Premium glass product cards */
:is(html.light,body.light) .prod-card {
  background: linear-gradient(148deg,
    rgba(255,255,255,0.65) 0%,
    rgba(251,252,253,0.52) 100%
  );
  border: 1px solid rgba(255,255,255,0.60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(196,210,228,0.52),
    0 2px 4px rgba(15,23,42,0.04),
    0 10px 28px rgba(15,23,42,0.08);
}
:is(html.light,body.light) .prod-card:hover {
  background: linear-gradient(148deg,
    rgba(255,255,255,0.88) 0%,
    rgba(251,252,253,0.76) 100%
  );
  border-color: rgba(107,122,79,0.28);
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(107,122,79,0.18),
    0 8px 16px rgba(15,23,42,0.06),
    0 26px 60px rgba(15,23,42,0.12),
    0 0 44px rgba(107,122,79,0.12);
}
:is(html.light,body.light) .prod-img-hover {
  background: linear-gradient(to top, rgba(15,23,42,0.65) 0%, transparent 55%);
}
:is(html.light,body.light) .prod-name  { color: #0F172A; }
:is(html.light,body.light) .prod-desc  { color: #64748B; }
:is(html.light,body.light) .prod-price { color: #0F172A; }
:is(html.light,body.light) .prod-price-cur { color: #94A3B8; }
:is(html.light,body.light) .btn-add-cart {
  background: linear-gradient(
    135deg,
    rgba(5,150,105,0.14) 0%,
    rgba(4,120,87,0.20) 100%
  );
  border-color: rgba(5,150,105,0.30);
  color: #065f46;
  box-shadow: 0 3px 12px rgba(5,150,105,0.14), inset 0 1px 0 rgba(255,255,255,0.60);
}
:is(html.light,body.light) .btn-add-cart:hover {
  background: linear-gradient(
    135deg,
    rgba(16,185,129,0.20) 0%,
    rgba(5,150,105,0.26) 100%
  );
  border-color: rgba(5,150,105,0.48);
  box-shadow: 0 6px 20px rgba(5,150,105,0.20), inset 0 1px 0 rgba(255,255,255,0.60);
}
:is(html.light,body.light) .btn-order-now {
  box-shadow: 0 2px 8px rgba(107,122,79,0.22), 0 6px 20px rgba(107,122,79,0.18);
}
:is(html.light,body.light) .btn-order-now:hover {
  box-shadow: 0 4px 12px rgba(107,122,79,0.30), 0 12px 32px rgba(107,122,79,0.24);
}
:is(html.light,body.light) .prod-card-img {
  background: rgba(15,23,42,0.03);
}
:is(html.light,body.light) .prod-card-no-img {
  color: rgba(100,116,139,0.6);
}
:is(html.light,body.light) .iss-card {
  box-shadow: 0 6px 22px rgba(15,23,42,0.18), 0 2px 6px rgba(15,23,42,0.10);
}
:is(html.light,body.light) .iss-card[data-pos="left"]:hover,
:is(html.light,body.light) .iss-card[data-pos="right"]:hover {
  box-shadow: 0 10px 32px rgba(15,23,42,0.22), 0 2px 6px rgba(15,23,42,0.12);
}
:is(html.light,body.light) .iss-card:focus-visible {
  box-shadow: 0 0 0 3px #6B7A4F, 0 6px 22px rgba(15,23,42,0.18);
}
:is(html.light,body.light) .iss-counter {
  color: rgba(15,23,42,0.75);
  background: rgba(255,255,255,0.72);
  border-color: rgba(15,23,42,0.14);
}
:is(html.light,body.light) .iss-dot {
  background: rgba(15,23,42,0.22);
}
:is(html.light,body.light) .iss-dot.active {
  background: var(--pr, #6B7A4F);
}
:is(html.light,body.light) .iss-dot:hover:not(.active) {
  background: rgba(15,23,42,0.40);
}

:is(html.light,body.light) .btn-view-details {
  background: rgba(107,122,79,0.07);
  border-color: rgba(107,122,79,0.24);
  color: #6B7A4F;
}
:is(html.light,body.light) .btn-view-details:hover {
  background: rgba(107,122,79,0.14);
  border-color: rgba(107,122,79,0.40);
  color: #006478;
}
:is(html.light,body.light) .pm-section-title {
  color: #6B7A4F;
  border-color: rgba(15,23,42,0.10);
}
:is(html.light,body.light) .pm-features li { color: #475569; }
:is(html.light,body.light) .pm-features li svg { stroke: #6B7A4F; }
:is(html.light,body.light) .pm-tag {
  background: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.12);
  color: #475569;
}
:is(html.light,body.light) .pm-tag-size {
  background: rgba(107,122,79,0.06);
  border-color: rgba(107,122,79,0.20);
  color: #6B7A4F;
}
:is(html.light,body.light) .pm-btn-quote {
  background: rgba(107,122,79,0.05);
  border-color: rgba(107,122,79,0.24);
  color: #6B7A4F;
}
:is(html.light,body.light) .pm-btn-quote:hover {
  background: rgba(107,122,79,0.12);
  color: #006478;
}
:is(html.light,body.light) .pm-warranty-badge-modal {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.22);
  color: #16a34a;
}
:is(html.light,body.light) .pm-warranty-badge-modal::before {
  background: #22c55e;
  box-shadow: 0 0 4px rgba(34,197,94,0.40);
}
:is(html.light,body.light) .btn-view-images {
  background: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.10);
  color: #64748B;
}
:is(html.light,body.light) .btn-view-images:hover {
  background: rgba(107,122,79,0.07);
  border-color: rgba(107,122,79,0.28);
  color: #6B7A4F;
}
:is(html.light,body.light) .ig-backdrop {
  background: rgba(15,23,42,0.78);
}
:is(html.light,body.light) .ig-main-img-wrap {
  background: #fff;
  border-color: rgba(196,210,228,0.55);
}
:is(html.light,body.light) .ig-arrow {
  background: rgba(255,255,255,0.90);
  border-color: rgba(196,210,228,0.75);
  color: #0F172A;
}
:is(html.light,body.light) .ig-arrow:hover {
  background: #6B7A4F;
  border-color: #6B7A4F;
  color: #fff;
}
:is(html.light,body.light) .ig-close {
  background: rgba(255,255,255,0.90);
  border-color: rgba(196,210,228,0.75);
  color: #0F172A;
}
:is(html.light,body.light) .ig-close:hover {
  background: rgba(255,255,255,1);
}
:is(html.light,body.light) .ig-thumb {
  background: rgba(255,255,255,0.70);
  border-color: rgba(196,210,228,0.55);
}
:is(html.light,body.light) .ig-thumb.active {
  border-color: #6B7A4F;
}
:is(html.light,body.light) .ig-counter {
  color: rgba(15,23,42,0.50);
}

/* ══════════════════════════════════════════
   CART TOAST
   ══════════════════════════════════════════ */
.cart-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9900;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 256px;
  max-width: 340px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(9,17,28,0.97);
  border: 1px solid rgba(107,122,79,0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(26,26,24,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
  transform: translateY(110%) scale(0.97);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1), opacity 0.28s ease;
  pointer-events: none;
}
.cart-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
[dir="rtl"] .cart-toast {
  right: auto;
  left: 28px;
}
.cart-toast-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86efac;
}
.cart-toast-body {
  flex: 1;
  min-width: 0;
}
.cart-toast-title {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #86efac;
  line-height: 1;
}
.cart-toast-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--tx, #e2e8f0);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
.cart-toast-view {
  flex-shrink: 0;
  font-family: var(--font-body, inherit);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pr-2, #7D8F5C);
  background: rgba(107,122,79,0.10);
  border: 1px solid rgba(107,122,79,0.28);
  border-radius: 7px;
  padding: 5px 9px;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}
.cart-toast-view:hover {
  background: rgba(107,122,79,0.20);
  border-color: rgba(107,122,79,0.52);
}
.cart-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--tx-3, #94a3b8);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.cart-toast-close:hover { opacity: 1; }
:is(html.light,body.light) .cart-toast {
  background: rgba(255,255,255,0.97);
  border-color: rgba(107,122,79,0.22);
  box-shadow: 0 8px 32px rgba(15,23,42,0.14);
}
:is(html.light,body.light) .cart-toast-name { color: #0f172a; }
:is(html.light,body.light) .cart-toast-close { color: #64748b; }
:is(html.light,body.light) .prod-loadmore {
  background: rgba(255,255,255,0.55);
  border-color: rgba(107,122,79,0.24);
  color: #6B7A4F;
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 1px rgba(196,210,228,0.45),
    0 2px 8px rgba(107,122,79,0.10);
}
:is(html.light,body.light) .prod-loadmore:hover {
  background: rgba(107,122,79,0.07);
  border-color: rgba(107,122,79,0.38);
  box-shadow:
    0 0 0 1px rgba(107,122,79,0.18),
    0 4px 16px rgba(107,122,79,0.18);
}

/* Product modal */
:is(html.light,body.light) .prod-modal-bd {
  background: rgba(15,23,42,0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
:is(html.light,body.light) .pm-inner {
  background: #FBFCFD;
  border-color: rgba(196,210,228,0.72);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.60),
    0 24px 80px rgba(15,23,42,0.18);
}
:is(html.light,body.light) .pm-gallery-side { background: #ECEFF3; }
:is(html.light,body.light) .pm-thumb { background: #ECEFF3; }
:is(html.light,body.light) .pm-img-prev,
:is(html.light,body.light) .pm-img-next {
  background: rgba(255,255,255,0.80);
  border-color: rgba(196,210,228,0.75);
  color: #0F172A;
}
:is(html.light,body.light) .pm-img-prev:hover,
:is(html.light,body.light) .pm-img-next:hover {
  background: #6B7A4F;
  border-color: #6B7A4F;
  color: #fff;
}
:is(html.light,body.light) .pm-thumbs {
  background: rgba(236,239,243,0.70);
  border-top-color: rgba(196,210,228,0.60);
}
:is(html.light,body.light) .pm-close {
  background: rgba(247,245,241,0.86);
  border-color: rgba(196,210,228,0.72);
  color: #64748B;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}
:is(html.light,body.light) .pm-close:hover {
  background: rgba(255,255,255,0.96);
  border-color: rgba(175,196,220,0.85);
  color: #0F172A;
  box-shadow: 0 4px 12px rgba(15,23,42,0.08);
  transform: scale(1.05) rotate(90deg);
}
:is(html.light,body.light) .pm-spec-key {
  background: rgba(236,239,243,0.65);
  color: #64748B;
}
:is(html.light,body.light) .pm-specs { border-color: rgba(196,210,228,0.55); }
:is(html.light,body.light) .pm-spec-row { border-color: rgba(196,210,228,0.45); }

/* Cart drawer */
:is(html.light,body.light) .cart-drawer {
  background: #FBFCFD;
  border-color: rgba(196,210,228,0.75);
  box-shadow:
    0 0 0 1px rgba(196,210,228,0.50),
    0 16px 60px rgba(15,23,42,0.13);
}
:is(html.light,body.light) .cart-dr-header,
:is(html.light,body.light) .cart-dr-footer {
  border-color: rgba(196,210,228,0.55);
}
:is(html.light,body.light) .cart-item {
  background: rgba(247,245,241,0.65);
  border-color: rgba(196,210,228,0.55);
}
:is(html.light,body.light) .cart-item:hover {
  background: rgba(255,255,255,0.80);
  border-color: rgba(175,196,220,0.70);
}
:is(html.light,body.light) .ci-qty-val,
:is(html.light,body.light) .pm-qty-num,
:is(html.light,body.light) .om-qty-val {
  background: rgba(247,245,241,0.90);
  color: #0F172A;
}
:is(html.light,body.light) .cart-fab {
  box-shadow: 0 4px 16px rgba(107,122,79,0.30), 0 8px 32px rgba(107,122,79,0.20);
}
:is(html.light,body.light) .cart-fab:hover {
  box-shadow: 0 6px 24px rgba(107,122,79,0.38), 0 12px 48px rgba(107,122,79,0.24);
}
:is(html.light,body.light) .cart-proceed-btn {
  box-shadow: 0 4px 16px rgba(107,122,79,0.28), 0 8px 32px rgba(107,122,79,0.18);
}
:is(html.light,body.light) .cart-proceed-btn:hover:not(:disabled) {
  box-shadow: 0 6px 24px rgba(107,122,79,0.36), 0 12px 48px rgba(107,122,79,0.22);
}

/* Order modal */
:is(html.light,body.light) .om-inner {
  background: #FBFCFD;
  border-color: rgba(196,210,228,0.70);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.55),
    0 24px 80px rgba(15,23,42,0.15);
}
:is(html.light,body.light) .om-hd {
  background: #FBFCFD;
}
:is(html.light,body.light) .om-actions {
  background: #FBFCFD;
}
:is(html.light,body.light) .om-input,
:is(html.light,body.light) .om-textarea {
  background: rgba(247,245,241,0.75);
  border-color: rgba(196,210,228,0.80);
  color: #0F172A;
  box-shadow:
    0 0 0 1px rgba(196,210,228,0.32),
    0 1px 3px rgba(15,23,42,0.03);
}
:is(html.light,body.light) .om-input:focus,
:is(html.light,body.light) .om-textarea:focus {
  background: rgba(255,255,255,0.90);
  border-color: rgba(107,122,79,0.42);
  box-shadow:
    0 0 0 3px rgba(107,122,79,0.09),
    0 2px 8px rgba(107,122,79,0.10);
}
:is(html.light,body.light) .om-input::placeholder,
:is(html.light,body.light) .om-textarea::placeholder { color: #94A3B8; }
:is(html.light,body.light) .om-em-btn {
  background: rgba(107,122,79,0.07);
  border-color: rgba(107,122,79,0.24);
  color: #6B7A4F;
  box-shadow: 0 2px 8px rgba(107,122,79,0.10);
}
:is(html.light,body.light) .om-em-btn:hover {
  background: rgba(107,122,79,0.13);
  border-color: rgba(107,122,79,0.38);
  color: #006478;
  box-shadow: 0 4px 16px rgba(107,122,79,0.18);
}

/* Hero arrows */
:is(html.light,body.light) .ph-arrow {
  background: rgba(251,252,253,0.72);
  border-color: rgba(196,210,228,0.72);
  color: #0F172A;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.50),
    0 4px 16px rgba(15,23,42,0.08);
}
:is(html.light,body.light) .ph-arrow:hover {
  background: rgba(107,122,79,0.08);
  border-color: rgba(107,122,79,0.32);
  color: #6B7A4F;
  box-shadow:
    0 0 0 1px rgba(107,122,79,0.16),
    0 6px 24px rgba(107,122,79,0.16);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1280px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }   /* laptop — 3 columns */
}
@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }   /* tablet — 2 columns */
  .pm-inner { max-width: 920px; }
}
/* ── Tablet (900px): keep two columns, slightly narrower image ── */
@media (max-width: 900px) {
  .pm-inner {
    grid-template-columns: 54fr 46fr;
    max-width: 800px;
  }
  .pm-info-side { padding: 22px 20px; }
}
/* ── Small tablet / large phone (768px): hero, nav, cart tweaks ── */
@media (max-width: 768px) {
  .ph-hero { height: 85vh; min-height: 560px; }
  .ph-arrow { display: none; }
  .ph-slide-content { padding: calc(var(--nav-h,64px) + 40px) var(--px,20px) 70px; }
  .ph-headline { font-size: clamp(32px,9vw,52px); }
  .ph-sub { font-size: 15px; }
  .cart-drawer { width: 100vw; }
  .om-row { grid-template-columns: 1fr; }
  .pm-actions { grid-template-columns: 1fr 1fr; }
  .cart-fab { top: auto; bottom: 110px; }
}
/* ── Mobile (≤700px): stack image above details ── */
@media (max-width: 700px) {
  .pm-inner {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .pm-gallery-side {
    height: auto;
    min-height: 0;
    max-height: min(65vw, 320px);
    flex-direction: row;
  }
  .pm-main-img { flex: 1; min-height: 0; }
  .pm-thumbs {
    flex-direction: column;
    width: 72px;
    overflow-y: auto;
    overflow-x: hidden;
    border-top: none;
    border-left: 1px solid var(--bd);
  }
  .pm-thumb { width: 54px; height: 54px; }
  .pm-info-side {
    height: auto;
    min-height: 0;
    overflow-y: visible;
    padding: 20px 18px;
  }
}
/* ── Small mobile (≤480px): compress further ── */
@media (max-width: 480px) {
  .prod-grid { grid-template-columns: 1fr; }
  .prod-actions { grid-template-columns: 1fr; }
  .pm-actions { grid-template-columns: 1fr; }
  .om-actions { grid-template-columns: 1fr; }
  .pm-two-col-section { grid-template-columns: 1fr; }
  .pm-cta-row { grid-template-columns: 1fr; }
  .pm-gallery-side { flex-direction: column; max-height: 280px; }
  .pm-thumbs {
    flex-direction: row;
    width: auto;
    overflow-x: auto;
    overflow-y: hidden;
    border-left: none;
    border-top: 1px solid var(--bd);
  }
  .pm-thumb { width: 56px; height: 56px; }
  /* Order modal — tighter spacing on small phones */
  .om-hd { margin-bottom: 14px; }
  .om-product-preview { padding: 12px; margin-bottom: 14px; }
  .om-product-preview img { width: 52px; height: 52px; }
  .om-form { gap: 10px; }
  .om-textarea { min-height: 64px; }
  .om-price-breakdown { margin-top: 10px; }
}
/* ── Very small phones (≤360px) ── */
@media (max-width: 360px) {
  .om-inner { padding: 14px; }
  .om-product-preview img { width: 44px; height: 44px; }
  .om-hd-text .om-title { font-size: 18px; }
}
/* ── Landscape / short viewports (≤600px tall): order modal compact ── */
@media (max-height: 600px) {
  .om-hd { margin-bottom: 12px; }
  .om-product-preview { padding: 10px; margin-bottom: 12px; }
  .om-product-preview img { width: 48px; height: 48px; }
  .om-form { gap: 10px; }
  .om-textarea { min-height: 56px; }
  .om-actions { gap: 8px; }
  .om-price-breakdown { margin-top: 8px; }
  .om-breakdown-row { padding: 4px 2px; font-size: 12px; }
  .om-price-breakdown .om-total-line { margin-top: 8px; padding: 8px 12px; font-size: 14px; }
}
