:root{
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(17,24,39,.08);
  --shadow: 0 10px 30px rgba(17,24,39,.08);
  --shadow-sm: 0 6px 16px rgba(17,24,39,.08);
  --radius: 16px;
  --accent: #f97316;
  --accent-2: #22c55e;
  --warning-bg: #fff7d6;
  --warning-border: rgba(245, 158, 11, .25);
}
html, body{ height: 100%; }
body{
  font-family: "Inter", "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a{ text-decoration: none; }
.container-narrow{ max-width: 1080px; }
.topbar{
  position: sticky; top: 0; z-index: 1020;
  background: rgba(247,248,250,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand{ font-weight: 800; letter-spacing: -.02em; }
.badge-soft{
  background: rgba(17,24,39,.08); color: #374151;
  border: 1px solid rgba(17,24,39,.12);
  padding: .35rem .6rem; border-radius: 999px;
  font-weight: 700; font-size: .75rem;
}
.featured .badge-soft{
  background: rgba(255,255,255,.16); color: #ffffff;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
}
.badge-soft.orange{ background: rgba(249,115,22,.22); border-color: rgba(249,115,22,.35); }
.badge-soft.green{ background: rgba(34,197,94,.22); border-color: rgba(34,197,94,.35); }
.card-ui{
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-hover{ transition: transform .18s ease, box-shadow .18s ease; }
.card-hover:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.img-cover{
  width: 100%; height: 190px; object-fit: cover;
  border-top-left-radius: var(--radius); border-top-right-radius: var(--radius);
}
.price{ font-weight: 800; letter-spacing: -.02em; }
.muted{ color: var(--muted); }
.chips{ display: flex; flex-wrap: wrap; gap: .5rem; }
.chip{
  border: 1px solid var(--border); background: #fff; color: #111827;
  border-radius: 999px; padding: .45rem .75rem;
  font-weight: 600; font-size: .9rem;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover{ border-color: rgba(249,115,22,.35); }
.chip.active{ background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.35); color: #9a3412; }
.searchbar{
  border: 1px solid var(--border); border-radius: 999px;
  background: #fff; padding: .5rem .75rem;
}
.searchbar .form-control{ border: none; box-shadow: none !important; }

/* Ana sayfa arama kutusu */
.searchbar-main{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(17,24,39,.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.searchbar-main:focus-within{
  border-color: var(--theme-accent, #f97316);
  box-shadow: 0 4px 16px rgba(249,115,22,.12);
}
.searchbar-main i{
  color: var(--muted);
  font-size: 1.1rem;
}
.searchbar-main input{
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
}
.searchbar-main input::placeholder{
  color: var(--muted);
}

.icon-btn{
  width: 46px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: #6f0000; color: #ffffff;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.icon-btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 18px rgba(17,24,39,.08); }
.icon-btn.fav.active{ border-color: rgba(249,115,22,.35); background: rgba(249,115,22,.10); color: #9a3412; }
.featured{
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, rgba(249,115,22,.10), rgba(34,197,94,.08));
  border: 1px solid var(--border);
}
.featured .featured-img{
  width: 100%; height: 260px; object-fit: cover;
  border-radius: calc(var(--radius) + 6px); filter: saturate(1.05);
}
.featured .overlay{
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.20) 55%, rgba(0,0,0,.05) 100%),
              linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%);
}
.featured .content{
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  color: #fff; text-shadow: 0 10px 22px rgba(0,0,0,.45);
}
.featured .content .scrim{
  display: inline-block; padding: 12px 12px; border-radius: 16px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}
.featured .title{ font-weight: 900; letter-spacing: -.03em; margin-bottom: .25rem; }
.featured .desc{ color: rgba(255,255,255,.86); margin-bottom: .6rem; }
.featured .price{
  display: inline-block;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--theme-featured-price-bg, rgba(0,0,0,0.55));
  color: #fff !important;
  font-weight: 800;
  font-size: 1.1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
}
.featured .price.light-bg {
  color: #111 !important;
  text-shadow: none;
  border-color: rgba(0,0,0,.1);
}
.footer-note{ color: var(--muted); font-size: .9rem; }
hr.soft{ border-top: 1px solid var(--border); opacity: 1; }
.product-hero{
  position: relative; overflow: hidden; height: 340px;
  border-bottom-left-radius: 22px; border-bottom-right-radius: 22px;
}
.product-hero img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.product-hero .fade{
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(180deg, rgba(247,248,250,0) 0%, rgba(247,248,250,.70) 40%, rgba(247,248,250,1) 85%);
}
.product-hero .top-actions{
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; align-items: center; justify-content: space-between; z-index: 2;
}
.close-btn{
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.40);
  background: rgba(255,255,255,.75); backdrop-filter: blur(10px);
  display: inline-flex; align-items: center; justify-content: center; color: #111827;
}
.close-btn:hover{ background: rgba(255,255,255,.88); }
.detail-shell{ margin-top: -74px; position: relative; z-index: 3; }
.detail-sheet{
  background: var(--card); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow); padding: 18px 18px 24px;
}
.tag-chip{
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .75rem; border-radius: 999px;
  font-weight: 800; font-size: .78rem;
  border: 1px solid rgba(249,115,22,.28);
  background: rgba(249,115,22,.12); color: #9a3412;
}
.info-badges{ display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; }
.info-badge{
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .7rem; border-radius: 12px;
  font-weight: 700; font-size: .86rem;
  border: 1px solid var(--border); background: #fff;
}
.info-badge.accent{ border-color: rgba(249,115,22,.22); background: rgba(249,115,22,.10); color: #9a3412; }
.info-badge.accent i{ color: var(--theme-accent, #f97316) !important; }
.info-badge.green{ border-color: rgba(34,197,94,.22); background: rgba(34,197,94,.10); color: #14532d; }
.allergen-panel{
  background: rgba(245, 158, 11, .16);
  border: 1px solid rgba(245, 158, 11, .22);
  border-radius: 16px; padding: 14px 14px;
}
.allergen-panel .title{ display: flex; align-items: center; gap: .5rem; font-weight: 900; }
.allergen-items{ display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.allergen-pill{
  display: inline-flex; align-items: center;
  padding: .35rem .6rem; border-radius: 999px;
  font-weight: 700; font-size: .82rem;
  background: #fff; border: 1px solid rgba(245, 158, 11, .22); color: #7c2d12;
}

.bottom-bar{
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: #fff; 
  border: 1px solid var(--border);
  border-radius: 18px 18px 0 0; 
  box-shadow: 0 -4px 20px rgba(17,24,39,.08);
  padding: 12px 16px; 
  z-index: 1040;
}
.bottom-bar .label{
  font-size: .74rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); font-weight: 800;
}
.bottom-bar .amount{
  font-weight: 900; font-size: 1.75rem;
  letter-spacing: -.02em; color: var(--accent); line-height: 1.05;
}
.action-btn{
  width: 52px; height: 52px; border-radius: 16px;
  border: 1px solid var(--border); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(17,24,39,.07); color: #111827;
}
.action-btn:hover{ transform: translateY(-1px); }
.action-btn.wa{ border-color: rgba(34,197,94,.30); background: rgba(34,197,94,.12); color: #14532d; }
.action-btn.call{ border-color: rgba(59,130,246,.28); background: rgba(59,130,246,.10); color: #1e3a8a; }
.action-btn.fav.active{ border-color: rgba(249,115,22,.30); background: rgba(249,115,22,.12); color: #9a3412; }
.topbar .icon-btn{
  width: 46px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: #6f0000; color: #ffffff;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.topbar .icon-btn:hover{ background: #7a0000; box-shadow: 0 10px 18px rgba(17,24,39,.10); }
.drawer-menu{ display: grid; gap: 14px; padding-bottom: 8px; }
.drawer-item{
  width: 100%; display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center; gap: 12px;
  padding: 14px 14px; border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 22px rgba(17,24,39,.06);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: left;
}
.drawer-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(17,24,39,.08);
  background: #fff;
}
.drawer-ic{
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #6f0000, #a01111);
  box-shadow: 0 14px 22px rgba(111,0,0,.18);
  font-size: 1.35rem;
}
.drawer-title{ font-weight: 900; font-size: 1.05rem; letter-spacing: -.01em; color: #111827; }
.drawer-sub{ display: block; margin-top: 2px; }
.drawer-arrow{
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: #fff; color: #111827;
}
.drawer-panel{
  margin-top: 10px; padding: 14px 14px; border-radius: 18px;
  border: 1px solid var(--border); background: #fff;
  box-shadow: 0 10px 22px rgba(17,24,39,.05);
}
.icon-btn i{ font-size: 1.35rem; line-height: 1; }


/* Favori butonu - kart içi (masaüstü ve mobil aynı) */
.fav-btn{
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: all .2s ease;
  color: #d1d5db !important;
  font-size: 1.25rem !important;
  box-shadow: none !important;
}
.fav-btn:hover{ 
  color: #f87171 !important;
  transform: scale(1.1);
}
.fav-btn.active{ 
  color: #ef4444 !important; 
}
.fav-btn.active i{ color: #ef4444 !important; }


/* Favori listesi item hover */
.fav-item:hover{ background: #f8f9fa !important; }


/* Ürün detay fiyat barı - şık tasarım */
.price-bar{
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 20px;
  margin-top: 12px;
  box-shadow: 0 10px 40px rgba(26, 26, 46, 0.3);
}
.price-bar .price-label{
  font-size: .72rem; 
  letter-spacing: .08em;
  text-transform: uppercase; 
  color: rgba(255,255,255,0.6); 
  font-weight: 700;
  margin-bottom: 2px;
}
.price-bar .price-amount{
  font-weight: 900; 
  font-size: 2rem;
  letter-spacing: -.02em; 
  color: #fff; 
  line-height: 1.1;
}
.price-bar .action-btn{
  width: 52px; 
  height: 52px; 
  border-radius: 14px;
  border: none;
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1.25rem;
}
.price-bar .action-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.price-bar .action-btn.fav{
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
}
.price-bar .action-btn.fav:hover,
.price-bar .action-btn.fav.active{
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
  border-color: transparent;
}
.price-bar .action-btn.wa{
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
}
.price-bar .action-btn.call{
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}


/* Mobil Optimizasyonlar */
@media (max-width: 768px) {
  .container-narrow { padding-left: 12px; padding-right: 12px; }
  
  /* Ürün kartları mobil */
  .card-ui .p-3 { padding: 12px !important; }
  .card-ui .fs-5 { font-size: 1rem !important; }
  .img-cover { height: 160px; }
  
  /* Featured mobil */
  .featured .featured-img { height: 220px; }
  .featured .content .scrim { padding: 10px; }
  .featured .title { font-size: 1.25rem !important; }
  .featured .desc { font-size: 0.85rem; }
  
  /* Product hero mobil */
  .product-hero { height: 280px; }
  .detail-sheet { padding: 14px 14px 20px; }
}

/* Fiyat barı içi küçük butonlar */
.fav-btn-sm,
.icon-btn-sm {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  flex-shrink: 0 !important;
  border-radius: 10px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.8rem !important;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}
.fav-btn-sm { color: #94a3b8 !important; }
.fav-btn-sm:hover { color: #f87171 !important; transform: scale(1.08); }
.fav-btn-sm.active { color: #ef4444 !important; }
.fav-btn-sm.active i { color: #ef4444 !important; }
.icon-btn-sm.wa { color: #25D366 !important; }
.icon-btn-sm.wa:hover { transform: scale(1.08); }
.icon-btn-sm.call { color: #3b82f6 !important; }
.icon-btn-sm.call:hover { transform: scale(1.08); }

/* Kart içi düzen - başlık uzasa da buton sabit */
.card-ui .d-flex.align-items-start {
  align-items: flex-start !important;
}
.card-ui .d-flex.align-items-start .flex-grow-1 {
  min-width: 0;
  overflow: hidden;
}
.card-ui .d-flex.align-items-start .fw-bold {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-ui .d-flex.align-items-start .muted.small {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


/* Dil Seçimi Listesi */
.lang-list { padding: 0 !important; }
.lang-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: #f8f9fa;
  text-decoration: none;
  color: #374151;
  transition: all 0.2s ease;
}
.lang-row:last-child { margin-bottom: 0; }
.lang-row:hover { background: #f0f4f8; }
.lang-row.active {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0369a1;
}
.lang-row .lang-code {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  min-width: 28px;
  color: #6b7280;
}
.lang-row.active .lang-code {
  color: #0369a1;
}
.lang-row .lang-name {
  font-weight: 500;
  font-size: 1.05rem;
}


/* Hamburger Menü Header İkonu */
.menu-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--theme-accent, #f97316), color-mix(in srgb, var(--theme-accent, #f97316) 80%, #000));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-accent, #f97316) 35%, transparent);
}

/* Drawer Menü İkonları - Tema Rengine Göre */
.drawer-ic {
  background: linear-gradient(135deg, var(--theme-accent, #f97316), color-mix(in srgb, var(--theme-accent, #f97316) 75%, #000)) !important;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--theme-accent, #f97316) 30%, transparent) !important;
}


/* Ürün Kartı Badge'leri */
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.product-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--theme-accent, #f97316) 12%, transparent);
  color: var(--theme-accent, #f97316);
  border: 1px solid color-mix(in srgb, var(--theme-accent, #f97316) 25%, transparent);
}
.product-tag-badge i {
  color: var(--theme-accent, #f97316) !important;
}
.product-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.product-time-badge i {
  font-size: 0.7rem;
}


/* Fiyat Satırı - Etiketler Karşısında */
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
