/* =========================================================
   ELARA — SINGLE PRODUCT / PDP ZALANDO STYLE
========================================================= */

:root {
  --pdp-text: #111;
  --pdp-muted: rgba(17,17,17,.62);
  --pdp-line: rgba(0,0,0,.10);
  --pdp-summary: 440px;
  --pdp-sticky-top: 96px;

  --pdp-gallery-thumb: 96px;
  --pdp-gallery-gap: 16px;
  --pdp-gallery-bg: #f3f3f3;
}

/* =========================================================
   LAYOUT — PDP
========================================================= */

.single-product .lux-product {
  background: #fff;
  padding-top: clamp(48px, 5vw, 86px);
  color: var(--pdp-text);
}

.single-product .lux-product__grid {
  display: grid;
  grid-template-columns: minmax(0, 56vw) minmax(360px, 1fr);
  gap: clamp(42px, 5vw, 86px);
  align-items: start;

  width: min(1500px, calc(100% - 64px));
  max-width: none;
  margin: 0 auto;
}

.single-product .lux-product__summary {
  padding-right: clamp(0px, 3vw, 48px);
}

@media (min-width: 1440px) {
  .single-product .lux-product__grid {
    grid-template-columns: minmax(0, 58vw) minmax(390px, 1fr);
  }
}

/* =========================================================
   GALLERY — ZALANDO STYLE
   Thumbnails left + main image
========================================================= */

.lux-product__gallery {
  min-width: 0;
  width: 100%;
}

.lux-gallery-stack {
  width: 100%;
}

/* DESKTOP */
@media (min-width: 981px) {
  .lux-gallery-stack {
    display: grid;
    grid-template-columns: var(--pdp-gallery-thumb) minmax(0, 1fr);
    grid-auto-rows: var(--pdp-gallery-thumb);
    gap: var(--pdp-gallery-gap);

    position: sticky;
    top: 84px;

    width: 100%;
    max-height: calc(100vh - 100px);
    overflow: hidden;
  }

  .lux-gallery-stack__item {
    margin: 0;
    overflow: hidden;
    background: var(--pdp-gallery-bg);
  }

  .lux-gallery-stack__link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
  }

  .lux-gallery-stack__img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center center;

    border-radius: 0 !important;
  }

  /* Main image */
  .lux-gallery-stack__item:first-child {
    grid-column: 2;
    grid-row: 1 / span 6;

    height: auto;
    min-height: clamp(620px, calc(100vh - 120px), 760px);

    background: #f1f1f1;
  }

  .lux-gallery-stack__item:first-child .lux-gallery-stack__img {
    padding: clamp(44px, 6vw, 92px);
  }

  /* Thumbnails */
  .lux-gallery-stack__item:not(:first-child) {
    grid-column: 1;

    width: var(--pdp-gallery-thumb);
    height: var(--pdp-gallery-thumb);

    border: 1px solid transparent;
    cursor: pointer;

    transition:
      border-color .2s ease,
      opacity .2s ease,
      transform .2s ease;
  }

  .lux-gallery-stack__item:not(:first-child) .lux-gallery-stack__img {
    padding: 10px;
  }

  .lux-gallery-stack__item:not(:first-child):hover {
    border-color: #111;
    opacity: .86;
  }

  /* Active-style first thumbnail look */
  .lux-gallery-stack__item:nth-child(2) {
    border-color: #111;
  }

  .lux-gallery-stack__item:nth-child(n+8) {
    display: none;
  }
}

/* MOBILE */
@media (max-width: 980px) {
  .single-product .lux-product {
    padding-top: 0;
  }

  .single-product .lux-product__grid {
    grid-template-columns: 1fr;
    gap: 0;

    width: 100%;
    margin: 0;
  }

  .lux-gallery-stack {
    display: flex;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .lux-gallery-stack::-webkit-scrollbar {
    display: none;
  }

  .lux-gallery-stack__item {
    flex: 0 0 100%;
    width: 100%;

    height: 76vh;
    min-height: 500px;

    margin: 0;
    overflow: hidden;

    scroll-snap-align: start;

    background: #f7f6f3;
  }

  .lux-gallery-stack__link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
  }

  .lux-gallery-stack__img {
    display: block;

    width: 100%;
    height: 100%;

    padding: 22px;

    object-fit: contain;
    object-position: center center;

    border-radius: 0 !important;
  }
}

/* =========================================================
   SUMMARY — PRODUCT INFO
========================================================= */

.lux-product__summary {
  min-width: 0;
  width: 100%;
  max-width: var(--pdp-summary);
  justify-self: start;

  padding: clamp(16px, 3vw, 40px) 0 64px;
  color: var(--pdp-text);
}

@media (min-width: 981px) {
  .lux-product__summary {
    position: sticky;
    top: var(--pdp-sticky-top);
    align-self: start;
    height: fit-content;
  }
}

/* BRAND */
.lux-product__brand {
  margin-bottom: 10px;

  font-family: var(--lux-font-ui, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-transform: none;

  color: #111;
}

/* TITLE */
.lux-product__title {
  margin: 0 0 18px;

  font-family: var(--lux-font-ui, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: clamp(28px, 2.1vw, 34px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -.035em;

  color: #111;
}

/* PRICE */
.lux-product__price {
  margin-bottom: 34px;

  font-family: var(--lux-font-ui, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;

  color: #111;
}

.lux-product__price .amount {
  color: #111;
}

.lux-product__price del {
  color: rgba(0,0,0,.36);
  margin-right: 10px;
  font-weight: 400;
}

.lux-product__price ins {
  text-decoration: none;
  color: #111;
}

/* SHORT DESCRIPTION */
.lux-product__short {
  position: relative;

  margin-bottom: 34px;
  padding-top: 0;

  border-top: 0;

  font-family: var(--lux-font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 15px;
  line-height: 1.72;
  font-weight: 400;

  color: rgba(0,0,0,.68);
}

.lux-product__short p {
  margin: 0 0 14px;
}

.lux-product__short strong {
  color: #111;
  font-weight: 700;
}

.lux-product__short br + strong {
  display: inline-block;
  margin-top: 6px;
}

/* =========================================================
   CART — ZALANDO STYLE CTA
========================================================= */

.lux-product__cart {
  margin-bottom: 34px;
}

.lux-product__cart form.cart {
  margin: 0 !important;
  width: 100%;
}

.lux-product__cart .quantity {
  display: none !important;
}

.lux-product__cart .single_add_to_cart_button {
  position: relative;

  width: 100%;
  min-height: 56px;
  padding: 0 28px;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  border: 1px solid #000 !important;
  border-radius: 0 !important;
  background: #000 !important;

  font-family: var(--lux-font-ui, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 15px !important;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: none;

  color: #fff !important;
  text-decoration: none;

  box-shadow: none;

  cursor: pointer;

  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease,
    opacity .2s ease;
}

.lux-product__cart .single_add_to_cart_button:hover {
  background: #222 !important;
  border-color: #222 !important;
  transform: translateY(-1px);
}

.lux-product__cart .single_add_to_cart_button:active {
  transform: translateY(0);
}

.lux-product__cart .single_add_to_cart_button.loading {
  opacity: .72;
}

.lux-product__cart .single_add_to_cart_button.added {
  background: #111 !important;
}

.lux-product__cart .added_to_cart {
  display: inline-flex;
  justify-content: center;

  margin-top: 14px;
  width: 100%;

  font-family: var(--lux-font-ui, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;

  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   ACCORDIONS — PDP
========================================================= */

.lux-product__accordions {
  margin-top: 10px;
  border-top: 1px solid rgba(0,0,0,.10);
}

.lux-product__accordion {
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

.lux-product__accordion summary {
  position: relative;

  cursor: pointer;
  list-style: none;

  padding: 21px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  transition: opacity .22s ease;
}

.lux-product__accordion summary:hover {
  opacity: .72;
}

.lux-product__accordion summary::-webkit-details-marker {
  display: none;
}

.lux-product__accordion summary span,
.lux-product__accordion summary {
  font-family: var(--lux-font-ui, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: none;

  color: #111;
}

.lux-product__accordion summary::after {
  content: "+";

  position: relative;
  top: -1px;

  font-size: 24px;
  font-weight: 300;
  line-height: 1;

  color: rgba(0,0,0,.54);

  transition:
    transform .24s ease,
    opacity .24s ease;
}

.lux-product__accordion[open] summary::after {
  transform: rotate(45deg);
  opacity: .85;
}

.lux-product__accordion-content {
  padding: 0 0 26px;

  font-family: var(--lux-font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 14px;
  line-height: 1.78;
  font-weight: 400;

  color: rgba(0,0,0,.66);

  animation: luxAccordion .24s ease;
}

@keyframes luxAccordion {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lux-product__accordion-content p {
  margin: 0 0 14px;
}

.lux-product__accordion-content p:last-child {
  margin-bottom: 0;
}

.lux-product__accordion-content strong {
  color: #111;
  font-weight: 700;
}

.lux-product__accordion-content ul,
.lux-product__accordion-content ol {
  margin: 0;
  padding-left: 18px;
}

.lux-product__accordion-content li {
  margin-bottom: 8px;
}

.lux-product__accordion-content > * + * {
  margin-top: 14px;
}

/* =========================================================
   HIDE DEFAULT WOO NOISE
========================================================= */

.single-product .product_meta,
.single-product .woocommerce-tabs,
.single-product .related.products,
.single-product .upsells.products,
.single-product .woocommerce-product-gallery__trigger,
.single-product .woocommerce-breadcrumb {
  display: none !important;
}

/* =========================================================
   TRUST / UPSELL SECTIONS
========================================================= */

.lux-pdp-trust {
  width: min(1380px, calc(100% - 72px));
  margin: clamp(72px, 8vw, 120px) auto 0;
  padding: 42px 0;

  border-top: 1px solid rgba(0,0,0,.10);
  border-bottom: 1px solid rgba(0,0,0,.10);

  background: #fff;
}

.lux-pdp-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 80px);
}

.lux-pdp-trust__item {
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lux-pdp-trust__item::before {
  content: "";

  width: 28px;
  height: 1px;
  margin-bottom: 6px;

  background: #111;
  opacity: .75;
}

.lux-pdp-trust__title {
  font-family: var(--lux-font-ui, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .18em;
  text-transform: uppercase;

  color: #111;
}

.lux-pdp-trust__text {
  max-width: 300px;

  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;

  color: rgba(0,0,0,.64);
}

/* FEATURED / RELATED */
.lux-pdp-featured,
.lux-pdp-related {
  position: relative;
  padding: clamp(82px, 9vw, 136px) 0;
  background: #fff;
}

.lux-pdp-featured {
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.lux-pdp-related {
  background:
    linear-gradient(180deg, #fff 0%, #faf9f6 100%);
}

.lux-pdp-featured__inner,
.lux-pdp-related__inner {
  width: min(1380px, calc(100% - 72px));
  margin: 0 auto;
}

.lux-pdp-featured__head,
.lux-pdp-related__head {
  position: relative;

  margin-bottom: clamp(42px, 5vw, 64px);
  max-width: 720px;
}

.lux-pdp-featured__head::before,
.lux-pdp-related__head::before {
  content: "";
  display: block;

  width: 42px;
  height: 1px;
  margin-bottom: 22px;

  background: #111;
  opacity: .75;
}

.lux-pdp-featured__head span {
  display: block;
  margin-bottom: 14px;

  font-family: var(--lux-font-ui, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .24em;
  text-transform: uppercase;

  color: rgba(0,0,0,.50);
}

.lux-pdp-featured__head h2,
.lux-pdp-related__head h2 {
  margin: 0;

  font-family: var(--lux-font-display, Georgia, "Times New Roman", serif);
  font-size: clamp(34px, 4vw, 62px);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.04em;

  color: #111;
}

.lux-pdp-featured__head p,
.lux-pdp-related__head p {
  margin: 16px 0 0;
  max-width: 480px;

  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;

  color: rgba(0,0,0,.62);
}

.lux-pdp-featured .lux-home-products__grid,
.lux-pdp-related .lux-home-products__grid {
  margin-top: 0;
}

.lux-pdp-featured ul.products,
.lux-pdp-related ul.products {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 24px !important;

  width: max-content;
  min-width: 100%;

  margin: 0 !important;
  padding: 0 !important;

  list-style: none;
}

.lux-pdp-featured ul.products::before,
.lux-pdp-featured ul.products::after,
.lux-pdp-related ul.products::before,
.lux-pdp-related ul.products::after {
  display: none !important;
  content: none !important;
}

.lux-pdp-featured ul.products li.product,
.lux-pdp-related ul.products li.product {
  flex: 0 0 310px;
  width: 310px !important;
  margin: 0 !important;

  float: none !important;
  clear: none !important;
}

/* =========================================================
   STICKY FIX
========================================================= */

.single-product #page,
.single-product #content,
.single-product #primary,
.single-product main,
.single-product .site,
.single-product .site-content,
.single-product .content-area,
.single-product .site-main,
.single-product .woocommerce,
.single-product .product,
.single-product .lux-product,
.single-product .lux-product__grid {
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {
  .single-product .lux-product__summary {
    max-width: none;
    padding: 38px 24px 56px;
  }

  .lux-product__title {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.05;
  }

  .lux-product__price {
    font-size: 20px;
  }

  .lux-product__accordion summary {
    padding: 22px 0;
  }

  .lux-pdp-trust,
  .lux-pdp-featured__inner,
  .lux-pdp-related__inner {
    width: min(1380px, calc(100% - 48px));
  }

  .lux-pdp-trust__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lux-pdp-featured ul.products li.product,
  .lux-pdp-related ul.products li.product {
    flex: 0 0 280px;
    width: 280px !important;
  }
}

@media (max-width: 520px) {
  .lux-gallery-stack__item {
    height: 70vh;
    min-height: 430px;
  }

  .single-product .lux-product__summary {
    padding: 34px 20px 52px;
  }

  .lux-product__cart .single_add_to_cart_button {
    min-height: 54px;
  }

  .lux-pdp-trust,
  .lux-pdp-featured__inner,
  .lux-pdp-related__inner {
    width: min(1380px, calc(100% - 32px));
  }

  .lux-pdp-featured,
  .lux-pdp-related {
    padding: 64px 0 78px;
  }

  .lux-pdp-featured__head h2,
  .lux-pdp-related__head h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .lux-pdp-featured ul.products,
  .lux-pdp-related ul.products {
    gap: 16px !important;
  }

  .lux-pdp-featured ul.products li.product,
  .lux-pdp-related ul.products li.product {
    flex: 0 0 80vw;
    width: 80vw !important;
  }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .lux-gallery-stack__item,
  .lux-gallery-stack__img,
  .lux-product__cart .single_add_to_cart_button,
  .lux-product__accordion-content {
    animation: none !important;
    transition: none !important;
  }

  .lux-product__cart .single_add_to_cart_button:hover {
    transform: none;
  }
}

/* =========================================================
   PDP GALLERY — CLICK TO MAIN IMAGE + HOVER ZOOM
========================================================= */

@media (min-width: 981px) {
  .lux-gallery-stack__item:first-child {
    overflow: hidden;
    cursor: zoom-in;
  }

  .lux-gallery-stack__item:first-child .lux-gallery-stack__img {
    transition:
      transform .55s ease,
      filter .55s ease;
    will-change: transform;
  }

  .lux-gallery-stack__item:first-child:hover .lux-gallery-stack__img {
    transform: scale(1.08);
    filter: drop-shadow(0 24px 34px rgba(0,0,0,.14));
  }

  .lux-gallery-stack__item:not(:first-child) {
    cursor: pointer;
  }

  .lux-gallery-stack__item:not(:first-child).is-active {
    border-color: #111;
  }

  .lux-gallery-stack__item:not(:first-child).is-active .lux-gallery-stack__img {
    opacity: 1;
  }

  .lux-gallery-stack__item:not(:first-child):not(.is-active) .lux-gallery-stack__img {
    opacity: .72;
  }

  .lux-gallery-stack__item:not(:first-child):hover .lux-gallery-stack__img {
    opacity: 1;
    transform: scale(1.04);
  }
}