/*
Theme Name: Helix Vitrin
Theme URI: https://iqosmagaza.com/
Author: Helix Bilişim
Description: Yetişkinlere özel ısıtılmış tütün vitrini. Örnek fiyatlar panelden düzenlenir.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: helix-vitrin
*/

:root {
  --ink: #1b1410;
  --ink-soft: #3a2e27;
  --paper: #f6f1ea;
  --paper-2: #fffdfb;
  --copper: #9a5b2e;
  --copper-deep: #6e3d1c;
  --line: #e6ddd3;
  --muted: #6f6258;
  --good: #215c42;
  --warn: #8a3d22;
  --shadow: 0 18px 50px rgba(40, 24, 12, 0.08);
  --radius: 18px;
  --header: 76px;
  --font: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-deep); }
a:hover { color: var(--copper); }
button, input, select, textarea { font: inherit; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 241, 234, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #f3e6d4;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.brand strong { display: block; font-family: var(--serif); font-size: 18px; letter-spacing: 0.01em; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: -2px; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.site-nav { display: flex; gap: 18px; align-items: center; }
.site-nav .menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-size: 15px; }
.site-nav a:hover { color: var(--copper-deep); }
.cart-link {
  text-decoration: none;
  background: var(--ink);
  color: #f6efe6 !important;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  border-radius: 999px;
  background: #e7c7a4;
  color: var(--ink);
  font-size: 12px;
}
.sample-bar {
  background: #2a211c;
  color: #f3e7da;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}
.sample-bar a { color: #f0d2b4; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 42px 0 18px;
}
.kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--copper);
  margin: 0 0 10px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); margin: 0 0 14px; }
.lede { font-size: 18px; color: var(--ink-soft); margin: 0 0 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--copper-deep); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: #cbbbaa; color: var(--ink); }
.hero-visual {
  border-radius: 28px;
  overflow: hidden;
  min-height: 320px;
  background: #ddd4c8 center/cover no-repeat;
  box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 10px 0 28px;
}
.trust article {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.trust strong { display: block; font-size: 15px; }
.trust span { color: var(--muted); font-size: 13px; }

.section { padding: 18px 0 36px; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 34px; }
.section-head p { margin: 0; color: var(--muted); }

.notice-legal, .woocommerce-info, .woocommerce-message, .woocommerce-error {
  border-radius: 14px;
}
.notice-legal {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.page-hero { padding: 34px 0 8px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 8px; }
.entry { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.entry h2 { font-size: 26px; }
.prose p { margin-top: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; }
.site-footer h2 { font-size: 16px; margin: 0 0 8px; font-family: var(--font); }
.site-footer a { text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.fine-print { color: var(--muted); font-size: 13px; }

.age-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(154, 91, 46, 0.25), transparent 50%),
    #140f0c;
  color: #f6efe6;
}
.age-card {
  width: min(560px, 100%);
  background: #221912;
  border: 1px solid rgba(243, 214, 186, 0.16);
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.age-card h1 { font-size: clamp(32px, 5vw, 46px); margin: 8px 0 12px; }
.age-card p { color: #e6d5c4; }
.age-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.age-card .btn-primary { background: #e7c7a4; color: #1b1410; }
.age-card .btn-ghost { color: #f6efe6; border-color: rgba(246, 239, 230, 0.3); }
.age-denied { color: #f0c7b4; }
.age-card .fine-print { color: #d9c4b0; }

.contact-form { display: grid; gap: 12px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; }
.contact-form input, .contact-form textarea, .woocommerce form .input-text, .woocommerce-input, select {
  width: 100%;
  border: 1px solid #d9cec3;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
}
.form-ok { background: #e7f3ec; color: var(--good); padding: 10px 12px; border-radius: 12px; }

/* WooCommerce */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
}
.woocommerce ul.products li.product a img {
  border-radius: 14px;
  background: #efe7de;
  aspect-ratio: 1;
  object-fit: cover;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--serif);
  font-size: 22px;
  padding: 10px 4px 0;
  color: var(--ink);
}
.woocommerce ul.products li.product .price, .woocommerce div.product p.price {
  color: var(--copper-deep) !important;
  font-weight: 650;
}
.woocommerce ul.products li.product .button,
.woocommerce div.product form.cart .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--ink) !important;
  color: #f6efe6 !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  margin-top: auto;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--copper-deep) !important;
}
.woocommerce span.onsale { display: none; }
.sample-pill {
  display: inline-block;
  margin: 6px 4px 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warn);
}
.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
}
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto !important; }
.woocommerce div.product div.images img { border-radius: 18px; }
.woocommerce div.product .product_title { font-family: var(--serif); font-size: 40px; }
.woocommerce-tabs ul.tabs { padding: 0; }
.woocommerce-tabs ul.tabs li { background: transparent; border-radius: 999px; }
.woocommerce-tabs .panel { background: transparent; }
.woocommerce table.shop_table { border-radius: 16px; overflow: hidden; background: #fff; }
.woocommerce-checkout, .woocommerce-cart, .woocommerce-account { background: transparent; }
.cart-collaterals, .woocommerce-checkout-review-order, form.checkout {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px 16px;
}
.age-check { margin: 12px 0; font-size: 15px; }

@media (max-width: 860px) {
  .hero, .trust, .footer-grid, .woocommerce div.product { grid-template-columns: 1fr; }
  .nav-burger { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: var(--header);
    background: #fffdfb;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 16px;
    gap: 10px;
  }
  .site-nav .menu { flex-direction: column; align-items: stretch; gap: 10px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .header-row { position: relative; }
  .section-head { flex-direction: column; align-items: start; }
}
