/*
Theme Name: Yapı Sen
Theme URI: https://yapisen.com
Author: Yapı Sen
Description: Custom WooCommerce catalog theme for the Yapı Sen rebuild (kabin, konteyner, prefabrik, insaat malzemeleri). Built from scratch per project rules in CLAUDE.md; brand colors/logo/Raleway kept identical to the live yapisen.com (client decision 2026-10-18).
Version: 0.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: yapisen
*/

/* Mobile-first: base rules target ~360-430px phones; min-width queries
   add tablet (640px), desktop (900px) and wide (1100px) layouts. */

/* ===== Design tokens ===== */
:root {
  /* Brand palette taken from the live yapisen.com (logo + Renovate theme
     custom color #f8981c, anthracite #25282a, Raleway) - client decision
     2026-10-18: colors stay identical to the existing site.
     White text on #f8981c is only ~2.2:1, so brand-orange surfaces carry
     dark text (#25282a on #f8981c = 7.9:1); orange used AS text on white
     uses --color-brand-text (6.2:1). */
  --color-brand: #f8981c;
  --color-brand-hover: #e6870d;
  --color-brand-text: #a65800; /* >=4.5:1 on white, #f5f5f5 and brand-soft */
  --color-brand-soft: #fef3e4;
  --color-dark: #25282a;
  --color-dark-2: #1b1d1f;
  --color-ink: #25282a;
  --color-ink-soft: #555a5e;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-border: #e2e6e7;
  --color-white: #ffffff;
  --color-whatsapp: #17824a; /* darker than brand #25d366: passes 4.5:1 as text on white and under white text */

  --font-sans: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  --gutter: 1rem;
  --section-y: 3rem;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(20, 22, 24, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 22, 24, 0.10);
  --max-width: 1200px;
  --action-bar-h: 0px;
}
@media (min-width: 640px) {
  :root { --gutter: 1.5rem; --section-y: 4rem; }
}
@media (min-width: 900px) {
  :root { --section-y: 4.5rem; }
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  padding-bottom: var(--action-bar-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-dark); text-decoration: none; }
a:hover { color: var(--color-brand-text); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--space-2); color: var(--color-ink); font-weight: 700; overflow-wrap: break-word; }
h1 { font-size: clamp(1.65rem, 5.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 4vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 var(--space-2); }
address { font-style: normal; }
button { font-family: inherit; }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* Visible focus states (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-brand-text);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-dark);
  color: #fff;
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--flush-top { padding-top: var(--space-2); }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-dark); color: #d4d6d8; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-head p { color: #b3b7ba; }
.section--dark .eyebrow { color: var(--color-brand); }
.section-head { max-width: 680px; margin-bottom: var(--space-4); }
.section-head p { color: var(--color-ink-soft); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-1) var(--space-3); }
.section-head--row h2 { margin-bottom: 0; }
.link-more { font-weight: 700; color: var(--color-brand-text); white-space: nowrap; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-text);
  margin-bottom: var(--space-1);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.75em 1.5em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-brand); color: var(--color-dark); }
.btn-primary:hover { background: var(--color-brand-hover); color: var(--color-dark); }
.btn-outline { border-color: var(--color-white); color: var(--color-white); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--color-white); }
.btn-secondary { border-color: var(--color-dark); color: var(--color-dark); background: transparent; }
.btn-secondary:hover { background: var(--color-dark); color: #fff; }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #126b3c; color: #fff; }
.btn-sm { min-height: 40px; padding: 0.5em 1.1em; font-size: 0.85rem; }

/* ===== Top bar (desktop only) ===== */
.topbar { display: none; background: var(--color-dark); color: #c3c6c9; font-size: 0.82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 38px; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.topbar-contact li, .topbar-contact a { display: inline-flex; align-items: center; gap: 0.4em; }
.topbar a { color: #c3c6c9; }
.topbar a:hover { color: var(--color-brand); }
.topbar .icon { color: var(--color-brand); width: 14px; height: 14px; }
@media (min-width: 900px) { .topbar { display: block; } }

.social { display: flex; gap: 0.4rem; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
}
.social .icon { width: 18px; height: 18px; color: currentColor; }
.topbar .social a { width: 30px; height: 30px; }
.topbar .social .icon { color: currentColor; width: 15px; height: 15px; }

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: saturate(180%) blur(6px);
  backdrop-filter: saturate(180%) blur(6px);
  z-index: 100;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.6rem;
  gap: var(--space-2);
}
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 42px; width: auto; }
@media (min-width: 900px) { .site-logo img { height: 52px; } }

.primary-nav { display: none; }
.primary-nav ul { display: flex; align-items: center; gap: var(--space-3); }
.primary-nav a {
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5em 0;
  position: relative;
}
.primary-nav > ul > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--color-brand); transform: scaleX(0); transition: transform .15s ease;
}
.primary-nav > ul > li > a:hover::after { transform: scaleX(1); }
.primary-nav > ul > li { position: relative; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.8em;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-1);
}
.dropdown a { display: block; padding: 0.6em 0.8em; border-radius: 6px; font-weight: 500; }
.dropdown a:hover { background: var(--color-bg-alt); }

.header-cta { display: flex; align-items: center; gap: 0.4rem; }
.header-cta .btn { display: none; }
@media (min-width: 400px) { .header-cta .btn { display: inline-flex; } }
.header-phone { display: none; align-items: center; gap: 0.4em; font-weight: 700; color: var(--color-dark); white-space: nowrap; }
.header-phone .icon { color: var(--color-brand); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-dark);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle[aria-expanded="true"] { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h, 64px);
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--color-border);
  background: #fff;
  box-shadow: var(--shadow-md);
  z-index: 110;
}
.mobile-nav.is-open { display: block; }
/* Prevent the page behind the overlay from scrolling while it's open. */
html.mobile-nav-open,
html.mobile-nav-open body,
html.lightbox-open,
html.lightbox-open body { overflow: hidden; }
.mobile-nav ul { display: flex; flex-direction: column; padding: var(--space-1) var(--gutter); }
.mobile-nav li { border-bottom: 1px solid var(--color-border); }
.mobile-nav a { display: block; padding: 0.85em 0; font-weight: 600; font-size: 1.05rem; }
.mobile-nav ul ul { padding: 0 0 var(--space-1); }
.mobile-nav .sub-item { border: 0; }
.mobile-nav .sub-item a { padding: 0.5em 0 0.5em var(--space-2); font-weight: 500; font-size: 0.98rem; color: var(--color-ink-soft); }
.mobile-nav-contact { display: grid; gap: var(--space-1); padding: var(--space-2) var(--gutter) var(--space-4); }
.mobile-nav-contact .btn { width: 100%; }
.mobile-nav-contact p { display: flex; gap: 0.5em; font-size: 0.88rem; color: var(--color-ink-soft); margin: var(--space-1) 0 0; }
.mobile-nav-contact p .icon { color: var(--color-brand); margin-top: 0.2em; }

@media (min-width: 900px) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .header-phone { display: inline-flex; }
}

/* ===== Mobile action bar (call / WhatsApp / cart / quote) ===== */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 58px; font-size: 0.72rem; font-weight: 700; color: var(--color-dark);
}
.action-bar .icon { width: 22px; height: 22px; }
.action-bar-wa { color: var(--color-whatsapp) !important; }
.action-bar-primary { background: var(--color-brand); }
.action-bar .cart-dot { top: 9px; left: calc(50% + 6px); }
:root { --action-bar-h: calc(58px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .action-bar { display: none; }
  :root { --action-bar-h: 0px; }
}
.woocommerce-checkout .action-bar, .woocommerce-cart .action-bar { display: none; }
.woocommerce-checkout, .woocommerce-cart { --action-bar-h: 0px; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  padding-block: var(--space-2) 0;
}
.breadcrumb p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb a { color: var(--color-ink-soft); }
.breadcrumb a:hover { color: var(--color-brand-text); }

/* ===== Hero ===== */
.hero {
  background: var(--color-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(27,29,31,.96) 0%, rgba(27,29,31,.85) 45%, rgba(27,29,31,.55) 100%);
}
.hero-inner {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-5);
  align-items: center;
}
.hero .eyebrow { color: var(--color-brand); }
.hero h1 { color: #fff; max-width: 20ch; }
.hero p.lede { color: #d4d6d8; font-size: 1.05rem; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin-top: var(--space-3); }
.hero-actions .btn { flex: 1 1 auto; }
.hero-figure { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); aspect-ratio: 4/3; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hero-figure:hover img { transform: scale(1.03); }
.hero-figure-label {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--color-brand); color: var(--color-dark);
  font-weight: 700; font-size: 0.85rem; padding: 0.45em 0.9em; border-radius: 999px;
}
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--space-3); margin-top: var(--space-4); }
.hero-stats strong { display: block; font-size: 1.5rem; color: var(--color-brand); line-height: 1.2; }
.hero-stats span { color: #b3b7ba; font-size: 0.82rem; }

@media (min-width: 640px) {
  .hero-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; padding-block: var(--space-6); }
  .hero-stats { gap: var(--space-5); }
}

/* ===== Grids ===== */
.grid { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
/* Product + category + gallery grids are 2-up on phones: single-column
   cards ran near screen-height tall and made browsing a long scroll. */
.grid-products, .grid-categories, .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) {
  .grid { gap: var(--space-3); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-products, .grid-categories, .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4, .grid-products, .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-categories { grid-template-columns: repeat(4, 1fr); }
}
/* 4 categories on a 3-col tablet grid leaves an orphan; use 2x2 instead. */
@media (min-width: 640px) and (max-width: 899px) {
  .grid-categories { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Cards ===== */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 0.75rem 0.75rem 0.9rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 0.98rem; margin-bottom: 0.3em; }
.card-body h3 a { color: var(--color-ink); }
.card-body h3 a:hover { color: var(--color-brand-text); }
.card-meta {
  color: var(--color-ink-soft); font-size: 0.82rem; margin-bottom: var(--space-1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta:first-child { font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-brand-text); margin-bottom: 0.25em; }
.card-cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card-cta .btn { flex: 1 1 auto; padding-inline: 0.8em; }
.card-cta .added_to_cart { order: 3; flex-basis: 100%; font-size: 0.82rem; font-weight: 700; color: var(--color-brand-text); }
.card-cta .add_to_cart_button.added { background: var(--color-dark); color: #fff; }
.card-cta .add_to_cart_button.loading { opacity: .6; pointer-events: none; }
@media (min-width: 640px) {
  .card-body { padding: var(--space-2) var(--space-2) var(--space-3); }
  .card-body h3 { font-size: 1.1rem; }
  .card-meta { font-size: 0.88rem; }
}

.category-card { position: relative; color: #fff; }
.category-card .card-media { aspect-ratio: 4/5; }
@media (min-width: 640px) { .category-card .card-media { aspect-ratio: 3/2; } }
@media (min-width: 900px) { .category-card .card-media { aspect-ratio: 3/4; } }
.category-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,29,31,0) 35%, rgba(27,29,31,.9) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0.9rem;
}
.category-card-overlay h3 { color: #fff; margin-bottom: 0.15em; font-size: 1rem; }
.category-card-overlay span { color: var(--color-brand); font-size: 0.8rem; font-weight: 700; }
.category-card-overlay::after {
  content: "→"; position: absolute; top: 0.75rem; right: 0.75rem;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-brand); color: var(--color-dark); font-weight: 700;
  transform: scale(.8); opacity: 0; transition: all .2s ease;
}
.category-card:hover .category-card-overlay::after { transform: scale(1); opacity: 1; }
@media (min-width: 640px) {
  .category-card-overlay { padding: var(--space-3); }
  .category-card-overlay h3 { font-size: 1.2rem; }
}

/* ===== Filter chips (category archive, gallery) ===== */
.filter-chips {
  display: flex; gap: var(--space-1);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 0 calc(var(--gutter) * -1) var(--space-3); padding: 2px var(--gutter);
}
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips .btn { flex: 0 0 auto; white-space: nowrap; }
@media (min-width: 900px) { .filter-chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }

.hub-group { margin-top: var(--section-y); }

/* ===== Product single ===== */
.product-layout { display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .product-layout { grid-template-columns: 1.1fr 1fr; gap: var(--space-5); align-items: start; } }
.product-layout > div { min-width: 0; }
@media (min-width: 900px) { .product-layout > div:first-child { position: sticky; top: calc(var(--header-h, 80px) + var(--space-2)); } }
.gallery-main {
  display: block; width: 100%; padding: 0; background: var(--color-bg-alt); cursor: zoom-in;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 4/3;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(25% - 6px); gap: 8px;
  overflow-x: auto; scrollbar-width: none; margin-top: 8px;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  aspect-ratio: 1; background: none; cursor: pointer;
}
.gallery-thumbs button.is-active { border-color: var(--color-brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-category-pill {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  color: var(--color-brand-text);
  background: var(--color-brand-soft);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  margin-bottom: var(--space-1);
}
.product-facts { list-style: none; padding: 0; margin: var(--space-3) 0; }
.product-facts li {
  display: flex; gap: 0.6em; padding: 0.55em 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-ink-soft);
}
.product-facts li::before { content: "✓"; color: var(--color-brand); font-weight: 700; }
.product-cta-box {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  margin-top: var(--space-3);
  border-left: 4px solid var(--color-brand);
}
.product-cta-box .btn { width: 100%; }
.product-quick-contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); margin-top: var(--space-2); }
.product-quick-contact .btn { padding-inline: 0.6em; font-size: 0.88rem; }
.related-head { margin-top: var(--section-y); }

/* ===== Check list / features / references ===== */
.check-list { margin: 0 0 var(--space-3); }
.check-list li { display: flex; gap: 0.6em; padding: 0.35em 0; color: var(--color-ink-soft); }
.check-list li::before { content: "✓"; color: var(--color-brand); font-weight: 700; }

.features { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg); padding: var(--space-3);
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--color-brand); transform: translateY(-3px); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: var(--space-2);
  background: var(--color-brand); color: var(--color-dark);
}
.feature-icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.feature p { margin: 0; font-size: 0.93rem; color: #b3b7ba; }

.ref-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
@media (min-width: 640px) { .ref-logos { grid-template-columns: repeat(4, 1fr); } }
.ref-logos li {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-2);
}
.ref-logos img { width: 100%; max-width: 170px; height: auto; filter: grayscale(1); opacity: .75; transition: filter .2s ease, opacity .2s ease; }
.ref-logos li:hover img { filter: none; opacity: 1; }

/* ===== About ===== */
.about-teaser { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 900px) { .about-teaser { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }
.about-teaser-figure img, .about-page-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
.about-page { display: grid; gap: var(--space-4); }
.about-page-figure { margin: 0; }
@media (min-width: 900px) {
  .about-page { grid-template-columns: 1.2fr 1fr; gap: var(--space-5); align-items: start; }
  .about-page-figure { position: sticky; top: calc(var(--header-h, 80px) + var(--space-3)); margin-top: var(--space-5); }
}

/* ===== CTA band ===== */
.contact-band {
  background: var(--color-dark);
  background-image: radial-gradient(circle at 100% 0%, rgba(248,152,28,.28), transparent 55%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  display: grid; gap: var(--space-3); align-items: center;
}
.contact-band h2 { color: #fff; margin-bottom: 0.3em; }
.contact-band p { color: #d4d6d8; margin: 0; }
.contact-band-actions { display: grid; gap: var(--space-1); }
@media (min-width: 640px) {
  .contact-band { padding: var(--space-5); }
  .contact-band-actions { display: flex; flex-wrap: wrap; }
}
@media (min-width: 1100px) { .contact-band { grid-template-columns: 1fr auto; } }

/* ===== Contact page ===== */
.contact-grid { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }
.contact-info li { display: flex; gap: 0.9em; padding: 0.9em 0; border-bottom: 1px solid var(--color-border); }
.contact-info strong { display: block; color: var(--color-ink); }
.contact-info-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%; background: var(--color-brand-soft); color: var(--color-brand-text);
}
.contact-info address { color: var(--color-ink-soft); }
.contact-info a[href^="https://www.google"] { font-weight: 700; color: var(--color-brand-text); font-size: 0.9rem; }
.contact-form-card { background: var(--color-bg-alt); border-radius: var(--radius-lg); padding: var(--space-3); }
@media (min-width: 640px) { .contact-form-card { padding: var(--space-4); } }
.contact-form-card h2 { font-size: 1.3rem; }
.contact-form-card .btn { width: 100%; }
.map-embed { margin-top: var(--space-5); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 4/3; background: var(--color-bg-alt); }
@media (min-width: 640px) { .map-embed { aspect-ratio: 21/9; } }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-field { margin-bottom: var(--space-2); }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.35em; font-size: 0.92rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; min-height: 48px; padding: 0.75em 0.9em; border: 1px solid var(--color-border); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--color-ink);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--color-ink-soft); margin-top: var(--space-2); }

/* ===== Gallery ===== */
.gallery-item {
  display: block; aspect-ratio: 4/3; overflow: hidden; cursor: zoom-in;
  border-radius: var(--radius); border: 1px solid var(--color-border); background: var(--color-bg-alt);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-general { margin-top: var(--section-y); border-radius: var(--radius-lg); }
@media (max-width: 639px) { .gallery-general { border-radius: 0; } }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(15,16,17,.95); color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 80dvh; margin: 0 auto; border-radius: 8px; object-fit: contain; }
.lightbox figcaption { margin-top: 0.75rem; font-size: 0.9rem; color: #d4d6d8; }
.lightbox-close, .lightbox-nav {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--color-brand); color: var(--color-dark); }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox-nav { display: none; }
.lightbox-counter { position: absolute; top: 26px; left: 20px; font-size: 0.85rem; color: #b3b7ba; }
@media (max-width: 639px) {
  .lightbox-nav { top: auto; bottom: 20px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}

/* ===== Footer ===== */
.site-footer { background: var(--color-dark-2); color: #c3c6c9; padding-block: var(--space-5) var(--space-3); border-top: 4px solid var(--color-brand); }
.footer-grid { display: grid; gap: var(--space-4) var(--space-3); grid-template-columns: 1fr 1fr; margin-bottom: var(--space-4); }
.footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: auto; }
}
.footer-brand { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 0.2em; letter-spacing: .02em; }
.footer-brand span { color: var(--color-brand); }
.footer-slogan { color: var(--color-brand); font-weight: 600; font-style: italic; margin-bottom: var(--space-1); }
.footer-title { color: #fff; font-size: 0.95rem; margin-bottom: var(--space-2); text-transform: uppercase; letter-spacing: .06em; }
.site-footer a { color: #c3c6c9; }
.site-footer a:hover { color: var(--color-brand); }
.site-footer li { margin-bottom: 0.55em; }
.site-footer .social a { background: rgba(255,255,255,.08); color: #fff; }
.site-footer .social a:hover { background: var(--color-brand); color: var(--color-dark); }
.footer-contact li { display: flex; gap: 0.6em; }
.footer-contact .icon { color: var(--color-brand); margin-top: 0.25em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--space-3);
  display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between;
  font-size: 0.85rem; color: #9a9ea2;
}

/* ===== Generic content page ===== */
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--space-4); font-size: clamp(1.2rem, 3vw, 1.5rem); }
.prose p { color: var(--color-ink-soft); }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.badge-empty {
  background: var(--color-bg-alt); border: 1px dashed var(--color-border); border-radius: var(--radius);
  padding: var(--space-4); text-align: center; color: var(--color-ink-soft);
}
.nav-links { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-4); }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border: 2px solid var(--color-dark); border-radius: 999px; font-weight: 700; padding: 0 0.8em; }
.nav-links .page-numbers.current { background: var(--color-brand); border-color: var(--color-brand); }

/* ===== Teklif sepeti (inc/quote-cart.php) ===== */
.cart-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.4em;
  min-width: 44px; min-height: 44px; justify-content: center; padding-inline: 0.5em;
  font-weight: 600; color: var(--color-dark);
}
.cart-link svg { width: 22px; height: 22px; }
.cart-link-label { display: none; }
@media (min-width: 1100px) { .cart-link-label { display: inline; } }
.cart-dot {
  position: absolute; top: 8px; left: calc(50% + 4px);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-brand); box-shadow: 0 0 0 2px #fff;
}
@media (min-width: 1100px) { .cart-link .cart-dot { left: calc(0.5em + 15px); } }
.cart-dot[hidden] { display: none; }
.action-bar-primary .cart-dot { box-shadow: 0 0 0 2px var(--color-brand); }

.price-kdv { font-size: 0.7em; font-weight: 500; opacity: 0.75; margin-left: 0.25em; }
.card-price { font-weight: 700; color: var(--color-dark); font-size: 1rem; margin-bottom: var(--space-1); }
.product-cta-box .price { font-size: 1.6rem; font-weight: 700; color: var(--color-dark); margin-bottom: var(--space-2); }
.product-cta-box form.cart { display: flex; gap: var(--space-1); align-items: stretch; }
.product-cta-box form.cart .quantity input { width: 4.5rem; height: 100%; min-height: 44px; padding: 0.6em; border: 1px solid var(--color-border); border-radius: var(--radius); font: inherit; }
.product-cta-box form.cart .btn { flex: 1; }

/* WooCommerce block cart/checkout in brand colors. */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.contained {
  background: var(--color-brand) !important; color: var(--color-dark) !important;
  border: 0 !important; border-radius: 999px !important; font-weight: 700 !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover { background: var(--color-brand-hover) !important; }
.woocommerce-cart .prose, .woocommerce-checkout .prose { max-width: none; }

/* 3D viewer button (mikron-360 plugin) placed under the product gallery. */
.product-layout .m360-btn {
  display: flex; justify-content: center; align-items: center; width: 100%;
  margin: var(--space-1) 0 0; padding: 0.85em 1em; min-height: 48px;
  border: 2px solid var(--color-dark); border-radius: 999px;
  background: var(--color-dark); color: #fff; font: inherit; font-weight: 700;
}
.product-layout .m360-btn:hover { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .hero-figure { aspect-ratio: 16/9; }
}
.menu-toggle .menu-icon-close,
.menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-close { display: block; }

/* Teklif sepeti with unpriced items: no "0,00 ₺" anywhere (body class from
 * inc/quote-cart.php). */
.price--quote { font-size: 1.15rem !important; color: var(--color-brand-text) !important; }
.quote-unpriced .wc-block-cart-items__header-total,
.quote-unpriced .wc-block-cart-item__total,
.quote-unpriced .wc-block-cart-item__prices,
.quote-unpriced .wc-block-components-product-price,
.quote-unpriced .wc-block-components-order-summary-item__total-price,
.quote-unpriced .wc-block-components-order-summary-item__individual-prices,
.quote-unpriced .wc-block-components-totals-wrapper:not(.wp-block-woocommerce-checkout-order-summary-cart-items-block),
.quote-unpriced .wc-block-cart__totals-title { display: none !important; }
.quote-unpriced .wc-block-cart .wc-block-cart__sidebar::before,
.quote-unpriced .wc-block-checkout__sidebar::before {
  content: "Fiyatlar teklifte belirlenir. Talebinizi gönderin, ekibimiz sizi arayarak fiyatı iletsin.";
  display: block; padding: 1rem; margin-bottom: 1rem; border-radius: var(--radius);
  background: var(--color-brand-soft); color: var(--color-dark); font-weight: 600; font-size: 0.92rem;
}

/* ---------------------------------------------------------------------
 * SEO content blocks: long-form category copy + FAQ accordion
 * ------------------------------------------------------------------- */
.category-content { margin-top: var(--space-5, 3rem); }
.category-content h2 { margin-top: var(--space-4); }
.faq { margin-top: var(--space-5, 3rem); max-width: 72ch; }
.faq > h2 { margin-bottom: var(--space-3); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; color: var(--color-ink); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--color-brand-text); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.faq-item .prose { padding-bottom: 1rem; }

/* Blog */
.post-single { max-width: 80ch; }
.post-header h1 { margin-bottom: 0.5rem; }
.post-meta { color: var(--color-ink-soft); font-size: 0.9rem; }
.post-figure { margin: var(--space-3) 0; }
.post-figure img { width: 100%; height: auto; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.post-content { max-width: none; }
.post-content .post-updated { font-size: 0.85rem; color: var(--color-ink-soft); }
.post-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.post-content th, .post-content td { border: 1px solid var(--color-border); padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; }
.post-content th { background: var(--color-bg-alt); }

/* Product long-form copy below the gallery/CTA block */
.product-long { margin-top: var(--space-5, 3rem); max-width: 80ch; }
.product-long h2:first-child { margin-top: 0; }

/* Lists inside long-form copy (global ul reset removes bullets) */
.prose ul, .prose ol { margin: 0 0 var(--space-2); padding-left: 1.4em; color: var(--color-ink-soft); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--color-brand-text); }
.prose h3 { margin-top: var(--space-3); font-size: 1.1rem; }
.prose a { color: var(--color-brand-text); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--color-ink); }

/* `hidden` must win over component display rules (gallery filter/paging, contact status). */
[hidden] { display: none !important; }

/* Size/price table + size select (variable products, prices from mikronyapi.com) */
.size-prices { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-2); font-size: 0.95rem; }
.size-prices caption { text-align: left; font-size: 0.85rem; color: var(--color-ink-soft); padding-bottom: 0.35rem; }
.size-prices th, .size-prices td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--color-border); text-align: left; }
.size-prices thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-ink-soft); }
.size-prices tbody th { font-weight: 600; }
.size-prices td:last-child a { color: var(--color-brand-text); font-weight: 600; white-space: nowrap; }
.product-cta-box form.cart { flex-wrap: wrap; }
.product-cta-box form.cart select { flex: 1 1 100%; min-height: 44px; padding: 0.5em 0.75em; border: 1px solid var(--color-border); border-radius: var(--radius); font: inherit; background: var(--color-bg); }
.card-price { font-weight: 700; color: var(--color-dark); }
