/* Product page additions (product-boost.js), in the shop palette: navy, gold, cream, Manrope. */

/* Highlights under the price */
.product-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 14px;
  padding: 0;
  list-style: none;
}

.product-highlights[hidden] {
  display: none;
}

.product-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid var(--line, #d8d8d4);
  border-radius: 999px;
  background: #fff;
  color: var(--navy, #071b36);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
}

.product-highlights li svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--gold, #a48456);
  stroke-width: 1.4;
}

.product-highlights .is-ribbon {
  border-color: var(--navy, #071b36);
  background: var(--navy, #071b36);
  color: #fff;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.product-highlights .is-scarce {
  border-color: var(--gold, #a48456);
  background: #f8f3ea;
  color: #6f5631;
  font-weight: 600;
}

.product-highlights .is-scarce::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold, #a48456);
  animation: product-pulse 2s ease-in-out infinite;
}

@keyframes product-pulse {
  50% { opacity: .35; }
}

/* Delivery estimate in the brand colours (it was green) */
.product-delivery-estimate {
  border-color: #e7dfd0 !important;
  background: #faf7f1 !important;
}

.product-delivery-estimate > .product-delivery-icon {
  background: #f1e9da !important;
}

.product-delivery-estimate p {
  color: #6f7480 !important;
}

/* Assurances next to the buttons */
.product-assurance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ebe5da;
  border-radius: 10px;
  background: #ebe5da;
  list-style: none;
}

.product-assurance li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  background: #fff;
}

.product-assurance svg {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--gold, #a48456);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-assurance strong {
  display: block;
  color: var(--navy, #071b36);
  font-size: 12px;
  font-weight: 600;
}

.product-assurance small {
  display: block;
  margin-top: 1px;
  color: #6f7480;
  font-size: 11px;
}

.product-gift-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 22px;
  color: #5d6370;
  font-size: 11.5px;
  line-height: 1.5;
}

.product-gift-hint svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: var(--gold, #a48456);
  stroke-width: 1.3;
}

/* Gallery dots: only on phones and tablets */
.product-gallery-dots {
  display: none;
}

/* Purchase bar: only on phones and tablets */
.product-sticky-buy {
  display: none;
}

@media (max-width: 900px) {
  /* Swipeable gallery instead of the stacked photos */
  .product-gallery {
    padding: 0 !important;
    background: #f3f1ed;
  }

  .product-gallery-stack {
    display: flex !important;
    gap: 0 !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .product-gallery-stack::-webkit-scrollbar {
    display: none;
  }

  .product-gallery-photo {
    flex: 0 0 100%;
    min-height: 0 !important;
    aspect-ratio: 1 / 1.05 !important;
    scroll-snap-align: start;
  }

  .product-gallery-dots:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 14px;
    background: #f3f1ed;
  }

  .product-gallery-count {
    color: #6f7480;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .08em;
  }

  .product-gallery-pips {
    display: flex;
    gap: 6px;
  }

  .product-gallery-pips button {
    width: 18px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(7, 27, 54, .18);
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
  }

  .product-gallery-pips button[aria-current="true"] {
    width: 30px;
    background: var(--navy, #071b36);
  }

  .product-sticky-buy {
    position: fixed;
    z-index: 190;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #ebe5da;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -10px 30px rgba(7, 27, 54, .08);
    transform: translateY(110%);
    transition: transform .3s ease;
  }

  .product-sticky-buy.is-visible {
    transform: none;
  }

  /* The bar never covers the end of the page. */
  body.has-sticky-buy {
    padding-bottom: 72px;
  }

  .product-sticky-buy img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #f3f1ed;
    mix-blend-mode: multiply;
  }

  .product-sticky-buy strong {
    display: block;
    overflow: hidden;
    color: var(--navy, #071b36);
    font-size: 12.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-sticky-buy small {
    color: #5d6370;
    font-size: 12px;
  }

  .product-sticky-buy button {
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    background: var(--navy, #071b36);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
}

@media (max-width: 560px) {
  .product-assurance {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-highlights .is-scarce::before {
    animation: none;
  }

  .product-sticky-buy {
    transition: none;
  }
}

/* ---------- "Hai bisogno di maggiori informazioni?": advice card ---------- */
.product-advice {
  margin: 8px 0 30px;
  padding: 22px 22px 20px;
  border: 1px solid #ebe5da;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbf8f2 0%, #fff 70%);
}

.product-advice-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Closed by default: only the title shows; opening it shows text, hours and the contact buttons. */
.product-advice {
  interpolate-size: allow-keywords;
}

.product-advice::details-content {
  height: 0;
  overflow: hidden;
  transition: height .3s ease, content-visibility .3s allow-discrete;
}

.product-advice[open]::details-content {
  height: auto;
}

.product-advice > summary {
  cursor: pointer;
  list-style: none;
}

.product-advice > summary::-webkit-details-marker {
  display: none;
}

.product-advice > summary:focus-visible {
  outline: 2px solid var(--navy, #071b36);
  outline-offset: 6px;
  border-radius: 8px;
}

.product-advice > summary > div {
  flex: 1;
  min-width: 0;
}

.product-advice-toggle {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line, #d8d8d4);
  border-radius: 50%;
  color: var(--navy, #071b36);
  font-size: 17px;
  font-weight: 300;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.product-advice > summary:hover h2 {
  color: var(--gold, #a48456);
}

.product-advice[open] .product-advice-toggle {
  border-color: var(--navy, #071b36);
  background: var(--navy, #071b36);
  color: #fff;
  transform: rotate(45deg);
}

.product-advice-mark {
  display: grid;
  flex: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #e3d6bd;
  border-radius: 50%;
  background: #fff;
}

.product-advice-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold, #a48456);
  stroke-width: 1.3;
}

.product-advice-eyebrow {
  display: block;
  color: var(--gold, #a48456);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.product-advice h2 {
  margin: 3px 0 0;
  color: var(--navy, #071b36);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.product-advice-text {
  margin: 14px 0 0;
  color: #5d6370;
  font-size: 13px;
  line-height: 1.6;
}

.product-advice-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 0;
  color: #5d6370;
  font-size: 12px;
}

.product-advice-status[hidden] {
  display: none;
}

.product-advice-status i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b5aea2;
}

.product-advice-status.is-open i {
  background: #2f7a4e;
  box-shadow: 0 0 0 4px rgba(47, 122, 78, .14);
}

.product-advice-status.is-open span {
  color: #24613a;
}

.product-advice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.product-advice-actions a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid #e6dfd3;
  border-radius: 8px;
  background: #fff;
  color: var(--navy, #071b36);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.product-advice-actions a:hover,
.product-advice-actions a:focus-visible {
  border-color: var(--navy, #071b36);
  box-shadow: 0 8px 20px rgba(7, 27, 54, .08);
  transform: translateY(-1px);
}

.product-advice-actions a > svg,
.product-advice-actions a > img {
  flex: none;
  width: 24px;
  height: 24px;
}

.product-advice-actions a > svg {
  fill: none;
  stroke: var(--gold, #a48456);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.product-advice-actions a > img {
  border-radius: 50%;
  object-fit: cover;
}

.product-advice-actions strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.product-advice-actions small {
  display: block;
  overflow: hidden;
  color: #6f7480;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-advice-actions .product-inquiry-whatsapp {
  border-color: #176b50;
  background: #176b50;
  color: #fff;
}

.product-advice-actions .product-inquiry-whatsapp small {
  color: rgba(255, 255, 255, .8);
}

/* ---------- Product information ---------- */
.product-info-title {
  margin: 0;
  padding: 22px 0 6px;
  color: var(--navy, #071b36);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.01em;
}

.product-detail-info {
  border-top: 0 !important;
}

.product-detail-info details {
  interpolate-size: allow-keywords;
}

.product-detail-info details::details-content {
  height: 0;
  overflow: hidden;
  transition: height .3s ease, content-visibility .3s allow-discrete;
}

.product-detail-info details[open]::details-content {
  height: auto;
}

.product-detail-info summary {
  align-items: center;
  transition: color .2s ease;
}

.product-detail-info summary:hover {
  color: var(--gold, #a48456);
}

.product-detail-info summary span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line, #d8d8d4);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 300;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.product-detail-info details[open] summary span {
  border-color: var(--navy, #071b36);
  background: var(--navy, #071b36);
  color: #fff;
  transform: rotate(45deg);
}

.product-info-body {
  padding: 0 0 20px;
}

.product-info-body p {
  margin: 0 0 14px !important;
}

.product-info-specs {
  display: grid;
  margin: 4px 0 0;
  border-top: 1px solid #efeae1;
}

.product-info-specs div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #efeae1;
  font-size: 13px;
}

.product-info-specs dt {
  color: #6f7480;
}

.product-info-specs dd {
  margin: 0;
  color: var(--navy, #071b36);
  font-weight: 500;
}

.product-info-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-info-list li {
  position: relative;
  padding-left: 18px;
  color: #59636e;
  font-size: 14px;
  line-height: 1.6;
}

.product-info-list li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold, #a48456);
}

.product-info-list strong {
  color: var(--navy, #071b36);
  font-weight: 600;
}

.product-info-payments {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin-top: 4px;
}

/* ---------- Zoom: thumbnails, help, smoother gestures ---------- */
.product-zoom-modal > section {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.product-zoom-stage {
  cursor: zoom-in;
}

.product-zoom-modal.is-zoomed .product-zoom-stage {
  cursor: grab;
}

.product-zoom-stage img {
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: transform .22s cubic-bezier(.2, .7, .2, 1) !important;
}

.product-zoom-stage img.dragging {
  transition: none !important;
}

.product-zoom-help {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 50%;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(7, 27, 54, .72);
  color: #fff;
  font-size: 11px;
  letter-spacing: .02em;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  animation: zoom-help 4.5s ease forwards;
}

.product-zoom-modal.is-zoomed .product-zoom-help {
  display: none;
}

.product-zoom-help .for-touch {
  display: none;
}

@media (hover: none), (pointer: coarse) {
  .product-zoom-help .for-mouse {
    display: none;
  }

  .product-zoom-help .for-touch {
    display: inline;
  }
}

@keyframes zoom-help {
  0%, 75% { opacity: 1; }
  100% { opacity: 0; }
}

.product-zoom-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  overflow-x: auto;
  border-top: 1px solid #d8d4cc;
  background: #fff;
}

.product-zoom-thumbs[hidden] {
  display: none;
}

.product-zoom-thumbs button {
  flex: none;
  width: 58px;
  height: 58px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f3f1ed;
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s ease, border-color .2s ease;
}

.product-zoom-thumbs button[aria-current="true"],
.product-zoom-thumbs button:hover {
  border-color: var(--navy, #071b36);
  opacity: 1;
}

.product-zoom-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

@media (max-width: 640px) {
  .product-advice {
    padding: 18px 16px 16px;
  }

  .product-advice-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-info-specs div {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .product-zoom-thumbs {
    justify-content: flex-start;
  }

  .product-zoom-thumbs button {
    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-advice::details-content,
  .product-advice-toggle,
  .product-detail-info details::details-content,
  .product-zoom-stage img,
  .product-advice-actions a {
    transition: none !important;
  }

  .product-zoom-help {
    animation: none;
  }
}
