/* ===== Lamina — əsas üslub ===== */
:root {
  --ink: #1B1B1A;
  --muted: #5E5B57;
  --ground: #F6F5F2;
  --card: #FFFFFF;
  --line: #E4E1DB;
  --line-2: #D6D2CB;
  --stone: #EDEAE4;
  --oak: #8C5428;
  --oak-dark: #6F411D;
  --oak-light: #D9A574;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--ground); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--oak); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--oak-light); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ===== Faktura (foto olmayanda) — mebel dekorları ===== */
.tex { background-color: #C9A57E; }
.tex-oak { background-color: #B98A5E; background-image: repeating-linear-gradient(91deg, rgba(90,50,20,.18) 0 2px, transparent 2px 8px, rgba(255,240,220,.10) 8px 10px, transparent 10px 19px); }
.tex-sonoma { background-color: #D2B48C; background-image: repeating-linear-gradient(90.6deg, rgba(120,80,40,.16) 0 1px, transparent 1px 6px, rgba(255,250,235,.14) 6px 9px, transparent 9px 21px), repeating-linear-gradient(89deg, rgba(110,70,30,.08) 0 3px, transparent 3px 47px); }
.tex-walnut { background-color: #5E4130; background-image: repeating-linear-gradient(92deg, rgba(20,10,0,.28) 0 2px, transparent 2px 6px, rgba(255,220,180,.07) 6px 8px, transparent 8px 15px), repeating-linear-gradient(88deg, rgba(0,0,0,.12) 0 4px, transparent 4px 60px); }
.tex-cashmere { background-color: #CFC6B8; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px); }
.tex-white { background-color: #F2F0EC; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 1px, transparent 1px 5px); }
.tex-anthracite { background-color: #3B3C3E; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px); }
.tex-concrete { background-color: #9C9A95; background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.22) 0 1.5px, transparent 2.5px), radial-gradient(circle at 70% 65%, rgba(0,0,0,.12) 0 2px, transparent 3px), radial-gradient(circle at 45% 80%, rgba(255,255,255,.12) 0 1px, transparent 2px); background-size: 23px 19px, 31px 27px, 17px 13px; }
.tex-rawmdf { background-color: #B48D62; background-image: radial-gradient(circle at 30% 40%, rgba(90,55,25,.20) 0 1px, transparent 1.5px), radial-gradient(circle at 75% 70%, rgba(255,235,205,.18) 0 1px, transparent 1.5px); background-size: 7px 6px, 9px 8px; }
.tex-glossWhite { background-color: #F7F7F6; background-image: linear-gradient(115deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.9) 46%, rgba(220,220,220,.25) 50%, rgba(255,255,255,0) 58%); }
.tex-glossBeige { background-color: #D9C7AE; background-image: linear-gradient(115deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.45) 46%, rgba(255,255,255,0) 56%); }
.tex-glossRed { background-color: #7A2E2E; background-image: linear-gradient(115deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.25) 46%, rgba(255,255,255,0) 56%); }
.tex-glossBlack { background-color: #26272A; background-image: linear-gradient(115deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.08) 47%, rgba(255,255,255,0) 54%); }
.media { position: relative; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Düymələr ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--oak); color: #fff; }
.btn-primary:hover { background: var(--oak-dark); color: #fff; }
.btn-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-wa { background: #1F7A4D; color: #fff; }
.btn-wa:hover { background: #17623D; color: #fff; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.icon-btn .badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--oak); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.icon-btn .badge[hidden] { display: none; }

/* ===== Üst zolaq və header ===== */
.topbar { background: var(--ink); color: #E8E6E1; font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.topbar .info { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar a { color: #E8E6E1; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header .wrap { display: flex; align-items: center; gap: 16px 32px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo .mark { width: 36px; height: 36px; border-radius: 8px; background-color: #C49567; background-image: repeating-linear-gradient(90deg, rgba(60,30,10,.28) 0 2px, transparent 2px 12px); }
.logo span { font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: -0.5px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-weight: 600; font-size: 15px; flex: 1; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a[aria-current="page"] { color: var(--oak); }
.header-tools { display: flex; gap: 10px; align-items: center; flex: 0 1 380px; }
.search { flex: 1; min-width: 0; display: flex; }
.search input { width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; font-size: 14px; background: var(--ground); }
.menu-toggle { display: none; }

@media (max-width: 1120px) {
  .header .wrap { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-tools { order: 2; flex: 1 1 100%; }
}

/* ===== Başlıqlar ===== */
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; margin: 0; }
.section { padding: 64px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 36px); }
.section-head a { font-weight: 700; font-size: 15px; }
.kicker { font-size: 14px; font-weight: 700; color: var(--oak); }

/* ===== Hero ===== */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 48px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -0.035em; }
.hero p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.hero-facts b { color: var(--ink); }
.hero-collage { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 220px 220px; gap: 14px; }
.hero-collage .tile { border-radius: 18px; position: relative; overflow: hidden; text-decoration: none; }
.hero-collage .tile:first-child { grid-row: span 2; }
.chip { position: absolute; left: 14px; bottom: 14px; background: #fff; color: var(--ink); border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
@media (max-width: 560px) { .hero-collage { grid-template-rows: 160px 160px; } }

/* ===== Kateqoriya kartları ===== */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cat-card { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.cat-card .media { height: 180px; }
.cat-card .body { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.cat-card strong { font-size: 18px; color: var(--ink); }
.cat-card span { font-size: 14px; color: var(--muted); }
.cat-card:hover strong { color: var(--oak); }

/* ===== Məhsul kartı ===== */
.p-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.p-card .media { height: 180px; display: block; }
.p-card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card .meta { font-size: 13px; font-weight: 700; color: var(--oak); }
.p-card h3 { font-family: var(--font-body); font-size: 17px; letter-spacing: 0; }
.p-card h3 a { text-decoration: none; }
.p-card .spec { font-size: 13px; color: var(--muted); }
.p-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; margin-top: auto; }
.price { font-weight: 700; font-size: 17px; }
.price small { font-weight: 500; color: var(--muted); font-size: 13px; }
.price.ask { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ===== Dekor seçici ===== */
.picker { background: var(--ink); color: var(--ground); }
.picker .wrap { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.picker-side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.picker .kicker { color: var(--oak-light); }
.picker h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.swatch { background: none; border: none; padding: 0; cursor: pointer; text-align: left; color: var(--ground); }
.swatch .media { height: 64px; border-radius: 12px; outline: 1px solid rgba(255,255,255,.15); }
.swatch[aria-pressed="true"] .media { outline: 3px solid var(--oak-light); outline-offset: 3px; }
.swatch span { display: block; padding: 8px 2px 0; font-size: 13px; font-weight: 600; }
.picker-preview { flex: 1 1 520px; min-width: 0; border-radius: 20px; overflow: hidden; background: var(--card); color: var(--ink); display: flex; flex-direction: column; }
.picker-preview .media { height: 340px; transition: background-color .25s; }
.picker-preview .info { padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.picker-preview .info .code { font-size: 13px; color: var(--muted); }
.picker-preview .info h3 { font-size: 26px; }
.picker-preview .info .type { font-size: 14px; color: var(--muted); }
.picker-preview .acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== Xidmətlər ===== */
.service { background: var(--stone); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.service strong { font-size: 18px; }
.service p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #BDBAB4; font-size: 14px; margin-top: 24px; }
.footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 56px; padding-bottom: 32px; }
.footer .col { display: flex; flex-direction: column; gap: 10px; }
.footer .about { flex: 1 1 260px; max-width: 360px; }
.footer strong { color: #fff; }
.footer .brand { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: #fff; }
.footer a { color: #BDBAB4; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .copy { border-top: 1px solid #333331; padding-top: 20px; padding-bottom: 32px; font-size: 13px; }

/* ===== Kataloq ===== */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 32px; }
.crumbs a { color: var(--muted); }
.cat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 12px 0 20px; }
.cat-head h1 { font-size: clamp(36px, 4.5vw, 48px); }
.count { color: var(--muted); font-size: 15px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 14px; font-weight: 700; cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.catalog { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-bottom: 72px; }
.filters { flex: 1 1 240px; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 22px; }
.filters fieldset { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.filters legend { font-weight: 700; font-size: 15px; padding: 0 0 8px; }
.filters .check { display: flex; gap: 10px; align-items: center; font-size: 14px; min-height: 32px; cursor: pointer; }
.filters .check input { width: 18px; height: 18px; accent-color: var(--oak); }
.tones { display: flex; flex-wrap: wrap; gap: 8px; }
.tone { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); cursor: pointer; }
.tone[aria-pressed="true"] { outline: 3px solid var(--oak); outline-offset: 2px; }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.toolbar select { height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: var(--card); font-size: 14px; }
.empty-state { background: var(--card); border: 1px dashed var(--line-2); border-radius: 16px; padding: 40px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }

/* ===== Məhsul səhifəsi ===== */
.product { display: flex; flex-wrap: wrap; gap: 48px; padding: 24px 0 64px; }
.product-media { flex: 1 1 520px; min-width: 0; }
.product-media .media { aspect-ratio: 4 / 3; border-radius: 20px; }
.product-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.product-info h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.05; }
.product-info .desc { margin: 0; color: var(--muted); line-height: 1.6; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs th { color: var(--muted); font-weight: 500; width: 45%; }
.qty-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.qty { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.qty-box { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); height: 52px; }
.qty-box button { width: 44px; height: 50px; border: none; background: none; font-size: 20px; cursor: pointer; }
.qty-box input { width: 64px; border: none; text-align: center; font-weight: 700; background: none; height: 50px; }
.calc { background: var(--stone); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.calc input { height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: #fff; }
.calc output { font-weight: 700; }

/* ===== Sifariş siyahısı (panel) ===== */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(27,27,26,.45); z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--card); z-index: 90; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.15); transform: translateX(100%); transition: transform .25s ease; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.line-item { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.line-item .media { width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0; }
.line-item .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.line-item .txt strong { font-size: 15px; }
.line-item .txt span { font-size: 13px; color: var(--muted); }
.line-item input { width: 64px; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; text-align: center; }
.remove { align-self: flex-start; padding: 0; background: none; border: none; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: 13px; min-height: 40px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.drawer-foot label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.drawer-foot input, .drawer-foot textarea { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: var(--ground); font: inherit; }
.drawer-foot .note { font-size: 13px; color: var(--muted); margin: 0; }

/* ===== Bildiriş ===== */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; display: flex; gap: 12px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: none; color: var(--oak-light); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* ===== Üzən WhatsApp düyməsi ===== */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #1F7A4D; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 50; }
.wa-float:hover { background: #17623D; }

/* Bağlı panelin kölgəsi səhifəyə düşməsin */
.drawer { visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.drawer.open { visibility: visible; transition: transform .25s ease, visibility 0s; }
@media (max-width: 560px) { .topbar .info span:last-child { display: none; } }

/* ===== Proses addımları ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.step .n { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--oak); line-height: 1; }
.step strong { font-size: 17px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ===== Usta bloku ===== */
.pro { background: var(--ink); color: var(--ground); border-radius: 24px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.pro h2 { font-size: clamp(28px, 3.5vw, 36px); line-height: 1.1; max-width: 560px; }
.pro p { margin: 10px 0 0; color: #BDBAB4; max-width: 560px; line-height: 1.6; }

/* ===== Kəsim sifarişi ===== */
.cut { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-bottom: 72px; }
.cut-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cut-side { flex: 1 1 300px; position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.panel-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.panel-box h2 { font-size: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field select, .field input, .field textarea { min-height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; background: var(--ground); font: inherit; font-weight: 500; }
.mat-pick { display: flex; gap: 14px; align-items: center; }
.mat-pick .media { width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0; border: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
.parts { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 820px; }
.parts th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.parts td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.parts input[type=number], .parts input[type=text] { width: 100%; min-width: 64px; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 8px; background: #fff; }
.parts .edges { display: flex; gap: 6px; }
.parts .edges label { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted); gap: 2px; }
.parts .edges input { width: 18px; height: 18px; accent-color: var(--oak); }
.parts .del { background: none; border: none; color: var(--muted); cursor: pointer; text-decoration: underline; min-height: 40px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sum-row b { font-size: 16px; }
.hint { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

#cat-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.nav { gap: 6px 22px; }
.edge-box { display: flex; align-items: center; gap: 14px; background: var(--stone); border-radius: 14px; padding: 14px 16px; font-size: 14px; }
.edge-box .media { width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0; }

/* ===== 3D görüntüləyici ===== */
.v3d-host { width: 100%; }
.v3d { position: relative; height: 440px; background: #ECE9E3; overflow: hidden; }
.product-media .v3d { border-radius: 20px; height: 520px; }
.v3d-stage { position: absolute; inset: 0; }
.v3d-top, .v3d-bottom { position: absolute; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; pointer-events: none; }
.v3d-top { top: 12px; }
.v3d-bottom { bottom: 12px; justify-content: space-between; align-items: flex-end; }
.v3d-targets { display: flex; flex-wrap: wrap; gap: 6px; }
.v3d-chip { pointer-events: auto; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(27,27,26,.15); background: rgba(255,255,255,.92); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.v3d-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.v3d-hint { position: absolute; right: 14px; top: 18px; font-size: 12px; color: var(--muted); pointer-events: none; }
@media (max-width: 640px) { .v3d-hint { display: none; } .v3d, .product-media .v3d { height: 380px; } }
.v3d-fallback .media { height: 340px; }
.v3d-fallback .hint { padding: 12px 16px; }
.decor-close { display: flex; gap: 14px; align-items: center; margin-top: 14px; font-size: 14px; }
.decor-close .media { width: 72px; height: 72px; border-radius: 12px; flex-shrink: 0; border: 1px solid var(--line); }
.decor-close div { display: flex; flex-direction: column; gap: 2px; }
.decor-close span { color: var(--muted); }
.card-media { position: relative; display: block; }
.badge3d { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; }
.card-media:hover .badge3d { background: var(--ink); color: #fff; }

.filter-toggle { margin-bottom: 16px; }
@media (min-width: 821px) { .filter-toggle { display: none; } }
@media (max-width: 820px) { .filters { display: none; } .filters.open { display: flex; } }

/* ===== Təmiz faktura görünüşü ===== */
.tex-img { background-color: #ddd; background-size: 300px 300px; background-repeat: repeat; }
.p-card .tex-img, .cat-card .tex-img { background-size: 360px 360px; }
.swatch .tex-img { background-size: 220px 220px; }
.v3d-flat { position: absolute; inset: 0; background-repeat: repeat; cursor: grab; touch-action: pan-y; }
.v3d-flat:active { cursor: grabbing; }
.v3d-flat.gloss::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.35) 45%, rgba(255,255,255,0) 55%); pointer-events: none; }
.v3d-stage[hidden], .v3d-flat[hidden], .v3d-zoom[hidden] { display: none !important; }
.v3d-zoom { display: flex; align-items: center; gap: 6px; pointer-events: auto; }
.v3d-scale { pointer-events: auto; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.92); border-radius: 999px; padding: 8px 10px; min-width: 96px; text-align: center; }
.v3d-scale:empty { display: none; }
.v3d-hint { background: rgba(255,255,255,.88); color: var(--ink); padding: 6px 10px; border-radius: 999px; top: 14px; }
@media (max-width: 1100px) { .product-media .v3d-hint { display: none; } }

/* ===== Raskroy ===== */
.warn { color: #9A2B1E; font-weight: 600; }
.sum-row.total b { font-size: 22px; color: var(--oak); }
.layouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.sheet-fig { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sheet-fig figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.sheet-fig figcaption span { color: var(--muted); }
.sheet-fig svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.quick-cut { gap: 12px; }
.quick-cut strong { font-size: 16px; }
.qc-rows { display: flex; flex-direction: column; gap: 8px; }
.qc-row { display: flex; align-items: flex-end; gap: 8px; }
.qc-row label { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.qc-row label.cnt { flex: 0 0 72px; }
.qc-row input { height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; background: #fff; width: 100%; font-weight: 600; color: var(--ink); }
.qc-row .x { padding-bottom: 12px; color: var(--muted); }
.qc-actions { display: flex; gap: 8px; }
.qc-result { background: #fff; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.qc-result .big { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--ink); }

/* Detal üzrə kromka seçimi */
.parts .edge-pick { width: 100%; min-width: 150px; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 6px; background: #fff; font-size: 13px; }
.parts .edge-pick.custom { border-color: var(--oak); background: #FBF4EC; font-weight: 700; }
.sum-sub { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); padding: 4px 0 4px 12px; }
.sum-sub b { color: var(--ink); font-weight: 600; }

/* ===== Qalıqlar ===== */
.offcuts { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.offcuts b { color: var(--ink); }

/* ===== Kəsim xəritəsi ===== */
.rk { display: flex; flex-direction: column; gap: 20px; padding: 20px 0 72px; }
.rk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.rk-head h1 { font-size: clamp(32px, 4vw, 44px); }
.rk-meta { margin: 6px 0 0; color: var(--muted); }
.rk-meta b { color: var(--ink); }
.rk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rk-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rk-info div { background: var(--card); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.rk-info span { font-size: 12px; color: var(--muted); }
.rk-info b { font-size: 15px; }
.rk-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; }
.rk-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.rk-legend i, .rk-table .sw { display: inline-block; width: 18px; height: 6px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.rk-legend .muted { color: var(--muted); font-size: 13px; }
.rk-sheet { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.rk-sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.rk-sheet-head h2 { font-size: 22px; }
.rk-sheet-head h2 small { color: var(--muted); font-weight: 500; font-size: 16px; }
.rk-sheet-head span { color: var(--muted); font-size: 14px; flex: 1; }
.rk-svg svg { width: 100%; height: auto; display: block; }
.rk-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.rk-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.rk-table td { padding: 8px; border-bottom: 1px solid var(--line); }

@media print {
  .no-print, .wa-float, .drawer, .drawer-backdrop, .toast, #site-header, #site-footer, .crumbs { display: none !important; }
  body { background: #fff; }
  .wrap { max-width: none; padding: 0; }
  .rk { padding: 0; gap: 10px; }
  .rk-sheet { border: none; padding: 0; break-before: page; }
  .rk-info { border-radius: 0; }
  .rk-sheet-head, .rk-svg { break-inside: avoid; break-after: avoid; }
  .rk-svg svg { width: auto; max-width: 100%; height: 128mm; margin: 0 auto; }
  .rk-table { min-width: 0; font-size: 11px; }
  .rk-table th, .rk-table td { padding: 3px 6px; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* ===== Performans: ekrandan kənar bölmələr çəkilmir ===== */
/* content-visibility sürüşdürmədə səhifə hündürlüyünü dəyişib "tullanma" yaradırdı — çıxarıldı */
.p-card, .cat-card { contain: layout paint; }
.v3d { contain: strict; }
.v3d-host { contain: layout; }

/* ===== CNC bölməsi ===== */
.cnc-hero { background: var(--ink); color: var(--ground); }
.cnc-hero .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; padding-top: 48px; padding-bottom: 56px; }
.cnc-hero-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cnc-hero .crumbs, .cnc-hero .crumbs a { color: #BDBAB4; }
.cnc-hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.03em; }
.cnc-hero p { margin: 0; color: #CFCBC4; font-size: 17px; line-height: 1.6; max-width: 620px; }
.btn-outline-light { border-color: #F6F5F2; color: #F6F5F2; background: transparent; }
.btn-outline-light:hover { background: #F6F5F2; color: var(--ink); }
.cnc-specs { flex: 1 1 380px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #3A3A38; border: 1px solid #3A3A38; border-radius: 16px; overflow: hidden; }
.cnc-specs div { background: #232322; padding: 14px 16px; }
.cnc-specs .wide { grid-column: 1 / -1; }
.cnc-specs dt { font-size: 12px; color: #A9A59F; }
.cnc-specs dd { margin: 4px 0 0; font-weight: 700; font-size: 16px; }

.cf-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.cf-side { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cf-patterns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pat[aria-pressed="true"] { border-color: var(--oak); outline: 2px solid var(--oak); outline-offset: -2px; background: #FBF4EC; }
.pat-svg svg { width: 100%; height: 96px; display: block; }
.pat-name { font-size: 12px; font-weight: 700; text-align: center; }
.cf-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cf-fields .field:first-child { grid-column: 1 / -1; }
.cf-preview-box { flex: 1 1 420px; min-width: 0; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 10px; }
.cf-preview { background: #ECE9E3; border-radius: 20px; padding: 24px; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.cf-preview svg { width: 100%; max-height: 560px; height: auto; }
@media (max-width: 640px) { .cf-patterns { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cf-preview-box { position: static; } .cf-preview { min-height: 300px; } }

.co-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.co-form .wide { grid-column: 1 / -1; }
.co-list { display: flex; flex-direction: column; gap: 10px; }
.co-item { display: flex; gap: 14px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.co-thumb { width: 64px; height: 64px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--stone); border-radius: 10px; overflow: hidden; }
.co-thumb svg { width: 100%; height: 100%; }
.co-icon { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--oak); }
.co-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.co-txt span { color: var(--muted); font-size: 13px; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; min-height: 44px; }
.faq details p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }

/* Ana səhifədə CNC bloku */
.cnc-teaser { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.cnc-teaser .pv { flex: 0 0 auto; display: flex; gap: 10px; }
.cnc-teaser .pv svg { width: 84px; height: 140px; }
.cnc-teaser .txt { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.cnc-teaser h2 { font-size: clamp(26px, 3vw, 32px); }
.cnc-teaser p { margin: 0; color: var(--muted); line-height: 1.6; }
.co-form { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.co-form .field:nth-child(1), .co-form .field:nth-child(2) { grid-column: span 3; }
.co-form .field:nth-child(3), .co-form .field:nth-child(4), .co-form .field:nth-child(5) { grid-column: span 2; }
.co-form .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .co-form .field:nth-child(1), .co-form .field:nth-child(2) { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .cnc-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cnc-services .service { padding: 16px; gap: 6px; }
  .cnc-services .service strong { font-size: 15px; }
  .cnc-services .service p { font-size: 13px; }
}

/* ===== Bir neçə lövhəli kəsim sifarişi ===== */
.mat-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.mat-tab { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-height: 60px; padding: 8px 14px 8px 8px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); cursor: pointer; text-align: left; }
.mat-tab .media { width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0; border: 1px solid var(--line); }
.mat-tab span { display: flex; flex-direction: column; gap: 2px; }
.mat-tab b { font-size: 14px; }
.mat-tab small { font-size: 12px; color: var(--muted); }
.mat-tab[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mat-tab.add { border-style: dashed; padding-left: 14px; }
.mat-tab.add b { color: var(--oak); }
.group { display: flex; flex-direction: column; gap: 18px; }
.group[hidden] { display: none !important; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.group-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sum-row.mat span { font-weight: 600; }

/* ===== Hesab düyməsi (header) ===== */
.acct { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 700; flex-shrink: 0; }
.acct:hover { border-color: var(--ink); color: var(--ink); }
.acct .av { width: 28px; height: 28px; border-radius: 50%; background: var(--oak); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
@media (max-width: 560px) { .acct .nm { display: none; } .acct { padding: 0 8px; } }

/* ===== Daxil ol / Qeydiyyat ===== */
.auth-wrap { display: flex; justify-content: center; padding-top: 40px; padding-bottom: 72px; }
.auth-card { width: min(520px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 8px 28px 24px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin: 0 -28px 20px; }
.auth-tabs button { min-height: 52px; border: none; background: none; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.auth-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--oak); }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form[hidden] { display: none; }
.auth-form h1 { font-size: 28px; }
.auth-form .hint { margin: 0 0 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.opt { color: var(--muted); font-weight: 500; }
.err { margin: -4px 0 0; color: #9A2B1E; font-size: 13px; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.center { text-align: center; }
.linklike { background: none; border: none; padding: 0; color: var(--oak); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
.demo-note { font-size: 12px; color: var(--muted); background: var(--stone); border-radius: 10px; padding: 10px 12px; margin: 16px 0 0; }

/* ===== Profil ===== */
.pf { display: flex; flex-direction: column; gap: 20px; padding: 32px 0 72px; }
.welcome { background: #EAF4EE; border: 1px solid #BFDCCB; color: #17482F; border-radius: 14px; padding: 14px 18px; }
.pf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.pf-id { display: flex; align-items: center; gap: 16px; }
.pf-av { width: 64px; height: 64px; border-radius: 50%; background: var(--oak); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-id h1 { font-size: clamp(28px, 3.5vw, 36px); }
.pf-id p { margin: 4px 0 0; color: var(--muted); }
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-form[hidden] { display: none; }
.pf-stats { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .pf-stats { grid-template-columns: 1fr 1fr; } .pf-stats .main { grid-column: 1 / -1; } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { font-family: var(--font-head); font-size: 26px; }
.stat small { font-size: 12px; color: var(--muted); }
.stat.main { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.stat.main span, .stat.main small { color: #BDBAB4; }
.stat.main b { font-size: 34px; color: #fff; }
.pf-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.pf-tabs button { min-height: 48px; padding: 0 14px; border: none; background: none; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pf-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--oak); }
.pf-tabs .cnt { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--stone); color: var(--ink); font-size: 12px; margin-left: 4px; }
.pf-orders { display: flex; flex-direction: column; gap: 12px; }
.order { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.order.cancel { opacity: .75; }
.order-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.order-top .tip { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; background: var(--stone); padding: 3px 8px; border-radius: 6px; }
.order-top .tip.demo { background: #FBF4EC; color: var(--oak); }
.order-top .date { font-size: 13px; color: var(--muted); margin-top: 4px; }
.order-sum { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.order-sum b { font-family: var(--font-head); font-size: 22px; }
.order-sum .muted { color: var(--muted); font-size: 14px; }
.st { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--stone); }
.st-hazirlanir, .st-tesdiqlendi { background: #FBF0DD; color: #7A4B10; }
.st-hazirdir { background: #E3EEF9; color: #1F4E7A; }
.st-tehvil { background: #E5F2EA; color: #1F5C3A; }
.st-legv { background: #F6E3E0; color: #8A2B1E; }
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.progress li { font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.progress li::before { content: ""; height: 5px; border-radius: 3px; background: var(--line); }
.progress li.done::before { background: var(--oak); }
.progress li.cur span { color: var(--ink); font-weight: 700; }
@media (max-width: 560px) { .progress li span { display: none; } .progress li.cur span { display: block; } }
.order-lines { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink); line-height: 1.6; }
.order-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; }
.order-actions details { font-size: 13px; flex: 1; min-width: 220px; }
.order-actions summary { cursor: pointer; color: var(--muted); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.order-actions pre { white-space: pre-wrap; font-family: inherit; background: var(--ground); border-radius: 10px; padding: 12px; margin: 6px 0 0; font-size: 13px; }
.demo-box { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.demo-box .demo-note { margin: 0; }
.demo-box .linklike { font-size: 13px; }

/* =========================================================
   ADMIN PANELİ
   ========================================================= */
body[data-page="admin"] { background: #F1EFEB; }
body[data-page="admin"] #site-header, body[data-page="admin"] #site-footer, body[data-page="admin"] .wa-float { display: none !important; }
.adm-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.adm-login .auth-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.adm-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); }
.adm-brand .mark { width: 32px; height: 32px; border-radius: 8px; background-color: #C49567; background-image: repeating-linear-gradient(90deg, rgba(60,30,10,.28) 0 2px, transparent 2px 12px); }
.adm-brand b { font-size: 22px; }
.adm-brand span:last-child { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--oak); background: #FBF4EC; padding: 3px 8px; border-radius: 6px; }
code { font-size: .92em; background: var(--stone); padding: 1px 5px; border-radius: 4px; }

.adm-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.adm-side { background: var(--ink); color: #E8E6E1; padding: 20px 14px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; }
.adm-side .adm-brand b { color: #fff; }
.adm-side nav { display: flex; flex-direction: column; gap: 4px; }
.adm-side nav button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: none; border-radius: 10px; background: none; color: #CFCBC4; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
.adm-side nav button:hover { background: #2A2A29; color: #fff; }
.adm-side nav button[aria-current="page"] { background: #F6F5F2; color: var(--ink); }
.adm-side nav em { margin-left: auto; font-style: normal; min-width: 22px; height: 22px; border-radius: 999px; background: var(--oak); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.adm-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.adm-side-foot a, .adm-side-foot button { color: #BDBAB4; background: none; border: none; text-align: left; padding: 8px 12px; cursor: pointer; font: inherit; text-decoration: none; border-radius: 8px; }
.adm-side-foot a:hover, .adm-side-foot button:hover { color: #fff; background: #2A2A29; }
.adm-main { padding: 24px 32px 64px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.adm-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.adm-top h1 { font-size: clamp(24px, 3vw, 32px); }
.adm-top-actions { display: flex; gap: 8px; }
.adm-demo { margin: 0; font-size: 13px; color: #7A4B10; background: #FBF0DD; border: 1px solid #F0DDBA; border-radius: 10px; padding: 10px 14px; }
@media (max-width: 900px) {
  .adm-shell { grid-template-columns: 1fr; }
  .adm-side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; overflow-x: auto; }
  .adm-side .adm-brand span:last-child, .adm-side .adm-brand b { display: none; }
  .adm-side nav { flex-direction: row; gap: 2px; }
  .adm-side nav button { white-space: nowrap; padding: 0 10px; }
  .adm-side nav button span { display: none; }
  .adm-side nav button[aria-current="page"] span { display: inline; }
  .adm-side-foot { margin: 0 0 0 auto; flex-direction: row; }
  .adm-side-foot a { display: none; }
  .adm-main { padding: 18px 14px 56px; }
}

.adm-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.adm-card h2 { font-size: 18px; }
.adm-card h2 small { font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: 14px; }
.adm-card h3 { font-size: 15px; }
.adm-card hr { border: none; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.adm-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.adm-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.muted { color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kpis.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-content: start; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: inherit; }
button.kpi { cursor: pointer; }
button.kpi:hover { border-color: var(--ink); }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi b { font-family: var(--font-head); font-size: 28px; }
.kpi small { font-size: 12px; color: var(--muted); }
.kpi.main { background: var(--ink); border-color: var(--ink); color: #fff; }
.kpi.main span, .kpi.main small { color: #BDBAB4; }

.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 200px; align-items: end; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; max-width: 48px; background: var(--oak); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bar .v { font-size: 11px; color: var(--muted); }
.bar .l { font-size: 12px; font-weight: 600; text-transform: capitalize; }
.att { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.att button { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; text-align: left; background: var(--ground); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.att button:hover { border-color: var(--ink); }
.att em { grid-column: 1 / -1; font-style: normal; font-size: 13px; color: #7A4B10; }
.att span { color: var(--muted); font-size: 14px; }

.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.adm-table.dense { min-width: 520px; font-size: 13px; }
.adm-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.adm-table .r { text-align: right; white-space: nowrap; }
.adm-table .clip { max-width: 260px; }
.adm-table tbody tr[data-open], .adm-table tbody tr[data-cust] { cursor: pointer; }
.adm-table tbody tr[data-open]:hover, .adm-table tbody tr[data-cust]:hover { background: #FAF8F5; }
.adm-table tr.unseen td { background: #FFFBF4; }
.adm-table .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--oak); margin-right: 6px; vertical-align: middle; }
.adm-table .thumb .media { width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--line); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; background: var(--stone); color: var(--muted); padding: 2px 6px; border-radius: 5px; vertical-align: middle; }
.tag.warn { background: #FBF0DD; color: #7A4B10; }
.debt { color: #8A2B1E; }
.pay { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pay.ok { background: #E5F2EA; color: #1F5C3A; }
.pay.part { background: #FBF0DD; color: #7A4B10; }
.pay.no { background: #F6E3E0; color: #8A2B1E; }
.order-note { margin: 0; background: #F3F7FB; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.order-pay { margin: 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.seg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.seg button span { font-size: 12px; background: var(--stone); border-radius: 999px; padding: 1px 7px; }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg button[aria-selected="true"] span { background: #3A3A38; color: #fff; }
.adm-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.adm-filters .field { min-width: 150px; }
.adm-filters .field.grow { flex: 1 1 260px; }
.adm-filters .field span { font-size: 12px; }
.adm-count { margin: 0; font-size: 14px; color: var(--muted); }
.adm-count b { color: var(--ink); }
.adm-form { max-width: 760px; }
.adm-form .two[hidden] { display: none; }

.back { align-self: flex-start; background: none; border: none; padding: 0; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; min-height: 32px; }
.back:hover { color: var(--ink); }
.od-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 14px; color: var(--muted); }
.progress.big li { font-size: 12px; }
.progress.big li::before { height: 7px; }
.od { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.od-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.od-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
@media (max-width: 1100px) { .od { grid-template-columns: 1fr; } .od-side { position: static; } }
.od-debt { margin: 0; font-size: 14px; }
.od-debt:empty { display: none; }
.cust { margin: 0; line-height: 1.6; }
.hist { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.hist li { position: relative; display: flex; flex-direction: column; font-size: 14px; }
.hist li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--oak); }
.hist span { font-size: 12px; color: var(--muted); }
.danger { color: #8A2B1E; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.kv.inline { grid-template-columns: repeat(auto-fit, minmax(110px, max-content) minmax(140px, 1fr)); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin: 0; }
.legend span { display: inline-flex; align-items: center; }
.sw { display: inline-block; width: 18px; height: 6px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.maps summary { cursor: pointer; font-weight: 700; min-height: 40px; display: flex; align-items: center; color: var(--oak); }
.map-fig { margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.map-fig figcaption { display: flex; justify-content: space-between; font-size: 14px; }
.map-fig figcaption span { color: var(--muted); }
.map-fig svg { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.msg { white-space: pre-wrap; font-family: inherit; font-size: 13px; background: var(--ground); border-radius: 10px; padding: 12px; margin: 10px 0 0; }
.cnc-adm-item { display: flex; gap: 16px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cnc-adm-pv { width: 150px; flex-shrink: 0; }
.cnc-adm-pv svg { width: 100%; height: auto; }
.cnc-adm-item .kv { margin-top: 8px; }
.file-btn { position: relative; }
#print-root { display: none; }

@media print {
  body.printing-map > *:not(#print-root) { display: none !important; }
  body.printing-map #print-root { display: block; }
  .pr-page { break-after: page; font-family: Manrope, Arial, sans-serif; color: #000; }
  .pr-page:last-child { break-after: auto; }
  .pr-head { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 11pt; margin-bottom: 6px; }
  .pr-page svg { width: 100%; max-height: 135mm; height: auto; }
  .pr-table { width: 100%; border-collapse: collapse; font-size: 9pt; margin-top: 4px; }
  .pr-table th, .pr-table td { border: 1px solid #999; padding: 2px 6px; text-align: left; }
  .pr-off { font-size: 9pt; margin: 4px 0 0; }
  @page { size: A4 landscape; margin: 8mm; }
}

.kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.st { white-space: nowrap; }
.adm-side { align-self: start; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.two > * { min-width: 0; }

/* Müvəqqəti: logonun yanında admin panelinə keçid */
.admin-link { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; margin-left: -16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.admin-link:hover { background: var(--oak); color: #fff; }
@media (max-width: 1120px) { .admin-link { margin-left: 0; } }
@media (min-width: 1121px) {
  .nav { flex-wrap: nowrap; white-space: nowrap; gap: 6px 20px; }
  .header-tools { flex: 1 1 220px; min-width: 0; }
}
@media (min-width: 1121px) and (max-width: 1300px) { .nav { font-size: 14px; gap: 6px 14px; } .acct .nm { display: none; } .acct { padding: 0 8px; } }

/* ===== Əlaqə ===== */
.el { padding-bottom: 72px; display: flex; flex-direction: column; gap: 0; }
.el-lead { margin: -6px 0 22px; color: var(--muted); max-width: 640px; line-height: 1.6; }
.el-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 18px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-items: center; }
.person-av { width: 64px; height: 64px; border-radius: 50%; background: var(--oak); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 28px; display: flex; align-items: center; justify-content: center; }
.person-info h2 { font-size: 26px; }
.person-info .role { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.person-tel { display: inline-block; margin-top: 4px; font-size: 18px; font-weight: 700; text-decoration: none; letter-spacing: .01em; }
.person-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.person-actions .btn { gap: 8px; }
@media (max-width: 380px) { .person-actions { grid-template-columns: 1fr; } }
.el-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.el-form { display: flex; flex-direction: column; gap: 12px; }
.who-set { border: none; margin: 0; padding: 0; }
.who-set legend { font-size: 14px; font-weight: 600; padding: 0 0 6px; }
.who-row { display: flex; gap: 8px; flex-wrap: wrap; }
.who { position: relative; }
.who input { position: absolute; opacity: 0; pointer-events: none; }
.who span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 700; cursor: pointer; background: var(--card); }
.who input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.who input:focus-visible + span { outline: 3px solid var(--oak-light); outline-offset: 2px; }
.footer .fc { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.footer .fc a + a { color: #8FD0AE; }

/* Üzən WhatsApp: iki şəxsdən seçim */
.wa-wrap { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-wrap .wa-float { position: static; border: none; cursor: pointer; }
.wa-menu { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.16); padding: 10px; width: 250px; display: flex; flex-direction: column; gap: 4px; }
.wa-menu[hidden] { display: none; }
.wa-menu p { margin: 4px 8px 6px; font-size: 13px; color: var(--muted); }
.wa-menu a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.wa-menu a:hover { background: var(--ground); color: var(--ink); }
.wa-menu a span:last-child { display: flex; flex-direction: column; }
.wa-menu small { color: var(--muted); font-size: 12px; }
.wa-av { width: 36px; height: 36px; border-radius: 50%; background: #1F7A4D; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
@media (min-width: 1121px) {
  .search { min-width: 170px; }
}
@media (min-width: 1121px) and (max-width: 1440px) {
  .nav { font-size: 14px; gap: 6px 14px; }
  .acct .nm { display: none; }
  .acct { padding: 0 8px; }
}
/* Başlıq sıxlığı: menyu həmişə bir sətirdə, axtarış sığmırsa daralır */
@media (min-width: 1121px) {
  .nav { font-size: 14px; gap: 6px 16px; }
  .search { min-width: 140px; }
  .header .wrap { gap: 16px 24px; }
}
@media (min-width: 1121px) and (max-width: 1500px) { .acct .nm { display: none; } .acct { padding: 0 8px; } }
@media (min-width: 1121px) and (max-width: 1199px) { .admin-link { padding: 0 10px; font-size: 12px; } .nav { gap: 6px 12px; font-size: 13.5px; } }
/* Header: .wrap 1280px-dən geniş olmur, ona görə yığcam menyu bütün masaüstü ölçülərində */
@media (min-width: 1201px) {
  .nav { font-size: 14px; gap: 6px 14px; }
  .acct .nm { display: none; }
  .acct { padding: 0 8px; }
}
@media (max-width: 1200px) {
  .header .wrap { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: 8px; white-space: normal; font-size: 15px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-tools { order: 2; flex: 1 1 100%; }
  .search { min-width: 0; }
}
.tex-asphalt { background-color: #4A4D51; }
.tex-mink { background-color: #9C8D80; }

/* ===== 3D rəng seçimi paneli ===== */
.cfg { background: var(--card); color: var(--ink); border-top: 1px solid var(--line); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.cfg[hidden] { display: none; }
.product-media .cfg { border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; }
.cfg-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cfg-tabs button { flex-shrink: 0; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.cfg-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cfg-tabs button.door { border-color: #E07A2E; color: #9A4A10; }
.cfg-tabs button.door[aria-selected="true"] { background: #E07A2E; color: #fff; }
.cfg-door { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; background: #FDF1E6; border-radius: 10px; padding: 8px 12px; }
.cfg-door span { flex-basis: 100%; }
.cfg-door .linklike { font-size: 13px; }
.cfg-sw { display: grid; grid-auto-flow: column; grid-auto-columns: 84px; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cfg-s { display: flex; flex-direction: column; gap: 4px; background: none; border: none; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.cfg-s .media { width: 84px; height: 56px; border-radius: 10px; outline: 1px solid var(--line); }
.cfg-s[aria-selected="true"] .media { outline: 3px solid var(--oak); outline-offset: 2px; }
.cfg-s span { font-size: 11px; font-weight: 600; line-height: 1.25; }
.cfg-combos h4 { margin: 0 0 8px; font-size: 14px; }
.cfg-cl { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cfg-c { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 13px; cursor: pointer; }
.cfg-c[aria-pressed="true"] { border-color: var(--oak); box-shadow: inset 0 0 0 1px var(--oak); background: #FBF4EC; }
.cc-sw { display: inline-flex; flex-direction: column; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); }
.cc-sw i { flex: 1; background-size: 120px 120px; }
.cfg-combos .hint { margin: 6px 0 0; }
.cfg-sum { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.cfg-sum ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; flex: 1 1 320px; }
.cfg-sum li { display: flex; flex-direction: column; font-size: 13px; }
.cfg-sum li span { color: var(--muted); font-size: 12px; }
.cfg-sum li small { color: var(--muted); font-size: 11px; }
.v3d-pickhint { pointer-events: none; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.9); color: var(--ink); padding: 6px 10px; border-radius: 999px; align-self: center; }
.v3d-pickhint:empty { display: none; }
@media (max-width: 640px) { .v3d-pickhint { display: none; } }
.picker-preview .cfg { border-top: 1px solid var(--line); }

/* ===== Kombin kartları (ana səhifə) ===== */
.combo-lead { margin: -8px 0 20px; color: var(--muted); max-width: 720px; line-height: 1.6; }
.combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.combo { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.combo-pv { background: #E9E6E0; padding: 18px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.combo-pv .cp-up, .combo-pv .cp-low { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.combo-pv .cp-up i { height: 54px; background-size: 260px 260px; border-radius: 2px; }
.combo-pv .cp-low i { height: 74px; background-size: 260px 260px; border-radius: 2px; }
.combo-pv .cp-top { height: 9px; margin: 22px -6px 0; background-size: 200px 200px; border-radius: 2px; }
.combo-pv .cp-low { margin-bottom: 0; padding-bottom: 14px; }
.combo-t { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.combo-t h3 { font-size: 19px; }
.combo-t p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.combo-t ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.combo-t li span { color: var(--muted); margin-right: 4px; }
.combo-t .btn { align-self: flex-start; margin-top: auto; }
/* 3D: görünüş düymələri bir sətirdə sürüşür; təkər ipucu */
.v3d-top { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; pointer-events: auto; }
.v3d-top::-webkit-scrollbar { display: none; }
.v3d-top .v3d-chip { flex-shrink: 0; }
.v3d-hint { display: none !important; }
.v3d-wheel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; background: rgba(27,27,26,.82); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 14px; border-radius: 10px; pointer-events: none; opacity: 0; transition: opacity .2s; text-align: center; max-width: 80%; }
.v3d-wheel.show { opacity: 1; }
@media (hover: none) { .v3d-wheel { display: none; } }
.v3d-scale[hidden] { display: none; }

/* Ünvan və xəritə */
.addr { font-style: normal; display: flex; flex-direction: column; gap: 4px; font-size: 18px; font-weight: 700; }
.addr small { font-size: 14px; font-weight: 500; color: var(--muted); }
.map-box { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--stone); }
.map-box iframe { display: block; width: 100%; height: 320px; border: 0; }
.map-ph { display: flex; flex-direction: column; gap: 4px; justify-content: center; align-items: center; text-align: center; min-height: 220px; padding: 20px; text-decoration: none; color: var(--ink); background:
  repeating-linear-gradient(0deg, transparent 0 38px, rgba(0,0,0,.05) 38px 40px), repeating-linear-gradient(90deg, transparent 0 38px, rgba(0,0,0,.05) 38px 40px), #E8E4DC; }
.map-ph span { color: var(--oak); font-weight: 700; font-size: 14px; }
.map-ph.empty span { color: var(--muted); font-weight: 500; }
.el-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

/* ===== Anbar və satış ===== */
.gq { width: 84px; height: 34px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 8px; text-align: right; background: #fff; font: inherit; }
.goods-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.goods-add select, .goods-add > input { height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 8px; background: #fff; font: inherit; }
.goods-add select { flex: 1 1 220px; min-width: 0; }
.goods-add > input { width: 110px; }
.goods-add .field { min-width: 160px; }
.goods-add .field.grow { flex: 1 1 220px; }
.adm-table td.acts { white-space: nowrap; display: flex; gap: 10px; align-items: center; }
.adm-table tfoot td { border-top: 2px solid var(--line-2); border-bottom: none; }
.barcell { width: 90px; }
.barcell i { display: block; height: 8px; border-radius: 4px; background: var(--oak); min-width: 2px; }
.kpi b.units { font-size: 18px; line-height: 1.3; }
.adm-side nav em.warn { background: #D9534F; }

/* Admin: kəsim sifarişi redaktoru, yeni müştəri */
.kg-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) auto; gap: 12px; align-items: end; }
@media (max-width: 760px) { .kg-top { grid-template-columns: 1fr; } }
.kg-grain { display: flex; gap: 8px; align-items: center; font-size: 14px; min-height: 44px; }
.kg-grain input { width: 18px; height: 18px; accent-color: var(--oak); }
.kt input:not([type=checkbox]) { width: 100%; min-width: 70px; height: 36px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 8px; background: #fff; font: inherit; }
.kt td:nth-child(2) input { min-width: 140px; }
.kt-e { white-space: nowrap; }
.kt-e input { width: 18px; height: 18px; margin: 0 6px 0 0; accent-color: var(--oak); vertical-align: middle; }
.kg-sum { margin: 0; font-size: 14px; background: var(--ground); border-radius: 10px; padding: 10px 12px; }
.ok-card { background: #E9F4EE; border-color: #BFDCCB; }
.ok-card b { color: #1F5C3A; }
.adm-top-actions { flex-wrap: wrap; }

/* ===== Admin: sadələşdirilmiş görünüş ===== */
.adm-main { gap: 16px; max-width: 1240px; }
.adm-h2 { font-size: 17px; margin: 4px 0 -4px; }
.demo-tag { display: block; margin-top: 8px; padding: 6px 12px; font-size: 11px; color: #7A4B10; background: #FBF0DD; border-radius: 8px; cursor: help; }
.adm-side-foot button[data-nav] { display: flex; align-items: center; gap: 8px; }
.adm-side-foot button[aria-current="page"] { color: #fff; background: #2A2A29; }
.today-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.today-strip.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.today-strip > div { padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); min-width: 0; }
.today-strip > div:last-child { border-right: none; }
.today-strip span { font-size: 12px; color: var(--muted); }
.today-strip b { font-family: var(--font-head); font-size: 24px; }
.today-strip b.sm { font-size: 16px; line-height: 1.4; }
.today-strip .neg b { color: #8A2B1E; }
@media (max-width: 760px) { .today-strip { grid-template-columns: 1fr 1fr; } .today-strip > div:nth-child(2) { border-right: none; } .today-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .today-strip.three { grid-template-columns: repeat(3, 1fr); } .today-strip.three > div { border-bottom: none; } }
.todos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .todos { grid-template-columns: 1fr 1fr; } }
.todo { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font: inherit; color: inherit; border-top: 5px solid var(--line-2); }
.todo b { font-family: var(--font-head); font-size: 38px; line-height: 1; }
.todo span { font-weight: 700; font-size: 15px; margin-top: 6px; }
.todo small { font-size: 12px; color: var(--muted); }
.todo:hover { border-color: var(--ink); }
.todo.c1 { border-top-color: #D9822B; } .todo.c2 { border-top-color: #3B7DD8; } .todo.c3 { border-top-color: #2E8B57; } .todo.c4 { border-top-color: #C0392B; }
.todo.zero { opacity: .55; }
.att-list { display: flex; flex-direction: column; gap: 6px; }
.att-i { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; font: inherit; color: inherit; }
.att-i:hover { border-color: var(--ink); }
.att-i span { color: var(--muted); font-size: 14px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--oak); flex-shrink: 0; }
.dot.red { background: #C0392B; }
.adm-table.simple td { vertical-align: middle; padding: 12px 10px; }
.adm-table.simple td small { display: block; }
.okc { color: #1F5C3A; font-size: 12px; font-weight: 600; }
.list-bar { display: flex; gap: 10px; align-items: center; }
.srch-a { flex: 1; }
.srch-a input { width: 100%; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; background: var(--card); font: inherit; }
.seg .warnchip { border-color: #E3A39A; }
.od-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.od-who { display: flex; flex-direction: column; gap: 2px; }
.od-who b { font-size: 18px; }
.od-who span { color: var(--muted); font-size: 14px; }
.od-contact { display: flex; gap: 8px; }
.od-cancel { margin: 0; display: flex; gap: 10px; align-items: center; color: var(--muted); }
.tabs-a { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs-a button { min-height: 44px; padding: 0 14px; border: none; background: none; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs-a button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--oak); }
.act-card { border: 2px solid var(--oak); background: #FFFAF3; }
.act-card.done { border-color: #BFDCCB; background: #EEF7F1; }
.act-card.done b { color: #1F5C3A; }
.act-now { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.btn.big { min-height: 54px; font-size: 16px; }
.mini-card { gap: 10px; }
.mini-card > summary, details.mini > summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; color: var(--ink); }
details.mini { font-size: 14px; }
details.mini .pays { margin-top: 6px; }
.adm-card .pay-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.adm-card .pay-sum span { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.adm-card .pay-sum b { font-size: 16px; color: var(--ink); }
.adm-card .pay-sum .red b { color: #8A2B1E; }
.adm-card .pays { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.adm-card .pays li { display: flex; flex-direction: column; background: var(--ground); border-radius: 8px; padding: 6px 10px; }
.adm-card .pays li span { font-size: 12px; color: var(--muted); }
.adm-card .pay-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-card .pay-add > input, .adm-card .pay-add > select { flex: 1 1 120px; min-width: 0; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; background: #fff; font: inherit; }
.pthumb { float: left; margin-right: 10px; }
.pthumb .media { width: 38px; height: 38px; border-radius: 6px; border: 1px solid var(--line); }
.stock-t tr.editing td { background: #FFFAF3; }
.edit-row td { background: #FFFAF3; padding: 12px 14px; }
.od { grid-template-columns: minmax(0, 1fr) 330px; }
@media (max-width: 900px) {
  .demo-tag { display: none; }
  .adm-side-foot button[data-nav] { font-size: 0; gap: 0; padding: 8px; }
  .adm-side-foot button[data-nav] svg { width: 20px; height: 20px; }
  .od { grid-template-columns: 1fr; }
  .od-side { order: -1; }
}
.att-i { flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 600px) { .att-i span { flex-basis: 100%; padding-left: 18px; } }
.ex-help { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.ex-help li { margin-bottom: 4px; }

/* ===== 3D tam ekran + material kitabxanası ===== */
.v3d-full .fs-out { display: none; }
.is-full .v3d-full .fs-in { display: none; }
.is-full .v3d-full .fs-out { display: inline; }
html.v3d-lock, html.v3d-lock body { overflow: hidden; }
.v3d-host.is-full { position: fixed; inset: 0; z-index: 300; background: #ECE9E3; margin: 0; }
.v3d-host.is-full .v3d, .product-media .v3d-host.is-full .v3d { position: absolute; inset: 0; height: auto; border-radius: 0; contain: none; }
.v3d-host.is-full .cfg { display: none; }
.is-full .v3d-stage, .is-full .v3d-flat { left: 340px; }
.is-full .v3d-top, .is-full .v3d-bottom { left: 352px; }
.is-full .v3d-full { background: var(--ink); color: #fff; border-color: var(--ink); }
.v3d-lib { position: absolute; left: 0; top: 0; bottom: 0; width: 340px; z-index: 4; background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; overflow: hidden; }
.v3d-lib[hidden] { display: none; }
.lib-head { display: flex; flex-direction: column; gap: 2px; }
.lib-head b { font-family: var(--font-head); font-size: 20px; }
.lib-head span { font-size: 12px; color: var(--muted); }
.lib-srch input { width: 100%; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: var(--ground); font: inherit; }
.lib-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.lib-cats button { min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 12px; font-weight: 700; cursor: pointer; }
.lib-cats button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.lib-scope { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; background: var(--ground); border-radius: 10px; padding: 8px 10px; }
.lib-scope label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.lib-scope input { accent-color: var(--oak); }
.lib-list { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; padding-right: 2px; }
.lib-item { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: grab; text-align: left; font: inherit; color: inherit; user-select: none; touch-action: pan-y; }
.lib-item:hover { border-color: var(--ink); }
.lib-item[aria-pressed="true"] { border-color: var(--oak); box-shadow: inset 0 0 0 2px var(--oak); background: #FBF4EC; }
.lib-item .media { width: 100%; height: 64px; border-radius: 8px; }
.lib-item span { display: flex; flex-direction: column; }
.lib-item b { font-size: 12px; line-height: 1.25; }
.lib-item small { font-size: 10px; color: var(--muted); }
.lib-sum { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 12px; max-height: 140px; overflow-y: auto; }
.lib-sum span { display: flex; align-items: center; gap: 6px; }
.lib-sum i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line); background-size: 60px 60px; flex-shrink: 0; }
.v3d-brush { position: absolute; z-index: 5; top: 62px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 6px 6px 8px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.is-full .v3d-brush { left: calc(50% + 170px); }
.v3d-brush[hidden] { display: none; }
.v3d-brush .media { width: 30px; height: 30px; border-radius: 50%; }
.v3d-brush b { font-size: 13px; }
.v3d-brush small { font-size: 11px; color: #BDBAB4; }
.v3d-brush .v3d-chip { min-height: 32px; }
.v3d.brushing .v3d-stage canvas { cursor: crosshair !important; }
.v3d-ghost { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px 10px 6px 6px; box-shadow: 0 10px 28px rgba(0,0,0,.25); font-size: 12px; }
.v3d-ghost[hidden] { display: none; }
.v3d-ghost .media { width: 36px; height: 36px; border-radius: 8px; }
.v3d-ghost::after { content: attr(data-target); font-weight: 700; color: var(--muted); }
.v3d-ghost.ok { border-color: var(--oak); }
.v3d-ghost.ok::after { color: var(--oak); }
.v3d.dragging { cursor: grabbing; }
@media (max-width: 760px) {
  .is-full .v3d-stage, .is-full .v3d-flat { left: 0; bottom: 44%; }
  .is-full .v3d-top { left: 12px; }
  .is-full .v3d-bottom { left: 12px; bottom: calc(44% + 10px); }
  .v3d-lib { top: auto; right: 0; width: auto; height: 44%; border-right: none; border-top: 1px solid var(--line); padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .lib-head span { display: none; }
  .lib-list { grid-template-columns: repeat(3, 1fr); }
  .lib-item .media { height: 48px; }
  .lib-sum { display: none; }
  .is-full .v3d-brush { left: 50%; top: 58px; }
}
.lib-combos { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.lib-combos .cfg-c { min-height: 38px; font-size: 12px; }
@media (max-width: 760px) { .v3d-lib .btn-wa, .lib-combos { display: none; } }
/* "Detal əlavə et" yanında say */
.add-n { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); height: 40px; overflow: hidden; }
.add-n input { width: 52px; height: 38px; border: none; text-align: center; font: inherit; font-weight: 700; background: none; -moz-appearance: textfield; }
.add-n input::-webkit-outer-spin-button, .add-n input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-n-b { width: 36px; height: 38px; border: none; background: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.add-n-b:hover { background: var(--ground); }
.group-actions { align-items: center; }

/* ===== Kəsim: peşəkar görünüş ===== */
.cut-params { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cut-params span { background: var(--ground); padding: 8px 12px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.cut-params b { color: var(--ink); font-size: 14px; }
@media (max-width: 700px) { .cut-params { grid-template-columns: 1fr 1fr; } }
.parts.parts-pro { counter-reset: row; min-width: 900px; }
.parts.parts-pro tbody tr { counter-increment: row; }
.parts.parts-pro td.num::before { content: counter(row); font-weight: 800; color: var(--oak); }
.parts.parts-pro td.num { width: 28px; text-align: center; }
.parts.parts-pro tr.bad td { background: #FBEAE7; }
.parts.parts-pro tr.bad td:first-child { box-shadow: inset 3px 0 0 #C0392B; }
.parts.parts-pro tr.bad input[data-k="u"], .parts.parts-pro tr.bad input[data-k="e"] { border-color: #C0392B; color: #8A2B1E; }
.eg-wrap { display: flex; align-items: center; gap: 6px; }
.eg { display: grid; grid-template-columns: 12px 46px 12px; grid-template-rows: 12px 28px 12px; }
.eg label { position: relative; cursor: pointer; display: block; }
.eg input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.eg i { position: absolute; background: #D9D4CC; border-radius: 2px; transition: background .12s; }
.eg-t { grid-column: 2; grid-row: 1; } .eg-b { grid-column: 2; grid-row: 3; }
.eg-l { grid-column: 1; grid-row: 2; } .eg-r { grid-column: 3; grid-row: 2; }
.eg-t i, .eg-b i { left: 0; right: 0; height: 5px; } .eg-t i { bottom: 2px; } .eg-b i { top: 2px; }
.eg-l i, .eg-r i { top: 0; bottom: 0; width: 5px; } .eg-l i { right: 2px; } .eg-r i { left: 2px; }
.eg-c { grid-column: 2; grid-row: 2; background: #F1EADF; border: 1px solid #CFC6B8; border-radius: 2px; }
.eg input:checked + i { background: #C0392B; }
.eg label:hover i { background: #E8A398; }
.eg input:checked:hover + i { background: #A93226; }
.eg input:focus-visible + i { outline: 2px solid var(--oak-light); outline-offset: 1px; }
.eg-all { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); font-size: 11px; font-weight: 800; cursor: pointer; color: var(--muted); }
.eg-all:hover { border-color: var(--ink); color: var(--ink); }
.rot-pick { height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 6px; background: #fff; font-size: 13px; }
.row-acts { white-space: nowrap; }
.ra-b { width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); cursor: pointer; font-size: 15px; margin-right: 4px; }
.ra-b:hover { border-color: var(--ink); }
.paste-box { display: flex; flex-direction: column; gap: 8px; background: var(--ground); border-radius: 12px; padding: 12px; }
.paste-box[hidden] { display: none; }
.paste-box textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.lsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--ink); color: #fff; border-radius: 12px; overflow: hidden; }
.lsum span { padding: 10px 14px; font-size: 12px; color: #BDBAB4; display: flex; flex-direction: column; border-right: 1px solid #333331; }
.lsum span:last-child { border-right: none; }
.lsum b { color: #fff; font-family: var(--font-head); font-size: 20px; }
@media (max-width: 700px) { .lsum { grid-template-columns: 1fr 1fr; } }
.layouts { display: flex; flex-direction: column; gap: 14px; }
.rk-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.rk-card header { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; padding: 10px 14px; background: var(--ground); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.rk-card header > b { font-family: var(--font-head); font-size: 17px; color: var(--ink); margin-right: 4px; }
.rk-card header span b { color: var(--ink); }
.rk-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 14px; padding: 12px 14px; align-items: start; }
@media (max-width: 860px) { .rk-body { grid-template-columns: 1fr; } }
.rk-svg svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.rk-list { width: 100%; border-collapse: collapse; font-size: 12px; }
.rk-list th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.rk-list td { padding: 4px 6px; border-bottom: 1px solid var(--line); }
.rk-list .r { text-align: right; }
.rk-card .offcuts { padding: 0 14px 12px; }
.parts.parts-pro { min-width: 660px; }
.parts.parts-pro th, .parts.parts-pro td { padding: 7px 4px; }

.parts.parts-pro input[type=number] { min-width: 54px; }
.parts.parts-pro input[data-k="s"] { width: 64px; }
.parts.parts-pro input[data-k="u"], .parts.parts-pro input[data-k="e"] { min-width: 84px; }
.parts.parts-pro .edge-pick { min-width: 120px; max-width: 150px; }
.parts.parts-pro .rot-pick { width: 82px; }
.eg i { pointer-events: none; } .eg input { z-index: 1; }
.rk-title { font-size: 15px; color: var(--muted); }
.rk-title b { color: var(--ink); }
.rk-list caption { text-align: left; font-weight: 700; font-size: 12px; padding-bottom: 4px; }
.rk-list td small { display: block; color: var(--muted); font-size: 11px; }
.rk-list .kod, .kodc { color: #8A2B1E; font-weight: 800; }
.eg-c { display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #8A2B1E; }
@media print {
  .pr-top { display: flex; justify-content: space-between; border-bottom: 1px solid #999; padding-bottom: 4px; margin-bottom: 6px; font-size: 11pt; }
  .pr-grid { display: grid; grid-template-columns: 62mm 1fr; gap: 6mm; }
  .pr-info p { margin: 0 0 2mm; font-size: 9pt; }
  .pr-map svg { width: 100%; height: auto; max-height: 175mm; }
}
/* 3D: görünüş düymələri iki sətrə keçə bilir (heç biri gizlənmir) */
.v3d-top { flex-wrap: wrap; overflow: visible; right: 12px; gap: 6px; }
.v3d-top .v3d-chip { min-height: 32px; padding: 0 11px; font-size: 12.5px; }
@media (max-width: 560px) { .v3d-top .v3d-chip { min-height: 30px; padding: 0 9px; font-size: 12px; } }
.is-full .v3d-top { right: 12px; }
/* Şkaf qapıları: şüşəli / şüşəsiz */
.cfg-glass { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.cfg-glass span { font-weight: 700; margin-right: 4px; }
.cfg-glass button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.cfg-glass button[aria-pressed="true"] { background: #2F4A63; color: #fff; border-color: #2F4A63; }
.v3d-lib .cfg-glass { font-size: 12px; }
.v3d-lib .cfg-glass button { min-height: 30px; padding: 0 9px; font-size: 11.5px; }

/* ===== Dekor seçici: kateqoriyalar, axtarış, ton, CNC ===== */
.pk-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pk-tabs button { min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid #3A3A38; background: transparent; color: #E9E6E0; font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pk-tabs button span { font-size: 11px; color: #9A958E; font-weight: 600; }
.pk-tabs button:hover { border-color: #6B6660; }
.pk-tabs button[aria-selected="true"] { background: var(--oak-light, #D9A066); border-color: var(--oak-light, #D9A066); color: #1B1B1A; }
.pk-tabs button[aria-selected="true"] span { color: #4A3520; }
.pk-bar[hidden], .pk-tones[hidden] { display: none; }
.pk-srch input { width: 100%; height: 42px; border-radius: 10px; border: 1px solid #3A3A38; background: #232322; color: #F2EFEA; padding: 0 12px; font: inherit; }
.pk-srch input::placeholder { color: #8E8A84; }
.pk-srch input:focus { outline: 2px solid var(--oak-light, #D9A066); outline-offset: 1px; }
.pk-tones { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-tones:empty { display: none; }
.pk-tones button { min-height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid #333331; background: #232322; color: #CFCBC4; font-size: 12px; font-weight: 600; cursor: pointer; }
.pk-tones button span { color: #8E8A84; margin-left: 4px; }
.pk-tones button[aria-pressed="true"] { background: #F2EFEA; color: #1B1B1A; border-color: #F2EFEA; }
.picker .swatches { padding: 6px 2px; } /* bütün dekorlar görünür, ayrıca sürüşdürmə zolağı yoxdur */
.picker .swatch small { display: block; font-size: 11px; color: #9A958E; margin-top: -2px; }
.pk-empty { color: #9A958E; grid-column: 1 / -1; margin: 8px 0; }
.pk-note { margin: 0; font-size: 13px; color: #BDBAB4; line-height: 1.5; }
.pk-note b { color: #F2EFEA; }
.pk-note a { color: var(--oak-light, #D9A066); }
.swatches.cnc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cnc-sw .cnc-pv { display: block; background: #2A2A29; border-radius: 10px; padding: 8px; }
.cnc-sw .cnc-pv svg { width: 100%; height: auto; display: block; }
.cnc-sw[aria-pressed="true"] .cnc-pv { outline: 3px solid var(--oak-light, #D9A066); outline-offset: 2px; }
@media (max-width: 560px) { .swatches.cnc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cfg-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.cfg-opts:empty { display: none; }
.cfg-cnc { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.cfg-cnc span { font-weight: 700; }
.cfg-cnc select { height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); padding: 0 8px; font: inherit; font-size: 13px; }
.v3d-lib .cfg-cnc { font-size: 12px; } .v3d-lib .cfg-cnc select { height: 32px; font-size: 12px; }
/* Raskroy rejimi: Teksturlu / Teksturasız (eCutout-dakı "текстура") */
.tex-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tex-mode-l { grid-column: 1 / -1; font-size: 14px; font-weight: 700; }
.tex-mode button { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; font: inherit; color: inherit; }
.tex-mode button b { font-size: 15px; }
.tex-mode button small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.tex-mode button.on { border-color: var(--oak); background: #FBF4EC; box-shadow: inset 0 0 0 1px var(--oak); }
.tex-mode button.on b::before { content: "● "; color: var(--oak); }
@media (max-width: 560px) { .tex-mode { grid-template-columns: 1fr; } }
.tex-cmp:empty { display: none; }
.tc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; background: var(--ground); }
.tc span { font-size: 12px; color: var(--muted); }
.tc b { font-family: var(--font-head); font-size: 20px; }
.tc small { font-size: 12px; color: var(--muted); }
.tc.on { background: #1B1B1A; color: #fff; border-color: #1B1B1A; }
.tc.on span, .tc.on small { color: #BDBAB4; }
.tc-adv { margin: 6px 0 0; font-size: 13px; line-height: 1.5; background: #EEF5F0; color: #1E4D33; border-radius: 10px; padding: 8px 12px; }
.sty-mode { margin-top: 4px; }
.map-box iframe { height: 420px; }
@media (max-width: 640px) { .map-box iframe { height: 320px; } }

/* Əlaqə: tam enli xəritə */
.el-map-sec { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.el-map-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.el-map-head h2 { font-size: 22px; }
.el-map-head span { color: var(--muted); font-weight: 600; }
.map-box.map-wide { border-radius: 18px; }
.map-box.map-wide iframe { height: 480px; }
@media (max-width: 640px) { .map-box.map-wide iframe { height: 360px; } }
.map-static { position: relative; display: block; line-height: 0; }
.map-static img { width: 100%; height: auto; display: block; max-height: 520px; object-fit: cover; }
.map-open { position: absolute; top: 12px; left: 12px; line-height: 1.2; background: #fff; color: #1A73E8; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.map-attr { position: absolute; right: 0; bottom: 0; line-height: 1.2; background: rgba(255,255,255,.85); color: #555; font-size: 11px; padding: 2px 6px; }
.map-box.map-wide { background: #ECE9E3 url("../img/xerite.jpg") center / cover no-repeat; } /* iframe yüklənənə qədər (və ya bloklananda) xəritə şəkli görünür */

/* Xəritə üstündə məlumat kartı (Google kartı kimi) və altında keçidlər */
.map-box.map-wide { position: relative; }
.map-card { position: absolute; top: 12px; left: 12px; z-index: 2; background: #fff; color: #202124; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.22); padding: 14px 16px 12px; max-width: 290px; display: flex; flex-direction: column; gap: 3px; line-height: 1.35; font-family: Roboto, Arial, var(--font-body, sans-serif); }
.map-card b { font-size: 17px; font-weight: 600; }
.map-card span { font-size: 14px; color: #3c4043; }
.map-card small { font-size: 12px; color: #70757a; }
.mc-acts { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.mc-open { display: inline-flex; align-items: center; gap: 8px; background: #1A73E8; color: #fff !important; text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; }
.mc-open:hover { background: #1765cc; }
.mc-route { width: 40px; height: 40px; border-radius: 50%; background: #EEF3FD; color: #1A73E8 !important; display: inline-flex; align-items: center; justify-content: center; }
.mc-route:hover { background: #DCE7FB; }
.map-links { margin: 2px 0 0; text-align: center; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 14px; color: var(--muted); }
.map-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.map-links a:hover { color: var(--ink); }
.map-links a.rey { color: #B7791F; }
@media (max-width: 640px) { .map-card { max-width: calc(100% - 24px); padding: 10px 12px; } .map-card b { font-size: 15px; } .mc-open { padding: 7px 12px; font-size: 13px; } }

/* ===== Əlaqə səhifəsi (yenidən qurulmuş) ===== */
.ct { display: flex; flex-direction: column; gap: 22px; padding-bottom: 72px; }
.ct-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; padding: 30px 32px; border-radius: 22px; background: var(--ink); color: #F2EFEA; }
.ct-hero-t { max-width: 640px; }
.ct-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--oak-light, #D9A066); }
.ct-hero h1 { font-size: clamp(28px, 4vw, 40px); margin: 6px 0 10px; color: #fff; }
.ct-hero p { margin: 0; color: #BDBAB4; line-height: 1.6; }
.ct-quick { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-quick .btn { gap: 8px; min-height: 46px; }
.ct-quick .btn-outline { color: #F2EFEA; border-color: #4A4744; background: transparent; }
.ct-quick .btn-outline:hover { border-color: #F2EFEA; }
.ct-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .ct-info { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ct-info { grid-template-columns: 1fr; } }
.ct-tile { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.ct-ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: #F4ECE2; color: var(--oak); display: inline-flex; align-items: center; justify-content: center; }
.ct-tile > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ct-l { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ct-tile b { font-size: 15px; line-height: 1.4; display: flex; flex-direction: column; }
.ct-tile a { font-size: 13px; font-weight: 700; color: var(--oak); text-decoration: none; }
.ct-tile a:hover { text-decoration: underline; }
.ct-tile a.ct-tel { font-size: 15px; color: var(--ink); }
.ct-status { font-size: 12px; font-weight: 700; color: #8A2B1E; display: inline-flex; align-items: center; gap: 6px; }
.ct-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ct-status.on { color: #1F7A4D; }
.ct-main { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .ct-main { grid-template-columns: 1fr; } }
.ct-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.ct-card-h h2 { font-size: 20px; margin: 0; }
.ct-card-h p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.ct-card-h.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; }
.ct-team { display: flex; flex-direction: column; gap: 12px; }
.ct-person { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--ground); }
.ct-av { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: var(--oak); color: #fff; font-family: var(--font-head); font-size: 22px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ct-p-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ct-p-t b { font-size: 17px; }
.ct-p-t span { font-size: 12px; color: var(--muted); }
.ct-p-t a { font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; margin-top: 2px; }
.ct-p-a { display: flex; gap: 8px; }
.ct-ib { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line-2); color: var(--ink); }
.ct-ib:hover { border-color: var(--ink); }
.ct-ib.wa { background: #1F7A4D; border-color: #1F7A4D; color: #fff; }
.ct-ib.wa:hover { background: #18643F; }
.ct-form { display: flex; flex-direction: column; gap: 14px; }
.ct-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .ct-row2 { grid-template-columns: 1fr; } }
.ct-topics { border: none; margin: 0; padding: 0; }
.ct-topics legend { font-size: 14px; font-weight: 600; padding: 0 0 8px; }
.ct-topics > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 13px; cursor: pointer; }
.ct-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ct-map { gap: 14px; }
.ct-map .map-links { margin: 0; justify-content: flex-end; }
.ct-map .map-box.map-wide iframe { height: 460px; }
@media (max-width: 640px) { .ct-hero { padding: 22px 20px; } .ct-card { padding: 18px; } .ct-quick { width: 100%; } .ct-quick .btn { flex: 1 1 auto; } .ct-map .map-links { justify-content: flex-start; } }
.ct-note { margin-top: auto; background: #F7F1E8; border: 1px solid #EADFCF; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.ct-note b { font-size: 15px; }
.ct-note p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.ct-note-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ct-p-t a, .ct-tile a.ct-tel { white-space: nowrap; }
@media (max-width: 560px) {
  .ct-info { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ct-tile { flex-direction: column; gap: 8px; padding: 14px; }
  .ct-tile b { font-size: 14px; }
  .ct-tile a.ct-tel { font-size: 13px; }
  .ct-ic { width: 36px; height: 36px; }
  .ct-person { gap: 10px; padding: 12px; }
  .ct-av { width: 42px; height: 42px; font-size: 18px; }
  .ct-ib { width: 40px; height: 40px; }
  .ct-p-t a { font-size: 14px; }
}
/* 3D otaq fonu: divar və döşəmə */
.cfg-room { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; }
.cfg-room > span { font-weight: 700; }
.rm-g { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rm-g i { font-style: normal; color: var(--muted); font-size: 12px; margin-right: 2px; }
.rm-w { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; position: relative; }
.rm-f { width: 34px; height: 24px; border-radius: 6px; border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; }
.rm-w[aria-pressed="true"], .rm-f[aria-pressed="true"] { outline: 2px solid var(--oak); outline-offset: 2px; }
.rm-custom { background: conic-gradient(#e66 0 16%, #ec6 0 33%, #6c6 0 50%, #6ce 0 66%, #66e 0 83%, #e6e 0); overflow: hidden; display: inline-block; }
.rm-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: none; padding: 0; }
.v3d-lib .cfg-room { font-size: 12px; }
.v3d-lib .rm-w { width: 22px; height: 22px; } .v3d-lib .rm-f { width: 28px; height: 20px; }

/* ===== 3D panel: dekor sırası (kəsilməyən seçim halqası, oxlar, səliqəli sürüşdürmə) ===== */
.cfg-tabs { flex-wrap: wrap; overflow: visible; }
.cfg-swwrap { position: relative; margin: 0 -6px; }
.cfg-sw { padding: 6px 6px 12px; gap: 10px; grid-auto-columns: 92px; scroll-snap-type: x proximity; scroll-padding: 6px; scrollbar-width: thin; scrollbar-color: #CFC9C0 transparent; overscroll-behavior-x: contain; }
.cfg-sw::-webkit-scrollbar { height: 6px; }
.cfg-sw::-webkit-scrollbar-track { background: transparent; }
.cfg-sw::-webkit-scrollbar-thumb { background: #D6D0C7; border-radius: 999px; }
.cfg-sw::-webkit-scrollbar-thumb:hover { background: #BDB6AB; }
.cfg-s { scroll-snap-align: start; gap: 6px; }
.cfg-s .media { width: 92px; height: 62px; border-radius: 12px; outline: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: box-shadow .15s, transform .15s; }
.cfg-s:hover .media { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.08); }
.cfg-s[aria-selected="true"] .media { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--oak); }
.cfg-s:focus-visible { outline: none; }
.cfg-s:focus-visible .media { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--oak-light, #D9A066); }
.cfg-s span { font-size: 12px; font-weight: 600; line-height: 1.25; white-space: normal; }
.cfg-s[aria-selected="true"] span { color: var(--oak); }
.sw-arr { position: absolute; top: 37px; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 22px; line-height: 1; display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); padding: 0 0 2px; }
.sw-arr.l { left: 2px; } .sw-arr.r { right: 2px; }
.cfg-swwrap.can-l .sw-arr.l, .cfg-swwrap.can-r .sw-arr.r { display: inline-flex; }
.cfg-swwrap::before, .cfg-swwrap::after { content: ""; position: absolute; top: 0; bottom: 12px; width: 28px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .15s; }
.cfg-swwrap::before { left: 0; background: linear-gradient(90deg, var(--card), transparent); }
.cfg-swwrap::after { right: 0; background: linear-gradient(270deg, var(--card), transparent); }
.cfg-swwrap.can-l::before, .cfg-swwrap.can-r::after { opacity: 1; }
@media (hover: none) { .sw-arr { display: none !important; } }
@media (max-width: 560px) {
  .cfg { padding: 12px 12px 14px; }
  .cfg-sw { grid-auto-columns: 76px; gap: 8px; }
  .cfg-s .media { width: 76px; height: 52px; }
  .cfg-s span { font-size: 11px; }
  .sw-arr { top: 32px; }
  .cfg-tabs button { min-height: 36px; padding: 0 12px; font-size: 12.5px; }
}
.cfg-cl { flex-wrap: wrap; overflow: visible; }
@media (max-width: 560px) {
  .cfg-room { gap: 8px 12px; }
  .rm-g { gap: 5px; }
  .rm-w { width: 22px; height: 22px; }
  .rm-f { width: 30px; height: 22px; }
  .cfg-glass button { min-height: 32px; padding: 0 10px; font-size: 12px; }
  .cfg-c { min-height: 38px; font-size: 12px; }
  .cfg-c .cc-sw { width: 26px; height: 26px; }
}
/* Admin: yeni sifarişdə ödəniş və borc */
.pay-h { font-size: 17px; margin: 0; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end; }
@media (max-width: 760px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-debt { display: flex; flex-direction: column; gap: 2px; border-radius: 12px; padding: 10px 14px; background: var(--ground); border: 1px solid var(--line); min-height: 64px; justify-content: center; }
.pay-debt span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pay-debt b { font-family: var(--font-head); font-size: 22px; }
.pay-debt small { font-size: 12px; color: var(--muted); }
.pay-debt.red { background: #FBEAE7; border-color: #F0C9C2; } .pay-debt.red b { color: #8A2B1E; }
.pay-debt.ok { background: #E9F4EE; border-color: #BFDCCB; } .pay-debt.ok b { color: #1F5C3A; }
.pay-debt.bad { background: #FFF4E5; border-color: #F2C98A; } .pay-debt.bad small { color: #8A5A10; font-weight: 600; }
.pay-fast { display: flex; gap: 14px; margin-top: -4px; font-size: 13px; }
.pay-fast[hidden] { display: none; }
.pay-hint { margin: -4px 0 0; font-size: 12px; }
/* Raskroy kartları: rəngli / ağ-qara */
.rk-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.rk-view, .adm-bw { display: inline-flex; gap: 4px; background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.rk-view button, .adm-bw button { min-height: 32px; padding: 0 12px; border-radius: 999px; border: none; background: none; font-weight: 700; font-size: 12.5px; cursor: pointer; color: var(--muted); }
.rk-view button[aria-pressed="true"], .adm-bw button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.rk-view .rk-print { color: var(--ink); border-left: 1px solid var(--line); border-radius: 0 999px 999px 0; }
@media print {
  body.print-rk * { visibility: hidden !important; }
  body.print-rk .print-me, body.print-rk .print-me * { visibility: visible !important; }
  body.print-rk .print-me { position: absolute; left: 0; top: 0; width: 100%; }
  body.print-rk .print-me .rk-view { display: none !important; }
  body.print-rk .print-me .rk-card { break-inside: avoid; page-break-after: always; border: 1px solid #000; }
  body.print-rk .print-me .rk-card header { background: #fff; }
}
.pvc-plus span { color: var(--muted); font-size: 13px; }
.pvc-plus b { color: var(--oak); }
.sum-sub b i { font-style: normal; color: var(--oak); font-weight: 700; margin-left: 4px; }
.rm-t { border-radius: 5px; }
.kbd-hint { margin-top: -6px; }
.kbd-hint kbd { display: inline-block; min-width: 20px; padding: 1px 6px; margin: 0 1px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--card); font: 600 11px/1.5 var(--font-body, sans-serif); text-align: center; color: var(--ink); }
@media (hover: none) { .kbd-hint { display: none; } }

/* Hero plitələri: yumşaq keçid (çarpaz solma + yüngül yaxınlaşma) */
.hero-collage .tile { background: #E9E4DC; isolation: isolate; }
.hero-collage .tile .tl-layer { position: absolute; inset: -2%; background-size: 420px 420px; background-repeat: repeat; opacity: 0; transform: scale(1.06); transition: opacity 1.6s cubic-bezier(.4,0,.2,1), transform 9s cubic-bezier(.2,.6,.2,1); z-index: 0; will-change: opacity, transform; }
.hero-collage .tile .tl-layer.on { opacity: 1; transform: scale(1); }
.hero-collage .tile .tl-layer.gloss::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.75) 46%, rgba(220,220,220,.2) 50%, rgba(255,255,255,0) 58%); }
.hero-collage .tile .chip { z-index: 1; transition: opacity .45s ease, transform .45s ease; }
.hero-collage .tile .chip.out { opacity: 0; transform: translateY(6px); }
@media (prefers-reduced-motion: reduce) { .hero-collage .tile .tl-layer, .hero-collage .tile .chip { transition: none; } }
/* Texnika rəngi: hər cihaz ayrıca */
.cfg-appl2 { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.cfg-appl2 .ca-l { font-weight: 700; }
.ca-items { display: flex; flex-wrap: wrap; gap: 6px; }
.ca-items button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.ca-items button i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.ca-items button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cfg-appl2 .rm-g { gap: 6px 4px; }
.cfg-appl2 .ca-n { font-size: 12px; color: var(--muted); margin-right: 10px; }
.cfg-appl2 .ca-hint { font-size: 11.5px; color: var(--muted); }
@media (max-width: 560px) { .cfg-appl2 .ca-n { display: none; } }
/* Tam ekran kitabxanası: bütöv panel sürüşür, əlavə seçimlər yığılır */
.v3d-lib { overflow-y: auto; }
.v3d-lib .lib-list { flex: none; overflow: visible; min-height: 0; }
.lib-opts { border: 1px solid var(--line); border-radius: 12px; background: var(--ground); flex-shrink: 0; }
.lib-opts > summary { cursor: pointer; padding: 10px 12px; font-weight: 700; font-size: 13px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.lib-opts > summary::after { content: "+"; font-size: 18px; color: var(--muted); }
.lib-opts[open] > summary::after { content: "−"; }
.lib-opts-b { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; }
.v3d-lib .cfg-appl2 .ca-n { display: none; }
@media (max-width: 760px) { .v3d-lib .lib-list { flex: none; } }
/* Mişar payı: müştəri dəyişə bilər */
.kerf-box { display: flex; flex-direction: column; gap: 4px; }
.kerf-in { display: inline-flex; align-items: center; gap: 4px; }
.kerf-in input { width: 58px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); text-align: center; font: 700 15px var(--font-body, sans-serif); padding: 0 4px; -moz-appearance: textfield; }
.kerf-in input::-webkit-outer-spin-button, .kerf-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kerf-in button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); font-size: 16px; font-weight: 700; cursor: pointer; line-height: 1; }
.kerf-in button:hover { border-color: var(--ink); }
.kerf-in > span { font-weight: 700; font-size: 13px; }
.kerf-box small { font-size: 11.5px; color: var(--muted); }
.kerf-box small .linklike { font-size: 11.5px; }
.cut-params .kerf-in { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; padding: 0; border: none; background: none; }
.cut-params .kerf-in > span { display: inline; padding: 0; border: none; background: none; }
.cut-params .kerf-box small { display: block; }

/* ===== Membran fasadlar səhifəsi ===== */
.mb-hero .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.mb-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 10px; }
.mb-facts li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; }
.mb-facts b { font-family: var(--font-head); font-size: 20px; color: #fff; }
.mb-facts span { font-size: 12.5px; color: #BDBAB4; }
.mb-wrap { display: flex; flex-direction: column; gap: 28px; padding-top: 28px; padding-bottom: 72px; }
.mb-sec { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.mb-sec-h h2 { margin: 2px 0 0; font-size: clamp(20px, 2.6vw, 26px); }
.mb-sec-h .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--oak); }
.mb-sec-h .hint { margin: 4px 0 0; }
.mb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mb-steps li { background: var(--ground); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.mb-steps b { font-size: 15px; } .mb-steps span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.mb-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mb-pc { border-radius: 14px; padding: 14px 16px; }
.mb-pc h3 { margin: 0 0 6px; font-size: 16px; }
.mb-pc ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; line-height: 1.5; }
.mb-pc.ok { background: #EEF5F0; } .mb-pc.ok h3 { color: #1E4D33; }
.mb-pc.warn { background: #FFF6E9; } .mb-pc.warn h3 { color: #8A5A10; }
.mb-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-groups button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.mb-groups button span { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.mb-groups button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.mb-groups button[aria-pressed="true"] span { color: #BDBAB4; }
.mb-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.mb-film { display: flex; flex-direction: column; align-items: stretch; width: 100%; min-width: 0; gap: 4px; text-align: left; background: none; border: none; padding: 4px; cursor: pointer; font: inherit; color: inherit; }
.mb-sw { display: block; width: 100%; min-width: 0; flex: none; align-self: stretch; height: 82px; border-radius: 12px; background-size: 300px 300px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); position: relative; overflow: hidden; }
.mb-sw.gloss::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.75) 46%, rgba(255,255,255,0) 58%); }
.mb-film b { font-size: 13px; } .mb-film small { font-size: 11px; color: var(--muted); }
.mb-film[aria-pressed="true"] .mb-sw { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--oak); }
.mb-film[aria-pressed="true"] b { color: var(--oak); }
.mb-cfg { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.mb-left { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 10px; }
.mb-preview { background: var(--ground); border-radius: 16px; padding: 18px; display: flex; justify-content: center; }
.mb-preview svg { width: 100%; max-height: 520px; height: auto; }
.mb-film-name { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.mb-film-name small { color: var(--muted); font-weight: 600; }
.mb-dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); background-size: 200px; display: inline-block; }
.mb-right { display: flex; flex-direction: column; gap: 14px; }
.mb-field { display: flex; flex-direction: column; gap: 6px; }
.mb-l { font-size: 13px; font-weight: 700; }
.mb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mb-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-seg button { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 13px; cursor: pointer; }
.mb-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.mb-pats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mb-pat { display: flex; flex-direction: column; gap: 4px; align-items: center; background: var(--ground); border: 1px solid transparent; border-radius: 12px; padding: 8px 6px; cursor: pointer; font: inherit; }
.mb-pat span { display: block; width: 100%; } .mb-pat svg { width: 100%; height: auto; display: block; max-height: 110px; }
.mb-pat b { font-size: 11.5px; text-align: center; }
.mb-pat[aria-pressed="true"] { border-color: var(--oak); background: #FBF4EC; box-shadow: inset 0 0 0 1px var(--oak); }
.mb-dims { display: grid; grid-template-columns: 1fr 1fr 0.6fr; gap: 10px; }
.mb-area-l { margin: 0; font-size: 14px; } .mb-area-l b { color: var(--oak); }
.mb-ord-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr); gap: 20px; align-items: start; }
.mb-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.mb-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--ground); }
.mb-thumb { width: 54px; flex-shrink: 0; } .mb-thumb svg { width: 100%; height: auto; display: block; max-height: 80px; }
.mb-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mb-txt span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.mb-ord-side { display: flex; flex-direction: column; gap: 12px; background: var(--ground); border-radius: 16px; padding: 16px; position: sticky; top: 90px; }
.mb-sum { margin: 0; font-size: 15px; } .mb-sum b { font-family: var(--font-head); }
.mb-spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.mb-spec th { text-align: left; width: 34%; padding: 10px 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); vertical-align: top; }
.mb-spec td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mb-care-l { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; line-height: 1.55; font-size: 14px; }
.mb-faq { display: flex; flex-direction: column; gap: 8px; }
.mb-faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--ground); }
.mb-faq summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.mb-faq p { margin: 0 0 12px; line-height: 1.6; font-size: 14px; color: var(--ink-2, #3a3a38); }
@media (max-width: 960px) { .mb-cfg, .mb-ord-grid { grid-template-columns: 1fr; } .mb-left, .mb-ord-side { position: static; } .mb-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mb-sec { padding: 16px; } .mb-proscons, .mb-row2 { grid-template-columns: 1fr; } .mb-pats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mb-facts { grid-template-columns: 1fr 1fr; width: 100%; } .mb-preview svg { max-height: 360px; } }
.mb-m2 { font-style: normal; font-weight: 600; font-size: 12.5px; color: var(--oak); margin-left: 6px; }
.mb-small { display: block; margin-top: 4px; font-size: 13px; color: #8A5A10; background: #FFF6E9; border-radius: 8px; padding: 6px 10px; }
.mb-sum small { color: var(--muted); font-size: 12px; }

/* Safari: düymə içində boş blok elementlər enini itirməsin */
.mb-pat span, .cnc-sw .cnc-pv, .rm-f, .ca-items button i { flex: none; }
.mb-pat span { width: 100%; }
