/* Kategori, ürün ve sepet sayfaları (style.css'teki değişkenleri kullanır) */

.section--tight { padding: 32px 0 64px; }
.more { margin-top: 32px; text-align: center; }
.btn--ghost-dark { background: transparent; color: var(--navy); }
.btn--ghost-dark:hover { background: var(--mist); color: var(--navy); }
.btn--block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Sayfa başlığı ---------- */
.pagehead { background: var(--porcelain); border-bottom: 1px solid var(--line); padding: 28px 0 26px; }
.pagehead--slim { padding: 14px 0; }
.pagehead__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; color: var(--navy); margin-top: 8px; line-height: 1.05; }
.pagehead__lead { margin-top: 8px; color: var(--muted); max-width: 52ch; }
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Kategori araç çubuğu ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.toolbar__count { color: var(--muted); }
.sort { display: flex; align-items: center; gap: 10px; }
.sort select { border: 2px solid var(--line); border-radius: 999px; background: var(--white); padding: 8px 14px; font: inherit; color: var(--text); }
.sort select:focus-visible { border-color: var(--navy); }

.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 14px; display: inline-grid; place-items: center; border: 2px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 500; background: var(--white); }
.pager a:hover { border-color: var(--navy); }
.pager .is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }

.notice { background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.notice[hidden] { display: none; }
.notice p { color: var(--muted); max-width: 44ch; }

/* ---------- Ürün sayfası ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pdp__media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: 20px; background: color-mix(in srgb, var(--bottle, var(--tone)) 16%, white); transition: background-color .35s; }
.pdp__media svg { width: 40%; }
.pdp__media .badge { left: 16px; top: 16px; font-size: .85rem; padding: 4px 12px; }
.pdp__cat { font-size: .9rem; color: var(--muted); }
.pdp__cat a { text-decoration: none; }
.pdp__cat a:hover { text-decoration: underline; }
.pdp__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.08; letter-spacing: -.025em; color: var(--navy); margin-top: 6px; }
.pdp__price { display: flex; gap: 12px; align-items: baseline; margin-top: 16px; }
.pdp__price strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--navy); }
.pdp__price s { color: var(--muted); font-size: 1.1rem; }
.pdp__desc { margin-top: 18px; max-width: 56ch; }
.pdp__tones { margin-top: 24px; }
.pdp__label { font-weight: 500; }
.tones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.tone { width: 40px; height: 40px; border-radius: 50%; background: var(--c); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--line); transition: box-shadow .15s, transform .15s; }
.tone:hover { transform: scale(1.08); }
.tone.is-on { box-shadow: 0 0 0 3px var(--navy); }
.pdp__stock { margin-top: 24px; font-weight: 500; color: #2f7d57; }
.pdp__stock.is-low { color: #b45309; }
.pdp__stock.is-out { color: var(--coral); }
.pdp__buy { display: flex; gap: 16px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.pdp__note { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.pdp__perks { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }

/* Adet seçici (ürün ve sepet) */
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.qty__btn { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.2rem; color: var(--navy); }
.qty__btn:hover:not([disabled]) { background: var(--mist); }
.qty__btn[disabled] { color: #aab4c0; cursor: not-allowed; }
.qty__n { min-width: 36px; text-align: center; font-weight: 600; }

/* ---------- Sepet ---------- */
.cartpage { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cartpage[hidden] { display: none; }
.cartlist { display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 84px 1fr auto 110px auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: opacity .2s; }
.line.is-busy { opacity: .6; }
.line__art { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--tone) 16%, white); }
.line__art svg { width: 44%; }
.line__name { font-weight: 600; text-decoration: none; line-height: 1.3; }
.line__name:hover { text-decoration: underline; }
.line__meta { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.line__total { font-family: var(--font-head); font-weight: 700; color: var(--navy); text-align: right; }
.line__del { border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.line__del:hover:not([disabled]) { color: var(--coral); }

.summary { position: sticky; top: 140px; background: var(--porcelain); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.summary h2 { font-family: var(--font-head); font-size: 1.25rem; color: var(--navy); margin-bottom: 16px; }
.summary dl { margin: 0; display: grid; gap: 10px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.summary__total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 1.15rem; }
.summary__total dt { color: var(--text); font-weight: 600; }
.summary__total dd { font-family: var(--font-head); color: var(--navy); font-size: 1.3rem; }
.ship { margin: 18px 0; }
.ship__bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ship__bar span { display: block; height: 100%; background: var(--navy); border-radius: 999px; transition: width .35s ease; }
.ship p { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.summary__back { display: block; margin-top: 14px; text-align: center; font-size: .92rem; }

/* ---------- Duyarlı ---------- */
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .cartpage { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .line { grid-template-columns: 72px 1fr auto; grid-template-areas: "art info del" "art qty total"; gap: 8px 12px; }
  .line__art { grid-area: art; width: 72px; height: 72px; }
  .line__info { grid-area: info; }
  .line .qty { grid-area: qty; justify-self: start; }
  .line__total { grid-area: total; }
  .line__del { grid-area: del; align-self: start; }
}
