/* Lurevia product page: purchase panel under the gallery; the gallery picks the product type. */
.details-page .details-media { min-width: 0; display: grid; gap: 14px; align-content: start; }
.details-page .details-media app-product-gallery .media-stage { max-height: min(52vh, 520px); margin-inline: auto; }
.details-page .details-media app-product-gallery .gallery-toolbar { padding-block: 10px 6px; }
.details-page app-product-gallery .gallery-thumbnails button.sold-out img { opacity: .42; filter: grayscale(.7); }
.details-page app-product-gallery .gallery-thumbnails button.sold-out::after {
  content: ''; position: absolute; inset-inline: 10px; top: 50%; height: 2px; background: #b9a58a; transform: rotate(-35deg); border-radius: 2px; pointer-events: none;
}
.details-page app-product-gallery .media-stage { touch-action: pan-y; }

.details-page .lv-buy {
  display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line, #eadfce); border-radius: 18px;
  background: linear-gradient(180deg, #fffdf9, #fff8ee); box-shadow: 0 10px 28px rgba(86, 62, 32, .07);
}
.details-page .lv-buy .lv-variant-head { display: grid; gap: 3px; min-width: 0; }
.details-page .lv-buy .lv-variant-count { color: var(--muted, #8b7f73); font-size: .7rem; letter-spacing: .02em; }
.details-page .lv-buy .lv-variant-name { font-size: 1.05rem; font-weight: 700; line-height: 1.6; color: #2c2926; overflow-wrap: anywhere; }
.details-page .lv-buy .lv-buy-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.details-page .lv-buy .lv-buy-meta .lv-buy-price { color: var(--deep-gold, #8a622c); font-size: 1.55rem; line-height: 1.2; }
.details-page .lv-buy .lv-buy-meta .lv-buy-price small { font-size: .55em; margin-inline-start: 3px; }
.details-page .lv-buy .lv-buy-meta .stock.lv-stock { margin: 0; font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; }
.details-page .lv-buy .lv-buy-meta .stock.lv-stock.out { color: #a6534d; }
.details-page .lv-buy .lv-buy-actions { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px; }
.details-page .lv-buy .lv-buy-actions .quantity-picker { background: #fff; min-height: 48px; }
.details-page .lv-buy .lv-buy-actions .quantity-picker button:disabled { opacity: .35; cursor: not-allowed; }
.details-page .lv-buy .lv-buy-actions .lv-add { min-height: 48px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.details-page .lv-buy .lv-buy-actions .buy-now { grid-column: 1 / -1; margin-top: 0; min-height: 46px; }
.details-page .lv-buy.lv-out .lv-add,
.details-page .lv-buy.lv-out .buy-now { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
.details-page .lv-buy .lv-variant-desc { padding-top: 12px; border-top: 1px dashed var(--line, #eadfce); color: #5f564d; font-size: .82rem; line-height: 1.9; animation: lv-fade .25s ease; }

.details-page .lv-rich p { margin: 0 0 .55em; }
.details-page .lv-rich p:last-child { margin-bottom: 0; }
.details-page .lv-rich ul { margin: 0 0 .7em; padding-inline-start: 1.25em; }
.details-page .lv-rich li { margin: 0 0 .3em; }
.details-page .lv-rich strong { color: #3d352d; font-weight: 700; }
.details-page .details-copy .description.lv-rich { line-height: 1.95; }

@keyframes lv-fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

@media (max-width: 800px) {
  .details-page .details-grid { gap: 12px; }
  .details-page .details-grid > .details-media,
  .details-page .details-grid > .details-copy { display: contents; }
  .details-page .details-grid > .details-media > *,
  .details-page .details-grid > .details-copy > * { min-width: 0; overflow-wrap: anywhere; }
  .details-page .details-copy > .details-topline { order: 1; }
  .details-page .details-copy > h1 { order: 2; margin: 0 !important; font-size: clamp(1.3rem, 5.6vw, 1.7rem) !important; line-height: 1.5 !important; }
  .details-page .details-copy > .product-categories { order: 3; margin-bottom: 0 !important; }
  .details-page .details-copy > .rating { order: 7; font-size: .85rem; }
  .details-page .details-media > app-product-gallery { order: 5; }
  .details-page .details-media > .lv-buy { order: 6; }
  .details-page .details-copy > .details-reward { order: 7; margin: 0 !important; }
  .details-page > .breadcrumbs { margin-bottom: 10px !important; font-size: .7rem; }
  .details-page .details-media app-product-gallery .gallery-toolbar { padding-block: 8px 4px; font-size: .7rem; }
  .details-page .details-media app-product-gallery .gallery-controls button { width: 38px; height: 38px; }
  .details-page .details-copy > .description { order: 8; }
  .details-page .details-copy > .guarantees { order: 9; margin-top: 4px !important; }
  .details-page .details-copy > .price { display: none !important; }
  .details-page .details-media app-product-gallery .media-stage { max-height: min(44vh, 100vw); }
  .details-page .lv-buy { padding: 14px; }
}
@media (max-width: 360px) {
  .details-page .lv-buy .lv-buy-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .details-page .lv-buy .lv-variant-desc { animation: none; } }

/* v4b: collection (group) slide */
.details-page app-product-gallery .gallery-thumbnails button.is-group::before {
  content: 'مجموعة'; position: absolute; top: 4px; inset-inline-start: 4px; z-index: 1; padding: 1px 7px; border-radius: 10px;
  background: #8a622c; color: #fff; font-size: .55rem; line-height: 1.6; pointer-events: none;
}
[dir='ltr'] .details-page app-product-gallery .gallery-thumbnails button.is-group::before { content: 'Set'; }
.details-page .lv-buy.lv-group .lv-buy-actions,
.details-page .lv-buy.lv-group .lv-buy-meta .stock.lv-stock { display: none; }
.details-page .lv-buy .lv-group-pick { display: grid; gap: 10px; margin-top: 8px; }
.details-page .lv-buy .lv-group-prompt { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--deep-gold, #8a622c); font-size: .85rem; font-weight: 700; }
.details-page .lv-buy .lv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.details-page .lv-buy .lv-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 4px 12px 4px 5px; padding-inline: 5px 12px;
  border: 1px solid var(--line, #eadfce); border-radius: 24px; background: #fff; color: #2c2926; font-size: .76rem; font-weight: 600; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.details-page .lv-buy .lv-chip:hover, .details-page .lv-buy .lv-chip:focus-visible { border-color: var(--deep-gold, #8a622c); box-shadow: 0 0 0 2px #b08b5233; transform: translateY(-1px); outline: none; }
.details-page .lv-buy .lv-chip img { width: 34px; height: 34px; flex-shrink: 0; object-fit: cover; border-radius: 50%; background: #f8f4ec; }
.details-page .lv-buy .lv-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.details-page .lv-buy .lv-chip.out { opacity: .5; }
@media (max-width: 800px) { .details-page .lv-buy .lv-chip { flex: 1 1 calc(50% - 8px); min-width: 0; } }
