:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --alt: #F3F6F9;
  --ink: #121212;
  --muted: #5a6570;
  --blue: #5FA8D3;
  --blue-dark: #2E6E96;
  --blue-soft: #EAF4FA;
  --blue-hover: #4A8DB8;
  --border: #E4E9EE;
  --danger: #B4362E;
  --radius: 12px;
  --shadow: 0 2px 6px rgba(18, 18, 18, .05), 0 10px 28px rgba(46, 110, 150, .10);
  --shadow-sm: 0 1px 3px rgba(18, 18, 18, .07);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; width: 100%; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 600; line-height: 1.3; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--muted); }

/* announce + header */
.announce {
  background: var(--blue); color: #fff;
  text-align: center; font-size: .78rem; padding: 7px 12px; letter-spacing: .01em; font-weight: 500;
}
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 12px; padding-block: 6px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { width: 150px; height: auto; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: .9rem; color: var(--ink); transition: color .2s; }
.main-nav a:hover { color: var(--blue-dark); }
.cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--blue-dark); text-decoration: none;
  transition: background .2s; flex: 0 0 auto;
}
.cart-link:hover { background: var(--blue-soft); }
.cart-count {
  position: absolute; top: 1px; right: -2px;
  background: var(--blue-dark); color: #fff; font-size: .68rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .93rem; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  min-height: 46px; cursor: pointer;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-gold { background: var(--blue); color: #fff; }
.btn-gold:hover { background: var(--blue-hover); }
.btn-ghost { background: transparent; color: var(--blue-dark); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-sm { padding: 9px 14px; font-size: .84rem; min-height: 42px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* hero */
.hero { padding: 32px 0 28px; background: linear-gradient(180deg, var(--blue-soft), #fff 70%); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-dark); margin-bottom: 10px;
}
.hero h1 { font-size: clamp(1.65rem, 5.5vw, 2.7rem); color: var(--ink); margin-bottom: 14px; font-weight: 700; }
.hero p { color: var(--muted); font-size: 1rem; max-width: 52ch; margin-bottom: 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; }
.hero-trust li { font-size: .82rem; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.hero-trust li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: 0 0 auto; }
.hero-media img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* trustbar */
.trustbar { background: var(--surface); border-block: 1px solid var(--border); padding: 16px 0; }
.trustbar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
.trustbar-grid div { display: flex; flex-direction: column; }
.trustbar-grid strong { font-size: .88rem; color: var(--blue-dark); }
.trustbar-grid span { font-size: .76rem; color: var(--muted); }

/* sections */
.section { padding: 44px 0; }
.section-alt { background: var(--alt); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.section-head h2 { font-size: clamp(1.4rem, 4vw, 2rem); color: var(--ink); margin-bottom: 8px; font-weight: 700; }

/* product grid & cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { display: block; aspect-ratio: 1; background: #fff; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: .92rem; font-weight: 600; flex: 1; line-height: 1.4; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--blue-dark); }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 700; color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.price-row.big .price { font-size: 1.55rem; color: var(--blue-dark); }
.compare { color: var(--muted); font-size: .85rem; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; }

/* steps */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 700; margin-bottom: 10px;
}
.step h3 { color: var(--ink); margin-bottom: 4px; font-size: 1.02rem; }
.step p { color: var(--muted); font-size: .89rem; }

/* quotes */
.quotes-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.quotes-grid blockquote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; font-size: .92rem; color: var(--ink); box-shadow: var(--shadow-sm);
}
.quotes-grid cite { display: block; margin-top: 10px; font-style: normal; font-weight: 600; font-size: .8rem; color: var(--blue-dark); }

/* faq */
details { background: #fff; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
summary { padding: 14px 44px 14px 16px; font-weight: 600; font-size: .93rem; cursor: pointer; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--blue-dark); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 16px 14px; color: var(--muted); font-size: .89rem; }

/* product page */
.product-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.product-layout > *, .checkout-layout > *, .hero-grid > *, .cart-line > * { min-width: 0; }
.gallery, .gallery-thumbs, .gallery-main { min-width: 0; max-width: 100%; }
.gallery-main { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.thumb { flex: 0 0 60px; width: 60px; height: 60px; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--blue); }
.product-info h1 { font-size: clamp(1.25rem, 3.5vw, 1.8rem); color: var(--ink); margin-bottom: 10px; font-weight: 700; }
.stock-note { color: var(--blue-dark); font-weight: 600; font-size: .85rem; margin: 6px 0 16px; }
.buy-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 44px; border: 0; background: none; font-size: 1.15rem; color: var(--blue-dark); min-height: 46px; }
.qty button:hover { background: var(--blue-soft); }
.qty input { width: 44px; text-align: center; border: 0; -moz-appearance: textfield; font-weight: 600; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.buy-row .btn { flex: 1; min-width: 160px; }
.mini-trust { list-style: none; margin: 18px 0 0; border-top: 1px solid var(--border); padding-top: 14px; }
.mini-trust li { font-size: .86rem; color: var(--muted); padding: 3px 0 3px 24px; position: relative; }
.mini-trust li::before { content: '✓'; position: absolute; left: 0; color: var(--blue-dark); font-weight: 700; }
.desc { color: var(--ink); font-size: .93rem; max-width: 840px; margin: 32px auto 0; overflow-x: hidden; }
.desc p { margin-bottom: 12px; }
.desc ul { margin: 0 0 12px 20px; }
.desc li { margin-bottom: 4px; }
.desc img { margin: 0 auto; border-radius: 10px; height: auto !important; }
.desc * { max-width: 100% !important; min-width: 0 !important; }
.desc [style*="width"] { width: auto !important; }
.desc table { display: block; overflow-x: auto; width: 100% !important; }
.desc iframe, .desc video { max-width: 100%; }
@media (max-width: 700px) {
  .desc [style*="grid-template-columns"] { display: block !important; }
  .desc [style*="grid-template-columns"] > * { margin-bottom: 10px; }
  .desc [style*="display: flex"], .desc [style*="display:flex"] { flex-wrap: wrap !important; }
}
.related { margin-top: 44px; }
.related h2 { font-size: 1.3rem; color: var(--ink); margin-bottom: 16px; }

/* cart */
.cart-lines { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.cart-line {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px;
}
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-line .line-title { font-weight: 600; font-size: .88rem; line-height: 1.35; }
.cart-line .line-price { color: var(--muted); font-size: .82rem; }
.cart-line .line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line-remove { background: none; border: 0; color: var(--danger); font-size: .78rem; text-decoration: underline; padding: 4px; }
.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-top: 8px; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: .93rem; }
.cart-summary .row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-size: 1.08rem; font-weight: 600; }
.cart-summary .free { color: var(--blue-dark); }
.cart-summary .btn { margin-top: 12px; }
.continue { display: block; text-align: center; margin-top: 12px; font-size: .86rem; color: var(--muted); }
.cart-empty { text-align: center; padding: 44px 0; }
.cart-empty p { margin-bottom: 16px; color: var(--muted); }

/* checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.checkout-form h1 { font-size: 1.35rem; color: var(--ink); margin-bottom: 16px; font-weight: 700; }
.checkout-form h2 { font-size: 1.05rem; color: var(--ink); margin: 20px 0 10px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; transition: border-color .2s; min-height: 46px; font-size: 16px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field input.invalid, .field textarea.invalid { border-color: var(--danger); }
.pay-options { display: flex; flex-direction: column; gap: 8px; }
.pay-option {
  display: flex; gap: 10px; align-items: flex-start; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.pay-option:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.pay-option input { margin-top: 4px; accent-color: var(--blue-dark); width: 18px; height: 18px; flex: 0 0 auto; }
.pay-option strong { display: block; font-size: .92rem; }
.pay-option span { font-size: .8rem; color: var(--muted); }
.form-error { color: var(--danger); font-weight: 600; font-size: .88rem; margin: 12px 0 0; }
.checkout-form .btn-block { margin-top: 16px; }
.legal-note { font-size: .76rem; color: var(--muted); margin-top: 10px; text-align: center; }
.checkout-summary { order: -1; }
.checkout-summary h2 { font-size: 1.05rem; color: var(--ink); margin-bottom: 10px; }
.sum-line { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.sum-line img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }

/* result pages */
.center-page { text-align: center; padding: 28px 0; }
.center-page h1 { color: var(--ink); margin-bottom: 12px; }
.center-page .btn { margin: 16px 6px 0; }
.order-no { font-size: 1rem; margin-bottom: 8px; }
.result-icon {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
}
.result-icon.ok { background: var(--blue-soft); color: var(--blue-dark); }
.result-icon.err { background: #F7E4E2; color: var(--danger); }

/* admin */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 860px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { background: var(--blue-soft); color: var(--blue-dark); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.admin-table .addr { max-width: 220px; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.s-odendi { background: #E1EDE3; color: #22572F; }
.s-kapida-odeme { background: #F3E8D6; color: #8A6220; }

/* legal */
.legal-page h1 { color: var(--ink); margin-bottom: 18px; }
.legal-page h2 { color: var(--blue-dark); font-size: 1.05rem; margin: 18px 0 8px; }
.legal-page p, .legal-page li { font-size: .91rem; color: var(--ink); margin-bottom: 8px; }
.legal-page ul { margin-left: 20px; }

/* footer */
.site-footer { background: #121212; color: #C9CDD2; margin-top: 36px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 40px 16px 20px; }
.footer-logo { color: #fff; font-weight: 600; font-size: 1.25rem; letter-spacing: .18em; margin-bottom: 10px; }
.site-footer h4 { color: #fff; font-size: .92rem; margin-bottom: 8px; }
.site-footer a { display: block; color: #C9CDD2; text-decoration: none; font-size: .86rem; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #8B939B; font-size: .83rem; }
.pay-badges { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.badge-pill { background: rgba(255,255,255,.12); border-radius: 6px; padding: 4px 10px; font-size: .74rem; font-weight: 600; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 16px; font-size: .78rem; color: #8B939B; }

/* sticky add to cart */
.sticky-atc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(18, 18, 18, .08);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-atc.show { transform: translateY(0); }
.sticky-atc img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.sticky-atc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sticky-atc-title { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc-price { font-size: .92rem; font-weight: 700; color: var(--blue-dark); }
.sticky-atc .btn { flex: 0 0 auto; }
body.has-sticky-atc .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
body.has-sticky-atc .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) {
  .sticky-atc { left: auto; right: 24px; bottom: 24px; width: 420px; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; }
  body.has-sticky-atc .wa-float { bottom: 16px; right: 460px; }
}

/* whatsapp float */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.07); box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: .88rem; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 200; box-shadow: var(--shadow);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* responsive */
@media (min-width: 700px) {
  .container { padding: 0 20px; }
  .announce { font-size: .82rem; }
  .hero { padding: 48px 0 36px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 32px; }
  .trustbar-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .quotes-grid { grid-template-columns: repeat(3, 1fr); }
  .product-layout { grid-template-columns: 1fr 1fr; gap: 32px; }
  .checkout-layout { grid-template-columns: 1.2fr .8fr; align-items: start; gap: 32px; }
  .checkout-summary { order: 0; position: sticky; top: 88px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; padding: 48px 20px 24px; }
  .section { padding: 56px 0; }
  .thumb { flex-basis: 64px; width: 64px; height: 64px; }
  .card-body { padding: 16px; }
  .card-body h3 { font-size: 1rem; }
}
@media (max-width: 559px) {
  .main-nav { display: none; }
  .logo img { width: 118px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-grid.four { grid-template-columns: repeat(2, 1fr); }
  .card-actions { flex-direction: column; gap: 6px; }
  .card-body { padding: 10px; gap: 6px; }
  .card-body h3 { font-size: .82rem; }
  .price { font-size: .95rem; }
  .btn-sm { min-height: 40px; padding: 8px 10px; font-size: .8rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .form-row.two { grid-template-columns: 1fr; gap: 0; }
  .buy-row .btn { min-width: 0; }
  .cart-line { grid-template-columns: 56px 1fr; }
  .cart-line img { width: 56px; height: 56px; }
  .cart-line .line-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px dashed var(--border); padding-top: 8px; }
  .center-page .btn { display: flex; margin: 10px 0 0; }
  .related h2 { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
