/* Bybaki Kuruyemiş - Minimal Premium UI */
:root{
  --bg:#07180a;
  --card:#0d2512;
  --muted:#cbb88a;
  --text:#f7f1de;
  --accent:#d4a44f;
  --accent2:#f6e5ab;
  --border:rgba(246,229,171,.14);
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:radial-gradient(1100px 650px at 12% 0%, rgba(212,164,79,.18), transparent 60%),radial-gradient(1100px 650px at 85% 18%, rgba(246,229,171,.10), transparent 55%),radial-gradient(1200px 800px at 50% 120%, rgba(19,47,27,.55), transparent 60%),var(--bg); color:var(--text);}
a{color:inherit;text-decoration:none}
.container{width:min(1140px, 92vw); margin:0 auto;}
header{position:sticky; top:0; z-index:20; backdrop-filter: blur(12px); background: rgba(11,18,32,.65); border-bottom:1px solid var(--border);}
.nav{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0;}
.brand{display:flex; gap:10px; align-items:center}
.logo{width:40px;height:40px;border-radius:12px;object-fit:cover;border:1px solid var(--border);box-shadow:0 10px 24px rgba(0,0,0,.25);background:rgba(0,0,0,.15)}
.brand h1{font-size:16px; margin:0; letter-spacing:.2px}
.brand small{display:block; color:var(--muted); font-size:12px; margin-top:2px}
.nav-right{display:flex; align-items:center; gap:10px}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--border); background:rgba(255,255,255,.04); color:var(--text); padding:10px 12px; border-radius:14px; cursor:pointer; transition:.15s transform, .15s background;}
.btn:hover{background:rgba(255,255,255,.07); transform: translateY(-1px);}
.btn:disabled{opacity:.55; cursor:not-allowed}
.badge{min-width:22px; height:22px; padding:0 7px; border-radius:999px; background:rgba(76,201,240,.18); border:1px solid rgba(76,201,240,.35); color:var(--text); display:inline-flex; align-items:center; justify-content:center; font-size:12px}
.hero{padding:28px 0 10px}
.hero-grid{display:grid; grid-template-columns: 1.35fr .65fr; gap:14px}
@media (max-width: 860px){ .hero-grid{grid-template-columns:1fr} }
.card{background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow);}
.hero-card{padding:18px;}
.kicker{color:var(--muted); font-size:13px; margin:0 0 8px}
.title{font-size:28px; line-height:1.12; margin:0 0 10px}
.subtitle{color:var(--muted); margin:0 0 14px; font-size:14px; line-height:1.5}
.controls{display:grid; grid-template-columns: 1.25fr .6fr .6fr; gap:10px; margin-top:12px}
@media(max-width:860px){.controls{grid-template-columns:1fr 1fr;}.controls .wide{grid-column:1/-1}}
.input, select{width:100%; padding:12px 12px; border-radius:14px; border:1px solid var(--border); background:rgba(0,0,0,.18); color:var(--text); outline:none}
.input::placeholder{color:rgba(234,240,255,.45)}
.stat-card{padding:16px; display:flex; flex-direction:column; gap:10px}
.stat-row{display:flex; justify-content:space-between; align-items:center; gap:10px}
.stat{font-size:13px; color:var(--muted)}
.stat strong{display:block; color:var(--text); font-size:18px; margin-top:2px}
.grid{display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; padding:16px 0 30px}
@media(max-width:1100px){.grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.grid{grid-template-columns:repeat(2,1fr)}}
.product{overflow:hidden; display:flex; flex-direction:column}
.thumb{aspect-ratio: 1/1; background: rgba(0,0,0,.25); border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:center}
.thumb img{width:100%; height:100%; object-fit:cover; display:block}
.pbody{padding:12px; display:flex; flex-direction:column; gap:8px}
.pname{font-size:14px; margin:0; line-height:1.25}
.pmeta{display:flex; justify-content:space-between; align-items:center; gap:10px}
.pcat{font-size:12px; color:var(--muted)}
.price{font-weight:700}
.pactions{display:flex; gap:8px; margin-top:2px}
.pactions .btn{flex:1; padding:10px}
footer{padding:22px 0 40px; color:var(--muted); font-size:12px; border-top:1px solid var(--border); background:rgba(0,0,0,.12)}
.notice{color:var(--muted); font-size:12px; margin-top:10px}
.toast{position:fixed; right:16px; bottom:16px; background:rgba(15,26,45,.92); border:1px solid var(--border); padding:12px 14px; border-radius:16px; box-shadow:0 18px 60px rgba(0,0,0,.35); opacity:0; transform:translateY(10px); transition:.2s; z-index:50; max-width:min(360px, 92vw)}
.toast.show{opacity:1; transform:translateY(0)}
hr.sep{border:none; border-top:1px solid var(--border); margin:10px 0}
.table{width:100%; border-collapse:collapse}
.table th,.table td{padding:10px 8px; border-bottom:1px solid var(--border); font-size:14px}
.table th{color:var(--muted); font-weight:600; text-align:left}
.cart-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.total-box{padding:14px}
.small{font-size:12px; color:var(--muted)}
code{background:rgba(0,0,0,.18); padding:2px 6px; border-radius:8px; border:1px solid var(--border)}

/* ===== Mobile nav + floating cart fixes ===== */
.desktop-only{display:flex;}
.mobile-only{display:none;}

@media (max-width: 768px){
  .desktop-only{display:none !important;}
  .mobile-only{display:inline-flex !important;}
}

/* Floating cart on mobile (bottom-right) */
.floating-cart{
  display:none;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:700;
}
@media (max-width: 768px){
  .floating-cart{
    display:inline-flex !important;
    position:fixed !important;
    right:16px !important;
    bottom:16px !important;
    top:auto !important;
    left:auto !important;
    z-index:9999 !important;
    padding:12px 14px !important;
    border-radius:999px !important;
    background:#2f5d37 !important;
    color:#fff !important;
    box-shadow:0 10px 30px rgba(0,0,0,.35) !important;
  }
  .floating-cart .badge{background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.25); color:#fff;}
}

/* Prevent horizontal scrolling */
html,body{overflow-x:hidden !important;}

/* Mobile drawer menu */
.menu-overlay{
  display:none;
}
.mobile-drawer{
  position:fixed;
  top:0; right:-320px;
  width:min(320px, 92vw);
  height:100vh;
  background:#173221;
  color:#fff;
  z-index:10000;
  padding:14px;
  transition:right .25s ease;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.mobile-drawer.open{ right:0; }
.menu-overlay.open{
  display:block;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:9999;
}
.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:6px 2px 10px;
  border-bottom:1px solid rgba(255,255,255,.12);
  margin-bottom:6px;
}
.drawer-head strong{font-size:16px;}
.drawer-close{
  border:0;
  background:rgba(255,255,255,.12);
  color:#fff;
  width:38px;
  height:38px;
  border-radius:10px;
  font-size:22px;
  line-height:1;
}
.mobile-drawer a{
  color:#fff !important;
  text-decoration:none;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  padding:12px 14px;
  border-radius:12px;
  font-weight:700;
}
.mobile-drawer a:active{transform:scale(.99);}
.hamburger{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
}

/* Hide debug info blocks (keep in HTML but not visible) */
.debug-info{display:none !important;}


/* --- Desktop top menu pills --- */
.topnav{display:flex; gap:10px; align-items:center; flex-wrap:wrap;}
.nav-pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px; border-radius:14px;
  background: rgba(47,93,55,0.92);
  color:#fff; text-decoration:none; font-weight:650;
  border: 1px solid rgba(0,0,0,0.10);
}
.nav-pill:hover{filter:brightness(1.05);}
.contact-pill{background: rgba(109,76,45,0.92);}
.cart-link{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:14px;
  background: rgba(0,0,0,0.25);
  color:#fff; text-decoration:none; font-weight:650;
  border: 1px solid rgba(255,255,255,0.10);
}
.badge{min-width:22px; height:22px; padding:0 6px; display:inline-flex; align-items:center; justify-content:center;}
.badge.is-zero{opacity:.75;}

/* --- Product card actions (qty + add) --- */
.product-card{
  display:flex;
  flex-direction:column;
  border-radius:20px;
  overflow:hidden;
  border:1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}
.product-link{color:inherit; text-decoration:none; display:block;}
.p-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  padding:12px;
  border-top:1px solid var(--border);
}
.qty{
  display:flex;
  align-items:center;
  gap:6px;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:14px;
  padding:6px;
}
.qty-btn{
  width:32px; height:32px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.15);
  color: #fff;
  font-size:18px;
  line-height:1;
}
.qty-input{
  width:42px;
  text-align:center;
  border:none;
  background: transparent;
  color:#fff;
  font-weight:700;
  outline:none;
}
.add-btn{
  flex:1;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(47,93,55,0.92);
  color:#fff;
  font-weight:750;
}
.add-btn:hover{filter:brightness(1.05);}

/* --- Contact section --- */
.contact-card h2{margin:0 0 10px 0;}
.contact-row{display:flex; gap:16px; justify-content:space-between; flex-wrap:wrap;}
.contact-text{font-weight:600;}
.contact-phone{display:inline-block; margin-top:6px; font-weight:800; color:#fff; text-decoration:none;}
.drawer-contact{margin-top:10px; padding-top:10px; border-top:1px solid rgba(255,255,255,0.12);}
.dc-title{font-weight:800; margin-bottom:6px;}
.dc-text{font-size:13px; opacity:.95; line-height:1.35;}
.dc-phone{display:inline-block; margin-top:8px; font-weight:850; color:#fff; text-decoration:none;}

/* Ensure desktop keeps top menu; hamburger only mobile */
@media (min-width: 769px){
  .hamburger{display:none !important;}
  .desktop-only{display:flex !important;}
}


/* ===== Product card (p-*) fixes: keep e-commerce grid sizes ===== */
.p-card{
  border:1px solid var(--border);
  background: rgba(0,0,0,.14);
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-width:0;
}
.p-link{color:inherit; text-decoration:none; display:block}
.p-media{
  aspect-ratio: 1 / 1;
  background: rgba(0,0,0,.20);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.p-media img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block;
}
.p-body{padding:12px; display:flex; flex-direction:column; gap:8px}
.p-name{font-size:14px; line-height:1.25; margin:0}
.p-price{font-size:14px; font-weight:700}
.p-actions{padding:0 12px 12px; display:flex; gap:10px; align-items:center}
.p-actions .qty{display:flex; align-items:center; gap:8px; border:1px solid var(--border); border-radius:12px; padding:6px 8px; background:rgba(0,0,0,.18)}
.p-actions .qty-btn{width:34px; height:34px; border-radius:10px; border:1px solid var(--border); background:rgba(0,0,0,.20); color:var(--text); cursor:pointer}
.p-actions .qty-input{width:52px; text-align:center; border:none; outline:none; background:transparent; color:var(--text); font-weight:700}
.p-actions .add-btn{flex:1; height:36px; border-radius:12px; border:1px solid var(--border); background:rgba(47,93,55,.9); color:#fff; font-weight:700; cursor:pointer}
.p-actions .add-btn:hover{filter:brightness(1.05)}




/* --- Mobile: ensure 'Sepete Ekle' button is visible under qty --- */
@media (max-width: 768px){
  .p-actions{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
  }
  .p-actions .qty{
    width:100% !important;
    justify-content:center !important;
  }
  .p-actions .add-btn{
    display:block !important;
    width:100% !important;
    height:44px !important;
    border-radius:14px !important;
    background: rgba(47,93,55,0.95) !important;
    color:#fff !important;
    font-weight:800 !important;
    opacity:1 !important;
    visibility:visible !important;
  }
}


/* Hero banner */
.hero-banner{padding:0; overflow:hidden}
.hero-banner img{display:block; width:100%; height:100%; object-fit:cover; border-radius:var(--radius)}


/* ===== Desktop layout fixes (requested) ===== */
@media (min-width: 769px){
  /* Remove search/filter hero card on desktop; keep banner */
  .hero-card{display:none !important;}
  .hero-banner{margin-top:0;}
  .hero-banner img{
    width:100%;
    height:auto;
    display:block;
    border-radius:18px;
  }

  /* Keep top menu in a single row */
  .nav{flex-wrap:nowrap !important;}
  .nav-right{display:flex; align-items:center; gap:12px; margin-left:auto;}
  .topnav{display:flex; align-items:center; flex-wrap:nowrap !important; white-space:nowrap; gap:10px;}
  .nav-pill{padding:10px 12px; font-size:14px;}

  /* Cart to the far right as icon */
  .cart-link{
    margin-left:12px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-weight:800;
    padding:10px 12px;
  }
}

@media (min-width: 769px){ .container{ width:min(1140px, 96vw); } }


/* === DESKTOP: HERO ALANI TAMAMEN BANNER (BOSLUK KALMAZ) === */
@media (min-width: 992px){
  .hero-grid{grid-template-columns:1fr !important; gap:0 !important;}
  .hero-card{display:none !important;}
  .debug-info{display:none !important;}
  .hero-banner{margin:0 !important;}
  .hero-banner img{display:block !important; width:100% !important; height:auto !important;}
}



/* HEADER KOYU ARKA PLAN – MOBIL + MASAUSTU */
header {
  background: #1f3d27;
}
header .brand h1,
header .brand small {
  color: #ffffff;
}
header .topnav .nav-pill {
  color: #ffffff !important;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
}
header .topnav .nav-pill:hover {
  background: rgba(255,255,255,0.18);
}
header .topnav .contact-pill {
  background: #2f5d37;
  color: #ffffff !important;
}
header .cart-link {
  color: #ffffff !important;
}
header .hamburger {
  color: #ffffff;
}

/* === KOYU YESIL HEADER (MOBIL + MASAUSTU) === */
header {
  background-color: #0f2f24;
  color: #ffffff;
}

header .nav {
  background-color: #0f2f24;
}

header .brand h1,
header .brand small {
  color: #ffffff;
}

header .topnav .nav-pill {
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
}

header .topnav .nav-pill:hover {
  background-color: #174437;
  color: #ffffff;
}

header .contact-pill {
  background-color: #1d5a46;
  color: #ffffff;
}

header .cart-link {
  color: #ffffff;
}

header .hamburger {
  color: #ffffff;
  background: none;
  border: none;
  font-size: 26px;
}


/* === HEADER FULL-WIDTH KOYU YESIL (KESIK SORUNU FIX) === */
header{
  background-color:#0f2f24 !important;
  width:100%;
  margin:0;
}
header .container{
  background:transparent !important;
}
header .nav{
  width:100%;
  background:transparent !important;
}


/* === Banner Slider görünmüyor fix (yükseklik) === */
.hero-banner{ overflow:hidden; }
.hero-banner .banner-slider{
  position: relative;
  width: 100%;
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
}
@media (min-width: 900px){
  .hero-banner .banner-slider{ min-height: 320px; }
}
.banner-slider .banner-slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 450ms ease;
  pointer-events: none;
}
.banner-slider .banner-slide.is-active{
  opacity: 1;
  pointer-events: auto;
}
.banner-slider::after{
  content: "Tıkla / Kaydır";
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  backdrop-filter: blur(4px);
}

/* === Ürün sayfası görseli kocaman olmasın === */
#pwrap .thumb{ max-width: 420px; margin: 0 auto; }
#pwrap .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
@media (min-width: 900px){
  #pwrap .card[style*="overflow:hidden"]{ max-width: 460px; justify-self:end; }
}


/* === Masaüstü sepet/link tıklanmıyor fix (header üstte kalsın) === */
header{
  position: sticky;
  top: 0;
  z-index: 9999;
}
header .nav-right,
header .topnav,
header .cart-link{
  pointer-events: auto;
}
main, .hero, .hero-grid{
  position: relative;
  z-index: 1;
}
