/* Albi Boutique — Modern Luxury Product Detail Styling */

.product-breadcrumbs {
  max-width: 1360px;
  width: calc(100% - 44px);
  margin: 18px auto 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7b786f;
  flex-wrap: wrap;
}

.product-breadcrumbs a {
  color: #5a5851;
  text-decoration: none;
  transition: color 0.15s ease;
}

.product-breadcrumbs a:hover {
  color: #243657;
  text-decoration: underline;
}

.product-breadcrumbs .sep {
  color: #b8b5aa;
  font-size: 0.7rem;
}

.product-breadcrumbs .current {
  color: #243657;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* Page Layout */
.product-page {
  max-width: 1360px;
  width: calc(100% - 44px);
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  gap: 44px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Main Image Showcase */
.product-main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 580px;
  border-radius: 22px;
  background: #f7f8f5;
  border: 1px solid #eef3e5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(36, 54, 87, 0.03);
}

.product-main-image img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain !important;
  filter: drop-shadow(0 12px 24px rgba(36, 54, 87, 0.08));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-main-image:hover img {
  transform: scale(1.04);
}

.gallery-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}

.gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-badge.gold {
  background: #84b130;
  color: #243657;
  box-shadow: 0 2px 8px rgba(132, 177, 48, 0.25);
}

.gallery-badge.destination {
  background: rgba(36, 54, 87, 0.78);
  color: #ffffff;
  backdrop-filter: blur(8px);
  text-transform: none;
  font-weight: 650;
}

/* Thumbnails */
.product-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.product-thumbnails button {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  padding: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 13px;
  background: #f7f8f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
}

.product-thumbnails button img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}

.product-thumbnails button:hover {
  border-color: #dbe4d0;
  transform: translateY(-1px);
}

.product-thumbnails button.active {
  border-color: #84b130;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(132, 177, 48, 0.3);
}

/* Right Panel: Buy Panel */
.product-buy-panel {
  padding: 36px 34px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #eef3e5;
  box-shadow: 0 10px 35px rgba(36, 54, 87, 0.035);
  box-sizing: border-box;
}

.product-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.product-cat-tag {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #466519;
  background: #f7f8f5;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #faeec7;
}

.product-sku-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6a6860;
  background: #eef3e5;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #dbe4d0;
}

.product-buy-panel h1 {
  margin: 0 0 14px;
  color: #243657;
  font-size: clamp(1.8rem, 2.6vw, 2.45rem);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* Price & Status Row */
.price-availability-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}

.product-price {
  color: #243657;
  font-size: clamp(1.85rem, 2.3vw, 2.3rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.stock-pill.in-stock {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.stock-pill.in-stock .dot {
  background: #10b981;
}

.stock-pill.preorder {
  background: #f7f8f5;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.stock-pill.preorder .dot {
  background: #eab308;
}

.stock-pill.out-of-stock {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.stock-pill.out-of-stock .dot {
  background: #ef4444;
}

.stock-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Spec Chips */
.specs-pills-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  background: #f7f8f5;
  border: 1px solid #eef3e5;
  font-size: 0.77rem;
  color: #494741;
  font-weight: 600;
}

.spec-chip svg {
  color: #466519;
}

/* Description */
.product-description {
  color: #55534c;
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 24px;
  border-top: 1px solid #eef3e5;
  padding-top: 18px;
}

/* Variants */
.variant-fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.variant-fieldset legend {
  font-size: 0.83rem;
  font-weight: 750;
  color: #243657;
  margin-bottom: 10px;
  display: block;
}

.variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-pills label {
  cursor: pointer;
  user-select: none;
}

.variant-pills input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.variant-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid #dbe4d0;
  border-radius: 999px;
  background: #ffffff;
  color: #243657;
  font-size: 0.82rem;
  font-weight: 650;
  transition: all 0.16s ease;
}

.variant-pills input:checked + span {
  border-color: #243657;
  background: #243657;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(36, 54, 87, 0.15);
}

.variant-pills input:focus-visible + span {
  outline: 2px solid var(--albi-yellow, #84b130);
  outline-offset: 2px;
}

/* Quantity and Action Buttons */
.order-actions-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.product-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.product-quantity-label {
  color: var(--text);
  font-size: .86rem;
  font-weight: 700;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  height: 48px;
  border: 1px solid #dbe4d0;
  border-radius: 12px;
  background: #f7f8f5;
  overflow: hidden;
  box-sizing: border-box;
}

.quantity-control button {
  width: 44px;
  height: 46px;
  border: 0;
  background: transparent;
  color: #243657;
  font-size: 1.15rem;
  font-weight: 750;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.quantity-control button:hover {
  background: #eef3e5;
}

.quantity-control output {
  min-width: 32px;
  text-align: center;
  font-size: 0.96rem;
  font-weight: 800;
  color: #243657;
}

.product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.product-cart-button {
  height: 46px;
  flex: 1;
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border-radius: 12px;
  background: #243657;
  color: #ffffff;
  border: 0;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(36, 54, 87, 0.15);
}

.product-cart-button:hover {
  background: #243657;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(36, 54, 87, 0.22);
}

.product-cart-button:active {
  transform: translateY(0);
}

.product-whatsapp-button {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 12px;
  background: #15803d;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.product-whatsapp-button:hover {
  background: #166534;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.25);
}

/* Equal-width actions with a clear primary and secondary hierarchy. */
.product-order-form .product-actions > :is(button, a) {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  gap: 10px;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.product-order-form .product-actions svg { width: 20px; height: 20px; flex-shrink: 0; }
.product-order-form .product-actions .product-cart-button {
  background: #84b130;
  color: #243657;
  box-shadow: 0 5px 14px rgb(70 101 25 / 14%);
}
.product-order-form .product-actions .product-cart-button:hover {
  background: #97c344;
  box-shadow: 0 7px 18px rgb(70 101 25 / 20%);
}
.product-order-form .product-actions .product-whatsapp-button {
  border: 1px solid #c4dfcd;
  background: #f0f8f2;
  color: #116530;
  box-shadow: none;
}
.product-order-form .product-actions .product-whatsapp-button:hover {
  border-color: #16803d;
  background: #e3f2e7;
  box-shadow: 0 4px 12px rgb(22 128 61 / 9%);
}
.product-order-form .quantity-control:focus-within {
  outline: 2px solid #648b23;
  outline-offset: 3px;
}
:root[data-theme="dark"] .product-actions .product-whatsapp-button {
  background: #203b2b;
  color: #b7efc7;
  border-color: #4c785a;
}
:root[data-theme="dark"] .product-actions .product-whatsapp-button:hover { background: #294a35; }
@media (prefers-reduced-motion: reduce) {
  .product-order-form .product-actions > :is(button, a) { transition: none; transform: none; }
}

.product-feedback {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 0.83rem;
  font-weight: 750;
  color: #15803d;
  text-align: center;
}

/* Reassurance Trust Box */
.reassurance-box {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f7f8f5;
  border: 1px solid #eef3e5;
  display: grid;
  gap: 12px;
}

.reassurance-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.reassurance-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eef3e5;
  color: #466519;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.reassurance-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
  color: #243657;
}

.reassurance-item p {
  margin: 1px 0 0;
  font-size: 0.76rem;
  color: #6e6b63;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 1050px) {
  .product-page {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    gap: 32px;
  }
  .product-buy-panel {
    padding: 28px 24px;
  }
}

@media (max-width: 820px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product-gallery {
    position: static;
  }
  .product-main-image {
    max-height: 480px;
  }
  .product-buy-panel {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .product-breadcrumbs {
    width: calc(100% - 24px);
    margin: 12px auto 14px;
  }
  .product-page {
    width: calc(100% - 24px);
    gap: 20px;
  }
  .product-main-image {
    max-height: 360px;
    border-radius: 18px;
  }
  .product-thumbnails button {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
  }
  .product-buy-panel {
    padding: 20px 16px;
    border-radius: 18px;
  }
  .order-actions-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .quantity-control {
    justify-content: center;
  }
  .product-actions {
    flex-direction: column;
  }
  .product-cart-button,
  .product-whatsapp-button {
    width: 100%;
  }
}
