.product-detail-page .navbar:not(.scrolled) {
  background: var(--espresso);
}

.product-page {
  padding: calc(var(--navbar-height, 80px) + 28px) 24px 64px;
}
.product-page .container {
  max-width: 1180px;
  padding: 0;
}
.product-page a {
  color: var(--coffee);
  text-underline-offset: 4px;
}
.product-page :is(a, button, input, select):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.product-breadcrumb {
  margin-bottom: 28px;
  color: #6b5040;
  font-size: 0.85rem;
}
.product-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  list-style: none;
}
.product-breadcrumb li + li::before {
  content: "/";
  margin-right: 12px;
  color: var(--latte);
}
.product-detail.coffee-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  overflow: visible;
  border-radius: 0;
  transition: none;
}
.product-detail.coffee-card:hover {
  transform: none;
  box-shadow: none;
}
.product-visual {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8d9c7;
  border-radius: 24px;
}
.product-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.product-visual .product-placeholder {
  padding: 22%;
}
.product-visual figcaption {
  padding: 0 20px 20px;
  text-align: center;
  color: #6b5040;
  font-size: 0.8rem;
}
.product-purchase {
  min-width: 0;
  padding-top: 4px;
}
.product-eyebrow {
  color: #865018;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.product-purchase h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
  margin-bottom: 20px;
}
.product-intro {
  color: #6b5040;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.product-price-block {
  padding: 20px 0;
  border-top: 1px solid #e8d9c7;
  border-bottom: 1px solid #e8d9c7;
  margin-bottom: 24px;
}
.product-price-label,
.product-field-help {
  font-size: 0.8rem;
  color: #6b5040;
}
.product-price-block .card-price {
  font-size: 2rem;
  margin: 4px 0;
}
.product-price-contact {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 8px 0;
}
.product-availability {
  font-size: 0.85rem;
  color: #805621;
}
.product-availability.is-available {
  color: #3b6342;
}
.product-variant-form {
  margin-bottom: 22px;
}
.product-variant-form label,
.product-quantity-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.product-variant-form .grind-select {
  min-height: 48px;
  padding: 10px 12px;
  font-size: 0.9rem;
}
.product-field-help {
  margin-top: 8px;
}
.product-actions {
  gap: 12px;
}
.product-actions .qty-stepper {
  height: 48px;
}
.product-actions .qty-btn {
  width: 32px;
  height: 40px;
}
.product-actions .qty-input {
  width: 36px;
}
.product-actions .card-btn {
  min-height: 48px;
  height: auto;
  padding: 12px 16px;
  white-space: normal;
  line-height: 1.4;
}
.product-actions :disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.product-actions .card-btn:disabled:hover {
  background: var(--espresso);
  color: var(--cream);
  transform: none;
}
.product-cart-status {
  min-height: 1.7em;
  margin: 10px 0;
  font-size: 0.9rem;
  color: var(--coffee);
}
.product-purchase-links {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.product-shipping-note {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: var(--cream);
  font-size: 0.85rem;
  color: var(--coffee);
}
.product-information {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid #e8d9c7;
}
.product-information section {
  padding: 0;
  min-width: 0;
}
.product-information h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.product-prose p {
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.product-attributes {
  margin-top: 24px;
  font-size: 0.9rem;
}
.product-attributes > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e8d9c7;
  overflow-wrap: anywhere;
}
.product-attributes dt {
  font-weight: 600;
}
.product-information .product-policies {
  padding: 24px;
  border-radius: 20px;
  background: #f3e9dc;
}
.product-policies h3 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.product-policies > div {
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--coffee);
}
.product-support {
  padding-top: 16px;
  border-top: 1px solid #dfcbb4;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}
.product-back-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 0.9rem;
}
.product-variant-submit {
  padding: 10px 16px;
  margin-top: 12px;
  font: inherit;
  border: 1px solid var(--latte);
  border-radius: 10px;
  background: var(--cream);
  color: var(--espresso);
  cursor: pointer;
}
@media (max-width: 760px) {
  .product-page {
    padding: calc(var(--navbar-height, 72px) + 20px) 20px 40px;
  }
  .product-detail.coffee-card,
  .product-information {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-visual {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }
  .product-purchase h1 {
    font-size: 2.1rem;
  }
  .product-information {
    margin-top: 36px;
    padding-top: 28px;
  }
}
