/* =====================================================================
   catalog.css — Mağaza vitrini: ana sayfa bölümleri, ürün listeleri,
   ürün detay sayfası (galeri, fiyat kutusu, varyant çipleri, toptan fiyat
   tablosu, yapışkan satın alma kutusu), içerik ve iletişim sayfaları.
   Renkler base.css değişkenlerinden gelir (koyu lacivert + turuncu vurgu).
   ===================================================================== */

/* ---------- Ortak ---------- */
.section-sub { margin: 4px 0 0; color: var(--c-muted); font-size: .92rem; }
.section-head a { display: inline-flex; align-items: center; gap: 4px; }

/* =====================================================================
   ANA SAYFA
   ===================================================================== */
.home-hero { padding-top: 20px; }
.home-hero .hero { min-height: 380px; }
@media (max-width: 640px) {
  /* Mobil hero: yalnızca başlık + tek düğme (açıklama, rozet, hızlı bağlantılar ve WhatsApp düğmesi gizli) */
  .home-hero { padding-top: 12px; }
  .home-hero .hero { min-height: 196px; border-radius: var(--radius); }
  .home-hero .hero-content { padding: 20px 20px 44px; }
  .home-hero .hero-content h1, .home-hero .hero-content h2 { font-size: 1.4rem; margin-bottom: 14px; }
  .home-hero .hero-content p, .home-hero .hero-kicker, .home-hero .hero-quick, .home-hero .hero-actions .btn-whatsapp { display: none; }
  .home-hero .hero-content .btn-lg { min-height: 46px; padding: 10px 20px; font-size: 1rem; }
  .home-hero .hero-dots { bottom: 14px; left: 20px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-content > .btn { margin-top: 2px; }

/* Varsayılan (banner'sız) hero: endüstriyel ızgara deseni + turuncu parıltı */
.hero-default:not(.has-image) {
  background:
    radial-gradient(circle at 82% 30%, rgba(234, 88, 12, .32) 0, rgba(234, 88, 12, 0) 42%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(120deg, #0b1220 0%, #0f172a 45%, #1e293b 100%);
}
.hero-default .hero-content { max-width: 640px; z-index: 2; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-quick a {
  padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  color: #e2e8f0; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  transition: background var(--t), border-color var(--t);
}
.hero-quick a:hover { background: rgba(234, 88, 12, .25); border-color: rgba(253, 186, 116, .5); color: #fff; }

.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 44%; pointer-events: none; }
.hero-art-ring { position: absolute; right: 12%; top: 50%; width: 300px; height: 300px; margin-top: -150px; border-radius: 50%; border: 2px dashed rgba(253, 186, 116, .28); }
.hero-art-ring-2 { right: 20%; width: 180px; height: 180px; margin-top: -90px; border: 14px solid rgba(255, 255, 255, .05); }
.hero-art-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-radius: 12px; background: rgba(15, 23, 42, .72); border: 1px solid rgba(255, 255, 255, .12);
  color: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); font-size: .9rem; white-space: nowrap;
}
.hero-art-card .icon { color: #fdba74; }
.hero-art-card-1 { top: 18%; right: 34%; }
.hero-art-card-2 { top: 44%; right: 6%; }
.hero-art-card-3 { bottom: 16%; right: 28%; }
@media (max-width: 1100px) { .hero-art { display: none; } }

/* Güven rozetleri */
.home-features { padding-top: 20px; padding-bottom: 8px; }
.home-features .feature span a { color: var(--c-accent-700); font-weight: 600; }
.home-features .feature > div { min-width: 0; }

/* Kategori kutuları */
.category-tile-img img.is-product { object-fit: contain; padding: 14px; background: #fff; }
.category-tile-name > span { display: flex; flex-direction: column; min-width: 0; }
.category-tile-name small { font-weight: 500; font-size: .78rem; color: var(--c-muted); margin-top: 2px; }
.category-tile-name .icon { color: var(--c-light); transition: transform var(--t), color var(--t); }
.category-tile:hover .category-tile-name .icon { color: var(--c-accent); transform: translateX(3px); }
@media (max-width: 640px) {
  /* Mobil: sıkı 3 sütun, küçük görsel + kısa ad (en fazla üç satır; ürün sayısı ve ok gizli) */
  .home-categories .category-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .home-categories .category-tile-img img.is-product { padding: 6px; }
  .home-categories .category-tile-img .icon { width: 30px; height: 30px; }
  .home-categories .category-tile-name { flex: 1; justify-content: center; min-height: calc(2.5em + 14px); padding: 7px 6px; font-size: .78rem; line-height: 1.25; text-align: center; }
  .home-categories .category-tile-name > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .home-categories .category-tile-name small, .home-categories .category-tile-name > .icon { display: none; }
}

/* Toptan alım adımları */
.steps {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; align-items: center;
  padding: 28px 32px; border-radius: var(--radius-lg);
  background: var(--c-primary-700); color: #cbd5e1;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 28px 28px;
}
.steps h2 { color: #fff; margin: 0 0 8px; }
.steps-intro p { margin: 0; font-size: .95rem; }
.steps-intro .hero-kicker { margin-bottom: 10px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.steps-list strong { display: block; color: #fff; margin-bottom: 2px; }
.steps-list span { font-size: .85rem; }
.steps-no { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--c-accent); color: #fff !important; font-weight: 800; font-size: .95rem !important; display: flex; align-items: center; justify-content: center; }
@media (max-width: 980px) {
  .steps { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
}
@media (max-width: 640px) {
  .steps-list { grid-template-columns: minmax(0, 1fr); }
}

/* CTA bandı */
.cta-text { flex: 1 1 360px; min-width: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band .cta-btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.cta-band .cta-btn-outline:hover { background: #fff; color: var(--c-accent-700); }
@media (max-width: 560px) {
  .cta-band { padding: 22px 18px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .cta-actions .btn { white-space: normal; }
}

.home-empty { max-width: 720px; margin: 0 auto; }

/* Mobil ana sayfa (≤640px): güven rozetleri, toptan adımları ve CTA bandı gizlenir; tek ürün bölümü
   (en fazla 4 ürün + "Tümünü gör" düğmesi) ve tek satırlık toptan notu gösterilir */
.home-more, .home-note-m { display: none; }
@media (max-width: 640px) {
  .home-features, .home-steps, .home-cta, .home-products-alt { display: none; }
  .home-categories, .home-products { padding-top: 24px; padding-bottom: 0; }
  .home-categories .section-head, .home-products .section-head { align-items: center; margin-bottom: 12px; }
  .home-categories .section-head h2, .home-products .section-head h2 { font-size: 1.2rem; }
  .page-home .section-sub, .home-products .section-head a { display: none; }
  .home-categories .section-head a { min-height: 44px; margin: -8px 0; }
  .home-products .product-grid > :nth-child(n+5) { display: none; }
  .home-more { display: flex; min-height: 46px; margin-top: 14px; background: var(--c-surface); }

  .home-note-m { display: block; padding-top: 20px; }
  .home-note { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-primary-700); }
  .home-note:hover { color: var(--c-primary-700); border-color: var(--c-accent-100); }
  .home-note-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--c-accent-50); color: var(--c-accent); display: flex; align-items: center; justify-content: center; }
  .home-note-icon.is-whatsapp { background: #dcfce7; color: #16a34a; }
  .home-note-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
  .home-note-text strong { font-size: .92rem; }
  .home-note-text small { font-size: .8rem; color: var(--c-muted); }
  .home-note > .icon { color: var(--c-light); }
}

/* =====================================================================
   ÜRÜN LİSTELERİ
   ===================================================================== */
.listing-intro { max-width: 860px; margin-top: 6px; font-size: .95rem; color: var(--c-muted); }
.listing-intro p:last-child { margin-bottom: 0; }
.listing-layout { margin-top: 14px; }
.listing-main { min-width: 0; }
.listing-chips { margin-bottom: 4px; }
.listing-aside { position: sticky; top: calc(var(--header-h) + 60px); }
@media (max-width: 980px) {
  .listing-aside { display: none; }
}

.cat-tree a { gap: 8px; }
.cat-tree a > span { flex: 1; min-width: 0; }
.cat-tree a > .icon:first-child { color: var(--c-light); }
.cat-tree a.active { font-weight: 700; }
.cat-tree a.active > .icon:first-child { color: var(--c-accent); }
.cat-tree > li > a .icon:last-child { color: var(--c-light); }
.cat-tree ul { margin: 2px 0 6px 10px; padding-left: 10px; border-left: 2px solid var(--c-border); }
.cat-tree ul a { font-size: .87rem; padding: 5px 8px; }

.sidebar-wholesale { background: linear-gradient(160deg, var(--c-accent-50) 0%, #fff 70%); border-color: var(--c-accent-100); }
.sidebar-wholesale p { font-size: .86rem; color: var(--c-muted); margin-bottom: 12px; }
.sidebar-wholesale-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--c-accent); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }

.list-count { font-size: .9rem; color: var(--c-text); }
.list-count strong { color: var(--c-primary-700); }
.list-sort { display: flex; align-items: center; gap: 8px; }
.list-sort-label { font-size: .85rem; color: var(--c-muted); font-weight: 600; }

/* Mobil liste (≤640px): kısa başlık, iki satırlık açıklama, yatay kaydırılan kategori çipleri,
   sonuç sayısı + sıralama tek satırda, kompakt sayfalama */
.listing-intro-more { display: none; }
@media (max-width: 640px) {
  .listing-page .page-head { padding: 14px 0 0; }
  .listing-page .page-head .breadcrumbs { display: none; }
  .listing-page .page-head h1 { margin: 0; font-size: 1.3rem; overflow-wrap: break-word; }
  .listing-intro { margin-top: 4px; font-size: .88rem; line-height: 1.5; }
  .listing-intro:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .listing-intro-more { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 -10px; padding: 0; border: 0; background: none; color: var(--c-accent-700); font-weight: 600; font-size: .88rem; }
  .listing-layout { margin-top: 12px; }

  .listing-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 2px; padding: 0 16px 2px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .listing-chips::-webkit-scrollbar { display: none; }
  .listing-chips .chip { flex: 0 0 auto; min-height: 44px; padding: 8px 15px; white-space: nowrap; }

  .listing-main .list-toolbar { flex-wrap: nowrap; gap: 10px; margin: 8px 0 12px; padding: 0; background: none; border: 0; }
  .list-count { white-space: nowrap; }
  .list-count .text-muted { display: none; }
  .list-sort { flex: 0 1 auto; min-width: 0; gap: 6px; }
  /* 16px: iOS Safari dokununca sayfayı yakınlaştırmasın */
  .listing-main .list-toolbar .form-select { width: 182px; max-width: 100%; min-height: 44px; font-size: 16px; }

  /* Sayfalama: önceki/sonraki, ilk/son sayfa ve geçerli sayfa (aradakiler gizli) */
  .listing-main .pagination { margin: 20px 0 4px; }
  .listing-main .pagination ul { flex-wrap: nowrap; gap: 4px; }
  .listing-main .pagination a, .listing-main .pagination span { min-width: 44px; height: 44px; padding: 0 8px; }
  .listing-main .pagination li:not(.active):not(.disabled):not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-last-child(2)) { display: none; }
  .listing-main .pagination li.disabled:not(:first-child):not(:last-child) span { min-width: 22px; padding: 0; border: 0; background: none; }

  /* Sonuç yok: arama kutusu başlıktaki aramayla aynı olduğundan gizli; kategori çipleri dokunmaya uygun */
  .listing-empty .empty-state { padding: 24px 16px; }
  .listing-empty .listing-search { display: none; }
  .listing-suggest-chips { gap: 8px; }
  .listing-suggest-chips .chip { min-height: 44px; }
  .listing-empty-actions { display: flex; width: 100%; }
  .listing-empty-actions .btn { flex: 1 1 0; min-height: 46px; }
  .listing-empty-actions .btn .icon { display: inline-block; margin: 0; color: inherit; }
  .listing-suggestions { margin-top: 24px; }
  .listing-suggestions .section-head { margin-bottom: 12px; }
  .listing-suggestions .section-head h2 { font-size: 1.2rem; }
}

.listing-empty .empty-state { padding: 40px 20px; }
.listing-search { max-width: 460px; margin: 0 auto 18px; }
.listing-suggest-chips { justify-content: center; margin: 0 auto 18px; max-width: 640px; }
.listing-empty-actions { justify-content: center; }
.listing-suggestions { margin-top: 32px; }

/* Ürün kartı küçük eklemeler */
.product-card.is-soldout .product-card-price .price { color: var(--c-muted); }
.product-card-badges .badge { box-shadow: var(--shadow-sm); }
.product-card .price-from { margin-left: 1px; }
.product-card-actions form { margin: 0; }

/* =====================================================================
   ÜRÜN DETAY
   ===================================================================== */
.pd-head { padding-bottom: 14px; }
.pd-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: start; }

/* Galeri */
.pd-gallery { min-width: 0; }
.pd-main { position: relative; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; }
.pd-main-link { display: block; aspect-ratio: 1 / 1; cursor: zoom-in; }
.pd-main-link.is-placeholder { cursor: default; }
.pd-main-link img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.pd-badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 6px; }
.pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--c-border); background: rgba(255, 255, 255, .92); color: var(--c-primary-700);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
  opacity: 0; transition: opacity var(--t), background var(--t);
}
.pd-main:hover .pd-nav, .pd-nav:focus-visible { opacity: 1; }
.pd-nav:hover { background: #fff; color: var(--c-accent-700); }
.pd-prev { left: 12px; }
.pd-next { right: 12px; }
.pd-counter { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(15, 23, 42, .7); color: #fff; font-size: .78rem; font-weight: 600; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pd-thumb {
  flex: 0 0 76px; width: 76px; height: 76px; padding: 4px; border-radius: var(--radius-sm);
  border: 2px solid var(--c-border); background: #fff; transition: border-color var(--t);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb:hover { border-color: var(--c-border-strong); }
.pd-thumb.active { border-color: var(--c-accent); }
@media (hover: none) { .pd-nav { opacity: 1; } }

/* Satın alma kutusu */
.pd-info { min-width: 0; }
@media (min-width: 981px) and (min-height: 760px) {
  .pd-info { position: sticky; top: calc(var(--header-h) + 60px); }
}
.pd-buybox { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.pd-cat { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-accent-700); margin-bottom: 6px; }
.pd-title { font-size: 1.6rem; line-height: 1.25; margin: 0 0 10px; letter-spacing: -.01em; overflow-wrap: break-word; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .86rem; color: var(--c-muted); margin-bottom: 12px; }
.pd-meta strong { color: var(--c-primary); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.pd-short { color: #475569; font-size: .95rem; margin: 0 0 16px; }

.stock-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .84rem; }
.stock-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(0, 0, 0, .05); }
.stock-in { color: var(--c-success); }
.stock-low { color: var(--c-warning); }
.stock-out { color: var(--c-danger); }

.pd-price-box { padding: 14px 16px; border-radius: var(--radius); background: var(--c-surface-2); border: 1px solid var(--c-border); margin-bottom: 14px; }
.pd-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.pd-price { font-size: 2rem; font-weight: 800; color: var(--c-primary-700); line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; }
.pd-price .price-from { font-size: .5em; font-weight: 600; letter-spacing: 0; }
.pd-price-row .price-old { font-size: 1.05rem; }
.pd-price-row .badge { align-self: center; }
.pd-vat { font-size: .8rem; color: var(--c-muted); margin-top: 4px; }

.pd-unit-info { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: .88rem; color: #475569; }
.pd-unit-info li { display: flex; align-items: flex-start; gap: 8px; }
.pd-unit-info .icon { color: var(--c-accent); margin-top: 2px; }
.pd-unit-info strong { color: var(--c-primary-700); }

.pd-form { margin: 0; }
.pd-label { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--c-primary-700); margin-bottom: 8px; }
.pd-label .icon { color: var(--c-accent); }

/* Varyant çipleri */
.pd-variants { margin: 0 0 16px; }
.pd-variants legend { margin-bottom: 8px; padding: 0; width: 100%; }
.pd-variant-current { font-weight: 500; color: var(--c-muted); }
.pd-variant-current:not(:empty)::before { content: "· "; }
.variant-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chip { position: relative; cursor: pointer; }
.variant-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.variant-chip-body {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 42px; justify-content: center;
  padding: 7px 14px; border: 1.5px solid var(--c-border-strong); border-radius: var(--radius-sm);
  background: var(--c-surface); font-weight: 600; font-size: .9rem; color: var(--c-primary-700); line-height: 1.25;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.variant-chip-note { font-size: .74rem; font-weight: 600; color: var(--c-muted); }
.variant-chip:hover .variant-chip-body { border-color: var(--c-primary); }
.variant-chip input:checked + .variant-chip-body { border-color: var(--c-accent); background: var(--c-accent-50); box-shadow: inset 0 0 0 1px var(--c-accent); color: var(--c-accent-700); }
.variant-chip input:checked + .variant-chip-body .variant-chip-note { color: var(--c-accent-700); }
.variant-chip input:focus-visible + .variant-chip-body { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.variant-chip.is-disabled { cursor: not-allowed; }
.variant-chip.is-disabled .variant-chip-body { background: var(--c-surface-2); border-style: dashed; color: var(--c-light); }
.variant-chip.is-disabled .variant-chip-name { text-decoration: line-through; }
.variant-chip.is-disabled .variant-chip-note { color: var(--c-danger); }
.pd-variants.is-required .variant-chip:not(.is-disabled) .variant-chip-body { border-color: var(--c-danger); animation: pd-shake .35s ease; }
.pd-variant-hint { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .84rem; font-weight: 600; color: var(--c-danger); }
@keyframes pd-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* Toptan fiyat tablosu */
.pd-tiers { margin: 0 0 16px; padding: 14px; border-radius: var(--radius); border: 1px dashed #fdba74; background: var(--c-accent-50); }
.pd-tiers .table-wrap { background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--c-accent-100); }
.pd-tier-table { font-size: .88rem; }
.pd-tier-table th, .pd-tier-table td { padding: 8px 12px; }
.pd-tier-table thead th { background: #fff; }
.pd-tier-table tbody tr { transition: background var(--t); }
.pd-tier-table tbody tr.is-active { background: var(--c-accent-100); }
.pd-tier-table tbody tr.is-active td { font-weight: 700; color: var(--c-accent-700); }
.pd-tier-table tbody tr:hover { background: var(--c-accent-50); }
.pd-tier-table tbody tr.is-active:hover { background: var(--c-accent-100); }
.pd-tier-table .tier-pct { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #dcfce7; color: #166534; font-weight: 700; font-size: .8rem; }
.pd-tier-table .price-from { margin-left: 1px; }
.pd-tiers-note { margin: 8px 0 0; font-size: .8rem; color: var(--c-warning); }
.pd-tiers-wide { max-width: 560px; margin: 14px 0; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }

/* Adet + canlı fiyat */
.pd-qty-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 12px; }
.pd-qty-row .pd-label { margin: 0; min-width: 44px; }
.pd-qty-row .qty-input { min-height: 46px; }
.pd-qty-row .qty-input button { width: 44px; }
.pd-qty-row .qty-input input { width: 74px; font-size: 1.05rem; }
.pd-qty-unit { font-size: .88rem; color: var(--c-muted); }

.pd-live { margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--c-surface-2); border: 1px solid var(--c-border); font-size: .9rem; }
.pd-live-select { color: var(--c-muted); font-weight: 600; }
.pd-live-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 2px 0; }
.pd-live-row > span { color: var(--c-muted); }
.pd-live-row small { font-size: .8rem; }
.pd-live-total { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--c-border-strong); }
.pd-live-total strong { font-size: 1.2rem; color: var(--c-primary-700); }
.pd-live-note { margin-top: 6px; font-size: .82rem; font-weight: 700; color: var(--c-success); }
.pd-live-next { margin-top: 6px; font-size: .82rem; color: var(--c-accent-700); font-weight: 600; }

.pd-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.pd-actions .btn { width: 100%; }
.pd-soldout-note { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0; font-size: .86rem; color: var(--c-danger); }
.pd-soldout-note .icon { margin-top: 2px; }
.pd-whatsapp { margin-top: 10px; }
.pd-quote-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: .9rem; }

.pd-trust { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--c-border); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pd-trust li { display: flex; align-items: flex-start; gap: 8px; font-size: .78rem; color: var(--c-muted); line-height: 1.35; }
.pd-trust .icon { color: var(--c-primary); flex-shrink: 0; margin-top: 1px; }
.pd-trust strong { display: block; color: var(--c-primary-700); font-size: .82rem; }

/* Sekmeler & açıklama */
.pd-details { margin-top: 32px; padding: 6px 24px 24px; }
.pd-details .tabs-nav { margin: 0 -24px 22px; padding: 0 16px; }
.pd-details .tabs-nav button { padding: 14px 16px; }
.pd-desc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.pd-specs { background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px 18px; }
.pd-specs h3 { font-size: .95rem; margin-bottom: 12px; }
.pd-specs .dl { grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); font-size: .86rem; }
.pd-bulk-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--c-surface-2); border: 1px solid var(--c-border); }
.pd-bulk-cta > div:first-child { flex: 1 1 280px; min-width: 0; }
.pd-bulk-cta strong { display: block; color: var(--c-primary-700); }
.pd-bulk-cta span { font-size: .88rem; color: var(--c-muted); }
.pd-ship-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 720px; }
.pd-ship-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .94rem; color: #334155; }
.pd-ship-list .icon { color: var(--c-accent); margin-top: 2px; }

.pd-similar { margin-top: 40px; }

@media (max-width: 980px) {
  .pd-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pd-desc-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
/* Mobil yardımcı öğeler (alt satın alma çubuğu, akordeon başlıkları, toptan fiyat özeti): masaüstünde gizli */
.pd-bar, .pd-acc, .pd-tiers-toggle { display: none; }

/* =====================================================================
   ÜRÜN DETAY — MOBİL (≤640px)
   Sıra: galeri (noktalı) → başlık, fiyat, stok → adet kuralı → seçenek, toptan fiyat özeti, adet →
   kısa açıklama, WhatsApp/teklif, tek satır güven notu → akordeon bölümler → benzer ürünler.
   Sepete Ekle düğmesi ve toplam alttaki sabit çubukta (.mobile-actionbar.pd-bar).
   ===================================================================== */
@media (max-width: 640px) {
  .pd-head { display: none; }
  .pd-layout { gap: 12px; margin-top: 12px; }

  /* Galeri: sabit yükseklik, küçük resimler görselin altında nokta olarak */
  .pd-gallery { position: relative; }
  .pd-main { border-radius: var(--radius); }
  .pd-main-link { aspect-ratio: auto; height: 300px; }
  .pd-main-link img { padding: 10px 10px 26px; }
  .pd-nav { width: 44px; height: 44px; }
  .pd-prev { left: 6px; }
  .pd-next { right: 6px; }
  .pd-counter { display: none; }
  /* Noktalar küçük görünür, dokunma alanı 44px (çok görsel varsa daralır) */
  .pd-thumbs { position: absolute; left: 0; right: 0; bottom: -6px; z-index: 2; justify-content: center; gap: 0; margin: 0; padding: 0; overflow: visible; }
  .pd-thumb { flex: 0 1 44px; width: 44px; min-width: 24px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; display: flex; align-items: center; justify-content: center; }
  .pd-thumb img { display: none; }
  .pd-thumb::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-border-strong); transition: width var(--t), background var(--t); }
  .pd-thumb.active::before { width: 18px; border-radius: 4px; background: var(--c-accent); }

  /* Satın alma kutusu: mobilde öğe sırası flex order ile değişir */
  .pd-buybox { display: flex; flex-direction: column; padding: 16px; border-radius: var(--radius); }
  /* Kategori bağlantısı mobilde tek geri dönüş yolu: geri oku + 44px dokunma alanı (negatif boşlukla yer kaplamaz) */
  .pd-cat { order: 1; align-self: flex-start; display: inline-flex; align-items: baseline; gap: 7px; min-height: 44px; padding: 12px 0; margin: -12px 0 -8px; }
  .pd-cat::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; margin-left: 2px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  .pd-title { order: 2; margin-bottom: 8px; font-size: 1.25rem; }
  .pd-price-box { order: 3; margin: 0 0 6px; padding: 0; background: none; border: 0; }
  .pd-price { font-size: 1.6rem; }
  .pd-meta { order: 4; margin-bottom: 14px; }
  .pd-sku { display: none; }
  .pd-unit-info { order: 5; margin-bottom: 14px; font-size: .85rem; }
  .pd-unit-info.is-basic, .pd-unit-info .pd-unit-base { display: none; }
  .pd-form { order: 6; }
  .pd-short { order: 7; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--c-border); font-size: .9rem; }
  .pd-whatsapp, .pd-quote-link { order: 8; }
  .pd-trust { order: 9; }

  .pd-variants { margin-bottom: 14px; }
  .variant-chip-body { min-height: 44px; }
  .variant-chip-note { font-size: .76rem; }

  /* Toptan fiyat: tek satır özet, tablo dokununca açılır */
  .pd-tiers { margin-bottom: 14px; padding: 0; border: 0; background: none; }
  .pd-tiers > .pd-label { display: none; }
  .pd-tiers:not(.is-open) > .table-wrap, .pd-tiers:not(.is-open) > .pd-tiers-note { display: none; }
  .pd-tiers-toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px dashed #fdba74; border-radius: var(--radius); background: var(--c-accent-50); color: var(--c-primary-700); font-size: .9rem; line-height: 1.3; text-align: left; }
  .pd-tiers-toggle > .icon { color: var(--c-accent-700); }
  .pd-tiers-toggle > .icon:last-child { margin-left: auto; transition: transform var(--t); }
  .pd-tiers.is-open .pd-tiers-toggle { margin-bottom: 8px; }
  .pd-tiers.is-open .pd-tiers-toggle > .icon:last-child { transform: rotate(180deg); }
  .pd-tiers-toggle-text { min-width: 0; }
  .pd-tiers-toggle strong { color: var(--c-accent-700); white-space: nowrap; }
  .pd-tiers-toggle .price-from { font-size: .78rem; }
  .pd-tier-table th, .pd-tier-table td { padding: 7px 8px; }

  /* Adet; canlı önizlemeden yalnızca indirim / sonraki kademe notları kalır (toplam alttaki çubukta) */
  /* Adet satırı tek satırda kalır: dar ekranda yalnızca sayı kutusu daralır; birim "adet" ise etiketle aynı olduğundan gizli */
  .pd-qty-row { flex-wrap: nowrap; margin-bottom: 4px; }
  .pd-qty-row .pd-label, .pd-qty-unit { flex-shrink: 0; white-space: nowrap; }
  .pd-qty-unit.is-same { display: none; }
  .pd-qty-row .qty-input { min-width: 0; min-height: 48px; }
  .pd-qty-row .qty-input button { flex-shrink: 0; width: 48px; }
  .pd-qty-row .qty-input input { width: 76px; min-width: 0; }
  .pd-live { margin: 0; padding: 0; background: none; border: 0; }
  .pd-live-select, .pd-live-row { display: none; }
  .pd-live-note, .pd-live-next { margin: 6px 0 0; }
  .pd-actions { display: none; }

  .pd-whatsapp { min-height: 48px; margin-top: 14px; }
  .pd-quote-link { align-self: flex-start; min-height: 44px; margin-top: 6px; }

  /* Güven rozetleri: tek kısa satır (yalnızca başlıklar, "·" ile ayrılmış) */
  .pd-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0; margin-top: 10px; padding-top: 12px; }
  .pd-trust li { align-items: center; gap: 0; white-space: nowrap; }
  .pd-trust li + li::before { content: "·"; margin: 0 8px; font-size: .9rem; color: var(--c-light); }
  .pd-trust li > span { font-size: 0; }
  .pd-trust strong { font-size: .78rem; font-weight: 600; color: var(--c-muted); }
  .pd-trust .icon { display: none; }

  /* Sekmeler → akordeon */
  .pd-details { margin-top: 12px; padding: 0; }
  .pd-details .tabs-nav { display: none; }
  .pd-acc { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-top: 1px solid var(--c-border); background: none; color: var(--c-primary-700); font-weight: 700; font-size: .98rem; text-align: left; }
  .pd-acc:first-of-type { border-top: 0; }
  .pd-acc .icon { color: var(--c-light); transition: transform var(--t); }
  .pd-acc[aria-expanded="true"] .icon { color: var(--c-accent); transform: rotate(180deg); }
  .pd-details .tab-panel { display: none; padding: 0 16px 18px; }
  .pd-details .tab-panel.is-open { display: block; }
  /* "Toplu Alım" bölümü mobilde yok: tablo satın alma kutusundaki toptan fiyat satırında, WhatsApp/teklif bağlantısı da orada */
  .pd-acc-bulk, .pd-details .tab-panel.pd-bulk-panel { display: none; }
  .pd-details .cms-content { font-size: .95rem; }
  .pd-desc-grid { gap: 16px; }
  .pd-specs { padding: 14px; }
  .pd-tiers-wide { margin: 12px 0; }
  .pd-bulk-cta { padding: 14px; }
  .pd-bulk-cta .btn-group { width: 100%; }
  .pd-bulk-cta .btn, .pd-shipping .btn-group .btn { flex: 1 1 0; min-height: 44px; }
  .pd-shipping .btn-group { display: flex; width: 100%; }

  .pd-similar { margin-top: 24px; }
  .pd-similar .section-head { align-items: center; margin-bottom: 12px; }
  .pd-similar .section-head h2 { font-size: 1.2rem; }
  .pd-similar .section-head a { min-height: 44px; margin: -8px 0; }

  /* Alt satın alma çubuğu (sözleşme: sabit, z-index 910, yükseklik ≤ 72px + güvenli alan) */
  .pd-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 910; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--c-surface, #fff); border-top: 1px solid var(--c-border); box-shadow: 0 -6px 20px rgba(15, 23, 42, .08); }
  .pd-bar-info { flex: 1; min-width: 0; }
  .pd-bar-sum { display: flex; flex-direction: column; line-height: 1.2; }
  .pd-bar-label { overflow: hidden; font-size: .78rem; color: var(--c-muted); white-space: nowrap; text-overflow: ellipsis; }
  .pd-bar-total { font-size: 1.2rem; font-weight: 800; color: var(--c-primary-700); white-space: nowrap; letter-spacing: -.01em; }
  .pd-bar-select { font-size: .85rem; font-weight: 600; line-height: 1.3; color: var(--c-muted); }
  .pd-bar-btn { flex: 0 0 auto; min-height: 50px; padding: 12px 22px; font-size: 1.02rem; }
}

/* =====================================================================
   İÇERİK SAYFASI
   ===================================================================== */
.content-layout { margin-top: 6px; }
.content-article { min-width: 0; }
.content-article .card-body { padding: 28px 32px 32px; }
.content-title { font-size: 1.6rem; margin-bottom: 6px; }
.content-updated { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--c-light); margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.content-aside .sidebar-links a > span { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 981px) {
  .content-aside { position: sticky; top: calc(var(--header-h) + 60px); }
}
@media (max-width: 980px) {
  .content-aside { order: 2; }
}
@media (max-width: 640px) {
  .content-page .page-head { padding: 12px 0 0; }
  .content-page .page-head .breadcrumbs { display: none; }
  /* Yan sayfa bağlantıları alt bilgide de bulunduğundan mobilde tekrar gösterilmez */
  .content-aside { display: none; }
  .content-article .card-body { padding: 18px 16px 22px; }
  .content-title { font-size: 1.3rem; overflow-wrap: break-word; }
  .content-updated { margin-bottom: 16px; padding-bottom: 12px; }
  .cms-content table { display: block; overflow-x: auto; }
}

/* =====================================================================
   İLETİŞİM
   ===================================================================== */
.contact-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 14px; }
.contact-info { min-width: 0; }
.contact-card-title { font-size: 1.1rem; margin-bottom: 16px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.contact-list li > div { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.contact-list small { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-light); font-weight: 700; }
.contact-list a { color: var(--c-primary-700); font-weight: 600; }
.contact-list a:hover { color: var(--c-accent-700); }
.contact-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; background: var(--c-accent-50); color: var(--c-accent); display: flex; align-items: center; justify-content: center; }
.contact-icon.is-whatsapp { background: #dcfce7; color: #16a34a; }
.contact-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--c-primary-700); color: #cbd5e1; font-size: .87rem; }
.contact-note .icon { color: #fdba74; margin-top: 2px; }
.contact-note p { margin: 0; }
.contact-note strong { color: #fff; }
.contact-form-card { margin-top: 0 !important; min-width: 0; }
.contact-form .form-check { font-size: .88rem; }
.contact-form .form-check.is-invalid { color: var(--c-danger); }
.contact-privacy { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 16px; font-size: .85rem; color: var(--c-muted); }
.contact-privacy .icon { flex-shrink: 0; margin-top: 2px; color: var(--c-accent); }
.contact-privacy a { color: var(--c-primary-700); font-weight: 600; text-decoration: underline; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 980px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .contact-page .page-head { padding: 14px 0 0; }
  .contact-page .page-head .breadcrumbs { display: none; }
  .contact-page .page-head h1 { margin: 0 0 4px; font-size: 1.3rem; }
  .contact-page .page-head p { font-size: .9rem; }
  .contact-layout { gap: 14px; margin-top: 12px; }
  .contact-card .card-body, .contact-form-card .card-body { padding: 16px; }
  .contact-form-card .card-header { padding-left: 16px; padding-right: 16px; }
  .contact-list { gap: 12px; }
  .contact-note { margin-top: 14px; }
  .contact-form .form-actions .btn { width: 100%; }
  /* 16px: iOS Safari alana dokununca sayfayı yakınlaştırmasın */
  .contact-form .form-control { font-size: 16px; }
}
