/* ============================== */
/* PRODUCT PAGE STYLES */
/* ============================== */



[hidden] {
  display: none !important;
}

/* Evita que el header fijo cubra el contenido */
main {
  min-height: 70vh;
}

/* ============================== */
/* BREADCRUMB */
/* ============================== */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 10px;
  font-size: 13px;
  color: var(--product-text-muted);
}

.breadcrumb a {
  color: var(--product-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--product-primary-dark);
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 4px;
}

.breadcrumb [aria-current="page"] {
  color: var(--product-text);
  font-weight: 600;
}

/* ============================== */
/* LOADING AND ERROR */
/* ============================== */

.product-loading,
.product-error {
  width: calc(100% - 40px);
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 50px 24px;
  text-align: center;
  background: var(--product-white);
  border: 1px solid var(--product-primary-light);
  border-radius: 14px;
}

.product-loading p {
  margin: 0;
  color: var(--product-text-soft);
}

.product-error h1 {
  margin: 0 0 12px;
  color: var(--product-text);
  font-size: 28px;
}

.product-error p {
  margin: 0 0 24px;
  color: var(--product-text-soft);
}

.back-catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  color: var(--product-white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: var(--product-primary);
  border-radius: 8px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.back-catalog-btn:hover {
  background: var(--product-primary-dark);
  transform: translateY(-1px);
}

/* ============================== */
/* PRODUCT CONTAINER */
/* ============================== */

.product-container {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 48px;
  width: calc(100% - 40px);
  max-width: 1180px;
  margin: 18px auto 70px;
  padding: 28px;
  background: var(--product-white);
  border: 1px solid rgba(141, 110, 99, 0.1);
  border-radius: 16px;
  box-shadow: var(--product-shadow);
}

/* ============================== */
/* PRODUCT GALLERY */
/* ============================== */

.product-gallery {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
  align-self: start;
  min-width: 0;
}

.thumbnail-images {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 570px;
  padding-right: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--product-primary-light) transparent;
}

.thumbnail {
  display: block;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  padding: 9px;
  box-sizing: border-box;
  overflow: hidden;
  object-fit: contain !important;
  object-position: center;
  background: var(--product-background);
  border: 2px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  opacity: 0.78;
  transition:
    border-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* Compatible tanto con <img class="thumbnail"> como con
   <button/div class="thumbnail"><img ...></button/div>. */
img.thumbnail {
  object-fit: contain !important;
  object-position: center !important;
}

.thumbnail > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center !important;
}

.thumbnail:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.thumbnail.active {
  border-color: var(--product-primary);
  opacity: 1;
}

.main-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 450px;
  max-height: 570px;
  padding: 12px;
  overflow: hidden;
  background: var(--product-background);
  border-radius: 12px;
}

.main-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 545px;
  object-fit: contain;
  border-radius: 8px;
}

.arrow-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--product-text);
  font-size: 27px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(141, 110, 99, 0.15);
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(50, 40, 35, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.arrow-btn:hover {
  color: var(--product-primary);
  background: var(--product-white);
  transform: translateY(-50%) scale(1.05);
}

.arrow-btn:focus-visible,
.thumbnail:focus-visible {
  outline: 3px solid rgba(141, 110, 99, 0.3);
  outline-offset: 2px;
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.image-counter {
  grid-column: 2;
  margin: 0;
  color: var(--product-text-muted);
  font-size: 12px;
  text-align: center;
}

/* ============================== */
/* PRODUCT DETAILS */
/* ============================== */

.product-details {
  display: flex;
  flex-direction: column;
  gap: 19px;
  min-width: 0;
}

.product-header {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.product-category {
  color: var(--product-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-header h1 {
  margin: 0;
  color: var(--product-text);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 750;
  line-height: 1.18;
}

.product-description {
  margin: 2px 0 0;
  color: var(--product-text-soft);
  font-size: 15px;
  line-height: 1.65;
}

/* ============================== */
/* SELLER */
/* ============================== */

.seller-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13px;
}

.seller-label {
  color: var(--product-text-muted);
}

.seller-name {
  color: var(--product-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.seller-name:hover {
  color: var(--product-primary-dark);
}

.verified-badge {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

/* ============================== */
/* PRICE */
/* ============================== */

.price-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px;
  background: var(--product-background);
  border-radius: 11px;
}

.discount-container {
  display: flex;
  align-items: center;
  gap: 9px;
}

.original-price {
  color: var(--product-text-muted);
  font-size: 14px;
  text-decoration: line-through;
}

.discount-badge {
  padding: 3px 7px;
  color: var(--product-white);
  font-size: 11px;
  font-weight: 700;
  background: var(--product-success);
  border-radius: 5px;
}

.product-price {
  margin: 0;
  color: var(--product-primary);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
}

.price-note {
  margin: 0;
  color: var(--product-text-muted);
  font-size: 12px;
}

.purchase-information {
  padding: 18px;
  background: var(--product-background);
  border-radius: 12px;
  color: var(--product-text-muted);
  line-height: 1.7;
  font-size: 14px;
}

.purchase-information p {
  margin: 0 0 10px;
}

.purchase-information p:last-child {
  margin-bottom: 0;
}

.product-secondary-information {
  display: grid;
  gap: 22px;
}

/* Compatibility with previous generated markup */
.discount-price {
  color: var(--product-primary);
  font-size: 30px;
  font-weight: 800;
}

.discount-percent,
.sale-badge {
  padding: 4px 7px;
  color: var(--product-white);
  font-size: 11px;
  font-weight: 700;
  background: var(--product-success);
  border-radius: 5px;
}

/* ============================== */
/* QUANTITY AND CART */
/* ============================== */

.add-to-cart-section {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.quantity-selector {
  display: flex;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--product-white);
  border: 1px solid var(--product-border);
  border-radius: 9px;
}

.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-height: 46px;
  padding: 0;
  color: var(--product-text);
  font-size: 19px;
  background: var(--product-background);
  border: 0;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.qty-btn:hover {
  color: var(--product-primary);
  background: var(--product-primary-light);
}

.qty-input {
  width: 52px;
  min-height: 46px;
  padding: 0 4px;
  color: var(--product-text);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  background: var(--product-white);
  border: 0;
  border-right: 1px solid var(--product-border);
  border-left: 1px solid var(--product-border);
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.qty-input:focus {
  outline: none;
}

.add-to-cart-btn {
  flex: 1;
  min-height: 46px;
  padding: 11px 18px;
  color: var(--product-white);
  font-size: 14px;
  font-weight: 750;
  background: var(--product-primary);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.add-to-cart-btn:hover {
  background: var(--product-primary-dark);
  box-shadow: 0 5px 14px rgba(118, 90, 74, 0.2);
  transform: translateY(-1px);
}

.add-to-cart-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

#product-specifications {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.add-to-cart-btn:focus-visible,
.qty-btn:focus-visible,
.qty-input:focus-visible {
  outline: 3px solid rgba(141, 110, 99, 0.3);
  outline-offset: 2px;
}

.cart-message {
  min-height: 19px;
  margin: -9px 0 0;
  color: var(--product-success);
  font-size: 13px;
  font-weight: 600;
}

.cart-message.error {
  color: #b33a3a;
}

/* Optional cart counter from the updated HTML */

/* ============================== */
/* SPECIFICATIONS */
/* ============================== */

.specs-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px;
  background: var(--product-background);
  border-radius: 11px;
}

.specs-section h2 {
  margin: 0;
  color: var(--product-text);
  font-size: 16px;
  font-weight: 750;
}

#product-specifications {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-item {
  display: grid;
  grid-template-columns: 18px minmax(105px, 0.75fr) minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(141, 110, 99, 0.12);
}

.spec-item:last-child {
  border-bottom: 0;
}

.spec-icon {
  color: var(--product-primary);
  font-size: 12px;
  line-height: 1.5;
}

.spec-label {
  color: var(--product-text-soft);
  font-weight: 700;
}

.spec-value {
  color: var(--product-text);
  overflow-wrap: anywhere;
}

.view-specs-link {
  align-self: flex-start;
  padding: 0;
  color: var(--product-primary);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.view-specs-link:hover {
  color: var(--product-primary-dark);
  text-decoration: underline;
}

/* ============================== */
/* PRODUCT CODE */
/* ============================== */

.product-code {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  font-size: 12px;
  background: var(--product-background);
  border-radius: 8px;
}

.code-label {
  color: var(--product-text-soft);
  font-weight: 700;
}

.code-value {
  color: var(--product-text);
  overflow-wrap: anywhere;
}

/* ============================== */
/* PRODUCTION AND DELIVERY */
/* ============================== */

.delivery-section {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding-top: 19px;
  border-top: 1px solid var(--product-primary-light);
}

.delivery-title {
  margin: 0;
  color: var(--product-text);
  font-size: 18px;
  font-weight: 750;
}

.delivery-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.delivery-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
}

.delivery-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}

.delivery-label {
  color: var(--product-text);
  font-size: 13px;
  font-weight: 700;
}

.delivery-subtitle {
  margin: 0;
  color: var(--product-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ============================== */
/* PERSONALIZATION NOTICE */
/* ============================== */

.personalization-notice {
  padding: 18px;
  background: #f8f1ed;
  border: 1px solid var(--product-primary-light);
  border-radius: 11px;
}

.personalization-notice h2 {
  margin: 0 0 8px;
  color: var(--product-text);
  font-size: 16px;
}

.personalization-notice p {
  margin: 0 0 15px;
  color: var(--product-text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.product-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  color: var(--product-white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: #267d48;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.product-whatsapp-link:hover {
  background: #1f693c;
  transform: translateY(-1px);
}

/* ============================== */
/* RELATED PRODUCTS */
/* ============================== */

.related-products-section {
  width: calc(100% - 40px);
  max-width: 1180px;
  margin: 0 auto 80px;
}

.related-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.related-products-header h2 {
  margin: 0;
  color: var(--product-text);
  font-size: 25px;
}

.related-products-header a {
  color: var(--product-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.related-products-header a:hover {
  color: var(--product-primary-dark);
  text-decoration: underline;
}

.related-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/*
 * Estas clases admiten tanto tarjetas creadas con article
 * como enlaces directos generados desde product.js.
 */
.related-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--product-white);
  border: 1px solid var(--product-primary-light);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(70, 52, 45, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.related-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 24px rgba(70, 52, 45, 0.11);
}

.related-product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--product-background);
}

.related-product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 15px;
}

.related-product-category {
  color: var(--product-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.related-product-card h3 {
  margin: 0;
  color: var(--product-text);
  font-size: 16px;
  line-height: 1.35;
}

.related-product-note {
  margin: 0;
  color: var(--product-text-muted);
  font-size: 13px;
}

.related-product-price {
  margin: auto 0 0;
  color: var(--product-primary);
  font-size: 17px;
  font-weight: 800;
}

/* ============================== */
/* TABLET */
/* ============================== */

@media (max-width: 960px) {
  .product-container {
    grid-template-columns: 1fr;
    gap: 34px;
    max-width: 760px;
  }

  .product-gallery {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .main-image-container {
    min-height: 430px;
  }

  .related-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================== */
/* MOBILE */
/* ============================== */

@media (max-width: 640px) {
  .breadcrumb {
    padding: 18px 15px 6px;
    font-size: 11px;
  }

  .breadcrumb-category {
    display: none;
  }

  .breadcrumb-category + span {
    display: none;
  }

  .product-loading,
  .product-error {
    width: calc(100% - 30px);
    margin-top: 25px;
    padding: 38px 18px;
  }

  .product-container {
    width: calc(100% - 24px);
    margin-top: 14px;
    margin-bottom: 45px;
    padding: 14px;
    border-radius: 13px;
  }

  .product-gallery {
    display: flex;
    flex-direction: column;
    gap: 11px;
  }

  .main-image-container {
    order: 1;
    min-height: 330px;
    padding: 8px;
  }

  .thumbnail-images {
    order: 2;
    flex-direction: row;
    max-width: 100%;
    padding: 1px 0 7px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .thumbnail {
    flex-basis: 70px;
    width: 70px;
    height: 70px;
    padding: 7px;
    object-fit: contain !important;
    object-position: center;
  }

  .image-counter {
    order: 3;
    margin-top: -3px;
  }

  .arrow-btn {
    width: 37px;
    height: 37px;
    font-size: 24px;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  .product-header h1 {
    font-size: 27px;
  }

  .product-price {
    font-size: 29px;
  }

  .add-to-cart-section {
    display: grid;
    grid-template-columns: 1fr 46px;
  }

  .quantity-selector {
    grid-column: 1 / -1;
    width: 100%;
  }

  .qty-btn {
    flex: 0 0 47px;
  }

  .qty-input {
    flex: 1;
    width: auto;
  }

  .add-to-cart-btn {
    width: 100%;
  }

  .spec-item {
    grid-template-columns: 15px minmax(92px, 0.8fr) minmax(0, 1fr);
    gap: 7px;
  }

  .related-products-section {
    width: calc(100% - 30px);
    margin-bottom: 55px;
  }

  .related-products-header h2 {
    font-size: 21px;
  }

  .related-products {
    grid-template-columns: 1fr;
  }
}

/* ============================== */
/* SMALL MOBILE */
/* ============================== */

@media (max-width: 380px) {
  .main-image-container {
    min-height: 285px;
  }

  .thumbnail {
    flex-basis: 62px;
    width: 62px;
    height: 62px;
    padding: 6px;
  }

  .product-container {
    width: calc(100% - 16px);
    padding: 11px;
  }

  .spec-item {
    grid-template-columns: 12px 1fr;
  }

  .spec-value {
    grid-column: 2;
  }
}

/* ==========================================================
   WARM ARTISAN THEME
   Keeps the product page aligned with Home and Catalog.
   ========================================================== */

:root {
  --artisan-ivory: #f8f3ea;
  --artisan-paper: #fffdf8;
  --artisan-cocoa: #4b3429;
  --artisan-brown: #6b4a3b;
  --artisan-terracotta: #b86545;
  --artisan-terracotta-dark: #994d34;
  --artisan-sand: #ddcbb9;
  --artisan-sage: #68785c;
  --artisan-muted: #75685f;
  --artisan-shadow: 0 20px 54px rgba(76, 52, 40, 0.1);

  --product-primary: var(--artisan-terracotta);
  --product-primary-dark: var(--artisan-terracotta-dark);
  --product-primary-light: #f1dfd2;
  --product-background: #f5efe6;
  --product-border: var(--artisan-sand);
  --product-text: var(--artisan-cocoa);
  --product-text-soft: #685a51;
  --product-text-muted: #8b7c72;
  --product-success: var(--artisan-sage);
  --product-white: var(--artisan-paper);
  --product-shadow: var(--artisan-shadow);
}

.product-page {
  color: var(--artisan-cocoa);
  background-color: var(--artisan-ivory);
  background-image:
    radial-gradient(circle at 14% 18%, rgba(184, 101, 69, 0.035), transparent 24rem),
    radial-gradient(circle at 86% 48%, rgba(107, 74, 59, 0.03), transparent 28rem);
}

.product-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.product-main::before {
  position: absolute;
  top: 40px;
  right: -55px;
  z-index: -1;
  width: 290px;
  height: 290px;
  background: url("../assets/brand/tree-symbol.png") center / contain no-repeat;
  content: "";
  opacity: 0.035;
  pointer-events: none;
}

.breadcrumb {
  max-width: 1200px;
  padding-top: 30px;
  color: var(--artisan-muted);
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

.breadcrumb a {
  color: var(--artisan-terracotta-dark);
}

.product-loading,
.product-error {
  background: rgba(255, 253, 248, 0.92);
  border-color: var(--artisan-sand);
  border-radius: 20px;
  box-shadow: var(--artisan-shadow);
}

.product-error h1,
.related-products-header h2,
.delivery-title,
.personalization-notice h2,
.specs-section h2 {
  font-family: "Libre Baskerville", Georgia, serif;
}

.back-catalog-btn,
.add-to-cart-btn {
  background: var(--artisan-terracotta);
  border: 1px solid var(--artisan-terracotta);
  border-radius: 999px;
  box-shadow: 0 9px 20px rgba(153, 77, 52, 0.16);
}

.back-catalog-btn:hover,
.add-to-cart-btn:hover {
  background: var(--artisan-terracotta-dark);
  border-color: var(--artisan-terracotta-dark);
  box-shadow: 0 12px 24px rgba(153, 77, 52, 0.22);
}

.add-to-cart-btn.is-added {
  background: var(--artisan-sage);
  border-color: var(--artisan-sage);
}

.product-container {
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 44px 52px;
  max-width: 1200px;
  margin-top: 12px;
  padding: clamp(22px, 3vw, 36px);
  background: rgba(255, 253, 248, 0.94);
  border-color: rgba(190, 160, 137, 0.58);
  border-radius: 22px;
  box-shadow: var(--artisan-shadow);
}

.product-gallery {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
}

.thumbnail-images {
  scrollbar-color: var(--artisan-sand) transparent;
}

.thumbnail {
  width: 82px;
  height: 82px;
  flex-basis: 82px;
  background: #f4eee5;
  border-color: transparent;
  border-radius: 12px;
}

.thumbnail:hover {
  border-color: rgba(184, 101, 69, 0.45);
}

.thumbnail.active {
  border-color: var(--artisan-terracotta);
  box-shadow: 0 0 0 3px rgba(184, 101, 69, 0.1);
}

.main-image-container {
  min-height: 500px;
  background: #f3ede4;
  border: 1px solid rgba(190, 160, 137, 0.46);
  border-radius: 18px;
}

.main-image {
  border-radius: 13px;
}

.arrow-btn {
  color: var(--artisan-cocoa);
  background: rgba(255, 253, 248, 0.94);
  border-color: rgba(190, 160, 137, 0.62);
  box-shadow: 0 5px 18px rgba(75, 52, 41, 0.13);
}

.arrow-btn:hover {
  color: var(--artisan-terracotta-dark);
  background: var(--artisan-paper);
}

.image-counter {
  color: var(--artisan-muted);
}

.product-details {
  gap: 18px;
  padding: 4px 0;
}

.product-header {
  gap: 11px;
}

.product-category {
  color: var(--artisan-terracotta-dark);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.product-header h1 {
  color: var(--artisan-cocoa);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(30px, 3vw, 41px);
  font-weight: 700;
  line-height: 1.2;
}

.product-description {
  color: #6f6259;
  font-size: 15px;
  line-height: 1.72;
}

.seller-info {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(190, 160, 137, 0.42);
}

.seller-label {
  color: var(--artisan-muted);
}

.seller-name {
  color: var(--artisan-brown);
}

.price-section {
  position: relative;
  gap: 5px;
  padding: 18px 20px 18px 23px;
  overflow: hidden;
  background: #f5ebe1;
  border: 1px solid #ead7c7;
  border-radius: 14px;
}

.price-section::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--artisan-terracotta);
  content: "";
}

.product-price,
.related-product-price {
  color: var(--artisan-terracotta-dark);
}

.product-price {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
}

.discount-badge,
.discount-percent,
.sale-badge {
  background: var(--artisan-sage);
  border-radius: 999px;
}

.purchase-information {
  display: grid;
  gap: 10px;
  padding: 0;
  color: #6f6259;
  background: transparent;
  border-radius: 0;
}

.purchase-information p {
  position: relative;
  margin: 0;
  padding: 10px 12px 10px 36px;
  background: rgba(248, 243, 234, 0.8);
  border: 1px solid rgba(190, 160, 137, 0.42);
  border-radius: 11px;
}

.purchase-information p::before {
  position: absolute;
  top: 9px;
  left: 12px;
  color: var(--artisan-terracotta-dark);
  font-weight: 700;
  content: "✓";
}

.quantity-selector {
  background: var(--artisan-paper);
  border-color: var(--artisan-sand);
  border-radius: 999px;
}

.qty-btn {
  color: var(--artisan-cocoa);
  background: #f4eee5;
}

.qty-btn:hover {
  color: var(--artisan-terracotta-dark);
  background: #eddfd1;
}

.qty-input {
  color: var(--artisan-cocoa);
  background: var(--artisan-paper);
  border-color: var(--artisan-sand);
}

.cart-message {
  color: var(--artisan-sage);
}

.specs-section {
  gap: 14px;
  padding: 19px 20px;
  background: rgba(248, 243, 234, 0.72);
  border: 1px solid rgba(190, 160, 137, 0.46);
  border-radius: 14px;
}

.specs-section h2 {
  color: var(--artisan-cocoa);
  font-size: 16px;
  font-weight: 700;
}

.spec-item {
  border-bottom-color: rgba(190, 160, 137, 0.34);
}

.spec-icon {
  color: var(--artisan-terracotta-dark);
}

.product-code {
  background: transparent;
  border: 1px dashed rgba(160, 126, 101, 0.48);
  border-radius: 10px;
}

.product-secondary-information {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
  padding-top: 30px;
  border-top: 1px solid rgba(190, 160, 137, 0.48);
}

.delivery-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(190, 160, 137, 0.5);
  border-radius: 16px;
}

.delivery-title {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--artisan-cocoa);
  font-size: 19px;
}

.delivery-item {
  min-height: 96px;
  padding: 13px;
  background: #f8f3ea;
  border: 1px solid rgba(190, 160, 137, 0.34);
  border-radius: 12px;
}

.delivery-icon {
  width: 30px;
  height: 30px;
  filter: sepia(0.16) saturate(0.8);
}

.delivery-label {
  color: var(--artisan-cocoa);
}

.delivery-subtitle {
  color: var(--artisan-muted);
}

.delivery-item-tracking {
  grid-column: 1 / -1;
  min-height: 0;
  background: #f2e3d7;
  border-color: #dfc6b4;
}

.delivery-tracking-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--artisan-terracotta-dark);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid #d8bca8;
  border-radius: 50%;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
}

.personalization-notice {
  position: relative;
  align-self: stretch;
  padding: 25px;
  overflow: hidden;
  background: #f2e3d7;
  border-color: #dfc6b4;
  border-radius: 16px;
}

.personalization-notice::after {
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 180px;
  height: 180px;
  background: url("../assets/brand/tree-symbol.png") center / contain no-repeat;
  content: "";
  opacity: 0.055;
  pointer-events: none;
}

.personalization-notice h2,
.personalization-notice p,
.personalization-notice a {
  position: relative;
  z-index: 1;
}

.personalization-notice h2 {
  color: var(--artisan-cocoa);
  font-size: 18px;
}

.personalization-notice p {
  color: #6a594f;
  font-size: 13px;
  line-height: 1.7;
}

.product-whatsapp-link {
  min-height: 43px;
  padding-inline: 18px;
  background: #55705b;
  border-radius: 999px;
}

.product-whatsapp-link:hover {
  background: #405b47;
}

.related-products-section {
  max-width: 1200px;
  margin-bottom: 88px;
}

.related-products-header {
  margin-bottom: 22px;
}

.related-products-header h2 {
  color: var(--artisan-cocoa);
  font-size: clamp(24px, 3vw, 31px);
}

.related-products-header a {
  color: var(--artisan-terracotta-dark);
}

.related-products {
  gap: 24px;
}

.related-product-card {
  background: rgba(255, 253, 248, 0.94);
  border-color: rgba(190, 160, 137, 0.55);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(75, 52, 41, 0.07);
}

.related-product-card:hover {
  border-color: rgba(184, 101, 69, 0.55);
  box-shadow: 0 16px 34px rgba(75, 52, 41, 0.12);
}

.related-product-card img {
  aspect-ratio: 1 / 1;
  background: #f3ede4;
}

.related-product-card img.image-fallback,
.main-image.image-fallback,
.thumbnail > img.image-fallback {
  padding: clamp(24px, 8%, 58px);
  object-fit: contain !important;
  opacity: 0.72;
}

.related-product-info {
  gap: 8px;
  padding: 18px;
}

.related-product-category {
  color: var(--artisan-terracotta-dark);
  letter-spacing: 0.1em;
}

.related-product-card h3 {
  color: var(--artisan-cocoa);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
}

.related-product-note {
  color: var(--artisan-terracotta-dark);
  font-weight: 600;
}

.related-product-price {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
}

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

  .product-secondary-information {
    grid-template-columns: 1fr;
  }

  .main-image-container {
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  .product-main::before {
    top: 18px;
    right: -70px;
    width: 210px;
    height: 210px;
  }

  .breadcrumb {
    padding: 20px 14px 7px;
  }

  .product-container {
    width: calc(100% - 20px);
    margin-top: 10px;
    margin-bottom: 50px;
    padding: 12px;
    border-radius: 18px;
  }

  .main-image-container {
    min-height: 330px;
    border-radius: 14px;
  }

  .thumbnail {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    border-radius: 10px;
  }

  .product-details {
    gap: 16px;
    padding: 4px 2px 0;
  }

  .product-header h1 {
    font-size: 28px;
  }

  .seller-info {
    align-items: flex-start;
  }

  .price-section,
  .specs-section {
    padding: 16px;
  }

  .add-to-cart-section {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .quantity-selector,
  .add-to-cart-btn {
    grid-column: auto;
  }

  .add-to-cart-btn {
    min-height: 50px;
  }

  .product-secondary-information {
    gap: 14px;
    padding-top: 22px;
  }

  .delivery-section {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .delivery-title {
    grid-column: auto;
  }

  .delivery-item {
    min-height: 0;
  }

  .delivery-item-tracking {
    grid-column: auto;
  }

  .personalization-notice {
    padding: 21px;
  }

  .related-products-section {
    width: calc(100% - 24px);
  }

  .related-products-header {
    align-items: flex-end;
  }
}

@media (max-width: 380px) {
  .product-container {
    width: calc(100% - 14px);
    padding: 9px;
  }

  .main-image-container {
    min-height: 285px;
  }

  .product-header h1 {
    font-size: 25px;
  }

  .spec-item {
    grid-template-columns: 13px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .related-product-card,
  .add-to-cart-btn,
  .arrow-btn,
  .thumbnail {
    transition: none;
  }
}