/* Product page: one gallery, one buy box. Shared by every theme that inherits temel.
   Shop accent stays on the layout; this file only uses it. */
.product-brand{color:var(--muted);font-weight:650;margin:8px 0}
.buybox .variant-title{font-weight:700;margin:0 0 12px}
.buybox .variant-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 20px}
.buybox .variant-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;min-width:0;padding:10px 8px;border:1px solid var(--line);border-radius:10px;text-align:center;text-decoration:none;color:var(--ink);background:var(--card);font-size:12px;line-height:1.4;scroll-margin-top:20px}
.buybox .variant-card img{width:80px;height:80px;object-fit:contain;border-radius:6px;background:var(--bg)}
.buybox .variant-card strong{font-size:13px;overflow-wrap:anywhere}
.buybox .variant-card small{font-size:10px;color:var(--muted)}
.buybox .variant-card[aria-current]{border:2px solid var(--accent);padding:9px 7px;box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 12%,transparent)}
.buybox .variant-card:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.buybox .variant-unavailable{opacity:.55;background:var(--bg)}
#urun-secenekleri{scroll-margin-top:20px}
@media(max-width:720px){.buybox .variant-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.product-rating{display:inline-block;margin:4px 0 12px;color:var(--ink);font-size:14px;text-decoration:none;border-bottom:1px solid var(--line)}
.product-stock{color:#287344;font-size:13px;font-weight:700;margin:8px 0 20px}
.product-section-nav{display:flex;gap:8px;flex-wrap:wrap;padding:20px 0;margin-top:24px;border-bottom:1px solid var(--line)}
.product-section-nav a{padding:12px 18px;border:1px solid var(--line);border-radius:10px;color:var(--ink);text-decoration:none;font-weight:650;background:var(--card)}
.product-section-nav a:hover{border-color:var(--accent);color:var(--accent)}
.product-panel{padding:28px;margin:24px 0;border:1px solid var(--line);border-radius:16px;background:var(--card);scroll-margin-top:24px;line-height:1.75}
.product-panel h2{font-size:23px;margin:0 0 20px}
.product-features{margin:20px 0 0}
.product-features>div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:20px;padding:13px 16px;border-bottom:1px solid var(--line)}
.product-features>div:nth-child(odd){background:var(--bg)}
.product-features dt{font-weight:650}.product-features dd{margin:0;overflow-wrap:anywhere}
.product-demo-note{padding:14px 18px;background:#fff4df;border:1px solid #f1d9a4;border-radius:10px;color:#704b14}
.product-review-summary{font-size:30px;font-weight:750;color:var(--accent)}
.product-review-summary span{font-size:14px;font-weight:400;color:var(--muted)}
.product-review-login{display:inline-flex;padding:12px 18px;border:1px solid var(--line);border-radius:8px;color:var(--ink);text-decoration:none}
.product-related{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0;list-style:none}
.product-related a{display:block;padding:20px;border:1px solid var(--line);border-radius:12px;color:var(--ink);text-decoration:none;font-weight:650}
@media(max-width:720px){.product-panel{padding:18px}.product-section-nav{gap:6px}.product-section-nav a{padding:10px 12px;font-size:13px}.product-related{grid-template-columns:repeat(2,minmax(0,1fr))}.product-features>div{gap:12px;padding:12px 8px}}
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(17rem, .85fr); gap: 2rem; align-items: start; }
.gallery { min-width: 0; }
.gallery-picks { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gallery-stage { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.gallery-stage img { display: none; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--line); }
.gallery:has(.gallery-pick:nth-child(1):checked) .gallery-stage img:nth-child(1),
.gallery:has(.gallery-pick:nth-child(2):checked) .gallery-stage img:nth-child(2),
.gallery:has(.gallery-pick:nth-child(3):checked) .gallery-stage img:nth-child(3),
.gallery:has(.gallery-pick:nth-child(4):checked) .gallery-stage img:nth-child(4),
.gallery:has(.gallery-pick:nth-child(5):checked) .gallery-stage img:nth-child(5),
.gallery:has(.gallery-pick:nth-child(6):checked) .gallery-stage img:nth-child(6),
.gallery:has(.gallery-pick:nth-child(7):checked) .gallery-stage img:nth-child(7),
.gallery:has(.gallery-pick:nth-child(8):checked) .gallery-stage img:nth-child(8) { display: block; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.gallery-thumbs label { cursor: pointer; }
.gallery-thumbs img { width: 4.25rem; height: 4.25rem; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.gallery:has(.gallery-pick:nth-child(1):checked) .gallery-thumbs label:nth-child(1) img,
.gallery:has(.gallery-pick:nth-child(2):checked) .gallery-thumbs label:nth-child(2) img,
.gallery:has(.gallery-pick:nth-child(3):checked) .gallery-thumbs label:nth-child(3) img,
.gallery:has(.gallery-pick:nth-child(4):checked) .gallery-thumbs label:nth-child(4) img,
.gallery:has(.gallery-pick:nth-child(5):checked) .gallery-thumbs label:nth-child(5) img,
.gallery:has(.gallery-pick:nth-child(6):checked) .gallery-thumbs label:nth-child(6) img,
.gallery:has(.gallery-pick:nth-child(7):checked) .gallery-thumbs label:nth-child(7) img,
.gallery:has(.gallery-pick:nth-child(8):checked) .gallery-thumbs label:nth-child(8) img { box-shadow: 0 0 0 2px var(--accent); }
.buybox { position: sticky; top: 5.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.3rem 1.4rem; }
.buybox h1 { margin-top: 0; }
.buy-price { margin: 0; font-size: 1.7rem; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.buy-vat { margin: .15rem 0 .8rem; color: var(--muted); font-size: .85rem; }
.buy-copy { margin: 0 0 1rem; color: var(--ink); }
.buybox select, .buybox input[type="number"] { background: var(--bg); }
.buybox button { min-height: 2.9rem; padding-inline: 1.4rem; }
@media (max-width: 800px) {
  .product { grid-template-columns: 1fr; gap: 1rem; }
  .buybox { position: static; }
  .buybox button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-stage img { transition: none; }
}


/* D-021: product detail hierarchy and purchase flow. */
.product { gap: clamp(1.25rem, 3vw, 2.75rem); }
.gallery { position: sticky; top: 6.5rem; }
.gallery-stage { box-shadow: 0 14px 34px rgba(20, 32, 54, .055); }
.gallery-stage { aspect-ratio: var(--product-frame, 1 / 1); }
.gallery-stage img { aspect-ratio: auto; object-fit: var(--product-fit, cover); padding: 0; height: 100%; }
.gallery-thumbs { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: .2rem .1rem .5rem; scrollbar-width: thin; }
.gallery-thumbs label { flex: 0 0 4.5rem; border-radius: 12px; }
.gallery-thumbs img { display: block; width: 4.5rem; height: auto; aspect-ratio: var(--product-frame, 1 / 1); object-fit: var(--product-fit, cover); padding: 0; transition: box-shadow .18s ease, border-color .18s ease; }
.buybox { box-shadow: 0 14px 34px rgba(20, 32, 54, .045); }
.buybox h1 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -.03em; }
.buy-price { font-size: clamp(1.55rem, 2.6vw, 2.05rem); line-height: 1.15; font-weight: 650; }
.buy-copy { line-height: 1.75; }
.buybox form[data-help-id="store.product.add"] {
  padding: 1rem;
  margin: 1rem 0 .75rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * .8);
  background: color-mix(in srgb, var(--bg) 65%, var(--card));
}
.buybox form[data-help-id="store.product.add"] label { margin: .4rem 0 .85rem; color: var(--ink); font-weight: 650; }
.buybox form[data-help-id="store.product.add"] select,
.buybox form[data-help-id="store.product.add"] input[type="number"] { width: 100%; min-height: 2.85rem; }
.buybox form[data-help-id="store.product.add"] button { width: 100%; min-height: 3.15rem; font-weight: 750; }
.buybox form[data-help-id="store.product.favorite"] { margin-top: .5rem; }
.buybox [data-help-id="store.product.favorite"] { min-height: 2.7rem; }
.reviews {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.reviews h2 { margin-top: 0; }
.reviews article {
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.reviews article p { margin: .25rem 0; }
.reviews .review-score { color: var(--accent); font-variant-numeric: tabular-nums; }
.reviews form { padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius); }
.reviews textarea { width: 100%; min-height: 6rem; }
.reviews .review-author { color: var(--muted); font-size: .9em; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 0 0 .75rem; }
.star-input legend { float: left; width: 100%; padding: 0; margin-bottom: .25rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 28px; line-height: 1; cursor: pointer; color: var(--line); }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--accent); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 800px) {
  .gallery { position: static; }
  .gallery-stage { border-radius: calc(var(--radius) * .8); }
  .buybox { padding: 1rem; }
}
@media (max-width: 480px) {
  .gallery-thumbs label,
  .gallery-thumbs img { flex-basis: 3.8rem; width: 3.8rem; height: 3.8rem; }
  .buybox h1 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-thumbs img { transition: none; }
}
