/* ============================================================
   AYANER MÜCEVHERAT — Sayfa & bileşen stilleri
   shop · product · about · cart · prototype control · responsive
   ============================================================ */

/* ---------- ROUTING ----------
   KALDIRILDI: Eski SPA prototipinin `.page{display:none}` kuralı, WordPress'in
   post_class() ile <article>'a ve <body>'ye eklediği `page` class'ını da
   yakalayıp tüm sayfa içeriğini GİZLİYORDU (page.php kullanan sözleşme/KVKK
   sayfaları boş geliyordu). Tema SPA panel kullanmadığı için tamamen silindi.
   @keyframes pageIn diğer animasyonlarda kullanılabilir, korunuyor. */
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- PAGE HEADER / BREADCRUMB ---------- */
.page-hero { background: var(--bg-2); border-bottom: 1px solid var(--line); text-align: center; padding-block: clamp(48px,6vw,84px); }
.crumb { font-size: 12px; letter-spacing: .08em; color: var(--muted); display: flex; gap: 8px; justify-content: center; align-items: center; }
.crumb a:hover { color: var(--accent-deep); }
.crumb .sep { opacity: .5; }
.page-hero .display-lg { margin-top: 16px; }
.page-hero p { margin-top: 14px; max-width: 540px; margin-inline: auto; }

/* ---------- SHOP ---------- */
.shop { display: grid; grid-template-columns: 264px 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
.filters { position: sticky; top: calc(var(--topbar-h) + var(--header-h) + 24px); }
.filter-block { padding-block: 24px; border-bottom: 1px solid var(--line); }
.filter-block:first-child { padding-top: 0; }
.filter-block h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.filter-opt { display: flex; align-items: center; gap: 11px; padding: 6px 0; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: color .2s; }
.filter-opt:hover { color: var(--ink); }
.filter-opt .box { width: 17px; height: 17px; border: 1.5px solid var(--line-2); border-radius: 3px; display: grid; place-items: center; flex-shrink: 0; transition: all .2s; }
.filter-opt .box svg { width: 11px; height: 11px; color: var(--on-accent); opacity: 0; transition: opacity .15s; }
.filter-opt.on .box { background: var(--accent); border-color: var(--accent); }
.filter-opt.on .box svg { opacity: 1; }
.filter-opt .count { margin-left: auto; font-size: 12px; color: var(--muted); }
.swatch-row { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; position: relative; transition: transform .2s; }
.swatch:hover { transform: scale(1.12); }
.swatch.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
.range { margin-top: 8px; }
.range input { width: 100%; accent-color: var(--accent); }
.range__vals { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }

.shop__toolbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.shop__count { font-size: 13.5px; color: var(--muted); }
.shop__count b { color: var(--ink); font-weight: 600; }
.shop__tools { display: flex; align-items: center; gap: 14px; }
.select {
  appearance: none; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm);
  padding: 10px 38px 10px 16px; font-family: var(--font-body); font-size: 13px; color: var(--ink); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238C7C63' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 30px; font-size: 12.5px; color: var(--ink-2); background: var(--surface); }
.chip button { width: 14px; height: 14px; display: grid; place-items: center; color: var(--muted); }
.chip button:hover { color: var(--down); }
.shop__pager { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.shop__pager a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2); transition: all .2s; }
.shop__pager a:hover { border-color: var(--accent); color: var(--accent-deep); }
.shop__pager a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- PRODUCT DETAIL ---------- */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px,5vw,72px); align-items: start; }
.pd__gallery { position: sticky; top: calc(var(--topbar-h) + var(--header-h) + 24px); }
.pd__main { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.pd__main image-slot { width: 100%; aspect-ratio: 1/1; }
.pd__thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 12px; }
.pd__thumb { aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; cursor: pointer; transition: border-color .2s; }
.pd__thumb.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pd__thumb image-slot { width: 100%; height: 100%; }

.pd__cat { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }
.pd__title { font-size: clamp(30px,3.4vw,46px); font-weight: 600; margin-top: 12px; }
.pd__rating { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.pd__price { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; padding-block: 22px; border-block: 1px solid var(--line); }
.pd__price .now { font-family: var(--font-display); font-size: 40px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pd__price .was { font-size: 19px; color: var(--muted); text-decoration: line-through; }
.pd__price .live { margin-left: auto; font-size: 12px; color: var(--up); display: inline-flex; align-items: center; }
.pd__desc { margin-top: 22px; color: var(--ink-2); line-height: 1.75; font-size: 15px; }
.pd__specs { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.pd__spec { background: var(--surface); padding: 16px 18px; }
.pd__spec span { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pd__spec b { display: block; font-size: 15px; font-weight: 600; margin-top: 4px; font-family: var(--font-display); }

.pd__opts { margin-top: 26px; }
.pd__opts .label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.opt-row { display: flex; gap: 10px; flex-wrap: wrap; }
.opt-pill { padding: 11px 18px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2); cursor: pointer; transition: all .2s; font-variant-numeric: tabular-nums; }
.opt-pill:hover { border-color: var(--accent); }
.opt-pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.pd__buy { margin-top: 30px; display: flex; gap: 14px; align-items: stretch; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.qty button { width: 46px; height: 100%; font-size: 18px; color: var(--ink-2); }
.qty button:hover { color: var(--accent-deep); }
.qty input { width: 46px; text-align: center; border: none; background: transparent; font-family: var(--font-body); font-size: 15px; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.pd__assure { margin-top: 26px; display: grid; gap: 12px; }
.pd__assure li { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.pd__assure svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* accordion */
.accordion { margin-top: 32px; border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; text-align: left; }
.acc__head .pm { font-size: 22px; color: var(--accent); transition: transform .3s; font-family: var(--font-body); }
.acc__item.open .pm { transform: rotate(45deg); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.acc__body-inner { padding-bottom: 22px; color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }

/* ---------- ABOUT ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,80px); align-items: center; }
.about-hero__media image-slot { width: 100%; aspect-ratio: 4/5; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stat { background: var(--surface); padding: 36px 24px; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(36px,4vw,54px); font-weight: 600; line-height: 1; }
.stat__num .unit { color: var(--accent); }
.stat__label { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,3vw,44px); }
.value__icon { width: 48px; height: 48px; color: var(--accent); }
.value h3 { font-size: 24px; margin-top: 20px; }
.value p { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.timeline { display: grid; gap: 0; max-width: 760px; margin: 0 auto; }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 30px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: none; }
.tl-year { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--accent); }
.tl-item h3 { font-size: 20px; } .tl-item p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- CART DRAWER ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20,15,8,.42); backdrop-filter: blur(2px); z-index: 80; opacity: 0; visibility: hidden; transition: all .4s; }
.scrim.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--bg); z-index: 90; transform: translateX(100%); transition: transform .45s cubic-bezier(.4,0,.1,1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.cart-drawer.open { transform: none; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.cart-drawer__head h3 { font-size: 22px; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 26px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line__img { width: 72px; aspect-ratio: 4/5; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.cart-line__img image-slot { width: 100%; height: 100%; }
.cart-line__name { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.2; }
.cart-line__meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cart-line__price { font-variant-numeric: tabular-nums; font-weight: 500; font-size: 14px; }
.cart-line__qty { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; }
.cart-line__qty button { width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 4px; display: grid; place-items: center; }
.cart-line__rm { font-size: 11px; color: var(--muted); margin-top: 8px; display: block; }
.cart-line__rm:hover { color: var(--down); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty svg { width: 46px; height: 46px; margin: 0 auto 18px; color: var(--line-2); }
.cart-drawer__foot { padding: 22px 26px; border-top: 1px solid var(--line); background: var(--surface); }
.cart-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--ink-2); }
.cart-row.total { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }
.cart-row.total span { font-variant-numeric: tabular-nums; }

/* toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 120%); background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: var(--r-sm); font-size: 13.5px; z-index: 110; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--accent-2); }

/* ---------- PROTOTYPE CONTROL ---------- */
.proto {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 120;
  background: rgba(28,22,14,.93); backdrop-filter: blur(10px); color: #fff;
  border-radius: 16px; padding: 10px 12px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  box-shadow: 0 14px 40px rgba(0,0,0,.32); font-family: 'Jost', system-ui, sans-serif; font-size: 12.5px; max-width: calc(100vw - 24px);
}
.proto__group { display: flex; align-items: center; gap: 9px; }
.proto__label { letter-spacing: .12em; text-transform: uppercase; font-size: 10px; color: rgba(255,255,255,.5); white-space: nowrap; }
.proto__toggle { display: flex; background: rgba(255,255,255,.1); border-radius: 100px; padding: 3px; }
.proto__toggle button { padding: 7px 13px; border-radius: 100px; font-size: 12px; color: rgba(255,255,255,.7); transition: all .25s; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-family: 'Jost', system-ui, sans-serif; }
.proto__toggle button.on { background: #fff; color: #1c160e; }
.proto__fonts button.on { font-weight: 600; }
.proto__toggle .dot { width: 11px; height: 11px; border-radius: 50%; }
.proto__toggle .dot.gold { background: linear-gradient(135deg,#C7A45E,#856326); }
.proto__toggle .dot.rose { background: linear-gradient(135deg,#E0AE9C,#A66856); }
.proto__div { width: 1px; align-self: stretch; background: rgba(255,255,255,.14); margin: 2px 0; }
.proto__hide { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.6); flex-shrink: 0; }
.proto__hide:hover { background: rgba(255,255,255,.12); color: #fff; }
.proto.min { padding: 0; gap: 0; }
.proto.min .proto__group, .proto.min .proto__div { display: none; }
.proto.min .proto__hide { width: 44px; height: 44px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { min-height: 380px; order: -1; }
  .hero__badge { left: auto; right: 20px; bottom: 20px; }
  .prices__grid { grid-template-columns: repeat(3,1fr); }
  .price-card:nth-child(3) { border-right: none; }
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .founder, .about-hero { grid-template-columns: 1fr; }
  .pd { grid-template-columns: 1fr; }
  .pd__gallery { position: static; }
}
@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .nav__menu { display: none; }
  .nav__burger { display: grid; place-items: center; width: 40px; height: 40px; }
  .nav__inner { gap: 10px; }
  .brand { padding-left: 4px; }
  .nav__actions { gap: 4px; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { border-left: none; }
  .trust__item:nth-child(odd) { border-left: none; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .prices__grid { grid-template-columns: 1fr 1fr; }
  .price-card { border-right: none; border-bottom: 1px solid var(--line); }
  .product-grid, .product-grid--3 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .editorial { grid-template-columns: 1fr; }
  .editorial--reverse .editorial__media { order: 0; }
  .editorial__media .stack { display: none; }
  .cat-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cat-card { aspect-ratio: 16/10; }
  .cat-card.tall { grid-row: auto; aspect-ratio: 16/10; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .pd__specs, .stats, .values { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; }
  .pd__buy { flex-wrap: wrap; }
  .timeline .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .proto { left: 12px; right: 12px; transform: none; justify-content: center; }
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 95; background: var(--bg); transform: translateX(-100%); transition: transform .4s; display: flex; flex-direction: column; padding: 24px; }
.mobile-menu.open { transform: none; }
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-menu a { font-family: var(--font-display); font-size: 30px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line); }
