/* =========================================================
   Online Atölye — Krem atölye teması
   ========================================================= */
:root {
  --bg: #F5EFE6;
  --surface: #FBF8F3;
  --card: #EFE6D8;
  --card-2: #E8DCCB;
  --ink: #3B2F25;
  --ink-2: #5A4A3C;
  --muted: #7A6A58;
  --line: #E2D6C4;
  --line-2: #D4C4AD;
  --accent: #B5562F;
  --accent-dark: #8E3F1F;
  --accent-soft: #F3DED2;
  --ok: #4F7A4A;
  --ok-soft: #E3EDDD;
  --warn: #A9741C;
  --warn-soft: #F6E9CF;
  --err: #A83A2C;
  --err-soft: #F6DCD7;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(59, 47, 37, .06), 0 8px 24px rgba(59, 47, 37, .06);
  --shadow-lg: 0 20px 50px rgba(59, 47, 37, .16);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: .95rem;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #241c15; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--card); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--ink); transition: background .2s;
}
.icon-btn:hover { background: var(--card); }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; }
.badge-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Announcement + Header ---------- */
.announce { background: var(--ink); color: var(--bg); font-size: .82rem; text-align: center; padding: 8px 16px; letter-spacing: .02em; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 230, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.logo em { font-style: italic; color: var(--accent); }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--ink-2); transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav a.active { background: var(--card); color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.header-search { position: relative; }
.header-search input {
  width: 240px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 16px 0 42px; font-size: .9rem; transition: border-color .2s, width .3s;
}
.header-search input:focus { outline: none; border-color: var(--accent); width: 280px; }
.header-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.menu-toggle { display: none; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(36, 28, 21, .45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: var(--bg); z-index: 100;
  transform: translateX(-100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.right { left: auto; right: 0; transform: translateX(100%); }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.drawer-nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.drawer-search { position: relative; margin-bottom: 12px; }
.drawer-search input { width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 16px 0 42px; }
.drawer-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; }

/* Mini cart */
.mini-cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mini-cart-item img, .mini-cart-item .ph { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--card); }
.mini-cart-item .t { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.mini-cart-item .s { font-size: .8rem; color: var(--muted); }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer-foot .row { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: currentColor; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 520px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; background: var(--card); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-art { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-chip {
  position: absolute; background: var(--surface); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600;
}
.hero-chip .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.hero-chip.c1 { left: 18px; bottom: 22px; }
.hero-chip.c2 { right: 18px; top: 22px; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats b { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.link-arrow:hover { color: var(--accent-dark); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.feature b { display: block; font-size: .95rem; }
.feature span { font-size: .85rem; color: var(--muted); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--card); display: flex; align-items: flex-end; transition: transform .3s; }
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile .lbl { position: relative; margin: 12px; padding: 10px 14px; background: rgba(251, 248, 243, .94); border-radius: 12px; width: calc(100% - 24px); display: flex; justify-content: space-between; align-items: center; font-weight: 600; }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.p-card { position: relative; display: flex; flex-direction: column; }
.p-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .6s; }
.p-media img.alt { position: absolute; inset: 0; opacity: 0; }
.p-card:hover .p-media img.alt { opacity: 1; }
.p-card:hover .p-media img.main { transform: scale(1.04); }
.p-tags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; background: var(--surface); color: var(--ink); }
.tag-sale { background: var(--accent); color: #fff; }
.tag-new { background: var(--ink); color: var(--bg); }
.tag-out { background: var(--line-2); color: var(--ink-2); }
.p-fav { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(251, 248, 243, .92); width: 38px; height: 38px; }
.p-fav.on { color: var(--accent); }
.p-fav.on .icon { fill: var(--accent); }
.p-quick { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; opacity: 0; transform: translateY(8px); transition: .25s; }
.p-card:hover .p-quick { opacity: 1; transform: none; }
.p-info { padding: 14px 2px 0; }
.p-cat { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.p-title { font-weight: 600; font-size: 1rem; margin: 4px 0 6px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .now { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.price .old { font-size: .88rem; color: var(--muted); text-decoration: line-through; }
.swatches { display: flex; gap: 5px; margin-top: 8px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); display: block; }

/* Placeholder art for products without images */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center; color: var(--accent);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(181, 86, 47, .07) 7px 8px),
    var(--card);
}
.ph svg { width: 38%; height: 38%; opacity: .7; }

/* Skeleton */
.skel { background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: skel 1.3s infinite; border-radius: var(--radius); }
@keyframes skel { to { background-position: -200% 0; } }
.skel-card .skel.m { aspect-ratio: 1/1; }
.skel-card .skel.l { height: 14px; margin-top: 14px; width: 70%; border-radius: 6px; }
.skel-card .skel.l2 { height: 14px; margin-top: 8px; width: 40%; border-radius: 6px; }

/* ---------- Banner / newsletter ---------- */
.banner { border-radius: 28px; background: var(--ink); color: var(--bg); padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; overflow: hidden; position: relative; }
.banner h2 { color: var(--bg); }
.banner p { color: #d8ccbb; }
.banner .eyebrow { color: #E9A47F; }
.banner-steps { display: grid; gap: 12px; }
.banner-steps div { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; }
.banner-steps b { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: .9rem; flex-shrink: 0; }

.newsletter { display: flex; gap: 8px; max-width: 440px; }
.newsletter input { flex: 1; height: 48px; border-radius: 999px; border: 1px solid var(--line-2); padding: 0 18px; background: var(--surface); min-width: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d8ccbb; margin-top: 64px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 56px 0 40px; }
.site-footer .logo { color: var(--bg); }
.site-footer h4 { font-family: var(--sans); color: var(--bg); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin-top: 14px; font-size: .93rem; max-width: 320px; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.socials a:hover { background: rgba(255,255,255,.08); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.pay-icons { display: flex; gap: 8px; align-items: center; }
.pay-icons span { border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 3px 8px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.footer-newsletter { padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-newsletter h3 { color: var(--bg); margin: 0; }
.footer-newsletter .newsletter input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--bg); }
.footer-newsletter .newsletter input::placeholder { color: #a8998a; }

/* ---------- Page header / breadcrumb ---------- */
.page-head { padding: 36px 0 20px; }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 26px; }
.filter-group h4 { font-family: var(--sans); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.filter-list { display: grid; gap: 2px; }
.filter-list button { text-align: left; background: none; border: 0; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); display: flex; justify-content: space-between; }
.filter-list button:hover { background: var(--card); }
.filter-list button.active { background: var(--ink); color: var(--bg); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.shop-toolbar .count { color: var(--muted); font-size: .92rem; }
.filter-toggle { display: none; }
.shop-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface);
  padding: 0 14px; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237A6A58' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181, 86, 47, .14); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--err); }
.field-error { font-size: .8rem; color: var(--err); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.check a { color: var(--accent); text-decoration: underline; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 16px; }
.alert-err { background: var(--err-soft); color: var(--err); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-info { background: var(--warn-soft); color: #6b4a10; }

/* ---------- Product detail ---------- */
.pd-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; padding-bottom: 32px; }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.gallery-thumbs { display: grid; gap: 10px; align-content: start; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; background: var(--card); }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { aspect-ratio: 1/1; border-radius: 22px; overflow: hidden; background: var(--card); position: relative; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.pd-info h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.pd-price { font-size: 1.6rem; margin: 10px 0 18px; }
.pd-price .now { font-size: 1.8rem; font-family: var(--serif); font-weight: 500; }
.pd-desc { color: var(--ink-2); white-space: pre-line; }
.opt-label { font-size: .85rem; font-weight: 700; margin: 18px 0 10px; display: flex; gap: 6px; }
.opt-label span { font-weight: 500; color: var(--muted); }
.color-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.color-opt { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); padding: 0; }
.color-opt.active { box-shadow: 0 0 0 2px var(--accent); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 48px; background: var(--surface); }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.2rem; }
.qty input { width: 42px; text-align: center; border: 0; background: none; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm { height: 36px; }
.qty.sm button { width: 32px; font-size: 1rem; }
.qty.sm input { width: 30px; font-size: .9rem; }
.pd-actions { display: flex; gap: 10px; margin: 22px 0; flex-wrap: wrap; }
.pd-actions .btn-primary { flex: 1; min-width: 180px; }
.pd-meta { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; }
.pd-meta div { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.pd-meta .icon { color: var(--accent); }
.stock-ok { color: var(--ok); font-weight: 600; }
.stock-low { color: var(--warn); font-weight: 600; }
.stock-out { color: var(--err); font-weight: 600; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; padding: 16px 0; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; line-height: 1; }
.acc[open] summary::after { content: "−"; }
.acc .acc-body { padding-bottom: 16px; color: var(--ink-2); font-size: .95rem; }
.specs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.specs td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.specs td:first-child { color: var(--muted); width: 40%; }
.sticky-buy { display: none; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item .thumb { width: 110px; height: 110px; border-radius: 14px; overflow: hidden; background: var(--card); }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .t { font-weight: 600; }
.cart-item .s { font-size: .85rem; color: var(--muted); }
.cart-item .r { text-align: right; display: grid; gap: 10px; justify-items: end; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: .85rem; text-decoration: underline; }
.link-btn:hover { color: var(--err); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary h3 { margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .95rem; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 1.15rem; }
.sum-row.disc { color: var(--ok); }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.coupon .input { height: 42px; }
.ship-progress { background: var(--card); border-radius: 999px; height: 6px; overflow: hidden; margin: 8px 0 4px; }
.ship-progress div { height: 100%; background: var(--accent); transition: width .4s; }
.trust { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted); margin-top: 14px; }

.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 36px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; margin-bottom: 20px; }
.panel h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.step-no { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font-family: var(--sans); font-size: .85rem; font-weight: 700; display: grid; place-items: center; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; margin-bottom: 10px; transition: border-color .2s, background .2s; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }
.choice b { display: block; }
.choice small { color: var(--muted); }
.choice.disabled { opacity: .55; cursor: not-allowed; }
.seg { display: inline-flex; background: var(--card); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.co-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: .9rem; }
.co-item .thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--card); position: relative; }
.co-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-item .q { position: absolute; top: -6px; right: -6px; background: var(--ink); color: var(--bg); font-size: .7rem; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }

/* Success */
.success-box { max-width: 640px; margin: 40px auto; text-align: center; }
.success-ic { width: 80px; height: 80px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 20px; }
.success-ic .icon { width: 40px; height: 40px; }
.order-no { display: inline-block; font-family: var(--serif); font-size: 1.6rem; background: var(--surface); border: 1px dashed var(--line-2); padding: 10px 24px; border-radius: 14px; margin: 10px 0 20px; letter-spacing: .04em; }
.iban-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-align: left; margin: 20px 0; }
.iban-box code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; background: var(--card); padding: 4px 8px; border-radius: 6px; word-break: break-all; }

/* ---------- Auth / account ---------- */
.auth-wrap { max-width: 460px; margin: 40px auto; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 24px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.account-nav { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; display: grid; gap: 2px; position: sticky; top: calc(var(--header-h) + 20px); }
.account-nav button { display: flex; gap: 10px; align-items: center; background: none; border: 0; padding: 12px 14px; border-radius: 12px; text-align: left; font-weight: 500; color: var(--ink-2); }
.account-nav button:hover { background: var(--card); }
.account-nav button.active { background: var(--ink); color: var(--bg); }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
.order-card .top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.order-card .items { font-size: .88rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-odeme_bekleniyor { background: var(--warn-soft); color: var(--warn); }
.st-hazirlaniyor { background: #E5E2F3; color: #4E468E; }
.st-kargoda { background: #DDEBF3; color: #2E6385; }
.st-teslim_edildi { background: var(--ok-soft); color: var(--ok); }
.st-iptal { background: var(--err-soft); color: var(--err); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 20px 0; }
.timeline div { text-align: center; font-size: .78rem; color: var(--muted); }
.timeline div::before { content: ""; display: block; height: 4px; border-radius: 2px; background: var(--line); margin-bottom: 8px; }
.timeline div.done { color: var(--ink); font-weight: 600; }
.timeline div.done::before { background: var(--accent); }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.addr { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: .9rem; }
.addr b { display: block; margin-bottom: 4px; }

/* ---------- Content pages ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.faq .acc summary { font-size: 1.02rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; }

/* ---------- Empty / toast / modal ---------- */
.empty { text-align: center; padding: 64px 20px; }
.empty .ic { width: 84px; height: 84px; border-radius: 50%; background: var(--card); display: grid; place-items: center; margin: 0 auto 18px; color: var(--accent); }
.empty .ic .icon { width: 36px; height: 36px; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--ink); color: var(--bg); padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; font-size: .92rem; animation: toastIn .3s ease; }
.toast.err { background: var(--err); }
.toast a { margin-left: auto; font-weight: 700; text-decoration: underline; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow-lg); font-size: .88rem; }
.cookie-bar .acts { display: flex; gap: 8px; margin-top: 12px; }
.lightbox { position: fixed; inset: 0; background: rgba(20, 15, 10, .92); z-index: 300; display: grid; place-items: center; padding: 20px; }
.lightbox img { max-height: 90vh; max-width: 92vw; border-radius: 12px; object-fit: contain; }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; color: #fff; }
.back-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--bg); border: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.back-top.show { opacity: 1; pointer-events: auto; }
/* WhatsApp butonu (sağ alt); varsa "yukarı çık" butonu üstüne kayar */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 41; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 14px; border-radius: 999px; background: #1F8F4E; color: #fff; font-weight: 700; font-size: .92rem; box-shadow: 0 8px 24px rgba(31,143,78,.35); transition: transform .2s, box-shadow .2s; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31,143,78,.42); }
.wa-float .icon { width: 24px; height: 24px; }
body.has-wa .back-top { bottom: 80px; }
.btn-wa { background: #1F8F4E; color: #fff; border-color: #1F8F4E; }
.btn-wa:hover { background: #197A42; border-color: #197A42; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .header-search input { width: 180px; }
  .header-search input:focus { width: 200px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .main-nav, .header-search { display: none; }
  .menu-toggle { display: inline-flex; }
  .logo { font-size: 1.4rem; }
  .hero-grid, .pd-grid, .banner, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .hero-media { order: -1; aspect-ratio: 4 / 3; }
  .banner { padding: 36px 24px; }
  .shop-layout, .cart-layout, .checkout-layout, .account-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); background: var(--bg); z-index: 100; padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .3s; top: 0; box-shadow: var(--shadow-lg); align-content: start; }
  .filters.open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(5, 1fr); order: 2; }
  .summary, .account-nav { position: static; }
  .account-nav { grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; box-shadow: 0 -6px 20px rgba(59,47,37,.08); }
  .sticky-buy .btn { flex: 1; }
  body.has-sticky-buy .back-top { bottom: 84px; }
  body.has-sticky-buy .wa-float { bottom: 84px; }
  body.has-sticky-buy.has-wa .back-top { bottom: 146px; }
  .p-quick { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .wa-float { width: 52px; height: 52px; padding: 0; justify-content: center; right: 14px; bottom: 14px; }
  .wa-float span { display: none; }
  .wa-float .icon { width: 26px; height: 26px; }
  body.has-wa .back-top { right: 17px; bottom: 76px; }
  .header-inner { gap: 4px; }
  .header-actions .icon-btn { width: 40px; }
  .hide-sm { display: none !important; }
  .logo { font-size: 1.25rem; gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .announce { font-size: .75rem; padding: 6px 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .p-title { font-size: .92rem; }
  .price .now { font-size: .98rem; }
  .field-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 84px 1fr; }
  .cart-item .thumb { width: 84px; height: 84px; }
  .cart-item .r { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 20px; }
  .hero-chip { display: none; }
  .panel, .auth-card { padding: 20px; }
  .timeline { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
