/* Product page (/vegetable/{slug}). Depends on tokens/base/layout/components. */

.kc-product-crumbs { background: var(--kc-sun); padding: 16px 0; }
.kc-product-crumbs .kc-crumbs { margin-bottom: 0; }
.kc-product { padding: 36px 0 0; }
.kc-product__layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }

/* gallery */
.kc-gallery { position: sticky; top: calc(var(--kc-header-h) + 16px); display: grid; gap: 12px; }
.kc-gallery__main {
  position: relative; background: var(--kc-surface); border: 1px solid var(--kc-line); border-radius: var(--kc-radius-xl);
  overflow: hidden; aspect-ratio: 1 / .88;
}
.kc-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.kc-gallery__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.kc-gallery__thumbs button {
  width: 80px; height: 80px; border-radius: var(--kc-radius); overflow: hidden; border: 2px solid var(--kc-line);
  padding: 0; background: var(--kc-surface); transition: border-color .2s;
}
.kc-gallery__thumbs button[aria-pressed="true"] { border-color: var(--kc-green); }
.kc-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* buy box */
.kc-buy { display: grid; gap: 14px; }
.kc-buy__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.kc-buy h1 { font-size: clamp(30px, 4vw, 44px); }
.kc-buy__farmer { font-size: 15px; }
.kc-buy__farmer a { color: var(--kc-green); font-weight: 700; }
.kc-buy__farmer a:hover { text-decoration: underline; }
.kc-buy__price { font-size: 30px; }
.kc-buy__price s { font-size: 18px; }
.kc-buy__price small { font-size: 14px; margin-top: 2px; }
.kc-buy__stock { display: flex; gap: 8px; align-items: center; color: var(--kc-green); font-weight: 600; }
.kc-buy__stock.is-out { color: var(--kc-chilli); }

.kc-buy__form {
  display: grid; gap: 16px; background: var(--kc-surface); border: 1px solid var(--kc-line);
  border-radius: var(--kc-radius-lg); padding: 18px; margin-top: 4px;
}
.kc-buy__qty { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kc-buy__label { font-weight: 700; color: var(--kc-green-deep); }
.kc-buy__qty .kc-stepper { height: 48px; }
.kc-buy__qty .kc-stepper button { width: 44px; }
.kc-buy__qty .kc-stepper output { min-width: 80px; font-size: 15px; }
.kc-buy__total { margin-left: auto; font-size: 22px; font-weight: 800; color: var(--kc-green-deep); }
.kc-buy__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kc-buy__actions .kc-btn { flex: 1 1 160px; height: 50px; }
.kc-buy__actions .kc-wish { position: static; flex: none; width: 50px; height: 50px; border: 1.5px solid var(--kc-line); box-shadow: none; }
.kc-buy__incart { font-size: 14px; color: var(--kc-green); font-weight: 600; }
.kc-buy__note { padding: 14px 16px; border-radius: var(--kc-radius); background: var(--kc-sun); }

/* specs */
.kc-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--kc-line); border: 1px solid var(--kc-line); border-radius: var(--kc-radius); overflow: hidden; margin-top: 6px; }
.kc-specs div { background: var(--kc-surface); padding: 12px 14px; }
.kc-specs dt { font-size: 12.5px; color: var(--kc-mute); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kc-specs dd { font-weight: 700; color: var(--kc-green-deep); }

.kc-product__about { margin-top: 48px; max-width: 820px; }
.kc-product__about h2 { font-size: 26px; margin-bottom: 10px; }
.kc-product__about p { font-size: 16.5px; }

@media (max-width: 900px) {
  .kc-product__layout { grid-template-columns: 1fr; gap: 24px; }
  .kc-gallery { position: static; }
}
@media (max-width: 480px) {
  .kc-specs { grid-template-columns: 1fr; }
  .kc-buy__total { margin-left: 0; width: 100%; }
  .kc-gallery__thumbs button { width: 64px; height: 64px; }
}
