/* 3DEnerji — "Concept 4 / Bold Diagonal" design system.
   Shared header/nav/menu/theme + homepage + product pages + footer/contact. */

/* Geist, self-hosted (variable weight, OFL — see fonts/OFL.txt). latin covers
   ı, latin-ext covers ş ğ İ; both are preloaded in base.html. */
@font-face {
  font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-latin-wght-normal.a147f99cd533.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-latin-ext-wght-normal.4841e590e2a9.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --primary: #e11d48;
  --primary-hover: #be123c;
  /* --primary for small text (labels, badges): 4.5:1 on the light surfaces */
  --primary-text: #dc1c47;
  /* small accent text on the always-dark hero */
  --hero-accent: #f43f5e;
  --dark: #0f172a;
  --light: #f8fafc;
  --card: #ffffff;
  /* product photos sit on a light plate in every theme: mix-blend-mode
     darken turns white photo backgrounds into the plate colour while light-
     grey studio backgrounds and the product itself stay as they are */
  --photo-bg: #f1f5f9;
  --muted: #64748b;
  --border: #e2e8f0;
  --hero-bg: #0f172a;
  --hero-text: #ffffff;
  --base-font-size: 17px; /* Geist reads visually smaller than Plus Jakarta Sans at the same px; bumped +1px to compensate */
  --radius: 12px;
  --font: 'Geist', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Geist spacing scale (vercel.com/geist/materials) — colors untouched */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;

  /* Geist material radii: small surfaces / medium-large surfaces / fullscreen */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
}
[data-theme="dark"] {
  --light: #090d16;
  --card: #0f172a;
  --dark: #f8fafc;
  --muted: #94a3b8;
  --border: #334155;
  --hero-bg: #05080e;
  --primary-text: #f43f5e;
}
[data-theme="high-contrast"] {
  --light: #000;
  --card: #000;
  --dark: #fff;
  --muted: #fff;
  --border: #fff;
  --primary: #ff0000;
  --primary-text: #ff0000;
  --hero-accent: #ff0000;
  --hero-bg: #000;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--font); }
html { font-size: var(--base-font-size); transition: font-size .2s ease; }
body {
  background: var(--light); color: var(--dark); overflow-x: hidden;
  padding-top: 80px; position: relative;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; }
a { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
header {
  position: fixed; top: 0; left: 0; width: 100%;
  display: flex; justify-content: center; padding: 20px 0; z-index: 100000;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); transition: all .3s ease;
}
[data-theme="dark"] header { background: rgba(9,13,22,.9); }
[data-theme="high-contrast"] header { background: #000; border-bottom: 2px solid #fff; }
header.scrolled { padding: 12px 0; box-shadow: 0 5px 20px rgba(0,0,0,.05); }
.nav-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--dark); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--primary); }
.logo-compact { display: flex; align-items: center; gap: 8px; }
.logo-icon { height: 34px; width: auto; }
.nav-menu { display: flex; align-items: center; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-link { font-size: .95rem; font-weight: 700; color: var(--dark); text-decoration: none; transition: color .2s ease; }
.nav-link:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 15px; }
@media (max-width: 768px) { .nav-menu { display: none; } }

.font-sizer { display: flex; background: rgba(0,0,0,.05); border-radius: 6px; padding: 2px; }
[data-theme="dark"] .font-sizer { background: rgba(255,255,255,.08); }
.font-btn { background: none; border: none; color: var(--dark); width: 28px; height: 28px; font-size: .8rem; font-weight: 700; cursor: pointer; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.font-btn.active { background: var(--primary); color: #fff; }

.lang-switcher { display: flex; gap: 4px; border-left: 1px solid var(--border); padding-left: 15px; }
.lang-btn { background: none; border: none; color: var(--dark); font-size: .8rem; font-weight: 700; cursor: pointer; padding: 2px 6px; border-radius: 4px; text-decoration: none; transition: all .2s; }
.lang-btn.active { color: var(--primary); }

.theme-toggle { background: none; border: none; color: var(--dark); cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .2s; }
.theme-toggle:hover { background: rgba(0,0,0,.05); }
[data-theme="dark"] .theme-toggle:hover { background: rgba(255,255,255,.08); }
[data-theme="high-contrast"] .theme-toggle { color: #fff; border: 1px solid #fff; }

.menu-trigger { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 20px; position: relative; z-index: 100001; }
@media (max-width: 768px) { .menu-trigger { display: block; } .font-sizer { display: none; } }
.burger-line { display: block; width: 100%; height: 3px; background: var(--dark); margin-bottom: 5px; transition: all .3s; border-radius: 2px; }
.menu-trigger.active .burger-line:first-child { transform: translateY(8px) rotate(45deg); }
.menu-trigger.active .burger-line:last-child { transform: translateY(0) rotate(-45deg); margin-bottom: 0; }

.menu-overlay { position: fixed; inset: 0; background: rgba(9,13,22,.95); z-index: 100000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all .3s ease; backdrop-filter: blur(10px); }
.menu-overlay.active { opacity: 1; visibility: visible; }
.menu-nav-links { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 25px; }
.menu-nav-link { font-size: 2rem; color: #fff; text-decoration: none; font-weight: 800; }
.menu-nav-link:hover { color: var(--primary); }

/* ---------- Buttons / shared ---------- */
.btn-primary {
  background: var(--primary); color: #fff; border: none; padding: var(--space-4) var(--space-6); border-radius: var(--radius-md);
  font-weight: 700; cursor: pointer; box-shadow: 0 5px 15px rgba(225,29,72,.3);
  transition: all .2s ease; text-decoration: none; display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(225,29,72,.4); background: var(--primary-hover); }
.btn-primary:active { transform: scale(0.97); transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.btn-outline { display: inline-block; padding: var(--space-3) var(--space-5); border: 1.5px solid var(--border); border-radius: var(--radius-md); font-weight: 700; text-decoration: none; color: var(--dark); transition: all .2s; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline:active { transform: scale(0.97); transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }

@media (prefers-reduced-motion: reduce) {
  .btn-primary:active,
  .btn-outline:active {
    transform: none;
    filter: brightness(0.95);
    transition: filter 120ms ease;
  }
}
.link-arrow { color: var(--primary); font-weight: 700; text-decoration: none; }
.section-heading { font-size: 2.2rem; font-weight: 800; margin-bottom: 40px; }
.badge, .hero-tag { color: var(--primary-text); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }

/* ---------- Homepage: diagonal hero ---------- */
.diagonal-hero {
  position: relative; background: var(--hero-bg); color: var(--hero-text);
  padding: 120px 0 160px; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  border-bottom: 1px solid var(--border);
}
.hero-container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero-text-side { display: flex; flex-direction: column; align-items: flex-start; }
.hero-tag { margin-bottom: 20px; color: var(--hero-accent); }
.hero-title { font-size: 4rem; font-weight: 800; max-width: 800px; line-height: 1.05; }
.hero-title span { color: var(--primary); }
.hero-text-side .btn-primary { margin-top: 40px; }
.hero-image-side { position: relative; width: 100%; display: flex; justify-content: center; perspective: 1000px; }
.tilt-card {
  position: relative; z-index: 1; width: 100%; max-width: 460px; aspect-ratio: 4/3; border-radius: 20px;
  overflow: hidden; border: 1.5px solid var(--border); box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
  background: #111827; transform-style: preserve-3d; transition: transform .15s ease-out, box-shadow .3s ease; cursor: pointer;
}

/* Static starfield covering the whole hero section (behind the title too),
   plus a sun corona local to the image side — pure CSS/lightweight JS, no
   external asset. Stars stay in place (no drifting/banking — that read as
   dated/gimmicky); only their glow pulses. */
.hero-starfield { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* Sun corona glowing behind the card — white-hot core fading through yellow
   to a hint of blue at the rim. */
.sun-wrap {
  position: absolute; top: 50%; left: 50%; width: 165%; max-width: 780px; aspect-ratio: 1;
  transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
}
.sun-wrap .sun {
  position: absolute; top: 50%; left: 50%; width: 64%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); opacity: .9;
  background: radial-gradient(circle at center,
    rgba(255,255,255,.95) 0%, rgba(255,255,255,.55) 14%,
    rgba(253,230,138,.55) 34%, rgba(125,211,252,.28) 60%, transparent 78%);
  filter: blur(38px);
}
@media (prefers-reduced-motion: no-preference) {
  .sun-wrap .sun { animation: sunBreathe 5s ease-in-out infinite; }
}
@keyframes sunBreathe {
  0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Featured bright stars with real diffraction-spike crosses (astro-photo
   look), scattered across the whole hero, including behind the title. Fixed
   in place; only glow/opacity pulses. Spikes are thin and long, with a
   stronger bloom than the first pass. */
.hero-starfield .star-spike {
  position: absolute; top: var(--y); left: var(--x); width: var(--size); height: var(--size);
  transform: translate(-50%, -50%); opacity: 0;
  filter: drop-shadow(0 0 4px var(--color, #fff)) drop-shadow(0 0 12px var(--color, #fff));
}
@media (prefers-reduced-motion: no-preference) {
  .hero-starfield .star-spike {
    animation: starSpikeTwinkle var(--dur, 4s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
  }
}
.hero-starfield .star-spike::before, .hero-starfield .star-spike::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 190%; height: 2%;
  background: linear-gradient(90deg, transparent 0%, var(--color, #fff) 42%, #fff 50%, var(--color, #fff) 58%, transparent 100%);
  transform: translate(-50%, -50%);
}
.hero-starfield .star-spike::after { transform: translate(-50%, -50%) rotate(90deg); }
.hero-starfield .star-spike .spike-core {
  position: absolute; top: 50%; left: 50%; width: 22%; height: 22%; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, var(--color, #fff) 45%, transparent 75%);
  filter: drop-shadow(0 0 8px var(--color, #fff)) drop-shadow(0 0 18px var(--color, #fff));
}
@keyframes starSpikeTwinkle {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
  15%      { opacity: calc(var(--peak, 1) * .3); transform: translate(-50%, -50%) scale(.85); }
  50%      { opacity: var(--peak, 1); transform: translate(-50%, -50%) scale(1.05); }
  85%      { opacity: calc(var(--peak, 1) * .3); transform: translate(-50%, -50%) scale(.9); }
}

/* Dense small background star field, filling the entire hero — generated via
   a few lines of JS in hero.html (positions/sizes/colors/timing randomized
   once on load), same lightweight pattern already used for the tilt-card
   mouse sheen. Fixed in place; only glow/opacity pulses, stronger halo than
   the first pass. */
.hero-starfield .mini-star { position: absolute; border-radius: 50%; opacity: .08; }
@media (prefers-reduced-motion: no-preference) {
  .hero-starfield .mini-star {
    animation-name: miniStarTwinkle; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
  }
}
@keyframes miniStarTwinkle {
  0%, 100% { opacity: .08; }
  50% { opacity: var(--peak, .6); }
}
.tilt-card:hover { box-shadow: 0 35px 60px -10px rgba(225,29,72,.2); }
.tilt-img { display: block; width: 100%; height: 100%; object-fit: cover; transform: translateZ(20px) scale(1.06); transition: transform .3s ease; }
.tilt-sheen { position: absolute; inset: 0; background: radial-gradient(circle at var(--sheen-x,50%) var(--sheen-y,50%), rgba(255,255,255,.2) 0%, transparent 60%); pointer-events: none; mix-blend-mode: overlay; z-index: 2; }
.tilt-label { position: absolute; bottom: 20px; left: 20px; background: rgba(225,29,72,.95); color: #fff; padding: 8px 16px; font-size: .8rem; border-radius: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; transform: translateZ(35px); box-shadow: 0 5px 15px rgba(0,0,0,.2); }
@media (max-width: 992px) { .hero-container { grid-template-columns: 1fr; text-align: center; } .hero-text-side { align-items: center; } .hero-title { font-size: 2.6rem; } }

/* ---------- Homepage: showcase / slanted split ---------- */
.showcase-section {
  max-width: 1100px; margin: -60px auto 40px; position: relative; z-index: 10;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 40px;
  box-shadow: 0 15px 35px rgba(0,0,0,.03); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.showcase-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 20px; }
.showcase-section p { line-height: 1.7; margin-bottom: 25px; color: var(--muted); }
.slanted-grid { display: flex; width: 100%; height: 300px; gap: 15px; }
.slanted-col { flex: 1; height: 100%; border-radius: 12px; overflow: hidden; position: relative; transition: all .4s cubic-bezier(.16,1,.3,1); border: 1px solid var(--border); cursor: pointer; }
.slanted-col-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s ease; }
.slanted-col:hover { flex: 2.2; border-color: var(--primary); box-shadow: 0 0 20px rgba(225,29,72,.25); }
.slanted-col:hover .slanted-col-bg { transform: scale(1.05); }
.col-label { position: absolute; bottom: 15px; left: 15px; background: rgba(0,0,0,.75); color: #fff; padding: 4px 8px; font-size: .75rem; border-radius: 4px; font-weight: 700; }
@media (max-width: 768px) { .showcase-section { grid-template-columns: 1fr; margin-top: 20px; } }

/* ---------- Homepage: 3-grid ---------- */
.diagonal-grid-3 { max-width: 1100px; margin: 60px auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.diagonal-card { border-left: 4px solid var(--primary); background: var(--card); border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--space-5); border-radius: 0 var(--radius-md) var(--radius-md) 0; transition: all .2s ease; }
.diagonal-card:hover { transform: translateX(4px); background: rgba(225,29,72,.02); }
.diagonal-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.diagonal-card p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 768px) { .diagonal-grid-3 { grid-template-columns: 1fr; } }

/* ---------- Homepage: category groups ---------- */
.cats-wrap { max-width: 1100px; margin: 60px auto 100px; }
.cats-wrap > h2 { font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: 50px; }
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cats-item { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius-lg); padding: var(--space-5); transition: all .2s ease; }
.cats-item:hover { border-color: var(--primary); box-shadow: 0 10px 20px rgba(0,0,0,.02); }
.cats-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cats-item .num { font-weight: 800; color: var(--primary); }
/* category icon (cms/icons.py): grey at rest, brand red while the card is hovered/focused */
.cats-glyph { display: inline-flex; width: 44px; height: 44px; color: var(--muted); transition: color .2s ease; }
.cats-glyph-svg { width: 100%; height: 100%; }
.cats-item:hover .cats-glyph, .cats-item:focus-within .cats-glyph { color: var(--primary); }
.cats-icon { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); background: var(--card); flex-shrink: 0; }
.cats-item:hover .cats-icon { border-color: var(--primary); }
.cats-item h3 { font-size: 1.25rem; font-weight: 700; margin: 12px 0 8px; }
.cats-item p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin-bottom: 15px; }
.cats-item .btn-primary { padding: var(--space-2) var(--space-4); font-size: .85rem; border-radius: var(--radius-sm); }
@media (max-width: 992px) { .cats-grid { grid-template-columns: 1fr; } .diagonal-grid-3 { grid-template-columns: 1fr; } }

/* ---------- Product catalogue grid ---------- */
.catalog { max-width: 1200px; margin: 60px auto 100px; }
.catalog-toolbar {
  display: flex; align-items: flex-end; gap: var(--space-5); flex-wrap: wrap;
  margin-bottom: var(--space-9); padding: var(--space-4) var(--space-5); background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.select-field {
  display: flex; flex-direction: column; gap: var(--space-1); min-width: 200px;
  transition: opacity 150ms ease;
}
.select-field.is-disabled { opacity: .5; }
.select-field label { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.select-wrap { position: relative; }
.select-wrap select {
  width: 100%; appearance: none; -webkit-appearance: none; font: inherit; font-weight: 700; font-size: .88rem;
  padding: var(--space-3) var(--space-7) var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--light); color: var(--dark); cursor: pointer;
}
.select-wrap select:focus { outline: 2px solid rgba(225,29,72,.3); border-color: var(--primary); }
.select-wrap select:hover:not(:disabled) { border-color: var(--primary); }
.select-wrap select:disabled { cursor: not-allowed; }
.select-chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.result-count { margin-left: auto; font-size: .85rem; color: var(--muted); white-space: nowrap; padding-bottom: 10px; }
.result-count strong { color: var(--dark); font-size: 1.05rem; }
@media (max-width: 640px) {
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .result-count { margin-left: 0; padding-bottom: 0; }
}
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.catalog-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 20px; border: 1px dashed var(--border); border-radius: var(--radius-md); }
.product-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--card); transition: all .2s ease; display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--primary); box-shadow: 0 10px 25px rgba(0,0,0,.05); }
.product-card.is-draft { border-style: dashed; opacity: .85; }
.draft-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: #fde68a; color: #78350f; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border-radius: var(--radius-sm); padding: 3px 7px; }
.product-compare-check { position: absolute; top: 10px; right: 10px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px 7px; font-size: .72rem; font-weight: 700; display: flex; gap: 4px; align-items: center; z-index: 2; }
.product-img-box { position: relative; aspect-ratio: 1 / 1; background: var(--photo-bg); overflow: hidden; }
.product-img-box img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: var(--space-5); mix-blend-mode: darken;
}
.product-info-box { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-brand { color: var(--primary); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.product-brand-logo { display: block; height: 22px; width: auto; max-width: 110px; object-fit: contain; object-position: left center; margin-bottom: 2px; }
.pd-brand-logo { display: block; height: 28px; width: auto; max-width: 160px; object-fit: contain; margin: 0 auto; }
.product-name { font-size: 1.1rem; font-weight: 800; }
.product-specs-summary { list-style: none; font-size: .82rem; color: var(--muted); margin: 6px 0; }
.product-specs-summary li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding: 3px 0; }
.product-card .btn-outline { margin-top: auto; text-align: center; border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); }

/* ---------- Product detail: split layout ---------- */
.split-layout { display: grid; grid-template-columns: 1.1fr .9fr; min-height: calc(100vh - 80px); }
.left-pane { background: rgba(0,0,0,.01); padding: 60px; display: flex; flex-direction: column; justify-content: center; align-items: center; border-right: 1px solid var(--border); position: sticky; top: 80px; height: calc(100vh - 80px); gap: 20px; }
.right-pane { padding: 60px; overflow-y: auto; }
.split-main-image { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; background: var(--photo-bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; cursor: zoom-in; }
.split-main-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: var(--space-6); mix-blend-mode: darken; }
/* no product photo yet: the stock image fills the plate as before */
.product-img-box.is-fallback img, .split-main-image.is-fallback img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.split-thumbnails { display: flex; gap: 10px; flex-wrap: wrap; }
.split-thumb { width: 60px; height: 60px; border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: zoom-in; background: var(--photo-bg); overflow: hidden; }
.split-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: darken; }
.split-thumb.active { border-color: var(--primary); }
.pd-name { font-size: 2.2rem; font-weight: 800; text-align: center; }
.pd-sub { color: var(--primary); font-weight: 600; }
/* product detail: CATEGORY › SUBCATEGORY — the more specific one in red */
.pd-crumbs { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.pd-crumbs a { color: var(--primary-text); text-decoration: none; text-underline-offset: 3px; transition: color .15s ease; }
.pd-crumbs a:hover { text-decoration: underline; }
.pd-crumbs.has-sub a:first-child { color: var(--muted); }
.pd-crumbs.has-sub a:first-child:hover { color: var(--primary-text); }
.pd-crumbs .sep { color: var(--muted); }
.accordion-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.accordion-header { font-size: 1.2rem; font-weight: 700; display: flex; justify-content: space-between; cursor: pointer; }
.accordion-header::after { content: "+"; color: var(--primary); }
.accordion-item.open .accordion-header::after { content: "–"; }
.accordion-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms cubic-bezier(0.23, 1, 0.32, 1);
}
.accordion-item.open .accordion-collapse {
  grid-template-rows: 1fr;
}
.accordion-content {
  padding-top: 15px; font-size: .95rem; line-height: 1.6; color: var(--muted);
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transition: opacity 250ms cubic-bezier(0.23, 1, 0.32, 1);
}
.accordion-item.open .accordion-content {
  opacity: 1;
}

/* Multi-line text from Studio (TinyMCE) — see pages.content.format_text */
.rt > * + * { margin-top: .75em; }
.rt ul, .rt ol { padding-left: 1.25em; }
.rt li + li { margin-top: .3em; }
.rt h2, .rt h3, .rt h4 { color: inherit; font-weight: 700; line-height: 1.25; }
.rt h2 { font-size: 1.35rem; }
.rt h3 { font-size: 1.15rem; }
.rt h4 { font-size: 1rem; }
.rt a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ta-left { text-align: left; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
.ta-justify { text-align: justify; }

@media (prefers-reduced-motion: reduce) {
  .accordion-collapse { transition: none; }
}
.spec-table-split { width: 100%; border-collapse: collapse; margin-top: 15px; }
.spec-table-split td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.spec-table-split td:first-child { color: var(--primary); font-weight: 600; }
.spec-table-split td:last-child { font-weight: 700; text-align: right; }
@media (max-width: 992px) { .split-layout { grid-template-columns: 1fr; } .left-pane { position: relative; height: auto; padding: 40px 20px; } .right-pane { padding: 40px 20px; } }

/* ---------- Lightbox (product images) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100002; display: flex; align-items: center; justify-content: center; background: rgba(8,11,18,.94); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 1; visibility: visible;
  transition: opacity 200ms ease, visibility 0s linear 0s;
}
.lightbox[hidden] {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}
.lb-img {
  max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; cursor: zoom-in; will-change: transform; touch-action: none; user-select: none;
  scale: 1;
  transition: transform .12s ease, scale 250ms cubic-bezier(0.23, 1, 0.32, 1);
}
.lightbox[hidden] .lb-img {
  scale: 0.96;
}
@media (prefers-reduced-motion: reduce) {
  .lightbox[hidden] .lb-img {
    scale: 1;
  }
}
.lb-img.zoomed { cursor: grab; }
.lb-img.zoomed:active { cursor: grabbing; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; width: 48px; height: 48px; font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #cbd5e1; font-size: .85rem; font-weight: 700; letter-spacing: .05em; }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }

/* ---------- Reference portfolio (Referanslar) ----------
   Homepage: dark diagonal band with 6 columns that widen on hover (the
   showcase motif). List page: sticky group sidebar + row cards. Detail page:
   image + description + products used (only public when switched on). */
.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; }
.ref-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ref-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #1e293b, #334155); }
.ref-g { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }

.ref-band { background: var(--hero-bg); color: #fff; clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); padding: 120px 0; margin: 40px 0; }
.ref-band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.ref-band-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 8px; }
.ref-band-head p { color: #94a3b8; max-width: 520px; margin-top: 10px; line-height: 1.6; }
.ref-band-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #fff; color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem;
  padding: 11px 20px; border-radius: var(--radius-sm); transition: background .2s ease, color .2s ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.ref-band-btn:hover { background: #fff; color: #0f172a; }
.ref-band-btn:active { transform: scale(.97); }
.ref-strip { display: flex; gap: 12px; height: 380px; }
.ref-col { position: relative; flex: 1; min-width: 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255,255,255,.12);
  color: #fff; text-decoration: none; outline: none; transition: flex .45s cubic-bezier(0.23, 1, 0.32, 1), border-color .2s ease; }
.ref-col img, .ref-col .ref-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(0.23, 1, 0.32, 1); }
.ref-col::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.1), rgba(15,23,42,.9)); }
.ref-col:hover, .ref-col:focus-visible { flex: 2.4; border-color: var(--primary); }
.ref-col:hover img { transform: scale(1.05); }
.ref-col-text { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; }
.ref-col-text .ref-g { color: #fda4af; }
.ref-col-text h3 { font-size: 1rem; font-weight: 800; line-height: 1.25; margin-top: 4px; }
.ref-col-text p { font-size: .8rem; color: #cbd5e1; margin-top: 2px; max-height: 0; opacity: 0; overflow: hidden; transition: opacity .25s ease .1s; }
.ref-col:hover .ref-col-text p, .ref-col:focus-visible .ref-col-text p { max-height: 2.4em; opacity: 1; }
/* touch + narrow screens: swipeable strip instead of hover-expand */
@media (max-width: 860px), (hover: none) {
  .ref-strip { overflow-x: auto; scroll-snap-type: x mandatory; height: 320px; }
  .ref-col, .ref-col:hover, .ref-col:focus-visible { flex: 0 0 72%; scroll-snap-align: start; }
  .ref-col-text p { max-height: 2.4em; opacity: 1; }
}

.ref-hero { background: var(--hero-bg); color: #fff; padding: 72px 0 120px; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
.ref-crumb { font-size: .85rem; color: #94a3b8; margin-bottom: 14px; }
.ref-crumb a { color: #94a3b8; text-decoration: none; }
.ref-crumb a:hover { color: #fff; }
.ref-hero-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 10px; }
.ref-hero-sub { color: #cbd5e1; max-width: 600px; margin-top: 12px; line-height: 1.6; }
.ref-location { display: flex; align-items: center; gap: 8px; color: #cbd5e1; margin-top: 14px; font-weight: 600; }

.ref-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 40px; padding-bottom: 100px; }
.ref-sidebar { position: sticky; top: 110px; }
.ref-side-title { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 800; }
.ref-side-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ref-side-list button { width: 100%; font: inherit; font-size: .92rem; font-weight: 600; text-align: left; cursor: pointer; background: none; border: 0;
  border-left: 3px solid transparent; padding: 9px 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.ref-side-list button:hover { color: var(--dark); background: var(--card); }
.ref-side-list button[aria-pressed="true"] { color: var(--dark); border-left-color: var(--primary); background: var(--card); }
.ref-side-list .n { font-size: .8rem; color: var(--muted); }
.ref-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ref-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; color: inherit; text-decoration: none; transition: border-color .2s ease; }
.ref-row[hidden] { display: none; }
a.ref-row:hover { border-color: var(--primary); }
.ref-row-img { width: 100%; height: 100%; min-height: 120px; object-fit: cover; }
.ref-row-text { padding: 16px 18px; align-self: center; min-width: 0; }
.ref-row-text h3 { font-size: 1.02rem; font-weight: 800; line-height: 1.3; margin-top: 4px; }
.ref-row-text p { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.ref-draft { display: inline-block; margin-top: 6px; font-size: .7rem; font-weight: 800; color: #78350f; background: #fde68a; padding: 2px 6px; border-radius: 4px; }
.ref-empty { color: var(--muted); padding: 32px 0; }
.ref-empty[hidden] { display: none; }
@media (max-width: 960px) {
  .ref-layout { grid-template-columns: 1fr; }
  .ref-sidebar { position: static; }
  .ref-side-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .ref-side-list button { width: auto; border: 1px solid var(--border); border-radius: 999px; background: var(--card); }
  .ref-side-list button[aria-pressed="true"] { background: var(--dark); color: var(--light); border-color: var(--dark); }
  .ref-list { grid-template-columns: 1fr; }
}

.ref-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 40px; padding-bottom: 100px; }
.ref-detail-media { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
.ref-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.ref-description { line-height: 1.75; color: var(--muted); margin-bottom: 28px; }
.ref-description p + p { margin-top: 12px; }
.ref-side-heading { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; border-left: 3px solid var(--primary); padding-left: 10px; margin-bottom: 14px; }
.ref-products { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.ref-product { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); color: inherit; text-decoration: none; transition: border-color .2s ease; }
.ref-product:hover { border-color: var(--primary); }
.ref-product img, .ref-product-ph { width: 64px; height: 64px; object-fit: contain; padding: 4px; border-radius: var(--radius-sm); background: var(--photo-bg); display: block; }
.ref-product img { mix-blend-mode: darken; }
.ref-product-text { min-width: 0; }
.ref-product .brand { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ref-product .name { display: block; font-weight: 800; }
.ref-product .go { color: var(--muted); transition: transform .2s cubic-bezier(0.23, 1, 0.32, 1), color .15s ease; }
.ref-product:hover .go { color: var(--primary); transform: translateX(3px); }
@media (max-width: 960px) { .ref-detail { grid-template-columns: 1fr; gap: 28px; } }

@media (prefers-reduced-motion: reduce) {
  .ref-col, .ref-col img, .ref-col .ref-ph, .ref-product .go { transition: none; }
  .ref-col:hover img, .ref-product:hover .go { transform: none; }
}

/* Staff-only preview banner (product not yet published) */
.preview-flag { background: #fde68a; color: #78350f; padding: .5rem; text-align: center; font-weight: 700; }
@media (max-width: 640px) { .lb-btn { width: 42px; height: 42px; font-size: 1.3rem; } .lb-close { top: 12px; right: 12px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* ---------- Contact ---------- */
.contact { max-width: 1100px; margin: 80px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact h2 { font-size: 2rem; font-weight: 800; margin-bottom: 15px; }
.contact .lead { color: var(--muted); margin-bottom: 25px; line-height: 1.6; }
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-item h3 { font-size: .8rem; text-transform: uppercase; color: var(--primary-text); letter-spacing: .05em; }
.contact-item p { color: var(--muted); }
.contact-form-wrapper { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 5px; }
.form-control { width: 100%; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; background: var(--light); color: var(--dark); }
.form-control:focus { outline: 2px solid rgba(225,29,72,.3); border-color: var(--primary); }
textarea.form-control { min-height: 100px; }
.form-status { margin-top: 10px; font-size: .85rem; }
@media (max-width: 768px) { .contact { grid-template-columns: 1fr; margin: 50px auto; } }

/* ---------- Footer ---------- */
/* Fixed dark navy, not var(--dark) — that variable flips to near-white in
   dark/high-contrast themes, which would make the white footer text/logo
   disappear. The footer stays a dark surface in every theme. */
footer { background: #0f172a; color: #cbd5e1; margin-top: 80px; }
[data-theme="high-contrast"] footer { border-top: 2px solid #fff; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 60px 24px 30px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
footer .logo { color: #fff; margin-bottom: 14px; }
.footer-about { line-height: 1.7; font-size: .9rem; opacity: .8; max-width: 340px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 14px; font-size: .95rem; }
.footer-links-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links-list a { color: #cbd5e1; text-decoration: none; font-size: .9rem; }
.footer-links-list a:hover { color: var(--primary); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; font-size: .8rem; opacity: .7; flex-wrap: wrap; gap: 8px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Compare bar + modal ---------- */
.compare-bar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--dark); color: #fff; border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); display: flex; gap: 18px; align-items: center; z-index: 9000; transition: transform .3s ease; box-shadow: 0 15px 40px rgba(0,0,0,.3); }
.compare-bar.active { transform: translateX(-50%) translateY(0); }
.compare-bar-text span { color: var(--primary); font-weight: 800; }
.compare-actions { display: flex; gap: 8px; }
.btn-compare-clear { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); font-weight: 700; font-size: .8rem; cursor: pointer; }
.compare-modal {
  position: fixed; inset: 0; background: rgba(15,23,42,.6); z-index: 9500; display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}
.compare-modal.active {
  opacity: 1; visibility: visible;
  transition: opacity 200ms ease, visibility 0s linear 0s;
}
.compare-modal-content {
  background: var(--card); border-radius: var(--radius-md); max-width: 900px; width: 100%; max-height: 85vh; overflow: auto; padding: var(--space-5); position: relative;
  transform: scale(0.96);
  transition: transform 250ms cubic-bezier(0.23, 1, 0.32, 1);
}
.compare-modal.active .compare-modal-content {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .compare-modal-content {
    transform: none;
    transition: none;
  }
}
.close-modal { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--dark); }
.compare-modal-title { font-weight: 800; margin-bottom: 18px; }
.compare-table-wrapper { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; font-size: .88rem; }
.compare-table td:first-child { font-weight: 700; color: var(--muted); }
.compare-prod-header img { width: 70px; height: 55px; object-fit: cover; border-radius: 6px; }
.spec-highlight { color: var(--primary); font-weight: 800; }
