/* Keep product details centered and aligned with the shared site palette. */
.cloe-product-page {
  width: min(100% - 32px, 1440px);
  margin: 0 auto;
  padding: 28px 0 64px;
}

.cloe-product-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #f8e0c8;
  font-size: 0.9rem;
}

.cloe-product-breadcrumbs a {
  color: #dab88a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cloe-product-breadcrumbs a:hover {
  color: #f8e0c8;
}

/* Use a wide product column and a compact purchase panel on desktop. */
.cloe-product {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
}

.cloe-product-content {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.cloe-product-gallery h1 {
  margin: 0 0 18px;
  color: #f8e0c8;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.cloe-product-main-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dab88a;
  border-radius: 16px;
  background-color: #f8e0c8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cloe-product-main-image img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
}

.cloe-product-image-zoom {
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  touch-action: pan-y;
}

.cloe-product-image-zoom__lens {
  position: absolute;
  z-index: 1;
  visibility: hidden;
  width: clamp(120px, 20vw, 180px);
  aspect-ratio: 1;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.cloe-product-image-zoom.is-zoom-active .cloe-product-image-zoom__lens {
  visibility: visible;
}

.cloe-product-main-image figcaption {
  padding: 10px 14px;
  background-color: #f8e0c8;
  color: #5f5b52;
  font-size: 0.85rem;
}

.cloe-product-description,
.cloe-product-specifications {
  padding: 22px;
  border: 1px solid rgba(218, 184, 138, 0.7);
  border-radius: 14px;
  background-color: #f8e0c8;
  color: #274928;
}

.cloe-product-description h2,
.cloe-product-specifications h2 {
  margin: 0 0 14px;
  color: #274928;
  font-size: 1.35rem;
}

.cloe-product-description p {
  margin: 0;
  color: #4f5148;
  line-height: 1.7;
}

.cloe-specifications-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
}

.cloe-specifications-grid div {
  padding: 12px 0;
  border-bottom: 1px solid rgba(39, 73, 40, 0.18);
}

.cloe-specifications-grid dt {
  margin-bottom: 4px;
  color: #6a5d55;
  font-size: 0.85rem;
  font-weight: 700;
}

.cloe-specifications-grid dd {
  margin: 0;
  font-weight: 700;
}

/* Make the purchase information easy to find without hiding it on small screens. */
.cloe-purchase-panel {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #dab88a;
  border-radius: 16px;
  background-color: #f8e0c8;
  color: #274928;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cloe-price-box {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(39, 73, 40, 0.2);
}

.cloe-product-label {
  margin: 0 0 8px;
  color: #6a5d55;
  font-size: 0.95rem;
  font-weight: 700;
}

.cloe-current-price {
  margin: 0;
  color: #274928;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
}

.cloe-current-price span {
  color: #6a5d55;
  font-size: 0.9rem;
  font-weight: 600;
}

.cloe-promotion-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  background-color: rgba(218, 184, 138, 0.28);
}

.cloe-promotion-message i {
  margin-top: 3px;
  color: #6a5d55;
}

.cloe-promotion-message p {
  margin: 0;
  line-height: 1.5;
}

.cloe-purchase-actions {
  display: grid;
  gap: 12px;
}

.cloe-primary-action,
.cloe-secondary-action {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid #6a5d55;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.cloe-primary-action {
  background-color: #6a5d55;
  color: #f8e0c8;
}

.cloe-primary-action:hover {
  transform: translateY(-2px);
  background-color: #4f443e;
}

.cloe-secondary-action {
  background-color: transparent;
  color: #274928;
}

.cloe-secondary-action:hover {
  background-color: #ead0b5;
}

.cloe-primary-action:focus-visible,
.cloe-secondary-action:focus-visible,
.cloe-product-breadcrumbs a:focus-visible {
  outline: 3px solid #dab88a;
  outline-offset: 3px;
}

.cloe-store-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: #5f5b52;
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 850px) {
  .cloe-product {
    grid-template-columns: minmax(0, 1fr);
  }

  .cloe-purchase-panel {
    position: static;
  }
}

@media (max-width: 520px) {
  .cloe-product-page {
    width: min(100% - 24px, 1440px);
    padding-top: 20px;
  }

  .cloe-specifications-grid {
    grid-template-columns: 1fr;
  }

  .cloe-product-description,
  .cloe-product-specifications {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloe-primary-action,
  .cloe-secondary-action {
    transition: none;
  }
}
