@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --forest: #24382e;
  --forest-deep: #17241d;
  --parchment: #f6f2e8;
  --parchment-dim: #ece4d2;
  --gold: #bd8a2e;
  --gold-light: #e4c789;
  --plum: #6b2d43;
  --plum-light: #8a4059;
  --ink: #23261f;
  --line: rgba(36,56,46,0.16);
  --card-bg: #fffdf9;
  --header-bg: rgba(246,242,232,.92);
  --tint: rgba(36,56,46,.08);
}

/* Karanlık (siyah-beyaz) tema */
[data-theme="dark"] {
  --forest: #8fc3a7;
  --forest-deep: #eef3ee;
  --parchment: #141513;
  --parchment-dim: #1e201d;
  --gold: #d2a54a;
  --gold-light: #b98d3c;
  --plum: #c76d8d;
  --plum-light: #d98aa6;
  --ink: #e6e3d8;
  --line: rgba(230,227,216,.16);
  --card-bg: #1c1e1b;
  --header-bg: rgba(20,21,19,.92);
  --tint: rgba(143,195,167,.12);
}
[data-theme="dark"] .btn-primary { color: #141513; }
[data-theme="dark"] .announcement { background: #0d0e0c; }
[data-theme="dark"] .pay-option:has(input:checked) { background: rgba(143,195,167,.1); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line);
  background: transparent; color: var(--forest-deep); cursor: pointer; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--forest); }
.theme-toggle .icon-moon { display: inline-flex; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline-flex; }

.brand-logo { height: 36px; width: auto; display: block; max-width: 180px; object-fit: contain; }

/* Logo tema uyarlaması: açık temada siyah, koyu temada beyaz silüet */
.logo-adapt { filter: brightness(0); }
[data-theme="dark"] .logo-adapt { filter: brightness(0) invert(1); }

/* Koyu tema için ayrı logo yüklendiyse: temaya göre doğru olanı göster */
.logo-light { display: block; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--parchment);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.serif { font-family: 'Fraunces', Georgia, serif; }

a { color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.container-cart { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: 'Manrope', sans-serif; font-weight: 700;
  border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; font-size: 15px; letter-spacing: .01em; padding: 14px 28px;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--forest); color: var(--parchment); }
.btn-primary:hover { background: var(--forest-deep); box-shadow: 0 6px 18px rgba(36,56,46,.28); }
.btn-gold { background: var(--gold); color: var(--forest-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-plum { background: var(--plum); color: #fdf6f0; padding: 12px 22px; font-size: 14px; }
.btn-plum:hover { background: var(--plum-light); }
.btn-ghost { background: transparent; color: var(--forest); padding: 10px 18px; font-size: 14px; border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--forest); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-icon { padding: 8px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-danger-outline { background: transparent; border: 1.5px solid var(--line); color: var(--plum); padding: 8px 12px; font-size: 13px; border-radius: 10px; }

/* Cards */
.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 18px; }
.card-pad { padding: 20px; }

/* Forms */
.field { margin-bottom: 14px; }
.label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--forest); opacity: .75; display: block; margin-bottom: 6px;
}
.input, .textarea, select.input {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  font-family: 'Manrope', sans-serif; font-size: 14px; background: var(--card-bg); color: var(--ink);
}
.input:focus, .textarea:focus { outline: none; border-color: var(--forest); }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.flash-msg { font-size: 13px; margin-top: 8px; }
.flash-ok { color: var(--forest); }
.flash-err { color: var(--plum); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40; background: var(--header-bg);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.site-header .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; max-width: 1120px; margin: 0 auto; }
.brand { font-size: 22px; font-weight: 600; color: var(--forest-deep); text-decoration: none; letter-spacing: .01em; background: none; border: none; }
.nav-desktop { display: none; align-items: center; gap: 4px; }
.nav-link {
  background: none; border: none; cursor: pointer; font-size: 14px; font-weight: 600;
  color: var(--forest-deep); padding: 10px 14px; border-radius: 999px; text-decoration: none;
}
.nav-link:hover { background: var(--parchment-dim); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; background: var(--forest); color: var(--parchment); text-decoration: none;
}
.cart-badge {
  position: absolute; top: -5px; right: -5px; background: var(--plum); color: #fff; font-size: 11px;
  font-weight: 800; border-radius: 50%; width: 19px; height: 19px; display: flex; align-items: center; justify-content: center;
}
.menu-toggle { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; background: transparent; border: 1.5px solid var(--line); cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 10px 20px 16px; border-top: 1px solid var(--line); background: var(--parchment); }
.mobile-nav.open { display: flex; }
@media (min-width: 760px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Announcement */
.announcement { background: #17241d; color: #f6f2e8; }
.announcement .row { max-width: 1120px; margin: 0 auto; padding: 9px 44px 9px 16px; position: relative; display: flex; justify-content: center; text-align: center; overflow: hidden; }
.announcement .marquee { overflow: hidden; width: 100%; }
.announcement .marquee-inner {
  display: inline-block; white-space: nowrap; padding-left: 100%;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  animation: marqueeScroll 16s linear infinite;
}
.announcement .marquee:hover .marquee-inner { animation-play-state: paused; }
@keyframes marqueeScroll { to { transform: translateX(-100%); } }
.announcement .announcement-static { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
@media (prefers-reduced-motion: reduce) {
  .announcement .marquee-inner { animation: none; padding-left: 0; }
}
.announcement button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; color: #f6f2e8; border: none; cursor: pointer; padding: 6px; }

/* Footer */
.site-footer { background: #2b2b28; color: #e9e5da; margin-top: auto; }
.site-footer .row { max-width: 1120px; margin: 0 auto; padding: 26px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer-brand-name { font-family: 'Fraunces', Georgia, serif; font-size: 17px; margin-bottom: 3px; }
.footer-label { font-size: 13px; opacity: .65; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-link { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); color: #e9e5da; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 700; }
.footer-copyright { text-align: center; font-size: 11px; opacity: .45; padding: 0 20px 16px; letter-spacing: .03em; }

/* Açılış duyuru panosu (popup) */
.popup-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,12,10,.6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.popup-overlay[hidden] { display: none; }
.popup-card {
  position: relative; background: var(--card-bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px; max-width: 420px; width: 100%;
  overflow: hidden; box-shadow: 0 18px 60px rgba(0,0,0,.35);
  animation: popupIn .28s ease both;
}
@keyframes popupIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.popup-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center;
}
.popup-image { width: 100%; height: 190px; object-fit: cover; display: block; }
.popup-body { padding: 22px; text-align: center; }
.popup-title { font-size: 21px; font-weight: 600; color: var(--forest-deep); margin: 0 0 10px; }
.popup-text { font-size: 14px; line-height: 1.65; opacity: .82; margin: 0 0 18px; white-space: pre-line; }
@media (prefers-reduced-motion: reduce) { .popup-card { animation: none; } }

/* Ücretsiz kargo bilgi kutusu */
.free-ship-note {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--forest); background: var(--tint); border: 1px dashed var(--forest);
  border-radius: 10px; padding: 10px 12px; margin-top: 10px;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed; bottom: 22px; right: 22px; z-index: 50; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.28); text-decoration: none;
}

/* Hero */
.hero { display: flex; flex-wrap: wrap-reverse; align-items: center; gap: 36px; padding: 56px 20px 40px; }
.hero-text { flex: 1 1 380px; min-width: 280px; }
.hero-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero-title { font-size: clamp(34px,5vw,52px); line-height: 1.08; color: var(--forest-deep); margin: 0 0 18px; font-weight: 600; }
.hero-desc { font-size: 16px; line-height: 1.7; opacity: .8; max-width: 460px; margin-bottom: 26px; }
.hero-illust { flex: 1 1 260px; min-width: 220px; display: flex; justify-content: center; }

@keyframes steam { 0% { opacity: 0; transform: translateY(0) scaleY(.8); } 30% { opacity: .55; } 100% { opacity: 0; transform: translateY(-26px) scaleY(1.15); } }
.steam { animation: steam 3.5s ease-in-out infinite; transform-origin: bottom center; }
.steam.d2 { animation-delay: .7s; }
.steam.d3 { animation-delay: 1.4s; }
@media (prefers-reduced-motion: reduce) { .steam { animation: none; opacity: .35; } }

/* Sections */
.section-dim { background: var(--parchment-dim); padding: 56px 20px; }
.section-dim .inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.section-plain { max-width: 1120px; margin: 0 auto; padding: 56px 20px; }
.section-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-family: 'Fraunces', Georgia, serif; font-size: 28px; color: var(--forest-deep); margin: 0 0 14px; font-weight: 600; }
.section-desc { font-size: 15px; line-height: 1.75; opacity: .82; }
.ritual-step { display: flex; gap: 14px; align-items: flex-start; }
.ritual-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--forest); color: var(--parchment); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ritual-time { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--forest-deep); margin-bottom: 3px; }
.ritual-text { font-size: 14px; line-height: 1.55; opacity: .85; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 18px; }
.feature-card { padding: 22px; }
.feature-title { font-family: 'Fraunces', Georgia, serif; font-size: 17px; color: var(--forest-deep); margin-bottom: 8px; font-weight: 600; }
.feature-desc { font-size: 14px; line-height: 1.6; opacity: .78; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 20px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-image { height: 150px; background: var(--parchment-dim); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-badge { position: absolute; top: 10px; left: 10px; background: var(--plum); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name { font-family: 'Fraunces', Georgia, serif; font-size: 17px; font-weight: 600; color: var(--forest-deep); }
.product-desc { font-size: 13px; line-height: 1.55; opacity: .75; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-final { font-weight: 800; font-size: 18px; color: var(--forest-deep); }
.price-old { font-size: 13px; opacity: .5; text-decoration: line-through; }
.product-actions { display: flex; gap: 8px; margin-top: 4px; }
.product-actions form { flex: 1; }
.product-qty { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 0; }
.product-qty .qty-value { font-size: 16px; min-width: 26px; }

/* Cart */
.cart-line { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cart-line:last-child { border-bottom: none; }
.cart-line-name { font-weight: 700; font-size: 14px; }
.cart-line-unit { font-size: 13px; opacity: .65; }
.qty-form { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--card-bg); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.qty-value { min-width: 20px; text-align: center; font-weight: 700; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.summary-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }

/* Success page */
.success-wrap { text-align: center; padding: 64px 20px; }
.success-icon { width: 62px; height: 62px; border-radius: 50%; background: var(--forest); color: var(--parchment); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }

/* Admin */
.admin-nav { display: flex; gap: 6px; margin-bottom: 26px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.admin-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 13px; border-radius: 999px; text-decoration: none; font-weight: 700; border: 1.5px solid var(--line); color: var(--forest-deep); }
.admin-tab.active { background: var(--forest); color: var(--parchment); border-color: var(--forest); }
.admin-list-item { padding: 14px; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.admin-list-item .grow { flex: 1; }
.admin-list-item .title { font-weight: 700; font-size: 14px; }
.admin-list-item .meta { font-size: 13px; opacity: .65; }
.admin-actions { display: flex; gap: 6px; }
.form-grid-2 { display: flex; gap: 12px; }
.form-grid-2 > div { flex: 1; }
.hr { border: none; border-top: 1px solid var(--line); margin: 4px 0; }
.page-title { font-family: 'Fraunces', Georgia, serif; font-size: 26px; color: var(--forest-deep); font-weight: 600; margin: 0; }
.top-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.muted { opacity: .6; font-size: 14px; }

/* Payment options */
.pay-option {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer;
  margin-bottom: 8px; font-size: 14px; background: var(--card-bg);
}
.pay-option:has(input:checked) { border-color: var(--forest); background: rgba(36,56,46,.05); }
.pay-option input { margin-top: 3px; }
.pay-option small { opacity: .65; line-height: 1.45; display: inline-block; margin-top: 2px; }
.pay-disabled { opacity: .55; cursor: not-allowed; }
