/* Ürün sayfası */
.product { display: block; padding-block: var(--space-m) var(--space-2xl); }
.product__crumb { margin-bottom: var(--space-m); }
.product__grid { display: grid; gap: var(--space-l); }
@media (min-width: 990px) {
  .product__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .product__gallery { position: sticky; top: calc(var(--header-height) + 64px); }
}

/* Galeri */
.gallery { display: grid; gap: var(--space-s); }
.gallery__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  list-style: none; margin: 0; padding: 0; border-radius: var(--radius);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { position: relative; scroll-snap-align: start; }
.gallery__frame { aspect-ratio: 4 / 5; }
.gallery__index {
  position: absolute; right: 12px; bottom: 12px; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill);
  background: var(--bg); font-weight: 600;
}
.gallery__thumbs { display: flex; gap: var(--space-xs); list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.gallery__thumb {
  width: 72px; height: 90px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-s); cursor: pointer;
}
.gallery__thumb[aria-current='true'] { border-color: var(--brand); }
@media (max-width: 989px) {
  .gallery__track { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .gallery__slide { padding-inline: var(--gutter); }
  .gallery__thumbs { display: none; }
}

/* Bilgi sütunu */
.product__badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-s); }
.product__badges .badge { font-size: var(--step--1); padding: 0.3rem 0.75rem; }
.product__badges .badge--ship { background: #E8F2EA; }
.product__origin { display: inline-flex; align-items: center; gap: 0.3rem; font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.product__origin .icon { width: 16px; height: 16px; }
.product__title { font-size: var(--h1); margin: 0 0 var(--space-xs); }
.product__note { font-size: var(--step-1); color: var(--muted); margin: 0 0 var(--space-m); max-width: 46ch; }

.product__price-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-m);
  padding-block: var(--space-s) var(--space-m); margin-bottom: var(--space-m); border-bottom: 1px solid var(--line);
}
.product__price {
  margin: 0; font-family: var(--font-num); font-weight: var(--num-weight); letter-spacing: var(--num-tracking);
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem); line-height: 1; color: var(--brand);
}
.product__price s { font-family: var(--font-ui); font-size: var(--step-0); font-weight: 500; margin-right: 0.3em; }
.product__tax { flex-basis: 100%; margin: 0; }
.unit-price__per { color: var(--muted); }

/* Gramaj kartları */
.gramaj { border: 0; padding: 0; margin: 0 0 var(--space-m); min-width: 0; }
.gramaj__legend { padding: 0; margin-bottom: var(--space-xs); font-size: var(--step--1); font-weight: 700; color: var(--ink); }
.gramaj__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 14px var(--space-xs); padding-top: 8px; }
.gramaj__row {
  position: relative; display: grid; gap: 2px; padding: 0.7rem 0.85rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--bg);
  transition: border-color var(--duration-fast) var(--ease), background-color var(--duration-fast) var(--ease);
}
.gramaj__row:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.gramaj__row:has(:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--bg)); box-shadow: inset 0 0 0 1px var(--brand); }
.gramaj__row:has(:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.gramaj__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gramaj__weight { font-weight: 700; font-size: var(--step-0); }
.gramaj__price { font-weight: 600; font-size: var(--step--1); }
.gramaj__price s { font-weight: 400; margin-right: 0.3em; }
.gramaj__unit { font-size: var(--step--2); }
.gramaj__saving {
  position: absolute; top: -9px; right: 8px; padding: 0.1rem 0.45rem; border-radius: var(--radius-pill);
  background: var(--ok); color: #FFFFFF; font-size: 0.68rem; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.gramaj__row--soldout { cursor: not-allowed; background: var(--surface); }
.gramaj__row--soldout .gramaj__weight { text-decoration: line-through; color: var(--muted); }

.product__buy { display: flex; gap: var(--space-xs); align-items: stretch; }
.product__buy .qty { flex: none; }
.product__add { flex: 1; min-height: 54px; font-size: var(--step-1); }
.product__form .form-message { margin-top: var(--space-s); }
.product__whatsapp { margin-top: var(--space-xs); min-height: 50px; }
.product__whatsapp .icon { color: #1F9D55; }
.product__whatsapp:hover .icon { color: currentColor; }

/* Teslimat kutusu */
.delivery { margin: var(--space-l) 0; padding: var(--space-m); border-radius: var(--radius); background: var(--surface); display: grid; gap: var(--space-s); }
.delivery--pickup { background: color-mix(in srgb, var(--tag) 22%, var(--bg)); }
.delivery__points { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); padding-bottom: var(--space-s); border-bottom: 1px solid var(--line); }
.delivery__points li { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--step--1); font-weight: 600; }
.delivery__points .icon { width: 17px; height: 17px; color: var(--ok); }
.delivery__row { display: flex; gap: var(--space-s); align-items: flex-start; }
.delivery__row > .icon { width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.delivery__row p { margin: 0; }
.delivery__title { font-weight: 700; font-size: var(--step--1); }
.delivery__text { font-size: var(--step--1); color: var(--muted); }

.product__accordions { margin-top: var(--space-l); }
.product__accordions .ticket { margin-top: calc(var(--space-xs) * -1); }
.product__app { margin-top: var(--space-l); }

/* Mobil sabit satın alma çubuğu */
.buybar {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-m);
  padding: var(--space-xs) var(--gutter) calc(var(--space-xs) + env(safe-area-inset-bottom, 0px));
  background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(0 0 0 / 0.08);
  transform: translateY(100%); visibility: hidden;
  transition: transform var(--duration-drawer) var(--ease), visibility 0s linear var(--duration-drawer);
}
.buybar.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
.buybar__info { display: grid; line-height: 1.2; min-width: 0; }
.buybar__gramaj { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__price { font-family: var(--font-num); font-weight: var(--num-weight); letter-spacing: var(--num-tracking); font-size: var(--step-1); color: var(--brand); }
.buybar__add { flex: none; min-height: 48px; padding-inline: var(--space-l); }
body.has-buybar { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 990px) {
  .buybar { display: none; }
  body.has-buybar { padding-bottom: 0; }
}
