/* Masiha Style - storefront stylesheet (RTL, luxury, responsive) */
@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn[wght].woff2') format('woff2 supports variations'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn[wght].woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  --bg: #FBFAF8;
  --surface: #FFFFFF;
  --soft: #F4F1EC;
  --border: #E7E2DA;
  --border-strong: #D9D2C6;
  --text: #211E1B;
  --muted: #7C746A;
  --accent: #A8814F;
  --accent-deep: #8C6837;
  --accent-soft: #F3EADC;
  --err: #C25B4B;
  --ok: #3F7D5C;
  --radius: 10px;
  --radius-lg: 14px;
  --max: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 1px 2px rgba(33, 30, 27, .05), 0 8px 24px rgba(33, 30, 27, .04);
  --shadow-md: 0 18px 48px rgba(33, 30, 27, .1);
  --shadow-lg: 0 30px 80px rgba(33, 30, 27, .16);
}

[data-theme='dark'] {
  --bg: #121110;
  --surface: #1A1917;
  --soft: #232120;
  --border: rgba(255, 255, 255, .12);
  --border-strong: rgba(255, 255, 255, .2);
  --text: #F6F3EF;
  --muted: rgba(246, 243, 239, .62);
  --accent: #D4AF72;
  --accent-deep: #E0C089;
  --accent-soft: rgba(212, 175, 114, .14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, .5);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', 'Estedad', 'Dana', 'Noto Sans Arabic', Tahoma, sans-serif;
  font-size: 15.5px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.1rem; }
p { margin: 0; }

::selection { background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }

.section { padding: 104px 0; position: relative; }
.section--soft { background: var(--soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; letter-spacing: .16em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--accent); opacity: .6; }

.head { max-width: 620px; margin-bottom: 52px; }
.head--center { margin-inline: auto; text-align: center; }
.head p { color: var(--muted); margin-top: 14px; }

/* ---------- announcement ---------- */
.announce {
  background: var(--text); color: var(--bg);
  text-align: center; font-size: .82rem; padding: 9px 16px;
  letter-spacing: .02em;
}
[data-theme='dark'] .announce { background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.header.is-stuck { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 76px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep);
  font-weight: 800; font-size: 1rem; letter-spacing: -.02em;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.logo__text b { font-size: 1.02rem; font-weight: 700; }
.logo__text span { font-size: .66rem; letter-spacing: .28em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 30px; margin-inline-end: auto; }
.nav a {
  position: relative; font-size: .92rem; color: var(--muted);
  padding: 6px 0; transition: color .25s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--border);
  color: var(--text);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.icon-btn:hover { background: var(--soft); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }

.cart-btn { position: relative; }
.cart-btn__count {
  position: absolute; inset-block-start: -4px; inset-inline-end: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700;
  display: grid; place-items: center;
  opacity: 0; transform: scale(.4);
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.cart-btn__count.is-on { opacity: 1; transform: scale(1); }

.burger { display: none; }

/* ---------- دکمه شناور سبد خرید ---------- */
.cart-fab {
  position: fixed; inset-inline-start: 26px; inset-block-end: 26px; z-index: 70;
  display: flex; align-items: center; gap: 13px;
  padding: 9px 24px 9px 9px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--text); color: var(--bg);
  box-shadow: 0 18px 40px -8px color-mix(in srgb, var(--text) 45%, transparent);
  opacity: 0; transform: translateY(24px) scale(.92); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.cart-fab.is-on { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; animation: fabPop .5s var(--ease); }
.cart-fab:hover { background: var(--accent); color: #fff; box-shadow: 0 18px 40px -6px color-mix(in srgb, var(--accent) 55%, transparent); }
.cart-fab__icon {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 18%, transparent);
}
.cart-fab__icon svg { width: 19px; height: 19px; }
.cart-fab__count {
  position: absolute; inset-block-start: -5px; inset-inline-end: -5px;
  min-width: 19px; height: 19px; padding: 0 4px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .66rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--surface);
}
.cart-fab__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.35; }
.cart-fab__text b { font-size: .86rem; }
.cart-fab__text span { font-size: .72rem; opacity: .78; }
@keyframes fabPop {
  0% { transform: translateY(24px) scale(.8); opacity: 0; }
  60% { transform: translateY(-4px) scale(1.04); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}
@media (max-width: 640px) {
  .cart-fab { inset-inline-start: 16px; inset-block-end: 16px; padding: 8px 18px 8px 8px; }
  .cart-fab__text b { font-size: .8rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  font-size: .93rem; font-weight: 600; border: 1px solid transparent;
  background: var(--soft); color: var(--text);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .3s var(--ease), border-color .25s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn svg { width: 17px; height: 17px; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--soft); }
.btn--soft { background: var(--accent-soft); color: var(--accent-deep); }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 16px; font-size: .82rem; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 96px; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 64px; align-items: center;
}
.hero__text { animation: rise .9s var(--ease) both; }
.hero__text h1 em { font-style: normal; color: var(--accent); }
.hero__sub { color: var(--muted); margin-top: 22px; max-width: 46ch; font-size: 1.02rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 40px; margin-top: 54px;
  padding-top: 30px; border-top: 1px solid var(--border);
}
.hero__stats div b { display: block; font-size: 1.35rem; color: var(--accent); }
.hero__stats div span { font-size: .82rem; color: var(--muted); }

.hero__media {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: rise 1.1s .12s var(--ease) both;
}
.hero__media img {
  width: 100%; height: 620px; object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.hero__media:hover img { transform: scale(1.035); }
.hero__badge {
  position: absolute; inset-block-end: 22px; inset-inline-start: 22px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 20px;
  box-shadow: var(--shadow-md);
}
.hero__badge b { display: block; font-size: .95rem; }
.hero__badge span { font-size: .78rem; color: var(--muted); }

/* ---------- slider / blog ---------- */
.slider { position: relative; }
.slider__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.slider__nav { display: flex; gap: 10px; }
.slider__track {
  display: flex; gap: 26px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__dots { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.slider__dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--border-strong); transition: width .3s var(--ease), background .3s var(--ease);
}
.slider__dots button.is-on { width: 26px; background: var(--accent); }

.post {
  flex: 0 0 clamp(280px, 33%, 380px); scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease);
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.post__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__img img { transform: scale(1.06); }
.post__tag {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-radius: 999px; padding: 5px 13px; font-size: .74rem; color: var(--accent-deep);
}
.post__body { padding: 22px 24px 26px; }
.post__body h3 { margin-bottom: 10px; }
.post__body p { color: var(--muted); font-size: .92rem; }
.post__meta {
  display: flex; align-items: center; gap: 14px; margin-top: 18px;
  font-size: .78rem; color: var(--muted);
}

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.cat {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3 / 4; display: block;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cat:hover img { transform: scale(1.07); }
.cat__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; gap: 4px; padding: 22px;
  background: linear-gradient(to top, rgba(15, 13, 12, .78), rgba(15, 13, 12, .05) 62%);
  color: #fff;
}
.cat__overlay b { font-size: 1.05rem; }
.cat__overlay span { font-size: .8rem; opacity: .82; }

/* ---------- filters + products ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
  padding: 9px 20px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--border);
  font-size: .87rem; color: var(--muted);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.product__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; cursor: pointer; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.product:hover .product__img img { transform: scale(1.06); }
.product__badge {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
  background: var(--accent); color: #fff; border-radius: 999px;
  padding: 5px 13px; font-size: .72rem; font-weight: 600;
}
.product__quick {
  position: absolute; inset-inline: 14px; inset-block-end: 14px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.product:hover .product__quick, .product:focus-within .product__quick { opacity: 1; transform: translateY(0); }
.product__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product__body h3 { font-size: 1rem; }
.product__fabric { font-size: .8rem; color: var(--muted); }
.product__price { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.product__price b { font-size: 1.02rem; color: var(--accent-deep); }
.product__price s { font-size: .82rem; color: var(--muted); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.feature__icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 8px; font-size: 1rem; }
.feature p { color: var(--muted); font-size: .9rem; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); }
.about__media img { width: 100%; height: 520px; object-fit: cover; transition: transform 1.3s var(--ease); }
.about__media:hover img { transform: scale(1.04); }
.about p { color: var(--muted); margin-top: 18px; }
.about__points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.about__points li { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.about__points li::before {
  content: ''; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.quote__stars { color: var(--accent); letter-spacing: 3px; font-size: .9rem; }
.quote p { color: var(--muted); font-size: .94rem; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep); font-weight: 700;
}
.quote footer b { display: block; font-size: .92rem; }
.quote footer span { font-size: .78rem; color: var(--muted); }

/* ---------- newsletter ---------- */
.newsletter {
  background: var(--text); color: var(--bg);
  border-radius: 22px; padding: 62px 56px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center;
}
[data-theme='dark'] .newsletter { background: var(--soft); color: var(--text); border: 1px solid var(--border); }
.newsletter p { opacity: .74; margin-top: 12px; }
.newsletter form { display: flex; gap: 12px; }
.newsletter input {
  flex: 1; padding: 14px 20px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08); color: inherit;
  outline: none; transition: border-color .25s var(--ease);
}
[data-theme='dark'] .newsletter input { background: var(--surface); border-color: var(--border); }
.newsletter input::placeholder { color: currentColor; opacity: .5; }
.newsletter input:focus { border-color: var(--accent); }

/* ---------- fields ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .84rem; color: var(--muted); }
.field .req { color: var(--err); }
.field input, .field select, .field textarea {
  padding: 12px 15px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  outline: none; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.field textarea { resize: vertical; min-height: 92px; }
.field__err { font-size: .78rem; color: var(--err); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field.has-error .field__err { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact__list { display: grid; gap: 18px; margin-top: 30px; }
.contact__item { display: flex; align-items: flex-start; gap: 14px; }
.contact__item span[data-ico] {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep);
}
.contact__item svg { width: 18px; height: 18px; }
.contact__item b { display: block; font-size: .84rem; color: var(--muted); font-weight: 500; }
.contact__item p { font-size: .95rem; }
.contact form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.socials { display: flex; gap: 10px; margin-top: 26px; }

/* ---------- footer ---------- */
.footer { background: var(--soft); border-top: 1px solid var(--border); padding: 72px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 44px; }
.footer__grid p { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.footer__grid h4 { font-size: .95rem; margin-bottom: 16px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__grid a { font-size: .89rem; color: var(--muted); transition: color .2s var(--ease); }
.footer__grid a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .82rem; color: var(--muted);
}

/* ---------- overlays ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(20, 17, 15, .5); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.backdrop.is-open { opacity: 1; pointer-events: auto; }

/* cart drawer: slides in from the inline start edge (right in RTL) */
.cart {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 90;
  width: min(420px, 100%); background: var(--surface);
  border-inline-start: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .42s var(--ease);
  box-shadow: var(--shadow-lg);
}
[dir='rtl'] .cart { transform: translateX(-105%); }
.cart.is-open, [dir='rtl'] .cart.is-open { transform: translateX(0); }
.cart__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--border);
}
.cart__head b { font-size: 1.02rem; }
.cart__body { flex: 1; overflow-y: auto; padding: 20px 24px; display: grid; gap: 16px; align-content: start; }
.cart__foot { padding: 20px 24px 26px; border-top: 1px solid var(--border); background: var(--soft); }
.cart__row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.cart__row--total { color: var(--text); font-weight: 700; font-size: 1.02rem; margin: 14px 0 18px; }
.cart__empty { text-align: center; color: var(--muted); padding: 56px 10px; font-size: .92rem; }

.citem { display: flex; gap: 14px; animation: pop .35s var(--ease) both; }
.citem img { width: 76px; height: 96px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.citem__info { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.citem__info b { font-size: .92rem; }
.citem__info span { font-size: .78rem; color: var(--muted); }
.citem__price { font-size: .9rem; color: var(--accent-deep); font-weight: 600; }
.citem__remove {
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font-size: .78rem; padding: 0; align-self: flex-start;
  transition: color .2s var(--ease);
}
.citem__remove:hover { color: var(--err); }
.qty { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.qty button {
  width: 26px; height: 26px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--soft); color: var(--text); line-height: 1;
  transition: background .2s var(--ease);
}
.qty button:hover { background: var(--accent-soft); color: var(--accent-deep); }
.qty span { min-width: 24px; text-align: center; font-size: .86rem; }

/* ---------- modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center; padding: 22px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__panel {
  position: relative; width: min(560px, 100%);
  max-height: 88vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 34px;
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(.98);
  transition: transform .4s var(--ease);
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }
.modal__panel--wide { width: min(880px, 100%); }
.modal__close {
  position: absolute; inset-block-start: 16px; inset-inline-end: 16px;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  background: var(--soft); border: 1px solid var(--border); color: var(--text);
  display: grid; place-items: center;
  transition: background .2s var(--ease);
}
.modal__close:hover { background: var(--accent-soft); }

.steps { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.steps div {
  flex: 1; text-align: center; font-size: .78rem; color: var(--muted);
  padding-bottom: 10px; border-bottom: 2px solid var(--border);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.steps div.is-on { color: var(--accent-deep); border-color: var(--accent); font-weight: 600; }
.steps div.is-done { color: var(--ok); border-color: var(--ok); }

.pay-options { display: grid; gap: 12px; margin: 8px 0 22px; }
.pay {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 18px 20px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.pay:hover { border-color: var(--border-strong); }
.pay.is-on { border-color: var(--accent); background: var(--accent-soft); }
.pay input { margin-top: 6px; accent-color: var(--accent); }
.pay b { display: block; font-size: .95rem; }
.pay span { font-size: .82rem; color: var(--muted); }

.card-info {
  background: var(--soft); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px;
  animation: pop .35s var(--ease) both;
}
.card-info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .88rem; }
.card-info dt { color: var(--muted); }
.card-info dd { margin: 0; }
.card-info__num {
  font-size: 1.2rem; font-weight: 700; letter-spacing: .12em;
  direction: ltr; text-align: center; color: var(--accent-deep);
  background: var(--surface); border-radius: var(--radius);
  padding: 12px; margin: 4px 0 14px; border: 1px solid var(--border);
}

.thanks { text-align: center; margin-bottom: 26px; }
.thanks__mark {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 1.7rem;
  background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok);
  animation: pop .5s var(--ease) both;
}
.thanks h3 { font-size: 1.25rem; margin-bottom: 10px; }
.thanks p { color: var(--muted); font-size: .93rem; }
.thanks__code {
  display: inline-block; margin-top: 14px; padding: 7px 18px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep);
  font-weight: 700; letter-spacing: .06em; direction: ltr;
}

.dropzone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg);
  padding: 30px 20px; text-align: center; cursor: pointer;
  background: var(--soft); color: var(--muted); font-size: .9rem;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.dropzone:hover, .dropzone.is-hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.dropzone__preview { margin-top: 14px; }
.dropzone__preview img { max-height: 190px; margin: 0 auto; border-radius: var(--radius); }

/* product detail */
.pd { display: grid; grid-template-columns: .95fr 1.05fr; gap: 32px; }
.pd__img { border-radius: var(--radius-lg); overflow: hidden; }
.pd__img img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.pd h3 { font-size: 1.35rem; margin-bottom: 10px; }
.pd p { color: var(--muted); font-size: .93rem; }
.pd__price { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.pd__price b { font-size: 1.3rem; color: var(--accent-deep); }
.pd__price s { color: var(--muted); font-size: .9rem; }
.opts { display: grid; gap: 18px; margin: 22px 0 26px; }
.opts h4 { font-size: .82rem; color: var(--muted); font-weight: 500; margin-bottom: 9px; }
.sizes, .colors { display: flex; flex-wrap: wrap; gap: 9px; }
.size {
  min-width: 46px; padding: 8px 14px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-size: .86rem;
  transition: all .22s var(--ease);
}
.size:hover { border-color: var(--accent); }
.size.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.color {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid var(--border);
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.color:hover { transform: scale(1.08); }
.color.is-on { border-color: var(--accent); transform: scale(1.12); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- toasts ---------- */
.toasts {
  position: fixed; inset-block-end: 24px; inset-inline-start: 24px; z-index: 120;
  display: grid; gap: 10px;
}
.toast {
  background: var(--text); color: var(--bg);
  padding: 13px 22px; border-radius: 999px;
  font-size: .88rem; box-shadow: var(--shadow-md);
  animation: slideIn .4s var(--ease) both;
}
[data-theme='dark'] .toast { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.toast--err { background: var(--err); color: #fff; }

/* ---------- reveal + misc ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .8s linear infinite; display: inline-block;
}

@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cats, .products, .features { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .hero__media img { height: 520px; }
  .newsletter { grid-template-columns: 1fr; padding: 48px 34px; }
}

@media (max-width: 900px) {
  .section { padding: 76px 0; }
  .burger { display: grid; }
  .nav {
    position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 85;
    width: min(300px, 82%); background: var(--surface);
    border-inline-start: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 96px 30px 30px; margin: 0;
    transform: translateX(-105%);
    transition: transform .42s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  [dir='ltr'] .nav { transform: translateX(105%); }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 1.02rem; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .hero { padding: 48px 0 72px; }
  .hero__grid, .about, .contact, .pd { grid-template-columns: 1fr; gap: 38px; }
  .hero__media { order: -1; }
  .hero__media img { height: 400px; }
  .about__media img { height: 340px; }
  .post { flex-basis: 78%; }
}

@media (max-width: 720px) {
  .wrap { padding-inline: 18px; }
  .cats, .products, .features, .footer__grid { grid-template-columns: 1fr; }
  .slider__head { flex-direction: column; align-items: flex-start; }
  .hero__stats { gap: 24px; }
  .modal__panel { padding: 26px 20px; }
  .newsletter form { flex-direction: column; }
  .newsletter .btn { width: 100%; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .header__inner { min-height: 66px; gap: 12px; }
  .grid-2 { grid-template-columns: 1fr; }
  .cart { width: 100%; }
  .post { flex-basis: 88%; }
  .steps div { font-size: .7rem; }
  .toasts { inset-inline: 16px; }
  .toast { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- inline SVG sizing safety (icons must never render at intrinsic size) ---------- */
svg { max-width: 100%; }

.about__points li::before { content: none; display: none; }
.about__points li svg {
  width: 18px; height: 18px; flex-shrink: 0; box-sizing: content-box;
  padding: 7px; border-radius: 50%; stroke-width: 2.2;
  color: var(--accent-deep); background: var(--accent-soft);
}
.contact__item svg, .feature__icon svg, .icon-btn svg, .btn svg { flex-shrink: 0; }

/* ---------- cart drawer refinements ---------- */
.icon-btn svg { width: 20px; height: 20px; }
.cart__head .icon-btn { color: var(--text); }
.citem .qty, .cart .qty { width: max-content; justify-self: start; align-self: flex-start; }

/* ---------- form grid overflow fix (inputs must never force a wider track) ---------- */
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2 > *, .field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.modal__panel { overflow-x: hidden; }
.field textarea { resize: vertical; }
.co__grid, .co__body { min-width: 0; }
