/* assets/css/style.css */
:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:#666666;
  --border:#eaeaea;
  --mutedBg:#f7f7f7;

  --radius:10px;
  --shadow:0 1px 8px rgba(0,0,0,0.06);
  --shadowHover:0 10px 24px rgba(0,0,0,0.10);

  --containerPad:20px;
  --sectionPad:48px;

  --btnRadius:10px;
  --inputRadius:10px;
  --cardRadius:10px;

  --h1:28px;
  --h2:20px;
  --body:16px;
  --small:13px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  font-size:var(--body);
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:0 var(--containerPad)}

.muted{color:var(--muted)}
.small{font-size:var(--small)}

.header{
  height:72px;
  position:sticky;
  top:0;
  background:#fff;
  z-index:50;
  border-bottom:1px solid var(--border);
}
.header-inner{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.logo{font-weight:700;letter-spacing:-.2px}

.nav{display:flex;gap:18px;align-items:center}
.nav a{
  font-size:14px;
  font-weight:500;
  padding:6px 0;
  border-bottom:1px solid transparent;
  opacity:1;
  transition:opacity .12s ease, border-color .12s ease;
}
.nav a:hover{opacity:.75;border-bottom-color:var(--text)}
.nav a.active{border-bottom-color:var(--text)}

.menu-btn{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius:var(--btnRadius);
  padding:8px 10px;
  cursor:pointer;
  font-size:14px;
  font-weight:500;
}

.main{padding:var(--sectionPad) 0}

.section{padding:var(--sectionPad) 0}
.h1{
  margin:0 0 10px;
  font-size:var(--h1);
  font-weight:700;
  letter-spacing:-.2px;
}
.h2{
  margin:0 0 14px;
  font-size:var(--h2);
  font-weight:700;
  letter-spacing:-.1px;
}

.notice{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
  background:#fff;
}

.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:16px}
.input, select, textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:var(--inputRadius);
  padding:12px 12px;
  background:#fff;
  color:var(--text);
  outline:none;
  font-size:14px;
}
textarea{min-height:140px;resize:vertical}

.search-row{
  display:grid;
  grid-template-columns: 1fr 220px 160px;
  gap:12px;
  width:100%;
}

.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{
  border:1px solid var(--border);
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
  background:#fff;
}
.chip.active{background:var(--mutedBg)}

.grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
}

.card{
  border:1px solid var(--border);
  border-radius:var(--cardRadius);
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow);
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover{box-shadow:var(--shadowHover);transform:translateY(-2px)}
.thumb{
  width:100%;
  aspect-ratio:1/1;
  background:var(--mutedBg);
}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.card-body{padding:14px}
.card-title{
  margin:0 0 10px;
  font-size:14px;
  font-weight:600;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:44px;
}
.card-price{font-size:15px;font-weight:600;margin:0 0 12px}
.card-actions{display:flex;gap:10px;flex-wrap:wrap}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--btnRadius);
  padding:11px 14px;
  font-size:14px;
  cursor:pointer;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
}
.btn-primary{background:#111;color:#fff;border-color:#111}
.btn-secondary{background:#fff;color:#111;border:1px solid #111}
.btn-outline{background:#fff;color:#111;border:1px solid var(--border)}
.btn:active{transform:translateY(1px)}

.pagination{
  display:flex;
  gap:8px;
  justify-content:center;
  margin-top:16px;
  flex-wrap:wrap;
}
.pagination a,.pagination span{
  border:1px solid var(--border);
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
}
.pagination span{background:var(--mutedBg)}

.product{
  display:grid;
  grid-template-columns: 55% 45%;
  gap:16px;
  align-items:start;
}
.gallery{
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.gallery-main{aspect-ratio:1/1;background:var(--mutedBg)}
.gallery-main img{width:100%;height:100%;object-fit:cover;display:block}
.gallery-thumbs{
  display:flex;
  gap:10px;
  padding:12px;
  border-top:1px solid var(--border);
  overflow:auto;
  background:#fff;
}
.thumb-btn{
  width:74px;height:74px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:var(--radius);
  padding:0;
  cursor:pointer;
  overflow:hidden;
  flex:0 0 auto;
}
.thumb-btn img{width:100%;height:100%;object-fit:cover;display:block}
.thumb-btn.active{border-color:#111}

.product-info{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
  background:#fff;
}
.product-info h1{
  margin:0 0 10px;
  font-size:22px;
  font-weight:700;
}
.price{
  font-weight:700;
  font-size:18px;
  margin:0 0 10px;
}
.spec-box{
  margin-top:14px;
  background:var(--mutedBg);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:12px;
}
.spec-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--border);font-size:14px}
.spec-row:last-child{border-bottom:0}
.spec-row .k{color:var(--muted)}

.footer{
  border-top:1px solid var(--border);
  padding:32px 0;
  background:#fff;
}
.footer-inner{
  display:grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap:16px;
}
.footer-title{font-weight:700;margin-bottom:10px}
.footer-links{display:flex;flex-direction:column;gap:8px}

.wa-float{
  position:fixed;
  right:16px;
  bottom:16px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow:var(--shadow);
  font-size:14px;
  font-weight:600;
}
.wa-float:hover{box-shadow:var(--shadowHover)}
.wa-dot{width:10px;height:10px;border-radius:999px;background:#25D366;display:inline-block}

.table{
  width:100%;
  border-collapse:collapse;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
.table th,.table td{
  padding:12px 12px;
  border-bottom:1px solid var(--border);
  font-size:14px;
  text-align:left;
}
.table th{background:var(--mutedBg);font-weight:700}
.table tr:last-child td{border-bottom:0}


/* Top announcement bar */
.topbar{
  height:44px;
  background:#fff;
  color:#111;
  font-size:14.5px;
  font-weight:700;
  letter-spacing:0.2px;
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid var(--border);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
  padding:0 14px;
}

/* Home slider */
.home-slider{padding:0 0 var(--sectionPad)}
.slider{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.slider-track{
  display:flex;
  width:300%;
  transform:translateX(0);
  transition:transform .35s ease;
}
.slide{flex:0 0 100%}
.slide-bg{
  width:100%;
  height:360px;
}
.slide-bg.s1{
  background:linear-gradient(135deg,#f3f3f3,#ffffff);
}
.slide-bg.s2{
  background:linear-gradient(135deg,#ffffff,#f7f7f7);
}
.slide-bg.s3{
  background:linear-gradient(135deg,#f7f7f7,#ffffff);
}
.slider-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:40px;height:40px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.9);
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;
  line-height:1;
}
.slider-arrow:hover{box-shadow:var(--shadowHover)}
.slider-arrow.prev{left:12px}
.slider-arrow.next{right:12px}
.slider-dots{
  position:absolute;
  left:0;right:0;
  bottom:12px;
  display:flex;
  gap:8px;
  justify-content:center;
}
.slider-dot{
  width:8px;height:8px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.85);
  cursor:pointer;
}
.slider-dot.active{background:#111;border-color:#111}

/* Footer 2 columns */
.footer{border-top:1px solid var(--border);padding:28px 0;background:#fff}
.footer-inner-2col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:start;
}
.footer-links-col{display:flex;flex-direction:column;gap:10px}
.footer-links-col a{
  font-size:13px;
  color:#111;
}
.footer-links-col a:hover{text-decoration:underline}
.footer-right-title{font-size:15px;font-weight:600;margin-bottom:10px;color:#111}
.footer-right-text{font-size:13px;color:#666;line-height:1.7}

@media (max-width: 980px){
  .slide-bg{height:280px}
}
@media (max-width: 640px){
  .slide-bg{height:220px}
  .footer-inner-2col{grid-template-columns:1fr}
}

@media (max-width: 980px){
  :root{--containerPad:16px}
  .grid{grid-template-columns:repeat(2,1fr)}
  .product{grid-template-columns:1fr}
  .search-row{grid-template-columns:1fr 1fr}
  .main{padding:32px 0}
}
@media (max-width: 640px){
  :root{--containerPad:14px}
  .grid{grid-template-columns:repeat(2,1fr)}
  .footer-inner{grid-template-columns:1fr}
  .nav{display:none}
  .nav.open{
    display:flex;
    flex-direction:column;
    gap:10px;
    position:absolute;
    top:72px;
    right:14px;
    left:14px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:12px;
    box-shadow:var(--shadow);
  }
  .menu-btn{display:inline-flex}
  .search-row{grid-template-columns:1fr}
  .h1{font-size:22px}
}

/* Product detail overrides */
.gallery{border-radius:12px}
.gallery-main img{border-radius:0}
.product-info h1{font-size:22px;font-weight:600}
.price{font-size:18px;font-weight:600}
.product-info .muted{font-size:14px}
.spec-box{background:#fafafa;border-radius:10px;padding:12px}
.thumb-btn{border-radius:10px}

@media (max-width: 360px){
  .grid{grid-template-columns:1fr}
}

@media (max-width: 640px){
  .topbar{font-size:13.5px}
}

.logo-img{height:34px;width:auto;display:block}
@media (max-width: 640px){.logo-img{height:30px}}


/* Drawer menu (<=1023px) */
.menu-btn-icon{gap:10px}
.menu-ic{
  width:18px;height:12px;display:inline-block;position:relative;
}
.menu-ic::before,.menu-ic::after,.menu-ic span{
  content:"";position:absolute;left:0;right:0;height:2px;background:#111;border-radius:999px;
}
.menu-ic::before{top:0}
.menu-ic::after{bottom:0}
.menu-ic{background:none}
.menu-ic::before,.menu-ic::after{opacity:1}
.menu-ic::after{}
.menu-btn.menu-btn-icon{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--border);
  background:#fff;
  border-radius:var(--btnRadius);
  padding:9px 12px;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
}

.drawer-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.28);
  z-index:80;
}
.drawer{
  position:fixed;
  top:0; right:0;
  height:100%;
  width:320px;
  max-width:85vw;
  background:#fff;
  border-left:1px solid var(--border);
  z-index:90;
  transform:translateX(100%);
  transition:transform 200ms ease;
  box-shadow:0 10px 24px rgba(0,0,0,0.12);
  display:flex;
  flex-direction:column;
}
.drawer.open{transform:translateX(0)}
.drawer-head{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  border-bottom:1px solid var(--border);
}
.drawer-close{
  width:40px;height:40px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}
.drawer-nav{padding:10px 12px;display:flex;flex-direction:column}
.drawer-nav a{
  font-size:15px;
  font-weight:600;
  padding:12px 10px;
  border-radius:10px;
}
.drawer-nav a:hover{background:var(--mutedBg)}
@media (prefers-reduced-motion: reduce){
  .drawer{transition:none}
  .slider-track{transition:none}
}

/* Desktop vs mobile nav visibility */
@media (min-width: 1024px){
  .nav-desktop{display:flex}
  .menu-btn{display:none}
}
@media (max-width: 1023px){
  .nav-desktop{display:none}
  .menu-btn{display:inline-flex}
}


/* Slider image mode */
.slide-img{
  width:100%;
  height:360px;
  object-fit:contain;
  display:block;
}
@media (max-width: 980px){ .slide-img{height:280px} }
@media (max-width: 640px){ .slide-img{height:210px} }

/* Mobile compact cards */
@media (max-width: 640px){
  .grid{gap:12px}
  .card-body{padding:12px}
  .card-title{font-size:13.5px;min-height:40px}
  .card-price{font-size:14.5px}
  .thumb{aspect-ratio:4/3}
  .thumb img{max-height:220px}
}


/* Slider container sizing (no crop) */
.slider {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eaeaea;
  background: #fff;
}
.slider-track,
.slide { height: 360px; }
@media (max-width: 1023px) {
  .slider-track,
  .slide { height: 280px; }
}
@media (max-width: 640px) {
  .slider-track,
  .slide { height: 220px; }
}
/* Görsel kesilmesin, tamamı görünsün */
.slide img, .slide-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}



/* --- Header actions (minyatursepeti-like simple icons) --- */
.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.icon-btn{
  width:40px;height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  box-shadow:none;
}
.icon-btn:hover{background:var(--mutedBg)}
.icon-wa,.icon-grid{
  width:18px;height:18px;display:block;position:relative;
}
.icon-grid::before{
  content:"";
  width:16px;height:16px;display:block;
  background:
    linear-gradient(#111,#111) 0 0/6px 6px no-repeat,
    linear-gradient(#111,#111) 10px 0/6px 6px no-repeat,
    linear-gradient(#111,#111) 0 10px/6px 6px no-repeat,
    linear-gradient(#111,#111) 10px 10px/6px 6px no-repeat;
  border-radius:3px;
}
.icon-wa::before{
  content:"";
  width:16px;height:16px;display:block;
  border:2px solid #111;
  border-radius:50%;
  position:relative;
}
.icon-wa::after{
  content:"";
  position:absolute;
  left:3px;bottom:-2px;
  width:8px;height:8px;
  border-left:2px solid #111;
  border-bottom:2px solid #111;
  transform:rotate(45deg);
  border-radius:1px;
}

.icon-home{width:18px;height:18px;display:block;position:relative;}
.icon-home::before{
  content:"";
  position:absolute;left:2px;top:6px;
  width:14px;height:10px;
  border:2px solid #111;border-top:none;
  border-radius:2px;
}
.icon-home::after{
  content:"";
  position:absolute;left:3px;top:2px;
  width:12px;height:12px;
  border-left:2px solid #111;border-top:2px solid #111;
  transform:rotate(45deg);
}

/* Drawer sections + chips */
.drawer-section{padding:12px 12px 6px}
.drawer-title{
  font-size:13px;
  color:var(--muted);
  font-weight:700;
  text-transform:none;
  letter-spacing:.1px;
  margin:4px 4px 10px;
}
.drawer-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chip{
  display:inline-flex;
  align-items:center;
  padding:9px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  background:#fff;
}
.chip:hover{background:var(--mutedBg)}

/* Make header stable on mobile */
@media (max-width: 640px){
  .header-inner{gap:10px}
  .menu-btn{white-space:nowrap}
  .header-actions{gap:8px}
  .icon-btn{width:38px;height:38px}
}


/* Home search (minyatursepeti-like) */
.home-search{margin:10px 0 18px}
.home-search-row{
  display:flex;
  gap:12px;
  align-items:stretch;
}
.home-search-row .input{flex:1}
.home-search-row .btn{
  min-width:92px;
  background:#111;
  color:#fff;
  border-color:#111;
}
.home-search-row .btn:hover{opacity:.9}
@media (max-width: 640px){
  .home-search-row{gap:10px}
  .home-search-row .btn{min-width:70px;padding:11px 12px}
}

.icon-svg{display:block;color:#111}

.page-legal{padding-top:10px;padding-bottom:28px}
.card{border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:0 1px 6px rgba(0,0,0,.04);padding:16px}
.form .input{width:100%}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.label{display:block;font-weight:700;margin:10px 0 6px}
.btn-black{background:#111;color:#fff;border:1px solid #111;border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer}
.btn-black:hover{opacity:.92}
