/* =========================================================================
   Kadın Eli Pazarı – site stilleri
   Renkler logodan alınmıştır: orman yeşili, altın, tente kırmızısı, krem.
   ========================================================================= */

:root {
  --orman: #0E3324;
  --gece: #021F14;
  --orman-cizgi: #1F4A37;
  --altin: #D49A2E;
  --altin-acik: #E7B44E;
  --altin-krem: #F5DE9E;
  --altin-koyu: #8A5A12;
  --tente: #C8241F;
  --tente-koyu: #A51C18;
  --krem: #FBF4E4;
  --kum: #EFE4D2;
  --cizgi: #E5D7B8;
  --lavanta: #6E3F8F;
  --murekkep: #1B2620;
  --gri: #5A6258;
  --acik-metin: #D8DDD3;
  --beyaz: #FFFFFF;

  --font-baslik: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-metin: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --golge: 0 0 0 1px var(--cizgi), 0 8px 20px rgba(14, 51, 36, .06);
  --golge-hover: 0 0 0 1px var(--altin), 0 14px 32px rgba(14, 51, 36, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--krem);
  color: var(--murekkep);
  font-family: var(--font-metin);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--tente); }
h1, h2, h3 { font-family: var(--font-baslik); font-weight: 600; line-height: 1.15; margin: 0; color: var(--orman); }
p { margin: 0 0 1em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--altin); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--altin); color: var(--murekkep); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip-link:focus { left: 8px; }
.muted { color: var(--gri); }
.small { font-size: 14px; }
.lead { font-size: 18px; color: #3E463C; }
.narrow { max-width: 680px; }

/* ---- Butonlar ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px;
  font-weight: 700; font-size: 15px; cursor: pointer; text-align: center;
  transition: background-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--tente); color: var(--beyaz); }
.btn-primary:hover { background: var(--tente-koyu); color: var(--beyaz); }
.btn-gold { background: var(--altin); color: var(--murekkep); }
.btn-gold:hover { background: var(--altin-acik); color: var(--murekkep); }
.btn-dark { background: var(--orman); color: var(--altin-krem); }
.btn-dark:hover { background: var(--gece); color: var(--altin-krem); }
.btn-outline-gold { box-shadow: inset 0 0 0 1.5px var(--altin); color: var(--altin-krem); background: transparent; }
.btn-outline-gold:hover { background: rgba(212, 154, 46, .14); color: var(--altin-krem); }
.btn-outline-cream { box-shadow: inset 0 0 0 1.5px var(--altin-krem); color: var(--altin-krem); background: transparent; }
.btn-outline-cream:hover { background: rgba(245, 222, 158, .12); color: var(--altin-krem); }
.btn-link { display: block; margin-top: 10px; text-align: center; font-size: 14px; font-weight: 600; color: var(--tente); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--gri); cursor: pointer; }
.icon-btn:hover { background: var(--kum); color: var(--tente); }

/* ---- Rozetler ------------------------------------------------------------ */
.badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge-green { background: #E3EEE6; color: var(--orman); }
.badge-gold { background: #F7E8C6; color: var(--altin-koyu); }
.badge-cream { background: var(--kum); color: #4A4234; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.eyebrow-outline { color: var(--altin-krem); box-shadow: inset 0 0 0 1px var(--altin); border-radius: 999px; padding: 6px 14px; align-self: flex-start; }
.eyebrow-gold { color: var(--altin-acik); }
.eyebrow-green { color: var(--orman); }

/* ---- Üst bölüm ----------------------------------------------------------- */
.topbar { background: var(--tente); color: var(--beyaz); font-size: 13px; font-weight: 500; text-align: center; padding: 8px 16px; }
.site-header { background: var(--gece); color: var(--altin-krem); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: block; margin: -4px 0; }
.brand img { height: 106px; width: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35)); transition: transform .2s; }
.brand:hover img { transform: scale(1.03); }
.search {
  flex: 1 1 300px; display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 16px; border-radius: 999px; background: var(--krem); color: var(--gri);
}
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; color: var(--murekkep); }
.search:focus-within { box-shadow: 0 0 0 3px var(--altin); }
.account-nav { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; }
.account-nav a { color: var(--altin-krem); }
.account-nav a:hover { color: var(--beyaz); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--altin); }
.account-nav .cart-link { color: var(--murekkep); }
.account-nav .cart-link:hover { background: var(--altin-acik); color: var(--murekkep); }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tente); color: var(--beyaz); font-size: 12px; }
.category-nav { border-top: 1px solid var(--orman-cizgi); }
.category-row { display: flex; gap: 6px 24px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; font-weight: 500; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.category-row::-webkit-scrollbar { display: none; }
.category-row a { color: #E9E0C8; padding: 4px 0; border-bottom: 2px solid transparent; }
.category-row a:hover, .category-row a[aria-current] { color: var(--altin-krem); border-bottom-color: var(--altin); }
.category-row .highlight { color: var(--altin-krem); font-weight: 700; }

.flash { padding: 12px 0; font-weight: 600; font-size: 15px; transition: opacity .4s; }
.flash-success { background: #E3EEE6; color: var(--orman); }
.flash-info { background: #F7E8C6; color: #5C3D0B; }
.flash-error { background: #F8DEDC; color: #8E1814; }
.flash.is-hidden { opacity: 0; pointer-events: none; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { background: var(--orman); color: var(--krem); position: relative; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 60px; }
.hero-copy { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { color: var(--krem); font-size: clamp(40px, 6vw, 62px); line-height: 1.04; letter-spacing: -.015em; }
.hero h1 em { color: var(--altin-acik); font-style: italic; }
.hero-copy p { margin: 0; font-size: 19px; color: var(--acik-metin); max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tiles { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { min-height: 150px; border-radius: 28px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; font-weight: 700; font-size: 17px; transition: transform .2s; }
.tile:hover { transform: translateY(-3px); }
.tile-wide { grid-column: span 2; min-height: 176px; justify-content: space-between; }
.tile-light { background: var(--krem); color: var(--murekkep); }
.tile-light:hover { color: var(--murekkep); }
.tile-gold { background: var(--altin); color: var(--murekkep); }
.tile-gold:hover { color: var(--murekkep); }
.tile-lavender { background: var(--lavanta); color: var(--beyaz); }
.tile-lavender:hover { color: var(--beyaz); }
.tile-eyebrow { font-size: 13px; letter-spacing: .08em; color: var(--tente); }
.tile-title { font-family: var(--font-baslik); font-weight: 600; font-size: 25px; line-height: 1.2; }
.tile-meta { font-size: 15px; font-weight: 500; color: var(--gri); }
.awning { display: block; width: 100%; height: 28px; fill: var(--orman); position: absolute; left: 0; bottom: -27px; }
.hero-compact .hero-row { padding-top: 48px; padding-bottom: 52px; }

/* ---- Bölümler ------------------------------------------------------------ */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; padding-top: 56px; }
.value { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.value-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--orman); color: var(--altin-acik); display: flex; align-items: center; justify-content: center; }
.section { padding-top: 48px; padding-bottom: 16px; }
.section-tinted { background: var(--kum); margin-top: 40px; padding-bottom: 48px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }
.section-head > a { font-weight: 700; font-size: 15px; color: var(--tente); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.category-card {
  display: flex; flex-direction: column; gap: 4px; min-height: 140px; padding: 18px;
  border-radius: var(--r-lg); background: var(--tone, var(--kum)); color: var(--murekkep);
  transition: transform .2s, box-shadow .2s;
}
.category-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(14, 51, 36, .12); color: var(--murekkep); }
.category-name { font-family: var(--font-baslik); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--orman); }
.category-desc { font-size: 13px; color: #4A4F45; }
.category-count { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--orman); }

/* ---- Ürün kartı ---------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; border-radius: 20px; background: var(--beyaz); box-shadow: var(--golge); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--golge-hover); transform: translateY(-2px); }
.product-media { position: relative; display: block; aspect-ratio: 4 / 3.4; background: var(--tone, var(--kum)); color: rgba(14, 51, 36, .35); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.media-badge { position: absolute; left: 12px; bottom: 12px; font-size: 12px; font-weight: 700; color: var(--orman); background: var(--krem); border-radius: 999px; padding: 4px 10px; }
.media-sale { position: absolute; right: 12px; top: 12px; font-size: 12px; font-weight: 700; color: var(--beyaz); background: var(--tente); border-radius: 999px; padding: 4px 10px; }
.product-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.product-name { font-family: var(--font-metin); font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--murekkep); }
.product-name a:hover { color: var(--tente); }
.product-seller { font-size: 13px; color: var(--gri); }
.product-seller:hover { color: var(--orman); text-decoration: underline; }
.product-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price strong { font-size: 17px; color: var(--orman); }
.price s { font-size: 13px; color: var(--gri); }
.out-of-stock { font-size: 13px; font-weight: 700; color: var(--gri); }

/* ---- Satıcı kartı -------------------------------------------------------- */
.seller-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.seller-card { display: flex; gap: 16px; padding: 18px; border-radius: 20px; background: var(--beyaz); box-shadow: var(--golge); transition: box-shadow .2s, transform .2s; }
.seller-card:hover { box-shadow: var(--golge-hover); transform: translateY(-2px); color: inherit; }
.seller-avatar { width: 64px; height: 64px; flex-shrink: 0; border-radius: 18px; background: var(--tone, var(--kum)); display: flex; align-items: center; justify-content: center; overflow: hidden; font-family: var(--font-baslik); font-size: 28px; font-weight: 600; color: var(--orman); }
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.seller-type { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--altin-koyu); }
.seller-name { font-family: var(--font-baslik); font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--orman); }
.seller-meta { font-size: 13px; color: var(--gri); }
.seller-tagline { font-size: 14px; margin-top: 4px; }

/* ---- Akademi bandı ------------------------------------------------------- */
.academy-band { border-radius: var(--r-xl); background: var(--gece); box-shadow: inset 0 0 0 1px var(--altin); color: var(--krem); padding: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; margin-bottom: 40px; }
.academy-band > div:first-child { flex: 999 1 420px; display: flex; flex-direction: column; gap: 12px; }
.academy-band h2 { color: var(--krem); font-size: clamp(26px, 3.2vw, 36px); }
.academy-band p { margin: 0; color: var(--acik-metin); font-size: 17px; }
.academy-band .actions { flex: 1 1 220px; }

/* ---- Sayfa başlığı, kırıntı, çipler -------------------------------------- */
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); margin: 6px 0 4px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--gri); }
.breadcrumb a:hover { color: var(--tente); }
.breadcrumb-page { padding: 22px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--beyaz); box-shadow: inset 0 0 0 1px var(--cizgi); font-size: 14px; font-weight: 600; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--orman); color: var(--orman); }
.chip.is-active { background: var(--orman); color: var(--altin-krem); box-shadow: none; }

/* ---- Katalog ------------------------------------------------------------- */
.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-top: 18px; padding-bottom: 40px; align-items: start; }
.filter-box { background: var(--beyaz); border-radius: 20px; box-shadow: var(--golge); padding: 6px 18px 18px; position: sticky; top: 16px; }
.filter-box summary { list-style: none; cursor: pointer; font-family: var(--font-baslik); font-weight: 600; font-size: 20px; color: var(--orman); padding: 12px 0; }
.filter-box summary::-webkit-details-marker { display: none; }
.filter-form { display: flex; flex-direction: column; gap: 16px; }
.filter-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.filter-form legend, .field label, .field .label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gri); margin-bottom: 6px; display: block; }
.radio, .checkbox { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 15px; cursor: pointer; }
.radio input, .checkbox input { width: 18px; height: 18px; accent-color: var(--orman); margin: 0; }
.field input, .field select, .sortbar select {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--cizgi); background: var(--beyaz); font-size: 15px;
}
.field input:focus, .field select:focus, .sortbar select:focus { outline: none; border-color: var(--orman); box-shadow: 0 0 0 3px rgba(14, 51, 36, .15); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { min-width: 0; }
.sortbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 600; color: var(--gri); }
.sortbar select { width: auto; min-width: 210px; }
.sortbar-inline { margin: 0; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 32px 0 8px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 700; background: var(--beyaz); box-shadow: inset 0 0 0 1px var(--cizgi); }
.pagination a:hover { box-shadow: inset 0 0 0 1.5px var(--orman); color: var(--orman); }
.pagination .current { background: var(--orman); color: var(--altin-krem); box-shadow: none; }
.empty-state { text-align: center; padding: 56px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-state h1, .empty-state h2 { font-size: 30px; }

/* ---- Ürün detayı --------------------------------------------------------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-xl); overflow: hidden; background: var(--tone, var(--kum)); color: rgba(14, 51, 36, .3); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb { width: 76px; height: 76px; flex-shrink: 0; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: inset 0 0 0 1px var(--cizgi); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.buy-box h1 { font-size: clamp(30px, 3.6vw, 42px); }
.buy-seller { font-weight: 600; color: var(--gri); text-decoration: underline; text-decoration-color: var(--cizgi); text-underline-offset: 4px; }
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.buy-price strong { font-size: 32px; color: var(--orman); }
.buy-price s { color: var(--gri); font-size: 18px; }
.buy-price .unit { color: var(--gri); font-size: 16px; }
.buy-form { display: flex; gap: 12px; flex-wrap: wrap; }
.buy-form .grow { flex: 1 1 200px; }
.qty { display: inline-flex; align-items: center; height: 52px; border-radius: 14px; background: var(--beyaz); box-shadow: inset 0 0 0 1px var(--cizgi); }
.qty button { width: 46px; height: 52px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--orman); }
.qty input { width: 52px; height: 52px; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 17px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stock-note { font-size: 14px; color: var(--gri); margin: 0; }
.out-of-stock-box { background: var(--kum); border-radius: 14px; padding: 14px 18px; font-weight: 600; margin: 0; }
.assurance { list-style: none; padding: 16px 0 0; margin: 4px 0 0; border-top: 1px solid var(--cizgi); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.assurance li { display: flex; align-items: center; gap: 10px; color: #3E463C; }
.assurance svg { color: var(--orman); flex-shrink: 0; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; margin-top: 48px; align-items: start; }
.detail-text h2 { font-size: 28px; margin-bottom: 14px; }
.detail-text h3 { font-size: 20px; margin: 22px 0 10px; }
.feature-list { margin: 0; padding-left: 20px; }
.producer-box { background: var(--beyaz); border-radius: var(--r-lg); box-shadow: var(--golge); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.producer-box h2 { font-size: 24px; }
.producer-box p { margin: 0; }
.facts { display: flex; gap: 22px; margin: 6px 0 8px; flex-wrap: wrap; }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dt { font-size: 13px; color: var(--gri); }
.facts dd { margin: 0; font-family: var(--font-baslik); font-weight: 700; font-size: 26px; color: var(--orman); line-height: 1.1; }

/* ---- Mağaza -------------------------------------------------------------- */
.store-hero { background: linear-gradient(var(--tone, var(--kum)), var(--tone, var(--kum))); padding: 36px 0; }
.store-hero-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.store-avatar { width: 112px; height: 112px; border-radius: 30px; background: var(--orman); color: var(--altin-acik); display: flex; align-items: center; justify-content: center; font-family: var(--font-baslik); font-size: 52px; font-weight: 600; overflow: hidden; box-shadow: 0 0 0 4px var(--krem); }
.store-avatar img { width: 100%; height: 100%; object-fit: cover; }
.store-title { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; flex: 1 1 300px; }
.store-title h1 { font-size: clamp(30px, 4vw, 44px); }
.store-title p { margin: 0; }
.store-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 40px; align-items: start; }
.store-about { background: var(--beyaz); border-radius: var(--r-lg); box-shadow: var(--golge); padding: 24px; }
.store-about h2 { font-size: 24px; margin-bottom: 12px; }
.product-grid-3 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* ---- Sepet --------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-bottom: 48px; }
.cart-layout > .empty-state { grid-column: 1 / -1; }
.cart-groups { display: flex; flex-direction: column; gap: 18px; }
.cart-group { background: var(--beyaz); border-radius: 20px; box-shadow: var(--golge); padding: 8px 20px; }
.cart-group h2 { font-family: var(--font-metin); font-size: 16px; font-weight: 700; padding: 12px 0; border-bottom: 1px solid var(--cizgi); }
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #F1E8D6; }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 64px; height: 64px; border-radius: 14px; background: var(--tone, var(--kum)); color: rgba(14, 51, 36, .35); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; font-weight: 600; min-width: 0; }
.cart-info .muted { font-weight: 400; font-size: 14px; }
.cart-qty input { width: 70px; height: 44px; border-radius: 10px; border: 1px solid var(--cizgi); text-align: center; font-weight: 700; }
.cart-line-total { min-width: 96px; text-align: right; color: var(--orman); }
.cart-summary { background: var(--beyaz); border-radius: 20px; box-shadow: var(--golge); padding: 22px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.cart-summary h2 { font-size: 22px; }
.cart-summary p { margin: 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-total { border-top: 1px solid var(--cizgi); padding-top: 12px; font-size: 18px; }
.sum-total strong { color: var(--orman); font-size: 22px; }

/* ---- Satıcı ol ----------------------------------------------------------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.info-card { background: var(--beyaz); border-radius: var(--r-lg); box-shadow: var(--golge); padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.info-card h3 { font-size: 22px; }
.info-card p { margin: 0; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps li { counter-increment: step; background: var(--krem); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 12px; background: var(--orman); color: var(--altin-acik); font-family: var(--font-baslik); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.steps strong { font-size: 18px; color: var(--orman); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 22px 0 48px; }
.course-card { background: var(--beyaz); border-radius: 20px; box-shadow: var(--golge); padding: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.course-card h3 { font-size: 19px; }
.course-card p { margin: 0; font-size: 14px; color: var(--gri); }
.course-level { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.level-baslangic { background: #E3EEE6; color: var(--orman); }
.level-orta { background: #F7E8C6; color: var(--altin-koyu); }
.level-ileri { background: #EFE6F4; color: var(--lavanta); }

/* ---- Alt bölüm ----------------------------------------------------------- */
.site-footer { background: var(--gece); color: var(--acik-metin); margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.footer-brand img { width: 170px; height: auto; margin-bottom: 10px; }
.footer-brand p { max-width: 320px; font-size: 15px; }
.site-footer h2 { font-family: var(--font-metin); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--altin-acik); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-footer a { color: var(--altin-krem); }
.site-footer a:hover { color: var(--beyaz); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--orman-cizgi); font-size: 14px; }

/* ---- Kurulum sayfası ----------------------------------------------------- */
.installer { background: var(--gece); min-height: 100vh; padding: 32px 16px; }
.install-card { max-width: 560px; margin: 0 auto; background: var(--krem); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--orman-cizgi), 0 24px 60px rgba(0, 0, 0, .35); }
.install-brand { background: #012114; display: flex; justify-content: center; padding: 12px 16px 6px; border-bottom: 3px solid var(--altin); }
.install-brand img { width: 250px; height: auto; }
.install-body { padding: 24px 28px 28px; }
.install-card h1 { text-align: center; margin-bottom: 18px; }
.install-card h2 { font-size: 20px; margin: 18px 0 4px; }
.install-card .flash { border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.install-form { display: flex; flex-direction: column; gap: 12px; }
.install-form .field label { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--murekkep); }
.install-form .checkbox { align-items: flex-start; font-size: 14px; margin: 8px 0; }
.install-form .checkbox input { margin-top: 3px; flex-shrink: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; }
.checks .ok { color: var(--orman); }
.checks .fail { color: #8E1814; font-weight: 700; }
.install-next { padding-left: 20px; }

/* ---- Duyarlı (mobil) ----------------------------------------------------- */
@media (max-width: 899px) {
  .catalog { grid-template-columns: 1fr; gap: 12px; }
  .filter-box { position: static; }
  .product-detail, .detail-columns, .store-layout, .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  /* Yalnızca yan boşluklar: üst/alt boşlukları ezmesin */
  .container { padding-left: 16px; padding-right: 16px; }
  .brand { margin: 0; }
  .brand img { height: 74px; }
  .header-row { gap: 12px 16px; padding-top: 12px; padding-bottom: 12px; }

  /* Kategori menüsü: kaydırılabilir yuvarlak düğmeler */
  .category-nav { position: relative; }
  .category-nav::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 48px; pointer-events: none;
    background: linear-gradient(to right, rgba(2, 31, 20, 0), var(--gece) 80%);
    transition: opacity .2s;
  }
  .category-nav.at-end::after { opacity: 0; }
  .category-row { gap: 8px; padding-top: 10px; padding-bottom: 12px; padding-right: 48px; scroll-snap-type: x proximity; }
  .category-row a {
    scroll-snap-align: start; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px;
    border-radius: 999px; border: 1px solid var(--orman-cizgi); background: rgba(245, 222, 158, .06);
  }
  .category-row a:hover, .category-row a[aria-current] { border-color: var(--altin); background: var(--altin); color: var(--murekkep); }
  .category-row .highlight { border-color: var(--altin); }
  .search { order: 3; flex-basis: 100%; }
  .account-nav { margin-left: auto; gap: 12px; }
  .hero-row { padding-top: 36px; padding-bottom: 44px; gap: 28px; }
  .hero-copy p { font-size: 17px; }
  .tile { min-height: 120px; border-radius: 22px; padding: 18px; }
  .product-grid, .product-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-body { padding: 12px; }
  .product-name { font-size: 15px; }
  .product-foot { flex-direction: column; align-items: stretch; }
  .product-foot .btn { width: 100%; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { min-height: 120px; padding: 14px; }
  .seller-grid { grid-template-columns: 1fr; }
  .academy-band { padding: 28px 22px; }
  .sortbar { justify-content: stretch; }
  .sortbar select { flex: 1; min-width: 0; }
  .cart-line { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "thumb info remove" "thumb qty total"; row-gap: 8px; }
  .cart-thumb { grid-area: thumb; width: 56px; height: 56px; }
  .cart-info { grid-area: info; }
  .cart-qty { grid-area: qty; }
  .cart-line-total { grid-area: total; }
  .cart-line > form:last-child { grid-area: remove; justify-self: end; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
