/* HAS TRAKTÖR — global styles */
:root{
  /* Primary brand color (kept as --red* names for compatibility) */
  --red: #0088CC;
  --red-dk: #006699;
  --red-darker: #004466;
  --amber: #F59E0B;
  --amber-dk: #B97509;
  --ink: #15110d;
  --ink-2: #2a241d;
  --ink-3: #4a4137;
  --muted: #8a8071;
  --line: #e8e1d3;
  --line-2: #d6ccb6;
  --bg: #faf6ee;
  --bg-2: #f4ecdb;
  --paper: #ffffff;
  --green: #355a2d;
  --shadow-sm: 0 1px 2px rgba(60,40,10,.06);
  --shadow: 0 4px 14px rgba(60,40,10,.08);
  --shadow-lg: 0 20px 60px rgba(60,40,10,.12);
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mono{ font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace; }
.serif{ font-family: "Bitter", "Source Serif Pro", Georgia, serif; }

button{ font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
a{ color: inherit; text-decoration: none; }
input, select, textarea{ font-family: inherit; color: inherit; }

/* utility */
.container{ max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 720px){ .container{ padding: 0 14px; } }

.h-line{ height:1px; background: var(--line); width: 100%; }
.h-line-strong{ height:2px; background: var(--ink); }

/* badge */
.kbd{ display:inline-block; padding: 2px 6px; border:1px solid var(--line-2); border-radius:4px; font-size:11px; }

/* PROMO bar */
.promo-bar{
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: .06em;
  text-align: center;
  padding: 8px 12px;
  font-weight: 600;
}

/* top utility row */
.util-row{
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.util-row .container{
  display:flex; align-items:center; justify-content:space-between;
  height: 36px; gap: 14px;
}
.util-row a{ display:inline-flex; align-items:center; gap:6px; padding: 4px 8px; border-radius: 4px;}
.util-row a:hover{ background: var(--bg-2); color: var(--ink); }
.util-row .lang{ display:flex; align-items:center; gap: 2px; }
.util-row .lang button{
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 8px; border-radius: 4px;
  color: var(--muted);
}
.util-row .lang button.active{ background: var(--ink); color:#fff; }
.util-row .util-left{ display:flex; align-items:center; gap: 14px; }
.util-row .util-right{ display:flex; align-items:center; gap: 8px; }

/* Header */
.header-main{
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top:0; z-index: 40;
}
.header-main .row{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.brand-mark{
  display:flex; align-items:center; gap: 12px;
}
.brand-mark .logo-img{
  height: 56px; width: auto; max-width: 220px;
  display:block;
  border-radius: 4px;
  background: #fff;
}
.brand-mark .logo-fallback{
  display:flex; align-items:center; gap:10px;
  padding: 4px 0;
}
.brand-mark .logo-mark{
  width: 44px; height: 44px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  display:flex; align-items:center; justify-content:center;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.02em;
  position: relative;
}
.brand-mark .logo-mark::after{
  content:""; position:absolute; left:6px; right:6px; bottom:6px;
  height: 4px; background: var(--amber); border-radius: 2px;
}
.brand-mark .logo-wm{ display:flex; flex-direction:column; line-height: 1; }
.brand-mark .logo-wm .top{
  font-weight: 900; font-size: 22px; letter-spacing: -.02em; color: var(--ink);
}
.brand-mark .logo-wm .sub{
  font-size: 9.5px; font-weight: 700; letter-spacing: .22em; color: var(--red); margin-top: 4px;
}

/* SEARCH */
.search-wrap{
  position: relative;
  display:flex; align-items: center;
  width: 100%; max-width: 720px;
  background: var(--bg-2);
  border: 2px solid transparent;
  border-radius: 8px;
  transition: border-color .15s, background .15s;
}
.search-wrap:focus-within{
  background: #fff;
  border-color: var(--ink);
}
.search-wrap .ico{ padding-left: 14px; color: var(--ink-3); display:flex; }
.search-wrap input{
  flex:1; padding: 13px 12px;
  background: transparent; border: 0; outline: none;
  font-size: 14.5px;
}
.search-wrap .search-submit{
  display: inline-flex; align-items: center; gap: 6px;
  margin: 4px;
  padding: 9px 14px;
  background: var(--red); color: #fff;
  border: 0; border-radius: 6px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: background .12s;
}
.search-wrap .search-submit:hover{ background: var(--red-dk);}

/* HEADER ACTIONS */
.header-actions{
  display: flex; align-items: center;
  gap: 10px;                           /* breathing room — long labels don't overlap */
  margin-left: auto;                   /* push to right when search shrinks */
  flex: 0 0 auto;
}
.icon-btn{
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 56px;
  padding: 6px 8px; height: 56px;
  border-radius: 8px;
  color: var(--ink);
  position: relative;
  transition: background .12s;
  white-space: nowrap;
}
.icon-btn:hover{ background: var(--bg-2); }
.icon-btn .lbl{ font-size: 10px; font-weight: 700; letter-spacing: .05em; margin-top: 2px; text-transform: uppercase;}
.ha-wa{ color:#25D366; }
.ha-wa .lbl{ color: var(--ink-3); }
.icon-btn .cart-badge{
  position: absolute; top: 6px; right: 8px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display:flex; align-items:center; justify-content:center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* CATEGORY BAR (desktop) */
.catbar{
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--red);
}
.catbar .row{
  display:flex; align-items:stretch;
  height: 48px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}
.catbar .row::-webkit-scrollbar{ display:none; }
.catbar .row.dragging{ cursor: grabbing; }
.catbar a, .catbar button{
  display:flex; align-items:center; gap: 8px;
  padding: 0 16px;
  font-size: 13px; font-weight: 600;
  color: #fff; white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.05);
  transition: background .12s;
  cursor: pointer;
  flex: 0 0 auto;
}
.catbar a:hover, .catbar button:hover, .catbar .active{
  background: var(--red);
}
.catbar .leading{
  background: var(--red);
  font-weight: 800;
}
.catbar .leading:hover{ background: var(--red-dk); }

/* Scroll arrows pinned to the bar edges (desktop). Shown only when scrollable. */
.catbar .container{ position: relative; }
.catbar .cat-arrow{
  position: absolute; top: 0; height: 48px; width: 44px;
  display: none; align-items: center; justify-content: center;
  color: #fff; border: none; cursor: pointer; z-index: 3; padding: 0;
}
.catbar .cat-arrow:hover{ color: var(--amber); }
.catbar .cat-prev{ left: 0;  justify-content: flex-start; padding-left: 6px;
  background: linear-gradient(to right, var(--ink) 55%, transparent); }
.catbar .cat-next{ right: 0; justify-content: flex-end;   padding-right: 6px;
  background: linear-gradient(to left,  var(--ink) 55%, transparent); }
.catbar .cat-prev svg{ transform: rotate(180deg); }
.catbar.has-prev .cat-prev{ display: flex; }
.catbar.has-next .cat-next{ display: flex; }

/* Hamburger only on mobile */
.mob-menu-btn{ display: none !important; }
@media (max-width: 900px){
  .mob-menu-btn{ display: flex !important; margin-right: 2px; }
}

/* Mobile header tweaks */
@media (max-width: 900px){
  .header-main .row{ grid-template-columns: auto 1fr auto; gap: 10px; padding: 10px 0; }
  .brand-mark{ gap: 6px; }
  .brand-mark .logo-img{ height: 40px; max-width: 130px; }
  .brand-mark .logo-mark{ width: 36px; height: 36px; font-size: 16px; }
  .brand-mark .logo-wm .top{ font-size: 16px;}
  .brand-mark .logo-wm .sub{ font-size: 8px; letter-spacing: .18em; margin-top:3px;}
  .header-main .search-wrap{ display:none; }
  .icon-btn{ min-width: 44px; padding: 4px; height: 44px;}
  .icon-btn .lbl{ display:none; }
  /* Push the 3 icons hard to the right; tighten gap to fit narrow screens. */
  .header-actions{
    justify-content: flex-end;
    gap: 2px;
    margin-left: auto;
  }
  .util-row .util-left .hide-mobile{ display:none;}
  .catbar{ display:none; }
}
.search-mobile{ display:none; }
@media (max-width: 900px){
  .search-mobile{
    display:flex; padding: 8px 12px;
    background: #fff; border-bottom: 1px solid var(--line);
    width: 100%; box-sizing: border-box; overflow: hidden;
  }
  .search-mobile .search-wrap{
    display:flex; max-width: none; width: 100%; min-width: 0;
  }
  .search-mobile .search-wrap input{ min-width: 0; }
  /* Mobile submit shrinks to icon-only (label hides via .hide-mobile) */
  .search-wrap .search-submit{ padding: 9px 11px; }
}

/* HERO */
.hero{
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .container{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 56px;
  align-items: center;
  position: relative; z-index: 2;
}
.hero .eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size: 11px; font-weight: 800; letter-spacing: .2em;
  background: var(--amber); color: var(--ink);
  padding: 6px 10px; border-radius: 3px;
}
.hero h1{
  font-family: "Bitter", Georgia, serif;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 18px 0 22px;
  white-space: pre-line;
  font-weight: 700;
}
.hero h1 .accent{ color: var(--amber); }
.hero p.sub{ font-size: 16px; color: #d8cfbb; line-height: 1.55; max-width: 520px; margin: 14px 0 0;}
.hero .ctas{ display:flex; gap: 12px; margin-top: 28px; flex-wrap: wrap;}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap: 10px;
  padding: 14px 22px;
  font-weight: 700; font-size: 14px;
  border-radius: 6px;
  transition: transform .08s, box-shadow .12s, background .12s, color .12s;
  letter-spacing: .01em;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--red); color: #fff; }
.btn-primary:hover{ background: var(--red-dk); }
.btn-ghost{ background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3);}
.btn-ghost:hover{ background: #fff; color: var(--ink); border-color: #fff;}
.btn-wa{ background: #25D366; color: #fff;}
.btn-wa:hover{ background: #1ebe5b;}
.btn-dark{ background: var(--ink); color: #fff;}
.btn-dark:hover{ background: var(--ink-2);}
.btn-outline{ background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-outline:hover{ background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-amber{ background: var(--amber); color: var(--ink);}
.btn-amber:hover{ background: var(--amber-dk); color: #fff;}
.btn-sm{ padding: 9px 14px; font-size: 13px;}

/* hero collage / part scene */
.hero-art{
  position: relative;
  height: 380px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, #2a241d 0%, transparent 60%),
    repeating-linear-gradient(135deg, #1c1813 0 12px, #15110d 12px 24px);
  overflow: hidden;
  border: 1px solid #2a241d;
}
.hero-art::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(circle 200px at 80% 20%, rgba(245,158,11,.18), transparent 70%),
    radial-gradient(circle 220px at 15% 90%, rgba(0,136,204,.15), transparent 65%);
  pointer-events:none;
}
.hero-art .scan{
  position:absolute; left:0; right:0; top: 0;
  height:1px; background: rgba(255,255,255,.15);
  animation: scan 4.5s linear infinite;
}
@keyframes scan{
  0%{ top: 0; opacity: 0;}
  10%{ opacity: 1;}
  90%{ opacity: 1;}
  100%{ top: 100%; opacity: 0;}
}
.hero-art .stat-card{
  position:absolute;
  background: rgba(20,16,12,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 6px;
  padding: 12px 14px;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  min-width: 170px;
}
.hero-art .stat-card .v{
  font-family: "Bitter", Georgia, serif;
  font-size: 28px; font-weight: 700;
  color: var(--amber);
  display:block; line-height: 1;
  margin-bottom: 6px;
}
.hero-art .stat-card .lbl{ color: #d8cfbb; font-size: 11px; letter-spacing: .03em; }
.hero-art .stat-card.sc1{ top: 30px; right: 30px; }
.hero-art .stat-card.sc2{ bottom: 30px; left: 30px; }
.hero-art .stat-card.sc3{ top: 50%; left: 35%; transform: translateY(-50%); border-color: rgba(0,136,204,.45); }
.hero-art .stat-card.sc3 .v{ color: #fff; font-size: 18px; }
.hero-art .gear-bg{
  position:absolute; top:-30px; right:-30px;
  width: 200px; height: 200px;
  color: rgba(245,158,11,.06);
  animation: spin 30s linear infinite;
}
@keyframes spin{ to { transform: rotate(360deg); } }

/* Hero background photo (latest product) — sits behind scan + stat cards. */
.hero-art .hero-photo{
  position:absolute; inset:0; z-index:0;
  background-size: cover; background-position: center;
}
.hero-art .hero-photo::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(21,17,13,.45) 0%, rgba(21,17,13,.80) 100%);
}
.hero-art::before{ z-index:1; }
.hero-art .scan{ z-index:2; }
.hero-art .stat-card{ z-index:3; }

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; gap: 24px;}
  .hero-art{ height: 280px; }
  .hero-art .stat-card{ font-size: 11px; min-width: 150px; }
  .hero-art .stat-card .v{ font-size: 22px; }
}

/* WHY STRIP */
.why{
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.why .container{
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.why .item{
  display:flex; gap: 14px; align-items: flex-start;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.why .item:last-child{ border-right: 0; }
.why .item .ico{
  width: 42px; height: 42px; border-radius: 6px;
  background: var(--bg-2);
  color: var(--red);
  display:flex; align-items:center; justify-content:center;
  flex-shrink: 0;
}
.why .item .t{ font-weight: 700; font-size: 14px; line-height: 1.2; margin-bottom: 4px;}
.why .item .s{ font-size: 12.5px; color: var(--muted); line-height: 1.4;}
@media (max-width: 900px){
  .why .container{ grid-template-columns: repeat(2,1fr); }
  .why .item{ padding: 16px 14px; }
  .why .item:nth-child(odd){ border-right: 1px solid var(--line);}
  .why .item:nth-child(2){ border-right: 0;}
  .why .item:nth-child(1), .why .item:nth-child(2){ border-bottom: 1px solid var(--line);}
}

/* SECTION */
.section{ padding: 56px 0; }
.section.tight{ padding: 36px 0; }
.section-head{
  display:flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-head .label{
  font-size: 11px; font-weight: 800; letter-spacing: .18em;
  color: var(--red); text-transform: uppercase;
}
.section-head h2{
  font-family: "Bitter", Georgia, serif;
  font-size: clamp(24px, 3vw, 36px);
  margin: 6px 0 0; letter-spacing: -.02em;
  font-weight: 700;
  line-height: 1.1;
}
.section-head .see-all{
  font-size: 13px; font-weight: 600;
  display:inline-flex; align-items:center; gap: 4px;
  color: var(--ink);
  padding: 6px 8px; border-radius: 4px;
  flex-shrink: 0;
}
.section-head .see-all:hover{ background: var(--bg-2); }

/* CATEGORY GRID */
.cat-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1100px){ .cat-grid{ grid-template-columns: repeat(4, 1fr);} }
@media (max-width: 700px){  .cat-grid{ grid-template-columns: repeat(3, 1fr);} }
@media (max-width: 420px){  .cat-grid{ grid-template-columns: repeat(2, 1fr);} }

.cat-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 12px 18px;
  text-align: center;
  display:flex; flex-direction: column; align-items: center;
  gap: 10px;
  transition: transform .12s, box-shadow .12s, border-color .12s;
  position: relative;
  cursor: pointer;
}
.cat-card:hover{
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.cat-card .ico{
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: var(--amber);
  display:flex; align-items:center; justify-content:center;
}
.cat-card:hover .ico{ background: linear-gradient(135deg, var(--red), var(--red-dk)); color:#fff;}
.cat-card .name{
  font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ink);
}

/* BRAND STRIP */
.brand-grid{
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
@media (max-width: 1100px){ .brand-grid{ grid-template-columns: repeat(5, 1fr);} }
@media (max-width: 700px){  .brand-grid{ grid-template-columns: repeat(3, 1fr);} }

.brand-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  display:flex; flex-direction: column; align-items:center; gap: 8px;
  transition: transform .12s, border-color .12s, box-shadow .12s;
  cursor: pointer;
}
.brand-card:hover{ transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow);}
.brand-card .badge{
  width: 56px; height: 40px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 4px;
  font-weight: 900; font-size: 16px; letter-spacing: .03em;
  position: relative;
}
.brand-card .badge::after{
  content:""; position:absolute; left:6px; right:6px; bottom: 4px;
  height: 2px; background: rgba(0,0,0,.2); border-radius: 1px;
}
.brand-card .nm{
  font-size: 12px; font-weight: 600; color: var(--ink-3); text-align:center;
}

/* PRODUCT GRID */
.prod-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px){ .prod-grid{ grid-template-columns: repeat(3, 1fr);} }
@media (max-width: 720px){  .prod-grid{ grid-template-columns: repeat(2, 1fr); gap: 10px;} }

.pcard{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display:flex; flex-direction: column;
  position: relative;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.pcard:hover{ transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow); }
.pcard:hover .pcard-quick{ opacity: 1; transform: translateY(0); }
.pcard .img-wrap{
  position: relative; aspect-ratio: 4 / 3;   /* 1024 × 768 */
  background: #fff;
  overflow: hidden;
}
.pcard .img-wrap img{
  width: 100%; height: 100%;
  object-fit: contain !important;            /* override inline cover */
  padding: 8px;
}
.pcard .pcard-badges{
  position:absolute; top: 10px; left: 10px;
  display:flex; flex-direction:column; gap: 4px;
  z-index: 2;
}
/* Generic badge — used by both product cards and product detail gallery. */
.pcard .b, .pd-main .b{
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  padding: 4px 7px; border-radius: 3px;
  text-transform: uppercase;
  display: inline-block;
}
.pcard .b.sale, .pd-main .b.sale{ background: var(--red); color: #fff;}
.pcard .b.new,  .pd-main .b.new{ background: var(--ink); color: var(--amber); }
.pcard .b.bestseller, .pd-main .b.bestseller{ background: var(--amber); color: var(--ink);}
.pcard .b.out,  .pd-main .b.out{ background: var(--muted); color: #fff;}
/* Larger sale badge on detail page — more prominent than card thumbnails. */
.pd-main .b{ font-size: 12px; padding: 6px 10px; border-radius: 4px;}
.pcard-quick{
  position:absolute; bottom: 10px; left: 10px; right: 10px;
  background: var(--ink); color:#fff;
  padding: 9px 12px; border-radius: 4px;
  font-size: 12px; font-weight: 700;
  text-align: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity .15s, transform .15s;
}
@media (max-width: 720px){ .pcard-quick{ display:none; } }
.pcard .meta{
  padding: 12px 14px 14px;
  display:flex; flex-direction:column; gap: 4px;
  flex:1;
}
.pcard .meta-top{
  display:flex; justify-content:space-between; align-items:center;
  font-size: 10.5px; color: var(--muted); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.pcard .brand-name{ color: var(--red); font-weight: 700; }
.pcard .ttl{
  font-size: 14px; font-weight: 600; line-height: 1.3;
  color: var(--ink);
  margin: 4px 0 8px;
  display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient:vertical; overflow: hidden;
}
.pcard .partno{
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; color: var(--ink-3);
  padding: 2px 5px; background: var(--bg-2); border-radius: 3px;
  align-self: flex-start;
  margin-bottom: 8px;
}
.pcard .price-row{
  display:flex; align-items: baseline; gap: 8px; margin-top: auto;
}
.pcard .price{
  font-size: 18px; font-weight: 800; color: var(--ink);
  font-family: "Bitter", Georgia, serif;
}
.pcard .price-old{
  font-size: 12px; color: var(--muted); text-decoration: line-through;
}
.pcard .stock-row{
  display:flex; align-items:center; gap:6px; margin-top: 6px;
  font-size: 11px; font-weight: 600;
}
.pcard .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--green);}
.pcard.low .dot{ background: var(--amber);}
.pcard.out .dot{ background: var(--muted);}
.pcard.out .img-wrap{ filter: grayscale(.5) opacity(.7);}
.pcard .cart-mini{
  position:absolute; bottom: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color:#fff;
  display:flex; align-items:center; justify-content:center;
  transition: background .12s, transform .12s;
  z-index: 3;
}
.pcard .cart-mini:hover{ background: var(--red); transform: scale(1.05);}
.pcard .cart-mini[disabled]{ background: var(--line); color: var(--muted); cursor: not-allowed;}

/* part image placeholder svg layout */
.part-svg{
  position:absolute; inset: 0;
  display:flex; align-items:center; justify-content:center;
  padding: 12% 14%;
}
.part-svg svg{ width: 100%; height: 100%; }
.part-svg .label-tag{
  position:absolute; bottom: 8px; right: 8px;
  background: rgba(255,255,255,.92);
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px; padding: 3px 5px; border-radius: 3px;
  color: var(--ink-3);
  letter-spacing: .04em;
}

/* DEALS strip — horizontal scroll on mobile */
.deals .prod-grid{
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px){
  .deals .prod-grid{
    grid-template-columns: repeat(8, 240px);
    overflow-x: auto; padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    margin: 0 -14px; padding-left: 14px; padding-right: 14px;
  }
  .deals .pcard{ scroll-snap-align: start; }
}

/* CAMPAIGN BANNER */
.campaign{
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 60%, var(--red-darker) 100%);
  color: #fff;
  border-radius: 10px;
  padding: 36px 40px;
  display:grid; grid-template-columns: 1.4fr 1fr;
  gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.campaign::before{
  content:""; position:absolute; right: -50px; top: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--amber) 0%, transparent 65%);
  opacity: .25;
  border-radius: 50%;
}
.campaign .ribbon{
  display:inline-block;
  background: var(--amber); color: var(--ink);
  font-size: 11px; font-weight: 800; letter-spacing: .15em;
  padding: 5px 12px; border-radius: 3px; text-transform:uppercase;
  margin-bottom: 14px;
}
.campaign h3{
  font-family: "Bitter", Georgia, serif;
  font-size: clamp(24px, 3vw, 36px); margin: 0 0 12px;
  line-height: 1.05;
  letter-spacing: -.01em;
  font-weight: 700;
}
.campaign p{ color: #d8cfbb; margin: 0 0 20px; font-size: 14.5px; line-height: 1.5;}
.campaign .right-side{
  position:relative; display:flex; align-items:center; justify-content:center;
}
.tire-mock{
  width: 220px; height: 220px;
  background:
    radial-gradient(circle, transparent 30%, #1a1612 30.5%, #1a1612 38%, transparent 38.5%),
    repeating-conic-gradient(from 0deg, #14110e 0deg 8deg, #1a1612 8deg 16deg);
  border-radius: 50%;
  border: 12px solid #0a0908;
  box-shadow: 0 0 0 4px var(--amber), 0 30px 80px rgba(0,0,0,.4);
  position: relative;
}
.tire-mock::after{
  content:"16.9 R34";
  position:absolute; left:50%; top:50%; transform:translate(-50%, -50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; font-weight: 700; color: var(--amber);
}
.campaign .price-tag{
  position:absolute; top: 0; right: 0;
  background: var(--red); color: #fff;
  font-family: "Bitter", Georgia, serif;
  font-size: 22px; font-weight: 800;
  padding: 12px 16px;
  border-radius: 4px;
  transform: rotate(8deg);
  box-shadow: var(--shadow-lg);
}
.campaign .price-tag .strike{
  display:block; font-size: 12px; font-weight: 600; text-decoration: line-through;
  opacity: .7;
}
@media (max-width: 720px){
  .campaign{ grid-template-columns: 1fr; padding: 28px 22px;}
  .tire-mock{ width: 160px; height: 160px;}
  .campaign .right-side{ order: -1;}
}

/* FIND BY TRACTOR widget */
.finder{
  background:
    linear-gradient(135deg, rgba(20,17,13,.92), rgba(20,17,13,.95)),
    repeating-linear-gradient(45deg, #2a241d 0 14px, #1c1813 14px 28px);
  color: #fff;
  border-radius: 10px;
  padding: 36px 40px;
  display:grid; grid-template-columns: 1fr 1fr; gap: 28px;
  align-items: center;
}
.finder h3{
  font-family: "Bitter", Georgia, serif;
  font-size: clamp(22px, 2.8vw, 30px); margin: 0 0 10px;
  letter-spacing: -.01em; line-height: 1.1; font-weight: 700;
}
.finder p{ color: #d8cfbb; margin: 0; font-size: 14.5px;}
.finder .form{
  display:flex; gap: 8px; background: #fff; padding: 8px; border-radius: 8px;
  border: 2px solid var(--amber);
}
.finder .form select{
  flex:1; padding: 12px 12px; font-size: 14px; font-weight: 600;
  border: 0; outline: none; background: transparent; color: var(--ink);
  border-right: 1px solid var(--line);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23555'%3e%3cpath d='M3 6l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
.finder .form select:last-of-type{ border-right: 0;}
.finder .form button{
  background: var(--red); color: #fff;
  padding: 12px 18px; border-radius: 6px;
  font-weight: 700; font-size: 14px;
  display:flex; align-items:center; gap: 8px;
}
.finder .form button:hover{ background: var(--red-dk);}
@media (max-width: 800px){
  .finder{ grid-template-columns: 1fr; padding: 24px 20px;}
  .finder .form{ flex-direction: column;}
  .finder .form select{ border-right: 0; border-bottom: 1px solid var(--line);}
}

/* FOOTER */
.footer{
  background: var(--ink);
  color: #cdc4b0;
  padding: 56px 0 0;
  margin-top: 60px;
}
.footer .foot-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
}
.footer h4{
  font-size: 12px; font-weight: 800; letter-spacing: .16em;
  color: #fff; text-transform: uppercase;
  margin: 0 0 14px;
}
.footer ul{ list-style: none; padding: 0; margin: 0; display:flex; flex-direction:column; gap: 8px;}
.footer a{ font-size: 13.5px;}
.footer a:hover{ color: #fff; }
.footer .contact-row{
  font-size: 13px; line-height: 1.55;
}
.footer .contact-row .k{ color: var(--amber); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; display:block; margin-top: 12px;}
.footer .socials{ display:flex; gap: 8px; margin-top: 16px;}
.footer .socials a{
  width: 36px; height: 36px; border-radius: 6px;
  background: rgba(255,255,255,.06);
  display:flex; align-items:center; justify-content:center;
  color: #fff;
}
.footer .socials a:hover{ background: var(--red); }
.footer .newsletter{
  display:flex; gap: 8px; margin-top: 10px;
}
.footer .newsletter input{
  flex:1; padding: 11px 12px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); color: #fff;
  border-radius: 6px; outline: none; font-size: 13px;
}
.footer .newsletter input:focus{ border-color: var(--amber);}
.footer .newsletter input::placeholder{ color: #6a6358;}
.footer .foot-bottom{
  margin-top: 40px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  display:flex; justify-content: space-between; align-items:center;
  flex-wrap: wrap; gap: 12px;
}
.footer .foot-bottom .brands{ display:flex; gap: 14px; flex-wrap: wrap; color: #6a6358; font-size: 11px;}
@media (max-width: 800px){
  .footer .foot-grid{ grid-template-columns: 1fr 1fr; gap: 28px;}
  .footer .foot-grid > div:first-child{ grid-column: 1 / -1;}
}

/* CART DRAWER */
.drawer-back{
  position: fixed; inset:0; background: rgba(20,16,12,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .2s; z-index: 90;
}
.drawer-back.open{ opacity: 1; pointer-events: auto; }
.drawer{
  position: fixed; top:0; right:0; bottom:0;
  width: 420px; max-width: 100vw;
  background: #fff;
  z-index: 100;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.6,.05,.3,1);
  display:flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,.2);
}
.drawer.open{ transform: translateX(0);}
.drawer-head{
  display:flex; justify-content:space-between; align-items:center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3{ font-family: "Bitter", serif; font-size: 22px; margin: 0; letter-spacing: -.01em;}
.drawer-head .count{ font-size: 12px; color: var(--muted); font-weight: 600;}
.drawer-body{ flex:1; overflow-y: auto; padding: 8px 16px;}
.drawer-empty{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  height: 100%; text-align: center; padding: 40px 20px;
  color: var(--muted);
}
.drawer-empty .ico-wrap{
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--bg-2); color: var(--ink);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 16px;
}
.cart-line{
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.cart-line .thumb{
  width: 80px; height: 80px; border-radius: 6px;
  background: var(--bg-2);
  position: relative; overflow: hidden;
}
.cart-line .nm{
  font-size: 13.5px; font-weight: 600; line-height: 1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px;
}
.cart-line .pn{ font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted);}
.cart-line .price{ font-weight: 800; font-size: 15px; font-family: "Bitter", serif; margin-top: 6px;}
.qty-control{
  display:flex; align-items: center; gap: 0;
  border: 1px solid var(--line); border-radius: 5px;
  margin-top: 4px; width: max-content;
}
.qty-control button{
  width: 28px; height: 28px;
  display:flex; align-items:center; justify-content:center;
  color: var(--ink-3);
}
.qty-control button:hover{ background: var(--bg-2); color: var(--ink);}
.qty-control .val{
  min-width: 30px; text-align:center;
  font-weight: 700; font-size: 13px;
}
.cart-line .rm{
  align-self: flex-start; color: var(--muted); padding: 4px;
}
.cart-line .rm:hover{ color: var(--red);}
.drawer-foot{
  border-top: 2px solid var(--line);
  padding: 16px 20px;
  background: var(--bg-2);
}
.drawer-foot .tot-row{
  display:flex; justify-content:space-between; align-items:center;
  font-size: 13px; padding: 4px 0;
}
.drawer-foot .tot-row.total{
  font-size: 16px; font-weight: 800; margin-top: 8px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.drawer-foot .tot-row .v{ font-family: "Bitter", serif; }
.drawer-foot .free-pill{
  background: var(--green); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  padding: 3px 7px; border-radius: 3px; text-transform: uppercase;
  margin-left: 6px;
}
.drawer-foot .btn{ width: 100%; margin-top: 12px;}

/* QUICK VIEW */
.modal-back{
  position:fixed; inset:0; background: rgba(20,16,12,.65); z-index: 110;
  display:flex; align-items:center; justify-content:center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.modal-back.open{ opacity: 1; pointer-events: auto;}
.modal{
  background: #fff; border-radius: 10px;
  width: 100%; max-width: 920px;
  max-height: 92vh; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  transform: translateY(20px); transition: transform .2s;
  box-shadow: var(--shadow-lg);
}
.modal-back.open .modal{ transform: translateY(0);}
.modal .left{
  background: var(--bg-2);
  aspect-ratio: 1/1;
  position: relative;
  min-height: 360px;
}
.modal .right{ padding: 28px; overflow-y: auto; max-height: 92vh; position: relative;}
.modal .right .close-x{
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 6px;
  display:flex; align-items:center; justify-content:center;
  color: var(--ink-3);
}
.modal .right .close-x:hover{ background: var(--bg-2); color: var(--ink);}
.modal .right .brand-tag{
  display:inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em;
  color: var(--red); text-transform: uppercase; margin-bottom: 10px;
}
.modal .right h2{
  font-family: "Bitter", serif; font-size: 24px; margin: 0 0 14px; line-height: 1.2;
  letter-spacing: -.01em; padding-right: 40px;
}
.modal .right .specs{
  display:grid; grid-template-columns: auto 1fr; gap: 6px 14px;
  margin: 16px 0; padding: 14px; background: var(--bg-2);
  border-radius: 6px; font-size: 13px;
}
.modal .right .specs .k{ color: var(--muted); font-weight: 600;}
.modal .right .specs .v{ font-family: "JetBrains Mono", monospace; font-size: 12.5px;}
.modal .right .fits{
  font-size: 12px; color: var(--muted);
  margin: 12px 0;
}
.modal .right .fits .tags{ display:flex; gap: 6px; flex-wrap: wrap; margin-top: 6px;}
.modal .right .fits .tags span{
  background: #fff; border: 1px solid var(--line);
  padding: 4px 8px; border-radius: 3px; font-size: 12px;
  font-weight: 600; color: var(--ink);
}
.modal .right .price-block{
  display:flex; align-items: baseline; gap: 10px;
  margin: 18px 0;
}
.modal .right .price-block .price{
  font-family: "Bitter", serif; font-size: 36px; font-weight: 800;
}
.modal .right .price-block .old{
  font-size: 16px; color: var(--muted); text-decoration: line-through;
}
.modal .right .price-block .disc{
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 7px; border-radius: 3px; letter-spacing: .05em;
}
.modal .right .action-row{
  display:flex; gap: 10px; align-items: stretch; margin-top: 12px;
}
.modal .right .action-row .qty-control{ margin: 0;}
.modal .right .action-row .qty-control button{ width: 40px; height: 48px;}
.modal .right .action-row .qty-control .val{ min-width: 40px;}
.modal .right .action-row .btn{ flex: 1; padding: 14px 18px;}
.modal .right .ship-note{
  display:flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-3);
  margin-top: 14px; padding: 10px 12px;
  background: var(--bg-2); border-radius: 5px;
}
.modal .right .ship-note .ico{ color: var(--green);}

@media (max-width: 720px){
  .modal{ grid-template-columns: 1fr; max-height: 95vh;}
  .modal .left{ aspect-ratio: 16/10; min-height: 0;}
  .modal .right{ max-height: none;}
  .modal-back{ padding: 0; align-items: flex-end;}
  .modal{ border-radius: 12px 12px 0 0;}
}

/* MOBILE MENU */
.mob-menu{
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 320px; max-width: 92vw;
  background: #fff; z-index: 100;
  transform: translateX(-100%); transition: transform .25s cubic-bezier(.6,.05,.3,1);
  display:flex; flex-direction: column;
  box-shadow: 10px 0 40px rgba(0,0,0,.2);
}
/* JS only toggles `.open` on the outer .drawer-back; cascade slides the inner aside. */
.mob-menu.open,
.drawer-back.open .mob-menu{ transform: translateX(0);}
.mob-menu .head{
  background: var(--ink); color:#fff;
  padding: 18px 20px; display:flex; justify-content:space-between; align-items:center;
}
.mob-menu .body{ flex:1; overflow-y: auto;}
.mob-menu .body a, .mob-menu .body button{
  display:flex; align-items:center; gap: 12px;
  padding: 14px 20px; font-size: 14.5px; font-weight: 600;
  border-bottom: 1px solid var(--line);
  width: 100%; text-align: left;
}
.mob-menu .body a:hover, .mob-menu .body button:hover{ background: var(--bg-2);}
.mob-menu .body .sec{
  padding: 12px 20px 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .15em;
  color: var(--muted); text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.mob-menu .body .lang-pick{
  display:flex; gap: 4px; padding: 16px 20px;
}
.mob-menu .body .lang-pick button{
  padding: 8px 0; flex:1; text-align:center;
  border: 1px solid var(--line); border-radius: 5px;
  font-weight: 800; font-size: 12px; letter-spacing: .04em;
  display:flex; align-items:center; justify-content:center;
}
.mob-menu .body .lang-pick button.active{ background: var(--ink); color:#fff; border-color: var(--ink);}

/* SHOP PAGE */
.shop-layout{ display:grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px;}
@media (max-width: 900px){ .shop-layout{ grid-template-columns: 1fr;} }
.filters{
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 18px; height: max-content;
  position: sticky; top: 130px;
}
.filters h4{
  font-size: 11px; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink);
  margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink);
}
.filters .group{ margin-bottom: 22px;}
.filters .opt{
  display:flex; align-items:center; gap: 8px;
  padding: 6px 0; font-size: 13px; cursor: pointer;
  color: var(--ink-3);
}
.filters .opt:hover{ color: var(--ink);}
.filters .opt input{ accent-color: var(--red);}
.filters .opt.active{ color: var(--ink); font-weight: 700;}
.filters .opt .ct{ margin-left: auto; font-size: 11px; color: var(--muted);}

.shop-toolbar{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom: 18px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px;
}
.shop-toolbar .count{ color: var(--muted); }
.shop-toolbar .count b{ color: var(--ink); font-weight: 800;}
.shop-toolbar select{
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px;
  font-size: 13px; font-weight: 600; background: #fff;
}

.shop-mobile-filter{
  display:none; padding: 8px 14px; gap: 8px; background: #fff; border-bottom: 1px solid var(--line);
}
.shop-mobile-filter button{
  flex:1; padding: 10px;
  border: 1px solid var(--line); border-radius: 5px;
  font-size: 13px; font-weight: 700;
  display:flex; align-items:center; justify-content:center; gap: 6px;
}
@media (max-width: 900px){ .shop-mobile-filter{ display:flex;} .filters{ display:none;} }

/* PAGE HEADER */
.page-head{
  background: var(--ink);
  color:#fff;
  padding: 32px 0;
  border-bottom: 3px solid var(--red);
}
.page-head .crumb{ font-size: 12px; color: #d8cfbb; margin-bottom: 8px;}
.page-head .crumb a{ color: #d8cfbb;}
.page-head .crumb a:hover{ color: var(--amber);}
.page-head h1{
  font-family: "Bitter", serif; font-size: clamp(24px, 3vw, 36px); margin: 0;
  letter-spacing: -.01em; font-weight: 700;
}

/* TOAST */
.toast{
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(60px);
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  display:flex; align-items:center; gap: 10px;
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: var(--shadow-lg);
}
.toast.show{ opacity: 1; transform: translateX(-50%) translateY(0);}
.toast .check{ color: var(--amber);}

/* WHATSAPP FAB (mobile) */
.wa-fab{
  position: fixed;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display:none; align-items:center; justify-content:center;
  box-shadow: 0 10px 30px rgba(37,211,102,.4);
  z-index: 50;
}
@media (max-width: 900px){ .wa-fab{ display:flex;} }
.wa-fab:hover{ background: #1ebe5b;}

/* Root overflow guard — prevents long price strings, fixed elements,
   or wide tables from creating horizontal scroll on mobile. */
html, body { overflow-x: hidden; }

/* Allow price-row to wrap on narrow screens so the converted
   currency (e.g. "(≈ $45.30)") drops to a second line instead of
   pushing the card width past the viewport. */
@media (max-width: 720px){
  .pcard .price-row{ flex-wrap: wrap; row-gap: 2px;}
  .pcard .price{ font-size: 16px; line-height: 1.15;}
  .pcard .price-old{ font-size: 11px;}
}

/* ============ PRODUCT DETAIL ============ */
.product-detail{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.pd-gallery{ position: sticky; top: 90px;}
.pd-main{
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 4 / 3;   /* 1024 × 768 */
  overflow: hidden;
}
.pd-main img{ width:100%; height:100%; object-fit: contain; padding: 8px;}
.pd-thumbs{
  display: grid;
  grid-template-columns: repeat(6, 1fr);   /* 4 → 6 cols (smaller tiles) */
  gap: 6px; margin-top: 10px;
  max-width: 480px;                        /* don't stretch full width */
}
.pd-thumbs button{
  aspect-ratio: 4 / 3;                     /* match main image proportion */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
}
.pd-thumbs button.active{ border-color: var(--red); box-shadow: 0 0 0 2px rgba(0,136,204,.15);}
.pd-thumbs img{ width:100%; height:100%; object-fit: contain;}

@media (max-width: 900px){
  .product-detail{ grid-template-columns: 1fr; gap: 24px;}
  .pd-gallery{ position: static;}
}

/* ============ SHOP FILTERS MOBILE DRAWER ============ */
@media (max-width: 900px){
  .filters{
    display: none;
    position: fixed; inset: 0;
    z-index: 100;
    background: #fff;
    border-radius: 0;
    padding: 0;
    /* Hard-cap height for older browsers + dvh for modern ones (collapsing toolbars). */
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;          /* don't bleed scroll to body */
    -webkit-overflow-scrolling: touch;     /* iOS momentum */
  }
  .filters.open{
    display: flex;
    flex-direction: column;
  }
  /* Lock body scroll while the drawer is open. */
  body:has(.filters.open){ overflow: hidden; }

  .filters-mobile-head{
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    position: sticky; top: 0;
    z-index: 2;
    flex-shrink: 0;
  }
  .filters-mobile-head button{
    background: none; border: none; cursor: pointer; padding: 4px;
  }
  /* Scrollable region grows to fill, contains the option lists */
  .filters > .group,
  .filters > form.group,
  .filters > a.btn,
  .filters > .btn{
    margin-left: 20px;
    margin-right: 20px;
  }
  .filters > .group:first-of-type{ margin-top: 16px;}
  /* Extra room above sticky Apply button + iOS safe-area */
  .filters > :last-child{ margin-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}

/* Hidden cart badge */
#cart-count[hidden]{ display: none;}

/* ============ CART DRAWER ============ */
#cart-drawer{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  display: none;
  z-index: 200;
}
#cart-drawer.open{ display: block;}
.cart-drawer{
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100vw;
  background: var(--bg);
  display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,.2);
}
.cart-drawer .head{
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px;
  background: var(--ink);
  color: #fff;
}
.cart-drawer .head button{ background: none; border: none; color: #fff; cursor: pointer; padding: 4px;}
.cart-drawer .body{ flex: 1; overflow-y: auto; padding: 12px;}
.cart-drawer .foot{ padding: 16px 18px; border-top: 1px solid var(--line); background: #fff;
  display: flex; flex-direction: column; gap: 8px;}
.cart-drawer .foot .btn-lg{ width: 100%; justify-content: center;}
.cart-drawer .foot .btn-sm{ width: 100%; justify-content: center;}
.cart-drawer .totals{ font-size: 14px;}
.cart-drawer .totals .row{ display: flex; justify-content: space-between; padding: 4px 0;}
.cart-drawer .totals .row.muted{ color: var(--muted);}

.cart-empty{ padding: 60px 20px; text-align: center; color: var(--muted);}
.cart-empty p{ margin: 14px 0 18px;}

.cart-items{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px;}
.cart-item{
  display: grid; grid-template-columns: 80px 1fr; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 10px;
}
.cart-item .thumb{ width: 80px; height: 80px; display: block;}
.cart-item .thumb img{ width: 100%; height: 100%; object-fit: contain;}
.cart-item .info{ min-width: 0;}
.cart-item .ttl{ font-weight: 600; font-size: 13px; line-height: 1.3;}
.cart-item .ttl a{ color: inherit; text-decoration: none;}
.cart-item .meta-row{ font-size: 11px; color: var(--ink-3); margin: 2px 0 6px;}
.cart-item .qty-row{ display: flex; align-items: center; justify-content: space-between; margin-top: 4px;}
.cart-item .line-total{ font-weight: 700; font-size: 14px; margin-top: 4px; color: var(--red);}
.cart-item .del{ background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px;}
.cart-item .del:hover{ color: var(--red);}

.qty{ display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;}
.qty button{ width: 28px; height: 28px; background: #fff; border: none; cursor: pointer; font-size: 14px;}
.qty button:hover{ background: var(--bg);}
.qty button:disabled{ opacity: .4; cursor: not-allowed;}
.qty span{ min-width: 32px; text-align: center; font-weight: 600; font-size: 13px;}

@media (max-width: 600px){
  .cart-drawer{ width: 100vw;}
}

/* ============ CART PAGE ============ */
.cart-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.cart-main{ background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;}
.cart-table{ width: 100%; border-collapse: collapse;}
.cart-table th{ text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3);}
.cart-table td{ padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle;}
.cart-table tr:last-child td{ border-bottom: none;}
.cart-table .thumb-cell{ width: 80px;}
.cart-table .thumb-cell img{ width: 64px; height: 64px; object-fit: contain; background: var(--bg); border-radius: 4px;}
.cart-table .ttl a{ color: inherit; text-decoration: none; font-weight: 600;}
.cart-table .meta-row{ font-size: 11px; color: var(--ink-3); margin-top: 2px;}
.cart-table .partno{ font-size: 11px; color: var(--ink-3); margin-top: 4px;}

.cart-summary{ background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; position: sticky; top: 90px;}
.cart-summary .sum-row{ display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px;}
.cart-summary .sum-row.muted{ color: var(--muted);}
.cart-summary .sum-row.total{ font-size: 18px; padding-top: 12px;}
.cart-summary hr{ border: 0; border-top: 1px solid var(--line); margin: 8px 0;}
.cart-summary .trust-row > div{ display: flex; gap: 6px; align-items: center; padding: 2px 0;}

@media (max-width: 900px){
  .cart-layout{ grid-template-columns: 1fr;}
  .cart-summary{ position: static;}
  .cart-table{ display: block; overflow-x: auto;}
}

/* ============ AUTH FORMS ============ */
.auth-card{ background:#fff; border:1px solid var(--line); border-radius:8px; padding:28px;}
.auth-form{ display:flex; flex-direction:column; gap:14px;}
.auth-form label{ display:flex; flex-direction:column; gap:6px;}
.auth-form label span{ font-size:13px; font-weight:600; color:var(--ink-2);}
.auth-form input{
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 14px; background: #fff;
}
.auth-form input:focus{ outline:none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(0,136,204,.12);}
.auth-foot{ margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-3);}
.auth-foot a{ color: var(--red); font-weight: 600; margin-left: 6px;}

.flash{ padding: 12px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 16px;}
.flash-error{ background: #fde7e8; color: #8a1015; border:1px solid #f5b7b9;}
.flash-success{ background: #e6f4ea; color: #15602c; border:1px solid #b4dec1;}

@media (max-width: 600px){
  .account-layout{ grid-template-columns: 1fr !important;}
}

/* ============ CHECKOUT ============ */
.checkout-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.checkout-main, .checkout-summary{
  background:#fff; border:1px solid var(--line); border-radius:8px; padding:24px;
}
.checkout-summary{ position: sticky; top: 90px;}
.checkout-summary .sum-row{ display:flex; justify-content:space-between; padding:6px 0; font-size:14px;}
.checkout-summary .sum-row.muted{ color: var(--muted);}
.checkout-summary .sum-row.total{ font-size:18px; padding-top:12px;}
.checkout-summary hr{ border:0; border-top:1px solid var(--line); margin:8px 0;}

.address-list{ display:grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap:10px; margin-bottom:18px;}
.address-card{ display:flex; gap:10px; padding:14px; border:1px solid var(--line); border-radius:6px; background:var(--bg); cursor:pointer; font-size:13px; line-height:1.5;}
.address-card:has(input:checked){ border-color: var(--red); background:#fff; box-shadow: 0 0 0 2px rgba(0,136,204,.12);}
.address-card input[type=radio]{ margin-top:3px;}
.address-card.address-new{ align-items:center; justify-content:center; color:var(--ink-3);}

.address-form{ border:1px solid var(--line); border-radius:6px; padding:18px; margin:0; display:flex; flex-direction:column; gap:14px;}
.address-form legend{ padding:0 6px; font-size:13px; font-weight:600; color:var(--ink-2);}
.address-form label{ display:flex; flex-direction:column; gap:6px;}
.address-form label span{ font-size:13px; font-weight:600; color:var(--ink-2);}
.address-form input, .address-form textarea{
  padding:10px 12px; border:1px solid var(--line); border-radius:6px; font-size:14px; background:#fff; font-family:inherit;
}
.address-form input:focus, .address-form textarea:focus{ outline:none; border-color:var(--red); box-shadow:0 0 0 3px rgba(0,136,204,.12);}
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:14px;}

.checkout-items{ list-style:none; padding:0; margin:14px 0 0; border-top:1px solid var(--line);}
.checkout-items li{
  display:grid; grid-template-columns: 56px 1fr auto auto; gap:12px;
  padding:10px 0; border-bottom:1px solid var(--line); align-items:center;
}
.checkout-items img{ width:56px; height:56px; object-fit:contain; background:var(--bg); border-radius:4px;}
.checkout-items .ttl{ font-weight:600; font-size:13px;}
.checkout-items .meta-row{ font-size:11px; color:var(--ink-3); margin-top:2px;}
.checkout-items .qty-cell{ color:var(--ink-3); font-size:13px;}
.checkout-items .price-cell{ font-weight:700;}

#iyzipay-checkout-form.responsive{ background:#fff; border:1px solid var(--line); border-radius:8px; min-height:480px; padding:8px;}

@media (max-width: 900px){
  .checkout-layout{ grid-template-columns: 1fr;}
  .checkout-summary{ position:static;}
  .grid-2{ grid-template-columns: 1fr;}
}

/* ============ PAYMENT METHODS ============ */
.pay-methods{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px;}
.pay-method{
  display: flex; gap: 12px; padding: 16px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); cursor: pointer;
  align-items: flex-start;
}
.pay-method:has(input:checked){ border-color: var(--red); background:#fff; box-shadow: 0 0 0 2px rgba(0,136,204,.12);}
.pay-method input[type=radio]{ margin-top: 4px;}
.pay-method strong{ display:flex; align-items:center; gap:8px; font-size:14px;}
.pay-method .muted{ display:block; font-size:12px; color:var(--ink-3); margin-top:4px;}

@media (max-width: 600px){
  .pay-methods{ grid-template-columns: 1fr;}
}

/* ============ HAVALE PAGE ============ */
.havale-banner{
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 18px 22px; margin-bottom: 20px;
}

.havale-layout{
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start;
}

.bank-list{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;}
.bank-card{
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 18px;
}
.bank-head{ display:flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line);}
.bank-head strong{ font-size: 15px;}
.bank-head .muted{ color: var(--ink-3); font-size: 12px;}
.bank-card dl{ display:grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; margin: 0;}
.bank-card dt{ color: var(--ink-3); font-weight: 600;}
.bank-card dd{ margin: 0;}
.bank-card .mono{ font-family: "JetBrains Mono", monospace; word-break: break-all;}
.bank-card .bank-note{
  margin-top: 12px; padding: 8px 10px;
  background: #fff8e1; border-left: 3px solid var(--amber);
  font-size: 12px; border-radius: 4px;
}

.havale-form{ margin-top: 12px;}
.havale-form select, .havale-form textarea{
  padding:10px 12px; border:1px solid var(--line); border-radius:6px;
  font-size:14px; background:#fff; font-family:inherit; width: 100%;
}
.havale-form select:focus, .havale-form textarea:focus{
  outline:none; border-color:var(--red); box-shadow:0 0 0 3px rgba(0,136,204,.12);
}

.havale-summary{
  background:#fff; border:1px solid var(--line); border-radius:8px; padding:18px;
  position: sticky; top: 90px;
}

@media (max-width: 900px){
  .havale-layout{ grid-template-columns: 1fr;}
  .havale-summary{ position: static;}
  .havale-banner{ flex-direction: column; gap: 10px; text-align: left;}
}

/* ============ ADMIN PANEL ============ */
body.adm{
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  margin: 0;
}

.adm-layout{
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar — grows with the page; no internal scroll. Grid stretches
   it to the full content height so the dark column reaches the footer
   even when the nav is shorter than the main content. */
.adm-sidebar{
  background: var(--ink);
  color: #d8cfbb;
  display: flex; flex-direction: column;
  min-height: 100vh;
}
.adm-brand{ padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,.08);}
.adm-brand a{ display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none;}
.adm-brand .logo-mark{
  width: 38px; height: 38px; border-radius: 6px;
  background: var(--red); color: #fff;
  display:flex; align-items:center; justify-content:center;
  font-weight: 800; font-size: 14px; letter-spacing: .04em;
}
.adm-brand .logo-wm{ display: flex; flex-direction: column; line-height: 1.1;}
.adm-brand .logo-wm .top{ font-weight: 800; font-size: 13px; letter-spacing: .08em;}
.adm-brand .logo-wm .sub{ font-size: 10px; color: #b59963; letter-spacing: .08em; margin-top: 2px;}

.adm-nav{
  flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px;
}
.adm-nav a{
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 6px;
  color: #d8cfbb; text-decoration: none; font-size: 14px; font-weight: 500;
}
.adm-nav a:hover{ background: rgba(255,255,255,.04); color: #fff;}
.adm-nav a.active{
  background: var(--red); color: #fff;
}

.adm-user{
  padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 8px;
}
.adm-user .who strong{ display: block; color: #fff; font-size: 13px;}
.adm-user .who span{ color: #999084; font-size: 11px;}
.adm-user .logout-btn, .adm-user .site-btn{
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 6px 10px; border-radius: 4px;
  text-decoration: none;
}
.adm-user .logout-btn{ background: rgba(0,136,204,.18); color: #7ec9ff;}
.adm-user .logout-btn:hover{ background: rgba(0,136,204,.3);}
.adm-user .site-btn{ background: rgba(245,158,11,.15); color: var(--amber);}

/* Main area */
.adm-main{ padding: 26px 32px; min-width: 0;}
.adm-topbar{ display:flex; justify-content: space-between; align-items: center; margin-bottom: 22px;}
.adm-title{ font-family: "Bitter", Georgia, serif; font-size: 26px; font-weight: 700; margin: 0;}

.adm-burger{
  display: none;
  position: fixed; top: 14px; left: 14px; z-index: 102;
  width: 42px; height: 42px;
  background: var(--ink); color: #fff; border: none; border-radius: 6px;
  cursor: pointer;
}

/* Stats */
.adm-stats{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.adm-stat{
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.adm-stat:hover{ transform: translateY(-2px); box-shadow: var(--shadow);}
.adm-stat .ico{
  width: 44px; height: 44px; border-radius: 6px;
  background: var(--bg); color: var(--ink);
  display:flex; align-items:center; justify-content:center;
}
.adm-stat .v{ font-size: 24px; font-weight: 800; line-height: 1;}
.adm-stat .lbl{ font-size: 12px; color: var(--ink-3); margin-top: 4px;}

/* Cards */
.adm-card{
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.adm-card-head{
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 12px;
}
.adm-card-head h2{ margin: 0; font-size: 16px;}

/* Table */
.adm-table-wrap{ overflow-x: auto;}
.adm-table{ width: 100%; border-collapse: collapse; font-size: 13px;}
.adm-table th{
  text-align: left; padding: 10px 16px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: .04em; font-size: 11px; color: var(--ink-3);
  font-weight: 700;
}
.adm-table td{ padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle;}
.adm-table tr:last-child td{ border-bottom: none;}
.adm-table tr:hover td{ background: rgba(0,0,0,.015);}
.adm-table .muted{ color: var(--ink-3); font-size: 11px;}

.adm-pagination{
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 14px; border-top: 1px solid var(--line);
}

/* Detail */
.adm-detail-grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  padding: 20px;
}
.adm-detail-grid h3{ font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin: 0 0 10px;}
.adm-dl{ display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-size: 13px; margin: 0;}
.adm-dl dt{ color: var(--ink-3);}
.adm-dl dd{ margin: 0;}

/* Status badges */
.badge-ok, .badge-warn, .badge-muted{
  display: inline-block; padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.badge-ok{ background: #e6f4ea; color: #15602c;}
.badge-warn{ background: #fff4e0; color: #8a5a08;}
.badge-muted{ background: var(--bg); color: var(--ink-3);}

/* Login */
.adm-login{
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, rgba(20,17,13,.92), rgba(20,17,13,.95)),
    repeating-linear-gradient(45deg, #2a241d 0 14px, #1c1813 14px 28px);
  padding: 20px;
}
.adm-login-card{
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  max-width: 380px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.adm-login .adm-brand a{ color: var(--ink);}
.adm-login .logo-wm .top{ color: var(--ink);}

/* Responsive */
@media (max-width: 900px){
  .adm-layout{ grid-template-columns: 1fr;}
  .adm-sidebar{
    position: fixed; top: 0; left: 0; bottom: 0; width: 260px;
    transform: translateX(-100%); transition: transform .25s; z-index: 101;
  }
  body.adm-nav-open .adm-sidebar{ transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,.3);}
  body.adm-nav-open::before{
    content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100;
  }
  .adm-burger{ display: flex; align-items: center; justify-content: center;}
  .adm-main{ padding: 70px 18px 24px;}
  .adm-title{ font-size: 22px;}
  .adm-detail-grid{ grid-template-columns: 1fr;}
}

/* ============ ADMIN — sidebar sections + nav ============ */
.adm-nav-sec{
  margin: 16px 12px 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: #8c8270; text-transform: uppercase;
}

/* ============ ADMIN — product/news/page form layout ============ */
.prod-form-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
}
.prod-form-grid > .img-col{
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding: 22px 18px;
}
.address-form .grid-3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px;}
.address-form label.check{
  display:flex; flex-direction:row; gap:10px; align-items:center;
}
.address-form label.check span{ font-weight: 500;}

/* Image slot */
.img-slot{
  margin-bottom: 16px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
}
.img-slot .preview{
  aspect-ratio: 1/1;
  background: var(--bg); border-radius: 4px;
  display:flex; align-items:center; justify-content:center;
  overflow: hidden; margin-bottom: 8px;
}
.img-slot .preview img{ width: 100%; height: 100%; object-fit: contain;}
.img-slot .preview .empty{
  color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
}
.img-slot label.muted{ font-size: 11px; color: var(--ink-3); margin-top: 6px;}
.img-slot input[type=file]{ width: 100%; font-size: 12px; padding: 4px 0;}
.img-slot input[type=text]{ width: 100%; padding: 6px 8px; font-size: 12px; border: 1px solid var(--line); border-radius: 4px;}
.img-slot .del-check{
  margin-top: 8px; padding: 4px 8px;
  background: #fde7e8; color: #8a1015; border-radius: 4px;
  display:flex; align-items:center; gap: 6px;
  font-size: 12px;
}

@media (max-width: 900px){
  .prod-form-grid{ grid-template-columns: 1fr;}
  .prod-form-grid > .img-col{ border-left: none; border-top: 1px solid var(--line);}
  .address-form .grid-3{ grid-template-columns: 1fr;}
}

/* ============ ADMIN — multi-image grid (product_images) ============ */
.img-card{
  background:#fff; border:1px solid var(--line); border-radius:6px;
  padding:8px; position:relative;
  display:flex; flex-direction:column; gap:6px;
}
.img-card .preview{
  background: var(--bg); border-radius:4px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.img-card .preview img{ width:100%; height:100%; object-fit:contain;}
.img-card-meta{
  display:flex; justify-content:space-between; align-items:center;
  font-size:11px;
}
.img-card-meta .badge{
  display:inline-block; padding:2px 6px; border-radius:3px;
  font-weight:700; font-size:9px; letter-spacing:.05em;
}
.img-card-meta .badge.local{ background:var(--bg); color:var(--ink-3);}
.img-card-meta .badge.r2{ background:#ffe0e0; color:#8a1015;}
.img-card-meta .badge.url{ background:#e0f0ff; color:#0a4a8a;}
.img-card-meta .del-mini{
  display:flex; align-items:center; gap:4px;
  color:var(--ink-3); cursor:pointer;
}
.img-card-meta .del-mini input{ margin:0;}
.img-card:has(input[type=checkbox]:checked){ opacity:.4; outline:2px solid var(--red);}

/* ============ ACCOUNT (frontend) ============ */
.account-layout{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.account-nav{
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 90px;
}
.account-nav a{
  display: block; padding: 10px 14px; border-radius: 6px;
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
}
.account-nav a:hover{ background: var(--bg); color: var(--ink);}
.account-nav a.active{ background: var(--red); color: #fff; font-weight: 600;}
.account-nav a.logout{
  margin-top: 8px; padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--red);
}
.account-nav a.logout:hover{ background: #fde7e8;}

.account-main{ min-width: 0;}
.account-main h2{ font-size: 18px; margin: 0 0 16px;}

.account-card{
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden;
}

.account-form{
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px; max-width: 560px;
}
.account-form label{ display:flex; flex-direction:column; gap:6px;}
.account-form label > span{ font-size:13px; font-weight:600; color:var(--ink-2);}
.account-form input, .account-form select, .account-form textarea{
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 14px; background: #fff; font-family: inherit;
}
.account-form input:focus, .account-form select:focus, .account-form textarea:focus{
  outline:none; border-color:var(--red); box-shadow: 0 0 0 3px rgba(0,136,204,.12);
}
.account-form input:disabled{ background: var(--bg); color: var(--ink-3); cursor: not-allowed;}
.account-form .grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.account-form small{ font-size: 11px; color: var(--ink-3); margin-top: 4px;}

.account-meta{
  display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px;
  font-size: 14px; margin: 0;
}
.account-meta dt{ color: var(--ink-3);}
.account-meta dd{ margin: 0;}

.orders-table{ width: 100%; border-collapse: collapse; font-size: 14px;}
.orders-table th{
  text-align: left; padding: 12px 16px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: .04em; font-size: 11px; color: var(--ink-3);
  font-weight: 700;
}
.orders-table td{ padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle;}
.orders-table tr:last-child td{ border-bottom: none;}
.orders-table tfoot td{ border-top: 2px solid var(--line); background: var(--bg);}

/* Address tiles */
.address-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.address-tile{
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
}
.address-tile .tile-head{
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.address-tile .tile-head strong{ font-size: 15px;}
.address-tile .tile-head .muted{ color: var(--ink-3); font-size: 12px;}
.address-tile .tile-body{ flex: 1; font-size: 14px; line-height: 1.5;}
.address-tile .tile-body p{ margin: 0 0 6px;}
.address-tile .tile-body .muted{ color: var(--ink-3);}
.address-tile .tile-foot{
  display: flex; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line);
}

@media (max-width: 800px){
  .account-layout{ grid-template-columns: 1fr;}
  .account-nav{
    position: static; flex-direction: row; flex-wrap: wrap; overflow-x: auto;
  }
  .account-nav a{ padding: 8px 12px; font-size: 13px;}
  .account-nav a.logout{ margin-top: 0; border-top: none; margin-left: auto;}
  .account-form .grid-2{ grid-template-columns: 1fr;}
  .orders-table{ display: block; overflow-x: auto;}
}

/* ============ BRAND LOGOS (uploads/firma/) ============ */
.brand-card .brand-logo{
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Brands page: a bit more breathing room */
.brand-grid .brand-card:has(.brand-logo-lg){ padding: 22px 14px;}

/* ============ ADMIN DASHBOARD — yan yana iki tablo ============ */
.dash-cols{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 0;
}
.dash-cols .adm-card{ min-width: 0;}
.dash-cols .adm-table{ font-size: 12.5px;}
.dash-cols .adm-table th,
.dash-cols .adm-table td{ padding: 9px 12px;}

.adm-pagi-bar{
  display: flex; justify-content: center; align-items: center; gap: 12px;
  padding: 12px; border-top: 1px solid var(--line);
}
.adm-pagi-bar button:disabled{ opacity: .4; cursor: not-allowed;}

@media (max-width: 1100px){
  .dash-cols{ grid-template-columns: 1fr;}
}

/* ============ RICH TEXT (DB content from CKEditor/TinyMCE) ============ */
.rich-text{
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 14.5px;
}
.rich-text p{ margin: 0 0 12px;}
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4{
  font-family: "Bitter", Georgia, serif;
  margin: 18px 0 10px;
  line-height: 1.25;
  color: var(--ink);
}
.rich-text h2{ font-size: 22px;}
.rich-text h3{ font-size: 18px;}
.rich-text h4{ font-size: 16px;}
.rich-text ul, .rich-text ol{ margin: 0 0 12px 22px; padding: 0;}
.rich-text li{ margin: 4px 0;}
.rich-text a{ color: var(--red); text-decoration: underline;}
.rich-text a:hover{ color: var(--ink);}
.rich-text strong{ color: var(--ink);}
.rich-text img{ max-width: 100%; height: auto; border-radius: 6px;}
.rich-text table{ width: 100%; border-collapse: collapse; margin: 12px 0;}
.rich-text th, .rich-text td{ padding: 8px 10px; border: 1px solid var(--line); text-align: left;}
.rich-text blockquote{
  border-left: 3px solid var(--amber);
  padding: 4px 14px; color: var(--ink-3);
  margin: 14px 0; background: var(--bg);
}

/* ============ STATIC PAGE (Hakkımızda / sayfa) ============ */
.static-page-card{
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
}
.static-page-hero{
  width: 100%; max-height: 360px; object-fit: contain; display: block;
  background: var(--bg); cursor: zoom-in;
  border-bottom: 1px solid var(--line);
}
.static-page-body{
  padding: 32px 36px;
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 15px;
}
/* inherit rich-text styling for raw HTML content */
.static-page-body p{ margin: 0 0 12px;}
.static-page-body h2, .static-page-body h3{ font-family: "Bitter", Georgia, serif; color: var(--ink); margin: 18px 0 10px; line-height: 1.25;}
.static-page-body h2{ font-size: 22px;}
.static-page-body h3{ font-size: 18px;}
.static-page-body ul, .static-page-body ol{ margin: 0 0 12px 22px;}
.static-page-body a{ color: var(--red); text-decoration: underline;}
.static-page-body strong{ color: var(--ink);}
.static-page-body img{ max-width: 100%; height: auto; border-radius: 6px;}
.static-page-gallery{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  padding: 0 36px 32px;
}
.static-page-gallery img{
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px;
  cursor: zoom-in; transition: opacity .12s;
}
.static-page-gallery img:hover{ opacity: .9; }

/* Image lightbox (news / static pages / campaigns) */
.lightbox{
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .15s;
}
.lightbox.open{ opacity: 1; visibility: visible; }
.lightbox img{
  max-width: 92vw; max-height: 90vh; object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,.5); border-radius: 4px;
}
.lightbox button{
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: none;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover{ background: rgba(255,255,255,.28); }
.lightbox .lb-close{ top: 18px; right: 18px; }
.lightbox .lb-prev{ left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next{ right: 18px; top: 50%; transform: translateY(-50%); }
.static-page-meta{
  padding: 14px 36px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3);
}

@media (max-width: 700px){
  .static-page-body, .static-page-meta{ padding-left: 18px; padding-right: 18px;}
  .static-page-gallery{ padding-left: 18px; padding-right: 18px;}
}

/* ============ NEWS LIST ============ */
.news-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.news-card{
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.news-card:hover{ transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow);}
.news-card-thumb{
  aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden;
}
.news-card-thumb img{ width: 100%; height: 100%; object-fit: cover;}
.news-card-thumb-empty{
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); opacity: .4;
}
.news-card-body{ padding: 16px 18px;}
.news-card-body h3{ font-size: 16px; margin: 6px 0 4px; line-height: 1.3;}
.news-card-body .muted{ color: var(--ink-3); font-size: 13px; margin: 0;}
.news-card-body .news-meta{ font-size: 12px; color: var(--ink-3); margin-top: 10px;}
.news-tag{
  display: inline-block; padding: 2px 8px;
  background: var(--amber); color: var(--ink);
  border-radius: 3px; font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}

/* ============ PRODUCT DETAIL — KAMPANYA BANNER ============ */
.pd-campaign-banner{
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin: 0 0 18px;
  background: linear-gradient(135deg, #fff8e1 0%, #fff4cf 100%);
  border: 1px solid var(--amber);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  transition: transform .12s, box-shadow .12s;
}
.pd-campaign-banner:hover{
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.pd-campaign-banner > span:nth-child(2){ flex: 1; min-width: 0;}
.pd-campaign-banner .muted{ color: var(--ink-3); font-weight: 400;}

/* WhatsApp button label hides on very narrow screens (only icon shown). */
@media (max-width: 480px){
  .hide-narrow{ display: none !important; }
  .pd-wa-btn{ padding: 0 14px !important; }
}
.pd-wa-btn:hover{ background:#1ebe5b !important; }

/* ============ PRODUCT DETAIL — actions row (qty + add + wa) ============ */
.pd-actions{
  display: grid;
  grid-template-columns: auto 1fr auto;   /* qty | add-to-cart | wa */
  gap: 10px;
  align-items: stretch;
  margin-bottom: 18px;
}
.pd-actions .qty{
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden;
}
.pd-actions .qty button{
  width: 40px; height: 48px;
  background: #fff; border: none; cursor: pointer;
  font-size: 16px;
}
.pd-actions .qty input{
  width: 56px; height: 48px;
  border: none; text-align: center; font-weight: 600;
}
.pd-add-btn{
  height: 48px; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.pd-wa-btn{
  height: 48px; padding: 0 18px;
  background: #25D366; color: #fff;
  font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 6px; text-decoration: none;
  transition: background .12s;
}
.pd-wa-btn:hover{ background: #1ebe5b; color: #fff;}
.pd-wa-full{ width: 100%; margin-bottom: 18px;}

/* Mobile: WhatsApp button on its own row below add-to-cart. */
@media (max-width: 720px){
  .pd-actions{
    grid-template-columns: auto 1fr;     /* qty + add */
    grid-template-areas:
      "qty add"
      "wa  wa";
  }
  .pd-actions .qty{ grid-area: qty;}
  .pd-add-btn{ grid-area: add;}
  .pd-actions .pd-wa-btn{ grid-area: wa;}
}

/* ============ AUTH — consent note + links ============ */
.consent-note{
  margin: 14px 0 4px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.55;
  text-align: center;
}
.consent-links{
  text-align: center;
  font-size: 12px;
  margin-bottom: 4px;
}
.consent-links a{
  color: var(--ink-2);
  text-decoration: underline;
}
.consent-links a:hover{ color: var(--red); }

/* ============ ADMIN — Generic modal (SMS, future dialogs) ============ */
.adm-modal{
  position: fixed; inset: 0;
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.adm-modal[hidden]{ display: none !important; }
.adm-modal-back{
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
}
.adm-modal-card{
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  width: 100%; max-width: 560px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.adm-modal-head{
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.adm-modal-head h3{
  margin: 0; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.adm-modal-x{
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--ink-3);
  display: flex; align-items: center;
}
.adm-modal-x:hover{ color: var(--ink); }
.adm-modal-body{ padding: 20px; overflow-y: auto; flex: 1;}
.adm-modal-foot{
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 20px; border-top: 1px solid var(--line);
}
.adm-modal textarea:focus{
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(0,136,204,.12);
}

@media (max-width: 600px){
  .adm-modal{ padding: 0; align-items: flex-end; }
  .adm-modal-card{ max-width: none; max-height: 95vh; border-radius: 12px 12px 0 0; }
}

/* ============ NATIVE <select> — site-wide styling ============ */
/* Targets all selects inside our common form wrappers. Native dropdown
   panel is browser-controlled (good a11y), but the closed state is themed
   to match inputs: same border, padding, focus ring, custom chevron. */
.address-form select,
.account-form select,
.auth-form select,
.adm-table select,
.adm-card select,
.checkout-summary select,
.cart-summary select,
.shop-toolbar select,
.shop-mobile-filter select,
.havale-form select,
.adm-modal select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 36px 10px 14px;     /* room for chevron */
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4137' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.address-form select:focus,
.account-form select:focus,
.auth-form select:focus,
.adm-card select:focus,
.havale-form select:focus,
.adm-modal select:focus,
.checkout-summary select:focus,
.shop-toolbar select:focus{
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(0,136,204,.12);
}
.address-form select:disabled,
.account-form select:disabled,
.auth-form select:disabled,
.adm-card select:disabled{
  background-color: var(--bg);
  color: var(--ink-3);
  cursor: not-allowed;
  opacity: .7;
}
