/* ================================================================
   ایزی لایسنس — فروشگاه محصولات دیجیتال
   Design system & styles (RTL, Persian)
   ================================================================ */

@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

:root {
  --primary: #5a3ff0;
  --primary-dark: #4527d4;
  --primary-soft: #efeaff;
  --accent: #ff7a45;
  --accent-soft: #fff0ea;
  --ink: #1a1a2e;
  --ink-2: #40415a;
  --muted: #7a7d92;
  --line: #eceef4;
  --line-2: #e2e5ee;
  --bg: #f6f7fb;
  --white: #ffffff;
  --success: #12b76a;
  --success-soft: #e7f8f0;
  --danger: #ef4444;
  --star: #f6a609;
  --shadow-sm: 0 1px 2px rgba(26, 26, 46, .06);
  --shadow: 0 6px 20px rgba(26, 26, 46, .07);
  --shadow-lg: 0 18px 44px rgba(26, 26, 46, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, #6d4bff, var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(90, 63, 240, .28);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(90, 63, 240, .38); transform: translateY(-2px); }
.btn-accent {
  background: linear-gradient(135deg, #ff8a5c, #ff6a35);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 106, 53, .28);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 106, 53, .4); }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-soft {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.btn-soft:hover { background: #e4dcff; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 10px; }

/* ---------------- Top bar ---------------- */
.topbar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar-left { display: flex; align-items: center; gap: 18px; opacity: .95; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { opacity: .95; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; }

/* ---------------- Header ---------------- */
#siteHeader { display: contents; }
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--line);
}
.header-main {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #6d4bff, var(--primary-dark));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(90, 63, 240, .3);
}
.brand-logo svg { width: 25px; height: 25px; }
.brand-text b { font-size: 19px; font-weight: 900; display: block; line-height: 1.3; }
.brand-text small { color: var(--muted); font-size: 11.5px; }

.search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.search input {
  width: 100%;
  padding: 13px 46px 13px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 13px;
  font-family: inherit;
  font-size: 14px;
  background: var(--bg);
  transition: border .2s, background .2s;
}
.search input:focus { outline: none; border-color: var(--primary); background: #fff; }
.search button {
  position: absolute;
  inset-inline-start: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: grid; place-items: center;
}
.search button svg { width: 18px; height: 18px; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.icon-btn {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--bg);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background .2s, color .2s;
  border: 1px solid var(--line);
}
.icon-btn:hover { background: var(--primary-soft); color: var(--primary-dark); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -6px; inset-inline-end: -6px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  display: grid; place-items: center;
  border: 2px solid #fff;
}
.cart-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--primary-soft);
  border-radius: 13px;
  padding: 8px 14px 8px 8px;
  color: var(--primary-dark);
  border: none;
  transition: background .2s;
}
.cart-btn:hover { background: #e4dcff; }
.cart-btn .ci {
  width: 34px; height: 34px; border-radius: 10px;
  background: #fff; display: grid; place-items: center;
}
.cart-btn .ci svg { width: 19px; height: 19px; }
.cart-btn .cart-total { font-weight: 700; font-size: 13.5px; }
.cart-btn .cart-total small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; }

/* nav */
.site-nav { border-top: 1px solid var(--line); }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink-2);
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-list > li > a:hover,
.nav-list > li > a.active { color: var(--primary); border-color: var(--primary); }
.nav-cta { margin-inline-start: auto; }

.nav-toggle { display: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(109, 75, 255, .16), transparent 60%),
    radial-gradient(800px 400px at 0% 120%, rgba(255, 122, 69, .12), transparent 55%),
    linear-gradient(135deg, #f3f1ff, #f6f7fb 55%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  padding-block: 66px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--line-2);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero-badge b { color: var(--accent); }
.hero h1 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
.hero h1 .g {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { font-size: 16.5px; color: var(--ink-2); max-width: 500px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats .st b { font-size: 26px; font-weight: 900; color: var(--ink); display: block; line-height: 1.2; }
.hero-stats .st span { font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; }
.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  position: relative;
  z-index: 2;
}
.hero-card .hc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hero-card .hc-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(135deg, #6d4bff, var(--primary-dark));
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.hero-card .hc-icon svg { width: 30px; height: 30px; }
.hero-card .hc-top b { font-size: 16px; display: block; }
.hero-card .hc-top span { font-size: 12.5px; color: var(--muted); }
.hero-mini { display: flex; gap: 12px; }
.hero-mini .hm {
  flex: 1;
  background: var(--bg);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}
.hero-mini .hm svg { width: 24px; height: 24px; color: var(--primary); margin: 0 auto 6px; }
.hero-mini .hm b { font-size: 13px; display: block; }
.hero-mini .hm span { font-size: 11px; color: var(--muted); }
.hero-float {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 13px 16px;
  display: flex; align-items: center; gap: 11px;
  z-index: 3;
  font-size: 13px;
  font-weight: 600;
}
.hero-float svg { width: 20px; height: 20px; }
.hero-float.f1 { top: -18px; inset-inline-start: -14px; }
.hero-float.f1 svg { color: var(--success); }
.hero-float.f2 { bottom: -18px; inset-inline-end: -10px; }
.hero-float.f2 svg { color: var(--accent); }

/* ---------------- Section basics ---------------- */
.section { padding-block: 62px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-head .eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 8px;
}
.section-head h2 { font-size: 30px; font-weight: 900; letter-spacing: -.4px; }
.section-head p { color: var(--muted); margin-top: 6px; max-width: 520px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.link-more { color: var(--primary); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.link-more:hover { gap: 10px; }
.link-more svg { width: 17px; height: 17px; }

/* ---------------- Feature strip ---------------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .fi {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; flex-shrink: 0;
}
.feature .fi svg { width: 26px; height: 26px; }
.feature b { font-size: 15px; display: block; }
.feature span { font-size: 12.5px; color: var(--muted); }
.fi.c1 { background: var(--primary-soft); color: var(--primary); }
.fi.c2 { background: var(--success-soft); color: var(--success); }
.fi.c3 { background: var(--accent-soft); color: var(--accent); }
.fi.c4 { background: #eaf1ff; color: #2563eb; }

/* ---------------- Product grid & cards ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .2s;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pc-media {
  position: relative;
  aspect-ratio: 16 / 11;
  display: grid; place-items: center;
  overflow: hidden;
}
.pc-media .pc-illus { width: 78px; height: 78px; color: #fff; opacity: .95; filter: drop-shadow(0 8px 16px rgba(0,0,0,.18)); transition: transform .3s; }
.product-card:hover .pc-illus { transform: scale(1.08) rotate(-3deg); }
.pc-badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  font-size: 11.5px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.pc-badge.hot { background: var(--accent); color: #fff; }
.pc-badge.off { background: var(--danger); color: #fff; }
.pc-fav {
  position: absolute; top: 12px; inset-inline-end: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--muted);
  display: grid; place-items: center;
  transition: color .2s, transform .2s;
}
.pc-fav:hover { color: var(--danger); transform: scale(1.1); }
.pc-fav svg { width: 18px; height: 18px; }
.pc-body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.pc-cat { font-size: 12px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.pc-title { font-size: 15.5px; font-weight: 700; line-height: 1.65; margin-bottom: 8px; }
.pc-title a:hover { color: var(--primary); }
.pc-rating { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.pc-rating .stars { display: inline-flex; color: var(--star); }
.pc-rating .stars svg { width: 15px; height: 15px; }
.pc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-price b { font-size: 17px; font-weight: 900; color: var(--ink); }
.pc-price b small { font-size: 11px; font-weight: 500; color: var(--muted); }
.pc-price del { font-size: 12.5px; color: var(--muted); display: block; }
.pc-add {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-dark);
  display: grid; place-items: center; flex-shrink: 0;
  transition: background .2s, color .2s, transform .15s;
}
.pc-add:hover { background: var(--primary); color: #fff; }
.pc-add:active { transform: scale(.92); }
.pc-add svg { width: 21px; height: 21px; }

/* ---------------- Categories ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 14px;
  text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary-soft); }
.cat-card .cc-ic {
  width: 60px; height: 60px; margin: 0 auto 13px;
  border-radius: 18px; display: grid; place-items: center;
}
.cat-card .cc-ic svg { width: 30px; height: 30px; color: #fff; }
.cat-card b { font-size: 14.5px; display: block; }
.cat-card span { font-size: 12px; color: var(--muted); }

/* ---------------- CTA band ---------------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255,255,255,.14), transparent),
    linear-gradient(120deg, var(--primary-dark), #6d4bff);
  border-radius: var(--radius-lg);
  padding: 46px 44px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band h3 { font-size: 27px; font-weight: 900; margin-bottom: 10px; }
.cta-band p { opacity: .9; max-width: 460px; }
.cta-band .btn-ghost { background: #fff; border-color: #fff; }

/* ---------------- Page header ---------------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(109,75,255,.14), transparent 60%),
    linear-gradient(135deg, #f3f1ff, #f6f7fb);
  border-bottom: 1px solid var(--line);
}
.page-hero .container { padding-block: 40px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 15px; height: 15px; opacity: .6; }
.page-hero h1 { font-size: 30px; font-weight: 900; }
.page-hero p { color: var(--ink-2); margin-top: 8px; max-width: 620px; }

/* ---------------- Shop layout ---------------- */
.shop-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.shop-side {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  position: sticky; top: 90px;
}
.shop-side h4 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.shop-side h4 svg { width: 18px; height: 18px; color: var(--primary); }
.filter-group { margin-bottom: 24px; }
.filter-group:last-child { margin-bottom: 0; }
.cat-filter li { margin-bottom: 3px; }
.cat-filter button {
  width: 100%; text-align: start;
  padding: 9px 12px; border-radius: 10px;
  font-family: inherit; font-size: 14px; color: var(--ink-2);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .18s, color .18s;
}
.cat-filter button:hover { background: var(--bg); }
.cat-filter button.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.cat-filter button .cnt { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 1px 8px; }
.cat-filter button.active .cnt { background: #fff; color: var(--primary-dark); }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 22px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 18px;
}
.shop-toolbar .res { font-size: 13.5px; color: var(--muted); }
.shop-toolbar .res b { color: var(--ink); }
.shop-toolbar select {
  font-family: inherit; font-size: 13.5px;
  padding: 9px 14px; border: 1.5px solid var(--line-2);
  border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer;
}
.shop-side .btn { margin-top: 6px; }

.empty {
  text-align: center; padding: 60px 20px;
  background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius);
  color: var(--muted);
}
.empty svg { width: 54px; height: 54px; color: var(--line-2); margin: 0 auto 14px; }

/* ---------------- Product detail ---------------- */
.pd-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: start; }
.pd-gallery {
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / .82;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.pd-gallery .pd-illus { width: 150px; height: 150px; color: #fff; filter: drop-shadow(0 14px 26px rgba(0,0,0,.22)); }
.pd-gallery .pc-badge { top: 18px; inset-inline-start: 18px; font-size: 13px; padding: 7px 14px; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumbs .th { flex: 1; aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; opacity: .85; border: 2px solid transparent; cursor: pointer; }
.pd-thumbs .th.active { border-color: var(--primary); opacity: 1; }
.pd-thumbs .th svg { width: 34px; height: 34px; color: #fff; }

.pd-cat { color: var(--primary); font-weight: 700; font-size: 13.5px; margin-bottom: 10px; }
.pd-info h1 { font-size: 28px; font-weight: 900; line-height: 1.5; margin-bottom: 14px; }
.pd-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pd-meta .stars { display: inline-flex; color: var(--star); }
.pd-meta .stars svg { width: 17px; height: 17px; }
.pd-meta .m { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.pd-meta .m svg { width: 16px; height: 16px; }
.pd-meta .in-stock { color: var(--success); font-weight: 600; }
.pd-desc { color: var(--ink-2); margin-bottom: 22px; }
.pd-price-box {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.pd-price .now { font-size: 30px; font-weight: 900; }
.pd-price .now small { font-size: 14px; font-weight: 500; color: var(--muted); }
.pd-price del { color: var(--muted); font-size: 15px; }
.pd-price .save { color: var(--success); font-size: 13px; font-weight: 700; margin-inline-start: 8px; }
.pd-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 26px; }
.pd-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; }
.pd-features li svg { width: 19px; height: 19px; color: var(--success); flex-shrink: 0; margin-top: 4px; }
.pd-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qty {
  display: flex; align-items: center;
  border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden;
}
.qty button { width: 42px; height: 48px; font-size: 20px; color: var(--ink-2); display: grid; place-items: center; transition: background .15s; }
.qty button:hover { background: var(--bg); color: var(--primary); }
.qty input { width: 46px; height: 48px; text-align: center; border: none; font-family: inherit; font-size: 16px; font-weight: 700; }
.qty input:focus { outline: none; }

.pd-tabs { margin-top: 52px; }
.tab-head { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.tab-head button {
  padding: 13px 22px; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .2s, border-color .2s;
}
.tab-head button.active { color: var(--primary); border-color: var(--primary); }
.tab-pane { display: none; animation: fade .3s ease; }
.tab-pane.active { display: block; }
.tab-pane h3 { font-size: 18px; margin-bottom: 12px; margin-top: 20px; }
.tab-pane h3:first-child { margin-top: 0; }
.tab-pane p { color: var(--ink-2); margin-bottom: 14px; }
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table tr:nth-child(odd) { background: var(--bg); }
.spec-table td { padding: 13px 18px; font-size: 14px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { font-weight: 700; width: 40%; color: var(--ink-2); }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------- Cart ---------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-items { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-row { display: flex; align-items: center; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: none; }
.cart-row .cr-media { width: 78px; height: 78px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.cart-row .cr-media svg { width: 38px; height: 38px; color: #fff; }
.cart-row .cr-info { flex: 1; min-width: 0; }
.cart-row .cr-info .cr-cat { font-size: 12px; color: var(--primary); font-weight: 600; }
.cart-row .cr-info b { font-size: 15px; display: block; line-height: 1.6; }
.cart-row .cr-info .cr-unit { font-size: 12.5px; color: var(--muted); }
.cart-row .qty { transform: scale(.9); }
.cart-row .cr-price { font-weight: 900; font-size: 15.5px; min-width: 110px; text-align: start; }
.cart-row .cr-del { color: var(--muted); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; transition: background .2s, color .2s; }
.cart-row .cr-del:hover { background: #fdeaea; color: var(--danger); }
.cart-row .cr-del svg { width: 19px; height: 19px; }

.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.summary h3 { font-size: 17px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sum-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; font-size: 14px; color: var(--ink-2); }
.sum-row.discount { color: var(--success); }
.sum-total { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.sum-total span { font-size: 15px; font-weight: 700; }
.sum-total b { font-size: 21px; font-weight: 900; color: var(--primary-dark); }
.sum-total b small { font-size: 12px; color: var(--muted); font-weight: 500; }
.coupon { display: flex; gap: 8px; margin: 18px 0; }
.coupon input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: 11px; font-family: inherit; font-size: 13px; }
.coupon input:focus { outline: none; border-color: var(--primary); }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.trust-row svg { width: 16px; height: 16px; color: var(--success); }

/* ---------------- Checkout ---------------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.form-card h3 { font-size: 17px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.form-card h3 .n { width: 28px; height: 28px; border-radius: 9px; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-size: 14px; font-weight: 900; }
.form-card > p { color: var(--muted); font-size: 13px; margin-bottom: 20px; margin-inline-start: 38px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
  padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 11px;
  font-family: inherit; font-size: 14px; background: #fff; transition: border .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); }
.field textarea { resize: vertical; min-height: 90px; }

.pay-methods { display: grid; gap: 12px; }
.pay-method {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--line-2); border-radius: 13px; padding: 15px 17px;
  cursor: pointer; transition: border .2s, background .2s;
}
.pay-method:hover { border-color: var(--primary); }
.pay-method.active { border-color: var(--primary); background: var(--primary-soft); }
.pay-method input { accent-color: var(--primary); width: 18px; height: 18px; }
.pay-method .pm-logo { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex-shrink: 0; font-weight: 900; font-size: 12px; }
.pay-method b { font-size: 14.5px; display: block; }
.pay-method span { font-size: 12px; color: var(--muted); }
.pay-method .pm-tag { margin-inline-start: auto; font-size: 11px; background: var(--success-soft); color: var(--success); padding: 4px 10px; border-radius: 999px; font-weight: 700; }

.order-mini { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-mini:last-of-type { border-bottom: none; }
.order-mini .om-media { width: 48px; height: 48px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.order-mini .om-media svg { width: 24px; height: 24px; color: #fff; }
.order-mini .om-info { flex: 1; min-width: 0; }
.order-mini .om-info b { font-size: 13px; display: block; line-height: 1.5; }
.order-mini .om-info span { font-size: 11.5px; color: var(--muted); }
.order-mini .om-price { font-size: 13.5px; font-weight: 700; white-space: nowrap; }

/* ---------------- Content pages ---------------- */
.content-wrap { display: grid; grid-template-columns: 1fr; gap: 28px; }
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.prose h2 { font-size: 22px; margin-bottom: 14px; margin-top: 30px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 22px 0 10px; }
.prose p { color: var(--ink-2); margin-bottom: 14px; }
.prose ul { margin: 0 0 16px; padding-inline-start: 4px; }
.prose ul li { position: relative; padding-inline-start: 26px; margin-bottom: 9px; color: var(--ink-2); }
.prose ul li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 10px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
.prose strong { color: var(--ink); }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.about-visual { background: linear-gradient(135deg, #6d4bff, var(--primary-dark)); border-radius: var(--radius-lg); aspect-ratio: 1/.85; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.about-visual svg { width: 140px; height: 140px; color: #fff; opacity: .95; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; }
.stat-card .sc-ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.stat-card .sc-ic svg { width: 26px; height: 26px; }
.stat-card b { font-size: 28px; font-weight: 900; display: block; }
.stat-card span { color: var(--muted); font-size: 13px; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.value-card .vc-ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 16px; }
.value-card .vc-ic svg { width: 27px; height: 27px; }
.value-card h3 { font-size: 17px; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 14px; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.contact-card .cc-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.contact-card .cc-ic svg { width: 24px; height: 24px; }
.contact-card b { display: block; font-size: 15px; margin-bottom: 4px; }
.contact-card p { color: var(--muted); font-size: 13.5px; }
.contact-card a { color: var(--primary); font-weight: 600; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 4px; height: 200px; background: linear-gradient(135deg, #e8ebf5, #f2f4fa); display: grid; place-items: center; color: var(--muted); }
.map-embed svg { width: 46px; height: 46px; opacity: .5; }

/* ---------------- FAQ ---------------- */
.faq-list { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.faq-item.open { box-shadow: var(--shadow); }
.faq-q { width: 100%; text-align: start; padding: 20px 22px; font-family: inherit; font-size: 15.5px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--ink); }
.faq-q .fq-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; transition: transform .25s, background .2s; }
.faq-q .fq-ic svg { width: 18px; height: 18px; }
.faq-item.open .fq-ic { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--ink-2); }

/* ---------------- Account ---------------- */
.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.auth-tabs { display: flex; background: var(--bg); border-radius: 13px; padding: 5px; margin-bottom: 26px; }
.auth-tabs button { flex: 1; padding: 11px; font-family: inherit; font-weight: 700; font-size: 14.5px; color: var(--muted); border-radius: 10px; transition: background .2s, color .2s; }
.auth-tabs button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.auth-pane { display: none; }
.auth-pane.active { display: block; }
.auth-pane .field { margin-bottom: 16px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------------- Footer ---------------- */
.site-footer { background: #14142a; color: #b9bad2; margin-top: 20px; }
.footer-top { padding-block: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-brand .brand-text b { color: #fff; }
.footer-brand p { font-size: 13.5px; line-height: 2; margin: 16px 0; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #b9bad2; transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h5 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { font-size: 13.5px; transition: color .2s, padding .2s; }
.footer-col ul li a:hover { color: #fff; padding-inline-start: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; margin-bottom: 14px; }
.footer-contact li svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 4px; }
.trust-badges { display: flex; gap: 12px; margin-top: 18px; }
.trust-badge { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 13px; padding: 12px; text-align: center; flex: 1; }
.trust-badge svg { width: 30px; height: 30px; color: #fff; margin: 0 auto 6px; opacity: .9; }
.trust-badge span { font-size: 10.5px; display: block; line-height: 1.5; }
.enamad-seal { background: #fff; border-radius: 13px; padding: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.enamad-seal img { max-width: 100px; height: auto; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 20px; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12.5px; }
.footer-bottom .pays { display: flex; align-items: center; gap: 10px; opacity: .8; font-size: 12px; }

/* ---------------- Toast ---------------- */
.toast-wrap { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600; min-width: 260px;
  animation: toastIn .3s ease; border-inline-start: 4px solid var(--success);
}
.toast svg { width: 22px; height: 22px; color: var(--success); flex-shrink: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------- Modal ---------------- */
.modal-back { position: fixed; inset: 0; background: rgba(20,20,42,.55); z-index: 300; display: none; place-items: center; padding: 20px; backdrop-filter: blur(3px); }
.modal-back.show { display: grid; }
.modal { background: #fff; border-radius: var(--radius-lg); padding: 38px 34px; max-width: 440px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); animation: toastIn .3s ease; }
.modal .m-ic { width: 74px; height: 74px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 20px; }
.modal .m-ic svg { width: 40px; height: 40px; }
.modal h3 { font-size: 21px; margin-bottom: 10px; }
.modal p { color: var(--muted); margin-bottom: 24px; }

/* ---------------- Utilities & animation ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 30px; padding-block: 46px; }
  .hero-visual { max-width: 460px; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pd-wrap { grid-template-columns: 1fr; gap: 26px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .header-main { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .brand-text small { display: none; }
  .nav-list { display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); padding: 10px; z-index: 40; }
  .nav-list.open { display: flex; }
  .nav-list > li > a { border-bottom: none; border-radius: 10px; }
  .nav-list > li > a.active { background: var(--primary-soft); }
  .nav-cta { margin: 6px 0 0; }
  .site-nav .container { position: relative; }
  .nav-toggle { display: flex; align-items: center; gap: 8px; padding: 13px 4px; font-family: inherit; font-weight: 700; color: var(--ink); font-size: 14.5px; }
  .nav-toggle svg { width: 22px; height: 22px; }
  .product-grid, .product-grid.cols-3, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 31px; }
  .section { padding-block: 44px; }
  .section-head h2 { font-size: 24px; }
  .shop-wrap { grid-template-columns: 1fr; }
  .shop-side { position: static; }
  .cta-band { padding: 34px 24px; }
  .pd-features, .form-grid { grid-template-columns: 1fr; }
  .footer-grid, .stat-cards { grid-template-columns: 1fr; }
  .cart-row { flex-wrap: wrap; }
  .cart-row .cr-price { min-width: 0; }
  .prose { padding: 24px 20px; }
  .cart-row .qty { transform: scale(1); }
}
@media (max-width: 420px) {
  .product-grid, .product-grid.cols-3, .cat-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}
