/* Dorna — public site. Mobile first, works in RTL (fa) and LTR (tr) through logical properties. */
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Black.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --paper: #FAF6F0;
  --sand: #EFE6DA;
  --sand-2: #E5D8C6;
  --ink: #171310;
  --ink-2: #3A322B;
  --muted: #6B6156;
  --line: #E0D3C1;
  --red: #B3262E;
  --red-2: #8F1B22;
  --red-soft: #F6E3E0;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(23 19 16 / .06), 0 8px 28px rgb(23 19 16 / .08);
  --shadow-lg: 0 24px 60px rgb(23 19 16 / .18);
  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --stitch: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 17px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: Vazirmatn, Tahoma, "Segoe UI", system-ui, sans-serif;
  font-size: 16px; line-height: 1.85; font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.lang-tr { line-height: 1.65; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.lang-fa h1, .lang-fa h2, .lang-fa h3 { letter-spacing: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 780px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 6px 18px rgb(23 19 16 / .22); }
.btn-primary:hover { background: var(--red); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; }
.icon-btn:hover { background: var(--sand); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red); text-decoration: none; }
.link-more:hover { color: var(--red-2); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgb(250 246 240 / .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgb(23 19 16 / .06); }
.header-in { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; min-width: 0; }
.brand img { width: 40px; height: auto; }
.brand-name { display: flex; flex-direction: column; font-weight: 900; font-size: 1.35rem; line-height: 1.1; }
.brand-name small { font-weight: 500; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.main-nav { display: none; }
@media (max-width: 420px) { .brand-name small { display: none; } .brand img { width: 34px; } }
.header-actions { display: flex; align-items: center; gap: 6px; }

.welcome-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px; padding-inline-end: 14px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: .85rem;
}
.welcome-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; }
.welcome-ico .icon { width: 14px; height: 14px; }
.welcome-btn .i-pause, .welcome-btn.playing .i-play { display: none; }
.welcome-btn.playing .i-pause { display: block; }
.welcome-btn:hover { background: var(--ink); color: var(--paper); }
.eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq 1s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
.welcome-btn.playing .eq { display: inline-flex; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.welcome-text { display: none; }

.lang-switch { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; text-decoration: none; font-size: .8rem; font-weight: 700; color: var(--muted); line-height: 1.6; }
.lang-switch a[aria-current] { background: var(--ink); color: var(--paper); }

.cart-btn, .menu-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; }
.cart-btn:hover, .menu-btn:hover { background: var(--sand); }
.cart-count {
  position: absolute; top: 2px; inset-inline-end: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; line-height: 19px; text-align: center;
}
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

/* mobile menu panel */
.main-nav.open {
  display: flex; flex-direction: column; position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--paper); padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: drop .25s var(--ease);
}
.main-nav.open a { padding: 14px 4px; font-weight: 700; font-size: 1.1rem; text-decoration: none; border-bottom: 1px dashed var(--line); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 40px; }
.hero-in { display: grid; gap: 34px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; background: var(--sand); font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.stitch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.hero h1 { margin-top: 18px; font-weight: 900; font-size: clamp(2.05rem, 7.4vw, 3.9rem); line-height: 1.22; }
.lang-tr .hero h1 { line-height: 1.12; }
.lead { margin-top: 16px; font-size: 1.08rem; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-cta .btn { flex: 1 1 180px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-disc { position: absolute; width: min(92vw, 470px); aspect-ratio: 1; border-radius: 50%; background: var(--sand); }
.hero-thread { position: absolute; width: min(100vw, 520px); inset-inline-start: -10px; top: 0; height: auto; fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 12 9; stroke-linecap: round; opacity: .8; }
.lang-tr .hero-thread { transform: scaleX(-1); }
.phone-frame {
  position: relative; margin: 0; width: min(62vw, 260px); aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden;
  background: var(--ink); border: 7px solid var(--ink); box-shadow: var(--shadow-lg); transform: rotate(-3deg);
}
.lang-tr .phone-frame { transform: rotate(3deg); }
.phone-frame video, .phone-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.logo-badge {
  position: absolute; bottom: 8%; inset-inline-end: max(4%, calc(50% - 210px)); width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); box-shadow: var(--shadow); border: 2px dashed var(--red);
}
.logo-badge img { width: 62px; }

/* ---------- features ---------- */
.features { padding: 0 0 20px; }
.features-in { display: grid; gap: 12px; }
.feature { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.f-ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--red-soft); color: var(--red); }
.f-ico .icon { width: 26px; height: 26px; }
.feature h2 { font-size: 1.05rem; font-weight: 800; }
.feature p { color: var(--muted); font-size: .94rem; margin-top: 2px; line-height: 1.75; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 36px 0 64px; }
.sec-head { max-width: 680px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 900; }
.sec-head > p, .sec-head .prose { margin-top: 10px; color: var(--muted); font-size: 1.04rem; }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; max-width: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 700; color: var(--red); font-size: .92rem; }
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--stitch); border-radius: 2px; }
.h-sm { font-size: 1.4rem; font-weight: 900; margin-bottom: 20px; }

/* ---------- products ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 700; font-size: .92rem; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product[hidden] { display: none; }
.product article { height: 100%; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.product article:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.p-img { position: relative; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product article:hover .p-img img { transform: scale(1.04); }
.p-badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.p-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 12px 12px 14px; }
.p-body h3 { font-size: 1rem; font-weight: 800; }
.p-desc { font-size: .86rem; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-det { display: flex; gap: 6px; align-items: center; font-size: .8rem; color: var(--ink-2); }
.p-det .icon { width: 14px; height: 14px; color: var(--red); }
.p-foot { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.p-price { font-weight: 800; font-size: .95rem; }
.p-price .muted { font-weight: 500; font-size: .82rem; }
.add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 42px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--paper); font-weight: 700; font-size: .88rem; white-space: nowrap; transition: all .2s;
}
.add-btn:hover { background: var(--ink); color: var(--paper); }
.add-btn .icon { width: 18px; height: 18px; }
.add-btn .i-done, .add-btn.in-cart .i-add { display: none; }
.add-btn.in-cart { background: var(--red); border-color: var(--red); color: #fff; }
.add-btn.in-cart .i-done { display: block; }

/* ---------- about ---------- */
.about { background: var(--sand); }
.about-in { display: grid; gap: 32px; align-items: center; }
.about-art img { border-radius: var(--radius); }
.about-mark { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 420px; margin-inline: auto; border-radius: 50%; background: var(--paper); }
.about-mark::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; border: 2px dashed var(--red); opacity: .55; }
.about-mark img { width: 62%; }
.about-text h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 900; }
.prose { color: var(--ink-2); }
.about .prose { margin-top: 14px; font-size: 1.08rem; }
.prose p + p, .prose ul, .prose h2, .prose h3 { margin-top: 14px; }
.prose h2 { font-size: 1.45rem; font-weight: 900; margin-top: 30px; color: var(--ink); }
.prose h3 { font-size: 1.2rem; font-weight: 800; margin-top: 24px; color: var(--ink); }
.prose ul { padding-inline-start: 0; list-style: none; }
.prose li { position: relative; padding-inline-start: 22px; margin-top: 6px; }
.prose li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.prose a { color: var(--red); }
.prose-lg { font-size: 1.1rem; }

/* ---------- workshop ---------- */
.workshop { background: var(--ink); color: var(--paper); }
.workshop .sec-head .prose, .workshop .sec-head > p { color: #CFC5B8; }
.workshop .eyebrow { color: #F3B7B2; }
.gallery { list-style: none; margin: 0; padding: 0 var(--gutter) 6px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; }
.g-item { flex: 0 0 72%; scroll-snap-align: center; }
.g-item figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #2a241f; }
.g-item video, .g-item img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.g-item:not(.is-video) img { aspect-ratio: 4 / 5; }
.g-item figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgb(0 0 0 / .72)); color: #fff; font-size: .9rem; font-weight: 500; }

/* ---------- wholesale band ---------- */
.wholesale { background: var(--red); color: #fff; padding: 44px 0; position: relative; overflow: hidden; }
.wholesale::before, .wholesale::after { content: ""; position: absolute; inset-inline: 0; height: 3px; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .55) 0 10px, transparent 10px 17px); }
.wholesale::before { top: 10px; } .wholesale::after { bottom: 10px; }
.wholesale-in { display: grid; gap: 22px; align-items: center; }
.wholesale h2 { font-size: clamp(1.5rem, 4.6vw, 2.2rem); font-weight: 900; }
.wholesale p { margin-top: 8px; opacity: .92; }
.ws-phones { display: flex; flex-wrap: wrap; gap: 10px; }
.phone-pill { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: 1.08rem; text-decoration: none; box-shadow: 0 8px 20px rgb(0 0 0 / .15); transition: transform .2s var(--ease); }
.phone-pill:hover { transform: translateY(-2px); }
.phone-pill .icon { color: var(--red); }

/* ---------- blog ---------- */
.post-grid { display: grid; gap: 16px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pc-img { display: block; aspect-ratio: 16 / 10; background: var(--sand); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-ph { display: grid; place-items: center; height: 100%; background: repeating-linear-gradient(135deg, var(--sand) 0 18px, var(--sand-2) 18px 20px); }
.pc-ph img { width: 64px; opacity: .85; }
.pc-body { display: flex; flex-direction: column; gap: 6px; padding: 18px; flex: 1; }
.pc-body time { font-size: .82rem; color: var(--muted); }
.pc-body h3 { font-size: 1.15rem; font-weight: 800; }
.pc-body h3 a { text-decoration: none; }
.pc-body h3 a:hover { color: var(--red); }
.pc-body p { color: var(--muted); font-size: .94rem; line-height: 1.75; }
.pc-body .link-more { margin-top: auto; padding-top: 8px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 14px; }
.c-card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.c-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.c-card h3 .icon { color: var(--red); }
.c-label { margin-top: 14px; font-size: .85rem; color: var(--muted); font-weight: 700; }
.c-phone { display: block; width: fit-content; margin-top: 4px; font-size: 1.3rem; font-weight: 800; text-decoration: none; }
.lang-fa .c-phone { margin-inline-start: auto; margin-inline-end: 0; }
.c-phone:hover { color: var(--red); }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 800; white-space: nowrap; }
.addr { color: var(--ink-2); }
.map-box { margin: 14px 0 12px; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: repeating-linear-gradient(45deg, var(--sand) 0 14px, var(--sand-2) 14px 16px); }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgb(255 255 255 / .1); color: inherit; transition: background .2s; }
.social a:hover { background: var(--red); color: #fff; }
.social-dark a { display: inline-flex; gap: 8px; width: auto; padding: 0 16px; background: var(--sand); text-decoration: none; font-weight: 700; font-size: .9rem; }

/* ---------- inner pages ---------- */
.page-head { padding: 40px 0 24px; }
.page-head h1 { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 900; margin-top: 8px; }
.page-head p { margin-top: 10px; color: var(--muted); font-size: 1.05rem; }
.page-head .meta { font-size: .9rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--red); }
.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 26px; }
.article-back { margin: 34px 0 10px; }
.more-posts { background: var(--sand); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pager a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--white); text-decoration: none; font-weight: 700; }
.pager a[aria-current] { background: var(--ink); color: var(--paper); }
.page-404 { text-align: center; padding: 80px 0; }
.page-404 img { margin: 0 auto 10px; }
.page-404 .btn { margin-top: 22px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D9CFC2; padding: 48px 0 0; }
.footer-in { display: grid; gap: 28px; }
.footer-brand img { width: 60px; }
.footer-brand p { margin-top: 12px; max-width: 26em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: flex-start; }
.footer-nav a { text-decoration: none; } .footer-nav a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer-contact a { text-decoration: none; font-weight: 700; color: #fff; }
.fc-label { margin-top: 10px; font-size: .85rem; color: #A99E91; }
.footer-bottom { margin-top: 36px; padding-top: 18px; padding-bottom: calc(18px + 70px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(255 255 255 / .12); font-size: .85rem; color: #A99E91; }

/* ---------- mobile bottom bar ---------- */
.mobile-bar {
  position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)); z-index: 35;
  display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgb(23 19 16 / .92); backdrop-filter: blur(10px); box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .35s var(--ease);
}
.mobile-bar.show { transform: none; }
.mobile-bar a, .mobile-bar button { position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 999px; border: 0; text-decoration: none; font-weight: 700; color: var(--paper); background: transparent; }
.mobile-bar .mb-cart { background: var(--red); color: #fff; }
.mobile-bar .cart-count { position: static; background: #fff; color: var(--red); }

/* ---------- cart drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgb(23 19 16 / .45); opacity: 0; transition: opacity .3s; }
.drawer-backdrop.open { opacity: 1; }
.drawer {
  position: fixed; z-index: 61; inset-block: 0; inset-inline-end: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--paper); box-shadow: var(--shadow-lg);
  transform: translateX(var(--drawer-off, 100%)); transition: transform .35s var(--ease);
}
[dir="rtl"] .drawer { --drawer-off: -100%; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 900; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.cart-empty { color: var(--muted); text-align: center; padding: 30px 6px; }
.cart-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 10px; align-items: center; background: var(--white); border-radius: var(--radius-sm); padding: 8px; }
.cart-item img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; background: var(--sand); }
.ci-main strong { display: block; font-size: .92rem; line-height: 1.5; }
.ci-price { font-size: .78rem; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.stepper button { width: 32px; height: 34px; border: 0; background: transparent; display: grid; place-items: center; }
.stepper .icon { width: 16px; height: 16px; }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; }
.ci-remove { width: 36px; height: 36px; color: var(--muted); }
.order-form { margin-top: 22px; padding-top: 20px; border-top: 2px dashed var(--line); display: grid; gap: 12px; }
.order-form h3 { font-size: 1.15rem; font-weight: 900; }
.form-note { font-size: .86rem; color: var(--muted); background: var(--sand); padding: 10px 12px; border-radius: var(--radius-sm); line-height: 1.75; }
.fld { display: grid; gap: 4px; }
.fld > span { font-size: .88rem; font-weight: 700; }
.fld input, .fld textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--white); font-size: 1rem; resize: vertical; }
.fld input:focus, .fld textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--sand); }
.fld input[aria-invalid="true"] { border-color: var(--red); }
.fld em { font-style: normal; font-size: .8rem; color: var(--red); min-height: 0; }
.fld em:empty { display: none; }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.seg legend { font-size: .88rem; font-weight: 700; margin-bottom: 4px; width: 100%; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 700; cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red); background: var(--red-soft); padding: 10px 12px; border-radius: var(--radius-sm); font-size: .9rem; }
.order-done { text-align: center; padding: 30px 10px; }
.done-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--red-soft); color: var(--red); margin-bottom: 12px; }
.done-ico .icon { width: 36px; height: 36px; }
.order-done h3 { font-size: 1.4rem; font-weight: 900; }
.order-done p { margin: 8px 0 20px; color: var(--muted); }
body.locked { overflow: hidden; }

/* ---------- reveal animation (only with JS, only without reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- larger screens ---------- */
@media (min-width: 560px) {
  .welcome-text { display: inline; }
  .features-in { grid-template-columns: repeat(3, 1fr); }
  .feature { flex-direction: column; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .g-item { flex-basis: 42%; }
}
@media (min-width: 800px) {
  :root { --gutter: 28px; --header-h: 76px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .c-map { grid-column: 1 / -1; }
  .footer-in { grid-template-columns: 1.4fr 1fr 1fr; }
  .wholesale-in { grid-template-columns: 1.2fr 1fr; }
  .ws-phones { justify-content: flex-end; }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .mobile-bar { display: none; }
  .footer-bottom { padding-bottom: 22px; }
  .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .g-item { flex: none; }
}
@media (min-width: 1000px) {
  .main-nav { display: flex; gap: 2px; margin-inline: auto; }
  .main-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--ink-2); transition: background .2s, color .2s; }
  .main-nav a:hover { background: var(--sand); color: var(--ink); }
  .main-nav a.active, .main-nav a[aria-current] { color: var(--red); }
  .brand { margin-inline-end: 0; }
  .menu-btn { display: none; }
  .hero { padding: 54px 0 70px; }
  .hero-in { grid-template-columns: 1.1fr .9fr; }
  .hero-visual { min-height: 560px; }
  .phone-frame { width: 290px; }
  .section { padding: 96px 0; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .about-in { grid-template-columns: .9fr 1.1fr; gap: 64px; }
  .contact-grid { grid-template-columns: 1fr 1fr 1.3fr; }
  .c-map { grid-column: auto; }
  .chips { margin-inline: 0; padding-inline: 2px; flex-wrap: wrap; }
}
