/**
 * AmourLuxe — luxury single product (PDP) experience.
 */

.al-pdp--luxury.al-single-product-summary {
  display: block;
  grid-template-columns: unset;
}

.al-pdp__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 960px) {
  .al-pdp__hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery */
.al-pdp-gallery {
  position: relative;
}

.al-pdp-gallery__stage {
  position: relative;
}

.al-pdp-gallery .woocommerce-product-gallery {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.08);
  background: var(--al-white, #fafaf8);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.1);
}

.al-pdp-gallery .woocommerce-product-gallery__wrapper {
  touch-action: pan-y pinch-zoom;
}

@media (max-width: 960px) {
  .al-pdp-gallery .woocommerce-product-gallery__wrapper {
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .al-pdp-gallery .woocommerce-product-gallery__wrapper::-webkit-scrollbar {
    display: none;
  }

  .al-pdp-gallery .woocommerce-product-gallery__image {
    scroll-snap-align: center;
    flex: 0 0 100%;
  }
}

.al-pdp-gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0 !important;
  padding: 0 !important;
}

.al-pdp-gallery .flex-control-thumbs li {
  width: 76px !important;
  margin: 0 !important;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.25s var(--ease-luxury, ease);
}

.al-pdp-gallery .flex-control-thumbs li img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.82;
  transition: opacity 0.25s ease;
}

.al-pdp-gallery .flex-control-thumbs li.flex-active-slide,
.al-pdp-gallery .flex-control-thumbs li:hover {
  border-color: var(--al-gold, #c9a96e);
}

.al-pdp-gallery .flex-control-thumbs li.flex-active-slide img,
.al-pdp-gallery .flex-control-thumbs li:hover img {
  opacity: 1;
}

.al-pdp-gallery__zoom-pane {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: min(42%, 280px);
  height: min(52%, 320px);
  border-radius: 14px;
  border: 1px solid rgba(10, 10, 10, 0.1);
  background-repeat: no-repeat;
  background-color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
  pointer-events: none;
  z-index: 4;
  transform: translate(108%, 0);
}

.al-pdp-gallery.is-zooming .al-pdp-gallery__zoom-pane {
  display: block;
}

.al-pdp-gallery__hint {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--al-muted, #8a8a85);
}

.al-pdp-gallery__hint--mobile {
  display: none;
}

@media (max-width: 960px) {
  .al-pdp-gallery__hint--desktop {
    display: none;
  }

  .al-pdp-gallery__hint--mobile {
    display: block;
  }

  .al-pdp-gallery__zoom-pane {
    display: none !important;
  }
}

@media (min-width: 961px) {
  .al-pdp-gallery .woocommerce-product-gallery__image img {
    cursor: crosshair;
  }
}

/* Sticky buy box */
.al-pdp__buy-box {
  padding: clamp(16px, 2.5vw, 28px);
  border-radius: 20px;
  border: 1px solid rgba(10, 10, 10, 0.08);
  background: linear-gradient(180deg, #fffefb 0%, #f5f2ec 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

@media (min-width: 961px) {
  .al-pdp__buy-box {
    position: sticky;
    top: calc(var(--al-header-offset, 92px) + 12px);
    max-height: calc(100vh - var(--al-header-offset, 92px) - 24px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

.al-pdp__buy-box .product_title {
  font-family: var(--al-font-display, "Cormorant Garamond", serif);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 10px;
}

.al-pdp__buy-box .price {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.al-pdp-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--al-muted, #8a8a85);
}

.al-pdp-kicker a {
  color: inherit;
  text-decoration: none;
}

.al-pdp-kicker a:hover {
  color: var(--al-gold-dark, #9a7a4a);
}

.al-pdp-urgency {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.al-pdp-urgency__viewing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--al-charcoal, #2c2c2a);
}

.al-pdp-urgency__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d9a6a;
  animation: al-pdp-pulse 2s ease infinite;
}

@keyframes al-pdp-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.88);
  }
}

.al-pdp-urgency__stock {
  color: #9a4a32;
  font-weight: 600;
}

.al-pdp-trust {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--al-muted, #8a8a85);
}

.al-pdp-trust li {
  padding-left: 16px;
  position: relative;
}

.al-pdp-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--al-gold, #c9a96e);
}

.al-pdp-delivery {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.28);
}

.al-pdp-delivery__eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--al-muted, #8a8a85);
}

.al-pdp-delivery__headline {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--al-black, #0a0a0a);
}

.al-pdp-delivery__detail {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--al-charcoal, #2c2c2a);
}

.al-pdp-buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0 8px;
}

.al-pdp-buy-actions__wish {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 10, 0.12);
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.al-pdp-buy-actions__wish.is-saved {
  border-color: var(--al-gold, #c9a96e);
  background: rgba(201, 169, 110, 0.12);
}

.al-pdp-buy-actions__concierge {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--al-charcoal, #2c2c2a);
}

.al-pdp__buy-box .single_add_to_cart_button {
  width: 100%;
  border-radius: 999px !important;
  padding: 16px 24px !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.14em;
}

.al-pdp__below {
  margin-top: clamp(32px, 5vw, 64px);
}

/* Accordions */
.al-pdp-accordions {
  margin: clamp(28px, 4vw, 48px) 0;
  border-radius: 18px;
  border: 1px solid rgba(10, 10, 10, 0.08);
  overflow: hidden;
  background: #fffefb;
}

.al-pdp-acc + .al-pdp-acc {
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.al-pdp-acc__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  font-family: var(--al-font-ui, "DM Sans", system-ui, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  color: var(--al-black, #0a0a0a);
}

.al-pdp-acc__trigger[aria-expanded="true"] {
  background: rgba(201, 169, 110, 0.08);
}

.al-pdp-acc__icon {
  width: 12px;
  height: 12px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-luxury, ease);
  flex-shrink: 0;
}

.al-pdp-acc__trigger[aria-expanded="true"] .al-pdp-acc__icon {
  transform: rotate(-135deg);
}

.al-pdp-acc__panel {
  padding: 0 22px 20px;
  line-height: 1.65;
  color: var(--al-charcoal, #2c2c2a);
}

.al-pdp-acc__panel[hidden] {
  display: none;
}

/* Editorial story */
.al-pdp-story {
  margin: clamp(24px, 4vw, 40px) 0;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 18px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1e1e1c 100%);
  color: #f5f2ec;
}

.al-pdp-story__eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.72;
}

.al-pdp-story__title {
  margin: 0 0 12px;
  font-family: var(--al-font-display, "Cormorant Garamond", serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 400;
}

.al-pdp-story__lead {
  margin: 0 0 12px;
  max-width: 62ch;
  line-height: 1.65;
  opacity: 0.92;
}

.al-pdp-story__note {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.7;
}

/* Luxury strip refresh */
.al-product-luxury-strip--pdp {
  grid-template-columns: 1fr;
  text-align: center;
}

.al-product-luxury-strip--pdp .al-product-luxury-strip__trust {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: start;
}

@media (min-width: 720px) {
  .al-product-luxury-strip--pdp .al-product-luxury-strip__trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Sticky mobile/desktop bar */
.al-sticky-atc--lux-pdp {
  z-index: 95;
}

.al-sticky-atc--lux-pdp .al-sticky-atc__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.al-sticky-atc__wish {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 252, 245, 0.2);
  background: transparent;
  color: #f5f2ec;
  font-size: 1.1rem;
  cursor: pointer;
}

.al-sticky-atc__wish.is-saved {
  border-color: var(--al-gold, #c9a96e);
  color: var(--al-gold-light, #e8d5b0);
}

body.al-pdp-luxury.al-has-mobile-nav .al-sticky-atc--lux-pdp {
  bottom: calc(64px + env(safe-area-inset-bottom));
}

body.al-pdp-luxury.al-has-mobile-nav .al-sticky-ai-stylist {
  bottom: calc(64px + 4.75rem + env(safe-area-inset-bottom));
}

body.al-pdp-luxury:not(.al-has-mobile-nav) .al-sticky-ai-stylist {
  bottom: calc(4.75rem + env(safe-area-inset-bottom));
}

@media (min-width: 961px) {
  body.al-pdp-luxury .al-sticky-atc--lux-pdp {
    display: none;
  }
}

/* Inline recs spacing in buy box */
.al-pdp__buy-box .alx-inline-recs {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .al-pdp-urgency__dot {
    animation: none;
  }

  .al-pdp-acc__icon {
    transition: none;
  }
}
