/* ==========================================================================
   Halis Fındık — ön yüz teması
   Marka renkleri logodan örneklendi: turuncu #f07020, yeşil #689800.
   Beyaz yazı taşıyan yüzeyler kontrast için bir tık koyulaştırıldı;
   referans, sitenin önceki mavi navigasyonu (#1f90bb = 3.64:1).
   ========================================================================== */

:root {
  --hs-brand:        #f07020;  /* logo turuncusu — rozet, ikon, vurgu, kenarlık */
  --hs-brand-surface:#d8641c;  /* beyaz yazılı geniş yüzey (nav)      3.65:1 */
  --hs-brand-btn:    #c95e1a;  /* beyaz yazılı buton                  4.12:1 */
  --hs-brand-hover:  #ac5017;  /* buton hover / turuncu yazı          5.37:1 */
  --hs-brand-soft:   #fdf1e8;  /* çok açık turuncu zemin */
  --hs-brand-ring:   rgba(240,112,32,.28);

  --hs-green:        #5d8800;  /* stokta / olumlu                     4.21:1 */
  --hs-green-soft:   #f0f6e4;

  --hs-text:         #1b2733;
  --hs-muted:        #5f6b7a;
  --hs-border:       #e3e7eb;
  --hs-border-str:   #cfd6dd;
  --hs-surface:      #ffffff;
  --hs-bg:           #f5f6f8;

  --hs-radius:       12px;
  --hs-radius-sm:    8px;
  --hs-shadow:       0 1px 2px rgba(16,24,40,.04), 0 2px 8px rgba(16,24,40,.06);
  --hs-shadow-lg:    0 6px 16px rgba(16,24,40,.10), 0 2px 6px rgba(16,24,40,.06);
}

/* Bootstrap'in "primary" ailesi mavi (#229ac8). Bunlar :root'ta tanimli oldugu
   ve .bg-primary gibi yardimcilar !important tasidigi icin tek tek ezmek yerine
   token'lar marka rengine ceviriliyor — nav, butonlar, baglantilar, rozetler
   hepsi birden doner. */
:root {
  --bs-primary:               #d8641c;
  --bs-primary-rgb:           216, 100, 28;
  --bs-primary-text-emphasis: #6b3210;
  --bs-primary-bg-subtle:     #fdf1e8;
  --bs-primary-border-subtle: #f4c8a8;

  --bs-link-color:            #ac5017;
  --bs-link-color-rgb:        172, 80, 23;
  --bs-link-hover-color:      #8c4013;
  --bs-link-hover-color-rgb:  140, 64, 19;

  --bs-border-radius:         8px;
}


/* ---------- Genel ---------- */
body { color: var(--hs-text); }

#container > .container,
#content { min-width: 0; }

/* Tema, eski bir "yapiskan footer" numarasi kullaniyor:
     #container { position:absolute; margin-bottom:300px }
     footer     { position:absolute; bottom:-1px }
   Footer 300px'i astigi anda icerigin ustune biniyor. Modern flex kolon
   duzenine cevriliyor; footer ne kadar uzarsa uzasin akista kaliyor. */
#container {
  position: static;
  margin-bottom: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
#container > main { flex: 1 0 auto; }

/* Ayni numaranin ikinci yarisi: tema, mutlak konumlu footer'a yer acmak icin
   icerik sutunlarina dev bir alt bosluk veriyordu (mobilde 730px, masaustunde
   400px). Footer artik akista oldugu icin bu tamamen olu bosluk. */
#content,
#column-left,
#column-right { padding-bottom: 0; }
.hs-footer {
  position: static;
  bottom: auto;
  width: auto;
  flex-shrink: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

a { color: var(--hs-brand-hover); }
a:hover { color: var(--hs-brand-btn); }

/* ---------- Üst şerit ---------- */
#top {
  background: #fafbfc;
  border-bottom: 1px solid var(--hs-border);
  font-size: .875rem;
}
#top a { color: var(--hs-muted); text-decoration: none; }
#top a:hover { color: var(--hs-brand-hover); }
#top .list-inline-item { margin-right: .85rem; }

/* ---------- Arama ---------- */
#search .form-control {
  min-height: 48px;
  font-size: 16px;
  border: 1px solid var(--hs-border-str);
  border-right: 0;
  border-radius: var(--hs-radius-sm) 0 0 var(--hs-radius-sm);
}
#search .form-control:focus {
  border-color: var(--hs-brand);
  box-shadow: 0 0 0 3px var(--hs-brand-ring);
  z-index: 2;
}
#search .btn {
  min-height: 48px;
  min-width: 56px;
  border-radius: 0 var(--hs-radius-sm) var(--hs-radius-sm) 0;
  background: var(--hs-brand-btn);
  border: 1px solid var(--hs-brand-btn);
  color: #fff;
}
#search .btn:hover { background: var(--hs-brand-hover); border-color: var(--hs-brand-hover); }

/* ---------- Ana menü ---------- */
#menu {
  background: var(--hs-brand-surface);
  background-image: none;
  border: 0;
  border-radius: var(--hs-radius-sm);
  box-shadow: var(--hs-shadow);
  padding: 0 .5rem;
  min-height: 48px;
}
#menu .navbar-nav > li > a {
  color: #fff;
  text-shadow: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 1rem;
  border-radius: 6px;
  transition: background-color .16s ease;
}
#menu .navbar-nav > li > a:hover,
#menu .navbar-nav > li > a:focus-visible { background: rgba(0,0,0,.16); color: #fff; }
#menu .dropdown-menu { border: 1px solid var(--hs-border); border-radius: var(--hs-radius-sm); box-shadow: var(--hs-shadow-lg); }
#menu .dropdown-item:hover { background: var(--hs-brand-soft); color: var(--hs-brand-hover); }
#menu .navbar-toggler {
  color: #fff;
  border: 0;
  min-height: 48px;
  font-weight: 700;
}
#menu .navbar-toggler:focus { box-shadow: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: transparent;
  padding: .75rem 0;
  font-size: .875rem;
  margin-bottom: 1rem;
}
.breadcrumb .breadcrumb-item a { color: var(--hs-muted); text-decoration: none; }
.breadcrumb .breadcrumb-item a:hover { color: var(--hs-brand-hover); text-decoration: underline; }
.breadcrumb .breadcrumb-item.active { color: var(--hs-text); font-weight: 600; }

/* ---------- Sol kategori listesi ---------- */
#column-left .list-group,
#column-right .list-group { border-radius: var(--hs-radius); overflow: hidden; box-shadow: var(--hs-shadow); }
#column-left .list-group-item,
#column-right .list-group-item {
  border-color: var(--hs-border);
  padding: .8rem 1rem;
  font-size: .95rem;
  color: var(--hs-text);
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
#column-left .list-group-item:hover,
#column-right .list-group-item:hover { background: var(--hs-brand-soft); color: var(--hs-brand-hover); }
#column-left .list-group-item.active,
#column-right .list-group-item.active {
  background: var(--hs-brand-surface);
  border-color: var(--hs-brand-surface);
  color: #fff;
  font-weight: 700;
}

/* ---------- Butonlar ---------- */
.btn-primary {
  --bs-btn-bg: var(--hs-brand-btn);
  --bs-btn-border-color: var(--hs-brand-btn);
  --bs-btn-hover-bg: var(--hs-brand-hover);
  --bs-btn-hover-border-color: var(--hs-brand-hover);
  --bs-btn-active-bg: var(--hs-brand-hover);
  --bs-btn-active-border-color: var(--hs-brand-hover);
  --bs-btn-disabled-bg: #d7dce2;
  --bs-btn-disabled-border-color: #d7dce2;
  --bs-btn-disabled-color: #7b8794;
  font-weight: 600;
  border-radius: var(--hs-radius-sm);
}
.btn-outline-primary {
  --bs-btn-color: var(--hs-brand-hover);
  --bs-btn-border-color: var(--hs-brand-btn);
  --bs-btn-hover-bg: var(--hs-brand-btn);
  --bs-btn-hover-border-color: var(--hs-brand-btn);
  border-radius: var(--hs-radius-sm);
}
.btn:focus-visible { box-shadow: 0 0 0 3px var(--hs-brand-ring); }

/* ==========================================================================
   Sepet — üst düğme ve açılır panel
   ========================================================================== */
#cart > .dropdown > .btn,
#cart .btn-dark {
  min-height: 48px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--hs-brand-btn);
  border: 1px solid var(--hs-brand-btn);
  color: #fff;
  border-radius: var(--hs-radius-sm);
  box-shadow: var(--hs-shadow);
  transition: background-color .16s ease;
}
#cart > .dropdown > .btn:hover,
#cart .btn-dark:hover { background: var(--hs-brand-hover); border-color: var(--hs-brand-hover); }
#cart .dropdown-toggle::after { margin-left: .55rem; opacity: .8; }

#cart .dropdown-menu {
  width: min(400px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  box-shadow: var(--hs-shadow-lg);
  overflow: hidden;
}

.hs-mini { display: flex; flex-direction: column; max-height: min(78vh, 620px); }
.hs-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--hs-border);
  font-weight: 700;
  font-size: .95rem;
}
.hs-mini-count { color: var(--hs-muted); font-weight: 500; font-size: .85rem; }
.hs-mini-list { overflow-y: auto; padding: .25rem 1rem; -webkit-overflow-scrolling: touch; }

.hs-mini-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: .75rem;
  align-items: start;
  padding: .8rem 0;
  border-bottom: 1px solid var(--hs-border);
}
.hs-mini-item:last-child { border-bottom: 0; }
.hs-mini-img {
  position: relative;
  width: 56px; height: 56px;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-sm);
  background: #fff;
}
.hs-mini-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; display: block; }
.hs-mini-qty {
  position: absolute;
  top: -8px; right: -8px;
  z-index: 2;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--hs-brand);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #fff;
}
.hs-mini-name {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hs-text);
  text-decoration: none;
}
.hs-mini-name:hover { color: var(--hs-brand-hover); }
.hs-mini-meta { margin: .15rem 0 0; padding: 0; list-style: none; }
.hs-mini-meta li { font-size: .75rem; color: var(--hs-muted); line-height: 1.4; }
.hs-mini-right { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.hs-mini-price { font-size: .875rem; font-weight: 700; white-space: nowrap; }
.hs-mini-remove {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hs-border-str);
  border-radius: 6px;
  background: #fff;
  color: var(--hs-muted);
  font-size: .8rem;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.hs-mini-remove:hover { color: #c9401f; border-color: #e7b3a6; background: #fdf3f1; }

.hs-mini-foot { border-top: 1px solid var(--hs-border); padding: .875rem 1rem 1rem; background: #fbfcfd; }
.hs-mini-total { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; font-size: .85rem; color: var(--hs-muted); }
.hs-mini-total > span:last-child { font-weight: 600; color: var(--hs-text); }
.hs-mini-total.is-grand { margin-top: .35rem; padding-top: .6rem; border-top: 1px solid var(--hs-border); font-size: 1.05rem; font-weight: 700; color: var(--hs-text); }
.hs-mini-total.is-grand > span:last-child { font-size: 1.15rem; }

.hs-mini-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .875rem; }
.hs-mini-actions .hs-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 46px;
  padding: .5rem .75rem;
  border-radius: var(--hs-radius-sm);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.hs-btn-ghost { border: 1.5px solid var(--hs-border-str); background: #fff; color: var(--hs-text); }
.hs-btn-ghost:hover { border-color: var(--hs-brand-btn); color: var(--hs-brand-hover); background: var(--hs-brand-soft); }
.hs-btn-solid { border: 1px solid var(--hs-brand-btn); background: var(--hs-brand-btn); color: #fff; }
.hs-btn-solid:hover { background: var(--hs-brand-hover); border-color: var(--hs-brand-hover); color: #fff; }

.hs-mini-empty { padding: 2.5rem 1rem; text-align: center; color: var(--hs-muted); font-size: .95rem; }
.hs-mini-empty svg { width: 40px; height: 40px; color: var(--hs-border-str); margin-bottom: .6rem; }

/* ==========================================================================
   Ürün kartı
   ========================================================================== */
.product-thumb {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  background: var(--hs-surface);
  overflow: hidden;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.product-thumb:hover { border-color: var(--hs-border-str); box-shadow: var(--hs-shadow-lg); transform: translateY(-2px); }
.product-thumb > form { display: flex; flex-direction: column; height: 100%; margin: 0; }

.product-thumb .image {
  position: relative;
  background: #fff;
  padding: .75rem;
}
.product-thumb .image > a { display: block; }
.product-thumb .image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  transition: transform .25s ease;
}
.product-thumb:hover .image img { transform: scale(1.04); }

/* İkincil eylemler görselin sağ üstünde */
.hs-card-actions {
  position: absolute;
  top: .5rem; right: .5rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  z-index: 2;
}
.hs-card-actions button {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hs-border);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--hs-muted);
  font-size: .85rem;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.hs-card-actions button:hover { color: var(--hs-brand-hover); border-color: var(--hs-brand); background: #fff; }
.hs-card-actions button:focus-visible { outline: 3px solid var(--hs-brand-ring); outline-offset: 1px; }

.product-thumb .content { display: flex; flex-direction: column; flex: 1 1 auto; padding: 0 .875rem .875rem; }
.product-thumb .description { flex: 1 1 auto; padding: 0; margin: 0 0 .75rem; }
.product-thumb .description h4 { margin: 0 0 .4rem; font-size: .95rem; line-height: 1.4; font-weight: 700; }
.product-thumb .description h4 a { color: var(--hs-text); text-decoration: none; }
.product-thumb .description h4 a:hover { color: var(--hs-brand-hover); }
/* Kırpılmış açıklama ızgarada gürültü yapıyor. JS yalnızca liste görünümünde
   #product-list'e .product-list ekliyor, .product-grid diye bir sınıf yok —
   bu yüzden varsayılan gizli, liste görünümünde görünür. */
.product-thumb .description > p { display: none; }
.product-list .product-thumb .description > p {
  display: block;
  font-size: .875rem;
  color: var(--hs-muted);
  line-height: 1.55;
  margin: .4rem 0 0;
}

.product-thumb .price { margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; }
.product-thumb .price-new { font-size: 1.25rem; font-weight: 800; color: var(--hs-text); letter-spacing: -.01em; }
.product-thumb .price-old { font-size: .9rem; color: var(--hs-muted); text-decoration: line-through; }
.product-thumb .price-tax { flex-basis: 100%; font-size: .75rem; color: var(--hs-muted); }
.product-thumb .rating { margin-top: .35rem; color: #f5a623; font-size: .8rem; }

/* Birincil eylem — tam genişlik, metinli */
.product-thumb .button { display: block; position: static; width: auto; margin-top: auto; }
.product-thumb .button .hs-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  min-height: 46px;
  padding: .6rem 1rem;
  border: 1px solid var(--hs-brand-btn);
  border-top: 1px solid var(--hs-brand-btn);
  border-radius: var(--hs-radius-sm);
  background: var(--hs-brand-btn);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.product-thumb .button .hs-add:hover { background: var(--hs-brand-hover); border-color: var(--hs-brand-hover); color: #fff; }
.product-thumb .button .hs-add:focus-visible { outline: 3px solid var(--hs-brand-ring); outline-offset: 2px; }

/* ---------- Öne çıkan ürün bölümleri (ana sayfa) ---------- */
.hs-featured { margin-bottom: 2.25rem; }
.hs-section-title {
  position: relative;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--hs-text);
  margin: 0 0 1.1rem;
  padding-bottom: .6rem;
}
.hs-section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 52px; height: 3px;
  border-radius: 2px;
  background: var(--hs-brand);
}
@media (max-width: 575.98px) {
  .hs-featured { margin-bottom: 1.75rem; }
  /* Ana sayfada da tek sütun yerine iki sütun */
  .hs-featured .row.row-cols-1 > * { flex: 0 0 50%; max-width: 50%; }
}

/* ---------- Kategori sayfası kontrolleri ---------- */
#product-list { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
#compare-total { border-radius: var(--hs-radius-sm); }
.form-select, .form-control { border-radius: var(--hs-radius-sm); }
#input-sort, #input-limit { min-height: 42px; }

/* ---------- Sayfalama ---------- */
.pagination .page-link { color: var(--hs-brand-hover); border-color: var(--hs-border); }
.pagination .page-item.active .page-link { background: var(--hs-brand-btn); border-color: var(--hs-brand-btn); color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.hs-footer {
  background: #1b2027;
  color: #aab3bd;
  margin-top: 3rem;
  padding: 0;
  border-top: 3px solid var(--hs-brand);
}
.hs-footer a { color: #c6ccd3; text-decoration: none; transition: color .16s ease; }
.hs-footer a:hover { color: var(--hs-brand); }

.hs-foot-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0 2rem;
}
@media (min-width: 992px) {
  .hs-foot-main { grid-template-columns: minmax(0,1fr) minmax(0,1.9fr); gap: 3rem; }
}

/* Marka bloğu */
/* Logo dosyasi beyaz zeminli bir JPEG; koyu footer'da kenari belli olmasin diye
   bilincli bir panel icine aliniyor. */
.hs-foot-logo {
  display: inline-block;
  margin-bottom: 1.1rem;
  background: #fff;
  padding: .55rem .8rem;
  border-radius: 10px;
  line-height: 0;
}
.hs-foot-logo img { max-width: 165px; height: auto; }
.hs-foot-logo-text { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }

.hs-foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.hs-foot-contact li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  line-height: 1.55;
}
.hs-foot-contact svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; color: var(--hs-brand); }
.hs-foot-contact a { color: #c6ccd3; }
.hs-foot-contact a:hover { color: var(--hs-brand); }

/* Bağlantı sütunları */
.hs-foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.75rem 1rem;
}
@media (min-width: 768px) { .hs-foot-links { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.hs-foot-col h5 {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 .9rem;
}
.hs-foot-col ul { list-style: none; margin: 0; padding: 0; }
.hs-foot-col li { margin-bottom: .55rem; }
.hs-foot-col a { font-size: .875rem; line-height: 1.5; }

/* Güven şeridi */
.hs-foot-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.09);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
@media (min-width: 768px) { .hs-foot-trust { grid-auto-flow: column; grid-template-columns: none; justify-content: start; gap: 2.5rem; } }
.hs-foot-trust-item { display: flex; align-items: center; gap: .55rem; font-size: .85rem; }
.hs-foot-trust-item svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--hs-brand); }

/* Alt şerit */
.hs-foot-bottom { padding: 1.25rem 0 1.5rem; }
.hs-foot-bottom p { margin: 0; font-size: .8rem; color: #7c8894; }

@media (max-width: 575.98px) {
  .hs-foot-main { padding: 2rem 0 1.5rem; gap: 1.75rem; }
  .hs-foot-logo img { max-width: 150px; }
  .hs-footer { margin-top: 2rem; }
}

/* ==========================================================================
   Mobil
   ========================================================================== */
@media (max-width: 575.98px) {
  /* Ürünler tek sütun yerine iki sütun — çok daha az kaydırma.
     Liste görünümü (.product-list) hariç, orada tek sütun doğru. */
  #product-list.row-cols-1:not(.product-list) > * { flex: 0 0 50%; max-width: 50%; }

  .product-thumb .image { padding: .5rem; }
  .product-thumb .content { padding: 0 .625rem .625rem; }
  .product-thumb .description h4 { font-size: .82rem; }
  .product-thumb .price-new { font-size: 1.05rem; }
  .product-thumb .price-tax { display: none; }
  .product-thumb .button .hs-add { font-size: .82rem; min-height: 44px; padding: .5rem .5rem; gap: .35rem; }
  .hs-card-actions button { width: 34px; height: 34px; font-size: .78rem; }

  /* Sepet paneli tam genişlik */
  #cart .dropdown-menu { width: calc(100vw - 20px); }
  .hs-mini-actions { grid-template-columns: 1fr; }

  #search .form-control, #search .btn { min-height: 46px; }
  #menu { margin-bottom: 14px; }
}

/* Karşılaştır butonu mobilde ikon-only kalıyordu (şablonda d-none d-xl-inline).
   Anlamsız bir turuncu şerit yerine metni her boyutta göster. */
#compare-total span.d-none { display: inline !important; }
#compare-total { font-size: .9rem; }

/* ---------- Hareket tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
  .product-thumb, .product-thumb .image img, .hs-card-actions button, .btn, a {
    transition-duration: .01ms !important;
  }
  .product-thumb:hover { transform: none; }
  .product-thumb:hover .image img { transform: none; }
}

/* ==========================================================================
   Ürün detay sayfası (PDP)
   ========================================================================== */

.hs-pdp { margin-top: .25rem; }

/* ---------- Görsel ---------- */
@media (min-width: 992px) {
  .hs-gallery { position: sticky; top: 1rem; }
}
.hs-gallery-main {
  position: relative;
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  box-shadow: var(--hs-shadow);
  overflow: hidden;
}
.hs-gallery-main > a {
  display: block;
  aspect-ratio: 1 / 1;
  padding: clamp(.75rem, 2vw, 1.5rem);
  cursor: zoom-in;
}
.hs-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .35s ease;
}
.hs-gallery-main > a:hover img { transform: scale(1.04); }
.hs-zoom-hint {
  position: absolute;
  right: .85rem;
  bottom: .85rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--hs-border);
  box-shadow: var(--hs-shadow);
  color: var(--hs-muted);
  display: grid;
  place-items: center;
  font-size: .85rem;
}

.hs-gallery-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.hs-gallery-thumb {
  width: 72px;
  height: 72px;
  padding: .35rem;
  background: #fff;
  border: 1.5px solid var(--hs-border);
  border-radius: var(--hs-radius-sm);
  cursor: pointer;
  transition: border-color .15s ease;
}
.hs-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hs-gallery-thumb:hover { border-color: var(--hs-border-str); }
.hs-gallery-thumb.is-active { border-color: var(--hs-brand); box-shadow: 0 0 0 2px var(--hs-brand-ring); }

/* ---------- Başlık ve künye ---------- */
.hs-buy-brand {
  display: inline-block;
  margin-bottom: .4rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--hs-brand-hover);
  text-decoration: none;
}
.hs-buy-title {
  margin: 0 0 .8rem;
  font-size: clamp(1.4rem, 1.05rem + 1.25vw, 2rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.015em;
  color: var(--hs-text);
}
.hs-buy-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  margin-bottom: 1.1rem;
  font-size: .84rem;
  color: var(--hs-muted);
}
.hs-stock {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .24rem .62rem;
  border-radius: 999px;
  font-size: .79rem;
  font-weight: 700;
}
.hs-stock.is-in  { background: var(--hs-green-soft); color: var(--hs-green); }
.hs-stock.is-out { background: #fdf1ee; color: #c9401f; }
.hs-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hs-sku > span { color: var(--hs-text); font-weight: 600; }

.hs-buy-rating { display: flex; align-items: center; gap: .5rem; margin: -.4rem 0 1rem; font-size: .85rem; }
.hs-buy-rating .hs-stars { color: #f0a020; letter-spacing: .06em; }
.hs-buy-rating .hs-sep { color: var(--hs-border-str); }

/* ---------- Fiyat ---------- */
.hs-price {
  margin: 0 0 1.3rem;
  padding: 1rem 0 1.1rem;
  border-top: 1px solid var(--hs-border);
  border-bottom: 1px solid var(--hs-border);
}
.hs-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem .75rem; }
.hs-price-now {
  font-size: clamp(1.75rem, 1.4rem + 1.35vw, 2.3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--hs-text);
}
.hs-price-was { font-size: 1.05rem; font-weight: 500; color: var(--hs-muted); text-decoration: line-through; }
.hs-price-off {
  padding: .25rem .55rem;
  border-radius: 6px;
  background: var(--hs-brand);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.hs-price-sub { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .5rem; font-size: .82rem; color: var(--hs-muted); }

.hs-bulk {
  list-style: none;
  margin: .9rem 0 0;
  padding: .65rem .8rem;
  border-radius: var(--hs-radius-sm);
  background: var(--hs-brand-soft);
  display: grid;
  gap: .32rem;
}
.hs-bulk li { display: flex; justify-content: space-between; gap: 1rem; font-size: .83rem; color: var(--hs-text); }
.hs-bulk li span { font-weight: 700; }

/* ---------- Seçenekler ---------- */
.hs-buy-subtitle {
  margin: 0 0 .75rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.005em;
  color: var(--hs-text);
}
.hs-options {
  margin-bottom: 1.25rem;
  padding-bottom: .25rem;
}
.hs-option-set { display: grid; gap: .3rem; }

/* ---------- Miktar + sepete ekle ---------- */
.hs-buy-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: .75rem;
}
.hs-qty { display: flex; flex-direction: column; gap: .4rem; }
.hs-qty-label { font-size: .82rem; font-weight: 600; color: var(--hs-muted); }
.hs-stepper {
  display: inline-flex;
  align-items: stretch;
  height: 56px;
  background: #fff;
  border: 1.5px solid var(--hs-border-str);
  border-radius: var(--hs-radius-sm);
  overflow: hidden;
}
.hs-stepper-btn {
  width: 46px;
  border: 0;
  background: transparent;
  color: var(--hs-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.hs-stepper-btn svg { width: 16px; height: 16px; }
.hs-stepper-btn:hover:not(:disabled) { background: var(--hs-brand-soft); color: var(--hs-brand-hover); }
.hs-stepper-btn:disabled { opacity: .3; cursor: not-allowed; }
.hs-stepper-btn:focus-visible { outline: 2px solid var(--hs-brand); outline-offset: -2px; }
.hs-stepper-input {
  width: 58px;
  border: 0;
  border-left: 1px solid var(--hs-border);
  border-right: 1px solid var(--hs-border);
  background: #fff;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hs-text);
  -moz-appearance: textfield;
}
.hs-stepper-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--hs-brand-ring); }
/* Bootstrap'in is-invalid'i kenarlık + arka plan ikonu basar; kenarlıklar
   sarmalayıcıya taşındığı için uyarıyı da oraya veriyoruz. */
.hs-stepper-input.is-invalid { background-image: none; border-color: var(--hs-border); }
.hs-stepper:has(.is-invalid) { border-color: #c9401f; }

.hs-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  min-height: 56px;
  padding: .75rem 1.4rem;
  border: 1px solid var(--hs-brand-btn);
  border-radius: var(--hs-radius-sm);
  background: var(--hs-brand-btn);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .1s ease;
}
.hs-cta:hover { background: var(--hs-brand-hover); border-color: var(--hs-brand-hover); color: #fff; box-shadow: var(--hs-shadow-lg); }
.hs-cta:active { transform: translateY(1px); }
.hs-cta:focus-visible { outline: 3px solid var(--hs-brand-ring); outline-offset: 2px; }
.hs-cta:disabled { opacity: .65; cursor: default; }

#error-quantity.d-block { color: #c9401f; font-size: .84rem; margin-top: .45rem; }

.hs-note {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .9rem;
  padding: .6rem .8rem;
  border-radius: var(--hs-radius-sm);
  background: var(--hs-brand-soft);
  color: #8a4a15;
  font-size: .85rem;
}

/* ---------- İkincil eylemler ---------- */
.hs-buy-secondary { display: flex; flex-wrap: wrap; gap: 1.35rem; margin-top: 1rem; }
.hs-link-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem 0;
  border: 0;
  background: none;
  color: var(--hs-muted);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s ease;
}
.hs-link-btn:hover { color: var(--hs-brand-hover); }
.hs-link-btn:focus-visible { outline: 2px solid var(--hs-brand-ring); outline-offset: 3px; border-radius: 4px; }

/* ---------- Güven şeridi ---------- */
.hs-usp {
  list-style: none;
  display: grid;
  gap: .7rem;
  margin: 1.35rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  background: #fbfcfd;
}
.hs-usp li { display: flex; align-items: center; gap: .65rem; font-size: .86rem; color: var(--hs-text); }
.hs-usp svg { flex: 0 0 auto; width: 19px; height: 19px; color: var(--hs-brand); }

/* ---------- Sekmeler / açıklama ---------- */
.hs-tabs { margin-bottom: 2.5rem; }
.hs-tabs .nav-tabs { gap: .2rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--hs-border); }
.hs-tabs .nav-tabs .nav-link {
  margin-bottom: -2px;
  padding: .7rem 1.05rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--hs-muted);
  font-weight: 600;
}
.hs-tabs .nav-tabs .nav-link:hover { color: var(--hs-brand-hover); border-bottom-color: var(--hs-border-str); }
.hs-tabs .nav-tabs .nav-link.active { color: var(--hs-brand-hover); background: transparent; border-bottom-color: var(--hs-brand); }

.hs-prose { max-width: 78ch; color: var(--hs-text); font-size: .975rem; line-height: 1.75; }
.hs-prose > :first-child { margin-top: 0; }
.hs-prose h2, .hs-prose h3, .hs-prose h4 { margin: 1.8rem 0 .7rem; font-weight: 700; letter-spacing: -.01em; color: var(--hs-text); }
.hs-prose h2 { font-size: 1.25rem; }
.hs-prose h3 { font-size: 1.1rem; }
.hs-prose h4 { font-size: 1rem; }
.hs-prose p { margin: 0 0 1rem; }
.hs-prose ul { list-style: none; margin: 0 0 1.15rem; padding-left: 0; }
.hs-prose ul > li { position: relative; margin-bottom: .45rem; padding-left: 1.45rem; }
.hs-prose ul > li::before {
  content: "";
  position: absolute;
  left: .3rem;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hs-brand);
}
.hs-prose ol { margin: 0 0 1.15rem; padding-left: 1.25rem; }
.hs-prose ol > li { margin-bottom: .45rem; }
.hs-prose table { width: 100%; margin: 0 0 1.25rem; border-collapse: collapse; font-size: .92rem; }
.hs-prose th, .hs-prose td { padding: .6rem .75rem; border: 1px solid var(--hs-border); text-align: left; vertical-align: top; }
.hs-prose th { width: 38%; background: #fbfcfd; font-weight: 600; }
.hs-prose img { max-width: 100%; height: auto; border-radius: var(--hs-radius-sm); }
.hs-prose a { text-decoration: underline; }

.hs-spec { margin: 0; font-size: .92rem; }
.hs-spec thead td { background: var(--hs-brand-soft); font-weight: 700; color: var(--hs-text); }
.hs-spec td { padding: .6rem .8rem; border: 1px solid var(--hs-border); }

.hs-tags { margin-top: 1.6rem; font-size: .85rem; color: var(--hs-muted); }
.hs-tags a {
  display: inline-block;
  margin: .2rem .25rem;
  padding: .22rem .65rem;
  border: 1px solid var(--hs-border);
  border-radius: 999px;
  font-size: .8rem;
  text-decoration: none;
}
.hs-tags a:hover { border-color: var(--hs-brand); background: var(--hs-brand-soft); }

/* ---------- İlgili ürünler ---------- */
.hs-related { margin-bottom: 2.25rem; }

/* ---------- Mobil yapışkan satın alma çubuğu ---------- */
.hs-sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: none;
  align-items: center;
  gap: .75rem;
  padding: .6rem .9rem;
  padding-bottom: calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--hs-border);
  box-shadow: 0 -4px 16px rgba(16,24,40,.10);
  transform: translateY(110%);
  transition: transform .22s ease;
}
.hs-sticky-buy.is-on { transform: none; }
.hs-sticky-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.hs-sticky-name { font-size: .76rem; color: var(--hs-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-sticky-price { font-size: 1.05rem; font-weight: 800; color: var(--hs-text); }
.hs-sticky-cta { flex: 0 0 auto; width: auto; min-height: 46px; padding: .6rem 1.15rem; font-size: .92rem; }

@media (max-width: 991.98px) {
  .hs-sticky-buy { display: flex; }
  /* Çubuk en altta footer'ın son satırını kapatmasın */
  body:has(.hs-sticky-buy) .hs-footer { padding-bottom: 4.5rem; }
}

/* ---------- PDP mobil ---------- */
@media (max-width: 575.98px) {
  .hs-pdp { --bs-gutter-y: 1.25rem; }
  /* Mobilde kare görsel fiyatı ve CTA'yı kıvrımın çok altına itiyordu;
     ürün fotoğrafları zaten beyaz zeminli, 4/3 kırpma yapmadan ~90px kazandırıyor. */
  .hs-gallery-main > a { aspect-ratio: 4 / 3; padding: .75rem; }
  /* Miktar ve "Sepete Ekle" tek satırda kalıyor — CTA kıvrımın üstünde duruyor. */
  .hs-buy-actions { gap: .5rem; }
  .hs-stepper { height: 52px; }
  .hs-stepper-btn { width: 40px; }
  .hs-stepper-input { width: 44px; font-size: .95rem; }
  .hs-cta { min-height: 52px; padding: .7rem .75rem; font-size: .95rem; }
  .hs-cta span { white-space: nowrap; }
  .hs-gallery-thumb { width: 60px; height: 60px; }
  .hs-usp { padding: .85rem .9rem; }
  .hs-tabs .nav-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hs-tabs .nav-tabs .nav-link { white-space: nowrap; padding: .65rem .8rem; font-size: .9rem; }
  .hs-prose { font-size: .94rem; }
  .hs-prose th { width: 42%; }
}

@media (max-width: 359.98px) {
  .hs-cta i { display: none; }
  .hs-cta { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-gallery-main img, .hs-cta, .hs-sticky-buy, .hs-stepper-btn, .hs-gallery-thumb {
    transition-duration: .01ms !important;
  }
  .hs-gallery-main > a:hover img { transform: none; }
}

/* ==========================================================================
   Dar ekranda yatay taşma — PDP'de ortaya çıktı, ikisi de site geneli
   ========================================================================== */

/* 1. Uyarı kutusu sabit 400px'ti (#alert { width:400px; margin-left:-200px }).
   320px'te sayfanın 40px dışına taşıyordu. */
#alert {
  width: min(400px, calc(100vw - 24px));
  margin-left: 0;
  transform: translateX(-50%);
}

/* 2. Breadcrumb'ta tema .breadcrumb-item'a white-space:nowrap veriyor; uzun
   ürün adı 320px'te 70px taşırıyordu. Mobilde satır kırmak yerine kısaltmak
   daha doğru — aradaki eğik ayraçlar (li:after) bozulmuyor. */
@media (max-width: 767.98px) {
  .breadcrumb { flex-wrap: nowrap; }
  .breadcrumb > li.breadcrumb-item { min-width: 0; }
  .breadcrumb > li.breadcrumb-item > a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
