:root{
  --bg:#f6f3ee;
  --surface:#ffffff;
  --text:#1f1a17;
  --muted:rgba(31,26,23,.66);
  --line:rgba(31,26,23,.12);
  --copper:#b87333;
  --radius:18px;
  --shadow: 0 14px 40px rgba(0,0,0,.10);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans";
  background: linear-gradient(180deg, #fbf9f6, var(--bg));
  color:var(--text);
}
a{ color:inherit; text-decoration:none; }
a:hover{ color:var(--copper); }

.wrap{ width:min(1180px, 92vw); margin:0 auto; }
.muted{ color:var(--muted); }
.noScroll{ overflow:hidden; }

/* Overlay */
.overlay{
  position:fixed; inset:0;
  background: rgba(0,0,0,.35);
  z-index:40;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:42px; padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(184,115,51,.35);
  background: rgba(184,115,51,.12);
  color:var(--text);
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(184,115,51,.18);
  border-color: rgba(184,115,51,.55);
}
.btn--soft{
  border-color: var(--line);
  background: rgba(31,26,23,.04);
}

.iconBtn{
  height:40px; width:40px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.75);
  display:grid; place-items:center;
  cursor:pointer;
}
.iconBtn:hover{ background: rgba(255,255,255,.92); }

/* TOPBAR */
.topbar{
  position:sticky; top:0; z-index:30;
  backdrop-filter: blur(10px);
  background: rgba(246,243,238,.72);
  border-bottom:1px solid var(--line);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:14px 0;
}
.left{ display:flex; align-items:center; gap:10px; }
.right{ display:flex; align-items:center; gap:10px; }

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.logo{
  width:56px; height:56px;
  border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(184,115,51,.35);
  background: rgba(184,115,51,.12);
  font-weight:900;
  letter-spacing:.08em;
  font-size:14px;
}
.brandText{ display:flex; flex-direction:column; min-width:0; }
.brandName{
  font-weight:900;
  font-size:18px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brandTag{
  color:var(--muted);
  font-size:12px;
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Search */
.search input{
  width:min(420px, 46vw);
  height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.82);
  outline:none;
  padding:0 12px;
}
.search input:focus{ border-color: rgba(184,115,51,.55); }

/* Cart button */
.cartBtn{
  height:42px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.82);
  padding:0 12px;
  display:flex; align-items:center; gap:8px;
  cursor:pointer;
  font-weight:900;
}
.cartBtn:hover{ border-color: rgba(184,115,51,.35); }

.badge{
  min-width:22px; height:22px;
  border-radius:999px;
  display:grid; place-items:center;
  background: rgba(184,115,51,.18);
  border:1px solid rgba(184,115,51,.30);
  font-size:12px;
}

/* mobile */
@media (max-width:520px){
  .logo{ width:52px; height:52px; font-size:13px; }
  .brandName{ font-size:16px; }
  .brandTag{ font-size:11px; }
  .search input{ width: min(260px, 44vw); }
}

/* DRAWER */
.drawer{
  position:fixed; left:0; top:0; bottom:0;
  width:min(360px, 88vw);
  background: var(--surface);
  border-right:1px solid var(--line);
  z-index:50;
  transform: translateX(-105%);
  transition: transform .18s ease;
  display:flex; flex-direction:column;
}
.drawer.isOpen{ transform: translateX(0); }

.drawer__head{
  padding:14px 14px 10px;
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
  border-bottom:1px solid var(--line);
}
.drawer__brand{ display:flex; gap:10px; }

.drawer__nav{
  padding:10px 10px;
  display:flex; flex-direction:column; gap:4px;
}
.drawer__nav a{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
}
.drawer__nav a:hover{
  border-color: var(--line);
  background: rgba(31,26,23,.04);
}
.drawer__line{ height:1px; background: var(--line); margin:10px 6px; }
.drawer__foot{ margin-top:auto; padding:12px; }

/* HERO */
.hero{
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(184,115,51,.10), transparent 60%),
    radial-gradient(800px 420px at 80% 10%, rgba(202,160,109,.12), transparent 60%),
    linear-gradient(180deg, #ffffff, #fbf7f1);
}
.hero__inner{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:16px;
  padding:22px 0 18px;
}
@media (max-width:920px){
  .hero__inner{ grid-template-columns:1fr; }
}

.hero__copy{
  border:1px solid var(--line);
  border-radius:24px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  padding:18px;
}
.kicker{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(184,115,51,.25);
  background: rgba(184,115,51,.08);
  font-weight:900;
  letter-spacing:.08em;
  font-size:12px;
}
.hero h1{ margin:10px 0 8px; font-size: clamp(28px, 3.2vw, 44px); }
.hero p{ margin:0; color:var(--muted); line-height:1.6; }
.hero__cta{ margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; }
.hero__chips{ margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; }

.chip{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(31,26,23,.03);
  font-size:13px;
}

/* Banner */
.hero__banner{
  min-height:240px;
  border-radius:24px;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.10)),
    url("images/banner.jpg.jpeg");
  background-size: cover;
  background-position: center;
  display:flex;
}
.bannerCard{
  margin:auto;
  width: calc(100% - 28px);
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.78);
  border-radius:20px;
  padding:14px;
}
.bannerTitle{ font-weight:1000; }
.bannerText{ color: var(--muted); margin-top:4px; }
.bannerNote{ margin-top:10px; font-size:12px; color: rgba(31,26,23,.60); }

/* MAIN */
.main{ padding:18px 0 48px; }
.section{ margin-top:18px; }
.sectionHead{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
}
.sectionHead h2{ margin:0; }
.sectionHead p{ margin:6px 0 0; }

/* Category pills */
.cats{
  display:flex; gap:10px; flex-wrap:wrap;
  padding:12px;
  border:1px solid var(--line);
  border-radius:20px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.catPill{
  height:38px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(31,26,23,.03);
  font-weight:900;
  cursor:pointer;
}
.catPill.isActive{
  border-color: rgba(184,115,51,.45);
  background: rgba(184,115,51,.10);
}

/* PRODUCT GRID */
.grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:14px;
}
@media (max-width:1020px){ .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width:560px){ .grid{ grid-template-columns: 1fr; } }

.pCard{
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0,0,0,.07);
}
.pImg{
  position:relative;
  height:190px;
  background: linear-gradient(180deg, rgba(184,115,51,.10), rgba(31,26,23,.03));
  overflow:hidden;
}

/* Gallery */
.galeri{
  position:absolute;
  inset:0;
  display:flex;
  gap:10px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling: touch;
  padding:10px;
}
.galeri img{
  flex:0 0 100%;
  height:100%;
  object-fit:cover;
  border-radius:14px;
  scroll-snap-align:start;
  cursor: zoom-in;
}
.galeri::-webkit-scrollbar{ height:8px; }
.galeri::-webkit-scrollbar-thumb{
  background: rgba(31,26,23,.18);
  border-radius:999px;
}

.pTag{
  position:absolute; left:10px; top:10px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.78);
  font-weight:1000;
  font-size:12px;
  z-index:6;
}

.pBody{ padding:12px; }
.pBody h3{ margin:0 0 6px; font-size:16px; }

.pMeta{
  margin-top:10px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.meta{ color: rgba(31,26,23,.62); font-size:12px; }
.price{ font-weight:1000; }

.pActions{
  margin-top:12px;
  display:flex; gap:10px;
}
.pActions .btn{ flex:1; }

/* PROMO */
.promo .promo__inner{
  border:1px solid rgba(184,115,51,.25);
  background: rgba(184,115,51,.08);
  border-radius:24px;
  padding:16px;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
}

/* CARD (membership) */
.card{
  border:1px solid var(--line);
  border-radius:24px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  padding:16px;
}
.formRow{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr 1fr auto;
  gap:10px;
}
@media (max-width:860px){ .formRow{ grid-template-columns: 1fr; } }

.field{ display:flex; flex-direction:column; gap:6px; }
label{ font-size:12px; font-weight:900; color: rgba(31,26,23,.68); }
input{
  height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.88);
  padding:0 12px;
  outline:none;
}
input:focus{ border-color: rgba(184,115,51,.55); }

.note{ margin-top:12px; font-size:13px; color: rgba(31,26,23,.72); }
.note.ok{
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(184,115,51,.25);
  background: rgba(184,115,51,.08);
}

/* CONTACT */
.contactGrid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
@media (max-width:820px){ .contactGrid{ grid-template-columns:1fr; } }

.miniCard{
  border:1px solid var(--line);
  border-radius:20px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  padding:14px;
}
.miniTitle{ font-weight:1000; }
.miniText{ color:var(--muted); margin:6px 0 12px; line-height:1.5; }

/* FOOTER */
.footer{
  margin-top:18px;
  padding:14px 0 26px;
  border-top:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; flex-wrap:wrap;
}
.footerLinks{
  display:flex;
  gap:8px;
  align-items:center;
  color: rgba(31,26,23,.70);
}
.footerLinks a:hover{ text-decoration:underline; }

/* CART PANEL */
.cart{
  position:fixed;
  right:0; top:0; bottom:0;
  width:min(420px, 92vw);
  background: var(--surface);
  border-left:1px solid var(--line);
  z-index:55;
  transform: translateX(105%);
  transition: transform .18s ease;
  display:flex; flex-direction:column;
}
.cart.isOpen{ transform: translateX(0); }

.cart__head{
  padding:14px;
  display:flex; justify-content:space-between; gap:10px;
  border-bottom:1px solid var(--line);
}
.cart__title{ font-weight:1000; font-size:16px; }
.cart__sub{ color:var(--muted); font-size:12px; margin-top:3px; }
.cart__items{ padding:12px; overflow:auto; flex:1; }
.empty{ color:var(--muted); padding:10px; }

.cartRow{
  display:grid;
  grid-template-columns: 68px 1fr auto;
  gap:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:18px;
  background: rgba(31,26,23,.02);
  margin-bottom:10px;
}
.cartRow__img{
  width:68px; height:68px;
  border-radius:16px;
  overflow:hidden;
  background: rgba(184,115,51,.10);
  border:1px solid var(--line);
}
.cartRow__img img{ width:100%; height:100%; object-fit:cover; display:block; }
.cartRow__name{ font-weight:1000; font-size:13px; }
.cartRow__muted{ color:var(--muted); font-size:12px; margin-top:4px; }
.cartRow__sum{ font-weight:1000; align-self:start; }

.qty{
  margin-top:10px;
  display:flex; align-items:center; gap:8px;
}
.qtyBtn{
  width:34px; height:34px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.9);
  cursor:pointer;
}
.qtyBtn:hover{ border-color: rgba(184,115,51,.35); }
.qtyNum{ min-width:22px; text-align:center; font-weight:1000; }

.cart__foot{
  padding:12px;
  border-top:1px solid var(--line);
  background: rgba(255,255,255,.86);
}
.totalRow{
  display:flex; align-items:center; justify-content:space-between;
  padding:8px 4px 12px;
}
.cart__actions{
  display:flex; gap:10px;
}
.cart__actions .btn{ flex:1; }

/* LIGHTBOX */
.lightbox{
  position:fixed; inset:0;
  z-index:80;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.70);
  padding:18px;
}
.lightbox.open{ display:flex; }
.lightbox__img{
  width:min(980px, 92vw);
  height:auto;
  max-height: 80vh;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.22);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  object-fit:contain;
  background: rgba(255,255,255,.05);
}
.lightbox__close{
  position:absolute;
  top:18px; right:18px;
  height:44px; width:44px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color:#fff;
  cursor:pointer;
}
.lightbox__nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  height:54px; width:54px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color:#fff;
  font-size:28px;
  cursor:pointer;
}
.lightbox__prev{ left:18px; }
.lightbox__next{ right:18px; }

/* COGO AI */
.cogoAI{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:70;
}
.cogoAI__fab{
  height:54px;
  width:54px;
  border-radius:18px;
  border:1px solid rgba(184,115,51,.35);
  background: rgba(184,115,51,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  cursor:pointer;
  font-size:18px;
}
.cogoAI__fab:hover{
  background: rgba(184,115,51,.18);
  border-color: rgba(184,115,51,.55);
}

.cogoAI__panel{
  position:absolute;
  right:0;
  bottom:68px;
  width:min(380px, 92vw);
  max-height: min(560px, 72vh);
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow: var(--shadow);
  overflow:hidden;
  display:none;
  backdrop-filter: blur(10px);
}
.cogoAI__panel.isOpen{
  display:flex;
  flex-direction:column;
}

.cogoAI__head{
  padding:12px 12px;
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,.92);
}
.cogoAI__title{ font-weight:1000; }
.cogoAI__sub{ color:var(--muted); font-size:12px; margin-top:2px; }

.cogoAI__msgs{
  padding:12px;
  overflow:auto;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* app.js mesaj sınıfları */
.aiMsg{
  max-width: 88%;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(31,26,23,.03);
  color: var(--text);
  line-height:1.45;
  font-size:13px;
}
.aiMsg.me{
  margin-left:auto;
  border-color: rgba(184,115,51,.35);
  background: rgba(184,115,51,.10);
}

.cogoAI__quick{
  padding:10px 12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  background: rgba(255,255,255,.90);
}
.cogoAI__chip{
  height:34px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(31,26,23,.03);
  cursor:pointer;
  font-weight:900;
  font-size:12px;
}
.cogoAI__chip:hover{
  border-color: rgba(184,115,51,.35);
  background: rgba(184,115,51,.08);
}

.cogoAI__form{
  padding:10px 12px 12px;
  display:flex;
  gap:8px;
  border-top:1px solid var(--line);
  background: rgba(255,255,255,.92);
}
.cogoAI__form input{
  flex:1;
  height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  padding:0 12px;
  outline:none;
}
.cogoAI__form input:focus{ border-color: rgba(184,115,51,.55); }

.cogoAI__note{
  padding:10px 12px 12px;
  font-size:12px;
  color: rgba(31,26,23,.70);
  background: rgba(255,255,255,.92);
  border-top:1px solid var(--line);
}

/* CoGo AI butonu taşma fix */
.pActions .btn.ask-cogo{
  flex: 1 1 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pActions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.pActions .btn{
  flex:1 1 calc(33.333% - 6px);
  min-width:100px;
  text-align:center;
  padding:8px 6px;
  font-size:13px;
}

/* --- BUTONLAR: arka planı zorla görünür yap --- */
.btn{
  background: #1f1f1f !important;
  color: #fff !important;
  border: 1px solid rgba(0,0,0,.15) !important;
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.btn--soft{
  background: #e9e7e4 !important;
  color: #111 !important;
  border: 1px solid rgba(0,0,0,.10) !important;
}
.cogoAI__panel{ z-index:9999; }
.cogoAI{ z-index:9999; }
/* CoGo AI – PC tıklama / üstte kalma fix */
.cogoAI { 
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999 !important;
  pointer-events: none; /* container tıklamayı yakalamasın */
}
.cogoAI__fab,
.cogoAI__panel {
  pointer-events: auto; /* buton + panel tıklansın */
}
.cogoAI__fab { position: fixed; right: 18px; bottom: 18px; z-index: 10000 !important; }
.cogoAI__panel { z-index: 10000 !important; }

/* === Ürün görsel düzeltme === */
.pImg {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.pImg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
