/* Lamiraje product page — loaded only on single product pages. */

.woocommerce div.product {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
/* Gallery + summary row: the sticky gallery's travel ends with this row. */
.lp-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
  gap: 28px;
  align-items: start;
}

/* ---------- Gallery ---------- */
.lp-gallery {
  position: sticky;
  top: var(--lp-sticky-top, 110px);
  align-self: start;
  min-width: 0;
}
.lp-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  container-type: inline-size;
}
.lp-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.lp-track::-webkit-scrollbar { display: none; }
.lp-track:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
/* Slide = fixed-height box (square up to the stage width, capped by the viewport).
   Link, image and video are absolutely positioned to fill it exactly, so the photo is
   always shown whole (object-fit: contain) and never sized by its own intrinsic height. */
.lp-slide {
  position: relative;
  display: block;
  flex: 0 0 100%;
  height: min(100cqw, 620px, calc(100vh - var(--lp-sticky-top, 110px) - 130px));
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  background: #fff;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
@supports not (height: 1cqw) {
  .lp-slide { height: min(620px, calc(100vh - var(--lp-sticky-top, 110px) - 130px)); }
}
.lp-open,
.lp-video {
  position: absolute;
  inset: 0;
  display: block;
}
.lp-open { cursor: zoom-in; }
.lp-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 20px;
  object-fit: contain;
}

/* Video slide */
.lp-video { background: #0f171f; }
.lp-video img { opacity: .8; }
.lp-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}
.lp-play {
  position: absolute;
  inset: 0;
  display: grid;
  width: 78px;
  height: 78px;
  margin: auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .18s ease;
}
.lp-play::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 50%;
  animation: lp-ring 1.8s ease-out infinite;
}
.lp-play:hover { transform: scale(1.06); }
.lp-play svg { width: 32px; height: 32px; transform: translateX(2px); }

/* Arrows, counter, zoom hint */
.lp-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(23,37,50,.12);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .2s ease, background .15s ease;
}
.lp-nav svg { width: 22px; height: 22px; }
.lp-stage:hover .lp-nav,
.lp-nav:focus-visible { opacity: 1; }
.lp-stage:hover .lp-nav:disabled { opacity: .3; cursor: default; }
.lp-prev { inset-inline-start: 12px; }
.lp-next { inset-inline-end: 12px; }
.lp-counter {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(23,37,50,.74);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.lp-zoom-hint {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  pointer-events: none;
}
.lp-zoom-hint svg { width: 18px; height: 18px; }

/* Thumbnails */
.lp-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lp-thumbs::-webkit-scrollbar { display: none; }
.lp-thumb {
  position: relative;
  flex: 0 0 76px;
  height: 76px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  opacity: .7;
  transition: opacity .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.lp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.lp-thumb:hover { opacity: 1; }
.lp-thumb.is-active {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
  opacity: 1;
}
.lp-thumb:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lp-thumb.is-video { background: #0f171f; }
.lp-thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  width: 30px;
  height: 30px;
  margin: auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(23,37,50,.82);
  color: #fff;
}
.lp-thumb-play svg { width: 14px; height: 14px; transform: translateX(1px); }

/* Lightbox */
html.lp-lock { overflow: hidden; }
.lp-lb {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10,15,20,.95);
  color: #fff;
  overflow: hidden;
}
.lp-lb::backdrop { background: rgba(10,15,20,.95); }
.lp-lb-stage {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 64px 16px;
  overflow: hidden;
}
.lp-lb-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform .25s ease;
}
.lp-lb-stage.is-zoomed .lp-lb-img { transform: scale(2.2); cursor: zoom-out; }
.lp-lb-btn {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease;
}
.lp-lb-btn:hover { background: rgba(255,255,255,.26); }
.lp-lb-btn svg { width: 24px; height: 24px; }
.lp-lb-close { top: 14px; inset-inline-end: 14px; }
.lp-lb-prev,
.lp-lb-next { top: 50%; transform: translateY(-50%); }
.lp-lb-prev { inset-inline-start: 14px; }
.lp-lb-next { inset-inline-end: 14px; }
.lp-lb-count {
  position: absolute;
  top: 24px;
  inset-inline-start: 22px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Summary ---------- */
.woocommerce div.product .summary {
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
}
.woocommerce div.product .product_title {
  margin: 0;
  /* Latin digits so model codes read correctly (DW-5600MNC-1). */
  font-family: "Vazirmatn", var(--font-main);
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 700;
  line-height: 1.8;
}

/* Price row: p.price and the sale badge are separate grid items of .summary (no wrapper),
   so the standard WooCommerce structure stays intact for crawlers. */
.woocommerce div.product .summary {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0;
}
.woocommerce div.product .summary > * { grid-column: 1 / -1; }
.woocommerce div.product .summary > p.price {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: center;
  gap: 4px 10px;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-block: 1px solid var(--line);
  color: var(--navy);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 900;
}
.woocommerce div.product .summary > p.price del {
  color: var(--muted);
  font-size: .58em;
  font-weight: 500;
  opacity: 1;
}
.woocommerce div.product .summary > p.price ins { text-decoration: none; color: #d62828; }
.woocommerce div.product .summary > .lp-price-aside {
  grid-column: 2;
  display: flex;
  align-items: center;
  padding: 14px 0;
  padding-inline-start: 12px;
  border-block: 1px solid var(--line);
}
.lp-price-aside span.lm-sale-badge {
  position: static;
  padding: 6px 14px 6px 12px;
  font-size: 13.5px;
  white-space: nowrap;
}
.lp-price-aside span.lm-sale-badge svg { width: 17px; height: 17px; }
.lp-price-aside span.lm-sale-badge b { font-size: 15px; }

/* Urgency */
.lp-urgency {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #f6cfc3;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff4ef 0%, #fff 75%);
}
.lp-urgency-icon {
  display: grid;
  flex: 0 0 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: #ffe3d8;
  color: #d9480f;
}
.lp-urgency-icon svg { width: 20px; height: 20px; animation: lp-flicker 1.6s ease-in-out infinite; }
.lp-urgency-body { display: grid; flex: 1; gap: 3px; min-width: 0; }
.lp-urgency-body strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c2410c;
  font-size: 15px;
  font-weight: 900;
}
.lp-urgency-body > span:not(.lp-urgency-bar) { color: var(--muted); font-size: 13px; line-height: 1.8; }
.lp-pulse {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  animation: lp-pulse 1.6s infinite;
}
.lp-urgency-bar {
  display: block;
  height: 6px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #fde1d6;
}
.lp-urgency-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(270deg, #f97316, #ef4444);
  transform-origin: 100% 50%;
  animation: lp-bar 1.2s ease-out both;
}

/* Add to cart */
.woocommerce div.product form.cart { border-radius: 14px; }
.woocommerce div.product form.cart .single_add_to_cart_button {
  min-height: 52px;
  border-radius: 12px;
  font-size: 16px;
}

/* SnappPay widget: use the site font (the plugin's font host is blocked offline). */
.woocommerce div.product .summary .snapppay-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-family: var(--font-main);
}
.woocommerce div.product .summary .snapppay-widget-image {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
}
.woocommerce div.product .summary .snapppay-widget-content { min-width: 0; color: var(--ink); }
.woocommerce div.product .summary .snapppay-widget-title {
  margin: 0 0 2px;
  color: var(--navy);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.8;
}
.woocommerce div.product .summary .snapppay-widget-description {
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0;
}

/* WhatsApp consult box */
.lp-wa {
  display: grid;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #bfe8cd;
  border-radius: 16px;
  background: linear-gradient(135deg, #edfbf2 0%, #fff 72%);
}
.lp-wa-head { display: flex; align-items: center; gap: 12px; }
.lp-wa-icon {
  display: grid;
  flex: 0 0 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 16px rgba(37,211,102,.35);
}
.lp-wa-icon svg { width: 24px; height: 24px; }
.lp-wa-head strong { display: block; color: #0b6b34; font-size: 15px; font-weight: 900; }
.lp-wa-head span { display: block; color: var(--muted); font-size: 13px; line-height: 1.8; }
.lp-marquee {
  padding: 7px 0;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(37,211,102,.1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.lp-marquee-track {
  display: flex;
  width: max-content;
  animation: lp-marquee 26s linear infinite;
}
.lp-wa:hover .lp-marquee-track { animation-play-state: paused; }
.lp-marquee-group { display: flex; flex: 0 0 auto; }
.lp-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 14px;
  color: #0b6b34;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.lp-marquee-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25d366;
}
.woocommerce div.product a.lp-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 12px;
  background: #25d366;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  transition: background .15s ease, transform .15s ease;
}
.woocommerce div.product a.lp-wa-btn:hover { background: #1fb457; color: #fff; transform: translateY(-1px); }
.lp-wa-btn svg { width: 20px; height: 20px; }

/* Trust box */
.woocommerce div.product .product-trust-box {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
.woocommerce div.product .product-trust-box span {
  flex-direction: column;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}
.woocommerce div.product .product-trust-box svg { width: 22px; height: 22px; color: var(--accent); }

/* Categories */
.woocommerce div.product .lp-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.woocommerce div.product .lp-cats .posted_in { display: contents; }
.woocommerce div.product .lp-cats .lp-cats-label {
  min-height: 0;
  padding: 0;
  background: none;
  color: var(--muted);
}
.woocommerce div.product .lp-cats a { white-space: nowrap; }
.woocommerce div.product .lp-cats a:hover { background: var(--soft); color: var(--navy); }

/* Tabs */
.woocommerce div.product .woocommerce-tabs { padding: 24px; border-radius: 16px; }

@keyframes lp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); }
  70% { box-shadow: 0 0 0 9px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
@keyframes lp-flicker { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes lp-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lp-ring { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }
/* RTL: the second copy sits to the left of the first, so moving right by one copy loops seamlessly. */
@keyframes lp-marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

@media (max-width: 900px) {
  .woocommerce div.product { gap: 16px; }
  .lp-top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lp-gallery { position: static; }
  .lp-slide { height: min(100cqw, 560px); }
}
@supports not (height: 1cqw) {
  @media (max-width: 900px) {
    .lp-slide { height: 360px; }
  }
}

@media (max-width: 768px) {
  .lp-stage { border-radius: 14px; }
  .lp-slide img { padding: 10px; }
  .lp-nav { display: none; }
  .lp-thumbs { gap: 8px; margin-top: 10px; }
  .lp-thumb { flex-basis: 64px; height: 64px; padding: 5px; border-radius: 10px; }
  .lp-play { width: 66px; height: 66px; }
  .lp-lb-prev,
  .lp-lb-next { display: none; }

  .woocommerce div.product .summary { gap: 14px 0; padding: 16px; border-radius: 14px; }
  .woocommerce div.product .product_title { font-size: 17px; line-height: 1.85; }
  .woocommerce div.product .woocommerce-tabs { padding: 16px; border-radius: 14px; }

  .related.products ul.products,
  .upsells.products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .related.products ul.products li.product a.woocommerce-LoopProduct-link,
  .upsells.products ul.products li.product a.woocommerce-LoopProduct-link { min-height: 0; }
  .related.products ul.products li.product img,
  .upsells.products ul.products li.product img { height: 150px; }

  .mobile-buy-bar {
    padding: 10px 12px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(23,37,50,.16);
  }
  .mobile-buy-bar .button { min-height: 46px; padding-inline: 18px; border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-track { scroll-behavior: auto; }
  .lp-marquee-track,
  .lp-pulse,
  .lp-urgency-icon svg,
  .lp-urgency-bar i,
  .lp-play::after { animation: none; }
  .lp-lb-img { transition: none; }
}
