/* =====================================================================
   BluTech Auto Shop — Main Stylesheet
   طراحی شده توسط سید محمد امین شاهی - دانشگاه آزاد اسلامی
   رنگ اصلی: سبز #46c372  |  رنگ مکمل: قرمز تیره #590000
   ===================================================================== */

/* ------------------------------ FONTS ------------------------------ */
@font-face {
  font-family: "IRANSans";
  src: url("../fonts/IRANSansWeb_Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src: url("../fonts/IRANSansWeb.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src: url("../fonts/IRANSansWeb_Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src: url("../fonts/IRANSansWeb_Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src: url("../fonts/IRANSansWeb_Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------- CSS VARIABLES -------------------------- */
:root {
  /* رنگ‌های برند */
  --green: #46c372;
  --green-dark: #2f9a55;
  --green-light: #6fd692;
  --green-soft: rgba(70, 195, 114, 0.12);
  --maroon: #590000;
  --maroon-light: #8a1414;
  --maroon-soft: rgba(89, 0, 0, 0.08);

  /* تم روز */
  --bg: #f2f6f3;
  --bg-alt: #e7efe9;
  --surface: #ffffff;
  --surface-2: #fafcfa;
  --text: #17211c;
  --text-soft: #5b6b62;
  --text-muted: #8a9791;
  --border: #dde6e0;
  --primary: var(--green);
  --primary-hover: var(--green-dark);
  --on-primary: #06301a;
  --accent: var(--maroon);
  --on-accent: #ffffff;
  --danger: #c62828;
  --star: #f5a623;

  --header-bg: rgba(255, 255, 255, 0.88);
  --footer-bg: #0f1a14;
  --footer-text: #cfe3d6;

  --shadow-sm: 0 1px 3px rgba(16, 34, 24, 0.07);
  --shadow: 0 6px 18px rgba(16, 34, 24, 0.09);
  --shadow-lg: 0 18px 40px rgba(16, 34, 24, 0.16);
  --shadow-green: 0 10px 26px rgba(70, 195, 114, 0.32);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1240px;
  --header-h: 72px;
  --t-fast: 0.18s ease;
  --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.55s cubic-bezier(0.22, 0.9, 0.25, 1);
}

/* تم شب — بر پایه قرمز تیره #590000 */
html[data-theme="dark"] {
  --bg: #14090a;
  --bg-alt: #1d0c0d;
  --surface: #24100f;
  --surface-2: #2d1514;
  --text: #f2eae8;
  --text-soft: #c3b0ad;
  --text-muted: #9a8785;
  --border: #43201e;
  --primary: var(--green);
  --primary-hover: var(--green-light);
  --on-primary: #06301a;
  --accent: #ff6b6b;
  --on-accent: #2a0000;
  --danger: #ff6b6b;

  --header-bg: rgba(31, 13, 13, 0.9);
  --footer-bg: #0d0505;
  --footer-text: #d8c6c4;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.6);
  --shadow-green: 0 10px 26px rgba(70, 195, 114, 0.25);

  --green-soft: rgba(70, 195, 114, 0.16);
  --maroon-soft: rgba(255, 107, 107, 0.1);
}

/* ------------------------------ RESET ------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "IRANSans", sans-serif;
  direction: rtl;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
  font-weight: 400;
  overflow-x: hidden;
  transition:
    background-color var(--t),
    color var(--t);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  line-height: 1.5;
  font-weight: 700;
}
h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 900;
}
h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

/* اسکرول‌بار سفارشی */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
  border: 2px solid var(--bg-alt);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* ---------------------------- UTILITIES ---------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 18px;
}

.section {
  padding: 64px 0;
}
.section--alt {
  background: var(--bg-alt);
}
.text-center {
  text-align: center;
}
.hide-mobile {
  display: inline-flex;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}

/* عنوان بخش */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 34px;
}
.section-head__title {
  position: relative;
  margin: 0;
  padding-inline-start: 16px;
}
.section-head__title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 70%;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.section-head__sub {
  color: var(--text-soft);
  margin: 4px 0 0;
  font-size: 0.92rem;
  font-weight: 300;
}

/* ----------------------------- BUTTONS ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    transform var(--t-fast),
    box-shadow var(--t),
    background var(--t),
    color var(--t),
    border-color var(--t);
  white-space: nowrap;
  user-select: none;
}
.btn:active {
  transform: scale(0.96);
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-green);
  font-weight: 700;
}
.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(70, 195, 114, 0.45);
}

.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.btn--accent:hover {
  background: var(--maroon-light);
  color: #fff;
  transform: translateY(-3px);
}
html[data-theme="dark"] .btn--accent:hover {
  background: #ff8a8a;
  color: #2a0000;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--green-soft);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}
.btn--lg {
  padding: 15px 34px;
  font-size: 1.05rem;
}
.btn--block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* دکمه‌های آیکونی */
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  transition:
    transform var(--t-fast),
    background var(--t),
    border-color var(--t);
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--green-soft);
  border-color: var(--primary);
  transform: translateY(-2px) rotate(8deg);
}

/* آیکون خورشید/ماه بر اساس تم */
.icon-btn__moon {
  display: none;
}
html[data-theme="dark"] .icon-btn__sun {
  display: none;
}
html[data-theme="dark"] .icon-btn__moon {
  display: inline;
}

.cart-badge {
  position: absolute;
  top: -5px;
  inset-inline-start: -5px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  transition: transform var(--t);
}
.cart-badge.is-bump {
  animation: bump 0.45s ease;
}

/* ------------------------------ TOPBAR ----------------------------- */
.topbar {
  background: linear-gradient(90deg, var(--accent), var(--maroon-light));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 300;
}
html[data-theme="dark"] .topbar {
  background: linear-gradient(90deg, #3d0000, #6b0f0f);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  flex-wrap: wrap;
}
.topbar__item a {
  color: #fff;
  font-weight: 500;
}
.topbar__item a:hover {
  color: var(--green-light);
}

/* ------------------------------ HEADER ----------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition:
    box-shadow var(--t),
    background var(--t);
}
.header.is-scrolled {
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

/* لوگو */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}
.logo__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--primary), var(--green-dark));
  font-size: 1.35rem;
  box-shadow: var(--shadow-green);
  transition: transform var(--t);
}
.logo:hover .logo__icon {
  transform: rotate(-10deg) scale(1.07);
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.logo__text strong {
  font-size: 1.15rem;
  font-weight: 900;
}
.logo__text small {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* منو */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-end: auto;
}
.nav__link {
  position: relative;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.93rem;
  transition:
    color var(--t-fast),
    background var(--t-fast);
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
  transition: width var(--t);
}
.nav__link:hover {
  color: var(--primary);
  background: var(--green-soft);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  width: 22px;
}
.nav__link.is-active {
  color: var(--primary);
  font-weight: 700;
}
.nav__close {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* منوی کاربر */
.user-menu {
  position: relative;
}
.user-menu__list {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 178px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--t);
  z-index: 950;
}
.user-menu.is-open .user-menu__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-menu__list a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
}
.user-menu__list a:hover {
  background: var(--green-soft);
  color: var(--primary);
}
.user-menu__list a.is-danger:hover {
  background: var(--maroon-soft);
  color: var(--danger);
}

/* همبرگر */
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform var(--t),
    opacity var(--t);
}
.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--t);
  z-index: 890;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ------------------------------- HERO ------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -8%, var(--green-soft), transparent 60%),
    radial-gradient(
      700px 380px at 5% 105%,
      var(--maroon-soft),
      transparent 60%
    ),
    var(--bg);
  padding: 60px 0 74px;
}

/* نوارهای تزئینی متحرک پس‌زمینه */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 320px;
  height: 320px;
  background: var(--primary);
  top: -110px;
  inset-inline-end: -80px;
  animation: floatY 9s ease-in-out infinite;
}
.hero::after {
  width: 260px;
  height: 260px;
  background: var(--accent);
  bottom: -120px;
  inset-inline-start: -70px;
  animation: floatY 11s ease-in-out infinite reverse;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 46px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.hero__title {
  margin: 0 0 16px;
}
.hero__title span {
  background: linear-gradient(90deg, var(--primary), var(--green-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__text {
  color: var(--text-soft);
  font-size: 1.02rem;
  font-weight: 300;
  max-width: 540px;
  margin-bottom: 26px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 460px;
}
.hero__stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t);
}
.hero__stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.hero__stat b {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
}
.hero__stat span {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* کارت تصویری سمت چپ Hero */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform var(--t-slow);
}
.hero__card:hover {
  transform: rotate(0) translateY(-8px);
}
.hero__card-emoji {
  font-size: 5.5rem;
  text-align: center;
  line-height: 1;
  margin-bottom: 14px;
  animation: floatY 4.5s ease-in-out infinite;
}
.hero__card h3 {
  text-align: center;
  margin-bottom: 6px;
}
.hero__card p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 300;
  margin: 0;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.chip {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--green-soft);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 500;
  transition: transform var(--t-fast);
}
.chip:hover {
  transform: translateY(-3px) scale(1.05);
}

/* ----------------------------- FEATURES ---------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t);
}
.feature::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t);
}
.feature:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.feature:hover::before {
  transform: scaleX(1);
}
.feature__icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--green-soft);
  font-size: 1.7rem;
  transition:
    transform var(--t),
    background var(--t);
}
.feature:hover .feature__icon {
  transform: rotate(-10deg) scale(1.1);
  background: var(--primary);
}
.feature h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.feature p {
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 300;
  margin: 0;
}

/* --------------------------- CATEGORY PILLS ------------------------ */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--t),
    border-color var(--t),
    box-shadow var(--t),
    background var(--t);
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow);
}
.cat-card__icon {
  font-size: 2.1rem;
  transition: transform var(--t);
}
.cat-card:hover .cat-card__icon {
  transform: scale(1.18) rotate(8deg);
}
.cat-card__name {
  font-weight: 500;
  font-size: 0.92rem;
}
.cat-card__count {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ------------------------- PRODUCTS GRID/CARD ---------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t);
}
.product-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.product-card:hover .product-card__media img {
  transform: scale(1.1);
}

.product-card__badges {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.badge {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(4px);
}
.badge--off {
  background: var(--accent);
  color: var(--on-accent);
}
.badge--new {
  background: var(--primary);
  color: var(--on-primary);
}
.badge--hot {
  background: #e07b00;
}
.badge--out {
  background: #6b6b6b;
}

/* دکمه شناور افزودن سریع */
.product-card__quick {
  position: absolute;
  bottom: 10px;
  inset-inline-start: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all var(--t);
  z-index: 2;
}
.product-card:hover .product-card__quick {
  opacity: 1;
  transform: translateY(0);
}
.product-card__quick:hover {
  background: var(--primary);
  color: var(--on-primary);
  transform: scale(1.12);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
  gap: 8px;
}
.product-card__cat {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 500;
}
.product-card__title {
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.7;
  margin: 0;
  min-height: 3.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__title a {
  color: var(--text);
}
.product-card__title a:hover {
  color: var(--primary);
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--star);
  font-weight: 500;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}
.price-new {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--primary);
}
.price-new small {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}
.price-old {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 300;
}

.product-card__foot {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}
.product-card__foot .btn {
  flex: 1;
}

/* حالت خالی / لودینگ */
.state-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
}
.state-box__emoji {
  font-size: 3.2rem;
  margin-bottom: 10px;
}

.spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* اسکلتون */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sk {
  background: linear-gradient(
    90deg,
    var(--bg-alt) 25%,
    var(--surface-2) 50%,
    var(--bg-alt) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
.sk--img {
  aspect-ratio: 4 / 3;
}
.sk--line {
  height: 12px;
  margin: 12px 16px;
  border-radius: 6px;
}
.sk--line.short {
  width: 45%;
}

/* --------------------------- FILTER TOOLBAR ------------------------ */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.toolbar__search {
  position: relative;
  flex: 1 1 240px;
  display: flex;
  align-items: center;
}
.toolbar__search input {
  width: 100%;
  padding: 11px 42px 11px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition:
    border-color var(--t),
    box-shadow var(--t);
}
.toolbar__search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--green-soft);
}
.toolbar__search::before {
  content: "🔍";
  position: absolute;
  inset-inline-end: 14px;
  font-size: 0.95rem;
  pointer-events: none;
  opacity: 0.7;
}
.toolbar select {
  padding: 11px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  min-width: 160px;
}
.toolbar select:focus {
  outline: none;
  border-color: var(--primary);
}
.toolbar__count {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-inline-start: auto;
}

/* چیپ‌های فیلتر دسته */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.filter-chip {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--t-fast);
}
.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.filter-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}

/* -------------------------- PRODUCT DETAIL ------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  font-weight: 300;
}
.breadcrumb a {
  color: var(--text-soft);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb span.sep {
  opacity: 0.5;
}

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}
.detail__gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 18px);
}
.detail__img {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}
.detail__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.detail__img:hover img {
  transform: scale(1.08);
}

.detail__info h1 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin-bottom: 12px;
}
.detail__brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--green-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 14px;
}
.detail__short {
  color: var(--text-soft);
  font-weight: 300;
}

.detail__pricebox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 20px 0;
}
.detail__pricebox .price-new {
  font-size: 1.6rem;
}

.detail__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.spec {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
}
.spec b {
  color: var(--text);
  font-weight: 500;
}
.spec span {
  color: var(--text-soft);
  font-weight: 300;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--surface-2);
}
.qty button {
  width: 40px;
  height: 42px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  transition:
    background var(--t-fast),
    color var(--t-fast);
}
.qty button:hover {
  background: var(--primary);
  color: var(--on-primary);
}
.qty input {
  width: 52px;
  height: 42px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 700;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.detail__desc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 26px;
}
.detail__desc h3 {
  padding-inline-start: 12px;
  border-inline-start: 4px solid var(--primary);
  margin-bottom: 14px;
}
.detail__desc p {
  color: var(--text-soft);
  font-weight: 300;
  text-align: justify;
  margin: 0;
}

/* ----------------------------- CART PAGE --------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
  align-items: start;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--t),
    border-color var(--t),
    transform var(--t);
  animation: fadeInUp 0.35s ease both;
}
.cart-row:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.cart-row.is-removing {
  opacity: 0;
  transform: translateX(-30px);
}

.cart-row__img {
  width: 92px;
  height: 92px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-alt);
}
.cart-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-row__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cart-row__title {
  font-size: 0.94rem;
  font-weight: 500;
  margin: 0;
}
.cart-row__title a {
  color: var(--text);
}
.cart-row__title a:hover {
  color: var(--primary);
}
.cart-row__unit {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 300;
}
.cart-row__end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.cart-row__sum {
  font-weight: 900;
  color: var(--primary);
  white-space: nowrap;
}
.cart-row__del {
  color: var(--danger);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform var(--t-fast);
}
.cart-row__del:hover {
  transform: scale(1.1);
}

/* خلاصه فاکتور */
.summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 18px);
}
.summary h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.89rem;
  color: var(--text-soft);
}
.summary__row b {
  color: var(--text);
  font-weight: 500;
}
.summary__row--total {
  border-top: 2px dashed var(--border);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 1.02rem;
}
.summary__row--total b {
  color: var(--primary);
  font-weight: 900;
  font-size: 1.15rem;
}
.summary__row--off b {
  color: var(--accent);
}
html[data-theme="dark"] .summary__row--off b {
  color: var(--danger);
}

/* ---------------------------- AUTH / FORMS ------------------------- */
.auth-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 260px);
  padding: 50px 0;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.5s ease both;
}
.auth-card__head {
  text-align: center;
  margin-bottom: 24px;
}
.auth-card__icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(140deg, var(--primary), var(--green-dark));
  font-size: 1.8rem;
  box-shadow: var(--shadow-green);
}
.auth-card__head h1 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.auth-card__head p {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 300;
  margin: 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 0.86rem;
  font-weight: 500;
}
.field label .req {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  transition:
    border-color var(--t),
    box-shadow var(--t),
    background var(--t);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.9;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--green-soft);
  background: var(--surface);
}
.field input[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}
.field__err {
  font-size: 0.76rem;
  color: var(--danger);
  min-height: 1em;
}
.field.has-error {
  animation: shake 0.35s ease;
}

.field__pass {
  position: relative;
  display: flex;
  align-items: center;
}
.field__pass input {
  padding-inline-start: 44px;
}
.field__eye {
  position: absolute;
  inset-inline-start: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 0.95rem;
  opacity: 0.7;
  transition:
    opacity var(--t-fast),
    background var(--t-fast);
}
.field__eye:hover {
  opacity: 1;
  background: var(--green-soft);
}

.form__inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-card__alt {
  text-align: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.87rem;
  color: var(--text-soft);
}

/* نوار قدرت رمز */
.pass-meter {
  height: 5px;
  border-radius: 5px;
  background: var(--border);
  overflow: hidden;
}
.pass-meter__bar {
  height: 100%;
  width: 0;
  border-radius: 5px;
  transition:
    width var(--t),
    background var(--t);
}
.pass-meter__bar.w1 {
  width: 25%;
  background: #e74c3c;
}
.pass-meter__bar.w2 {
  width: 50%;
  background: #e67e22;
}
.pass-meter__bar.w3 {
  width: 75%;
  background: #f1c40f;
}
.pass-meter__bar.w4 {
  width: 100%;
  background: var(--primary);
}
.pass-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* پیام‌های داخل فرم */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  border: 1px solid transparent;
  animation: fadeInUp 0.3s ease both;
}
.alert--ok {
  background: var(--green-soft);
  color: var(--green-dark);
  border-color: var(--primary);
}
.alert--err {
  background: rgba(198, 40, 40, 0.1);
  color: var(--danger);
  border-color: var(--danger);
}
.alert--info {
  background: var(--maroon-soft);
  color: var(--accent);
  border-color: var(--accent);
}
html[data-theme="dark"] .alert--ok {
  color: var(--green-light);
}

/* --------------------------- ABOUT PAGE CARD ----------------------- */
.about-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeInUp 0.55s ease both;
}
.about-card__banner {
  position: relative;
  padding: 34px 24px;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--green-dark) 55%,
    var(--maroon) 100%
  );
  color: #fff;
  overflow: hidden;
}
.about-card__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(255, 255, 255, 0.22),
    transparent 55%
  );
  pointer-events: none;
}
.about-card__avatar {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.45);
  font-size: 2.8rem;
  backdrop-filter: blur(4px);
  animation: floatY 5s ease-in-out infinite;
}
.about-card__banner h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.about-card__banner p {
  position: relative;
  z-index: 1;
  margin: 0;
  opacity: 0.92;
  font-size: 0.9rem;
  font-weight: 300;
}

.about-card__body {
  padding: 28px 26px 32px;
}
.about-card__quote {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-inline-start: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 2.2;
  text-align: justify;
  margin-bottom: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 12px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    transform var(--t),
    border-color var(--t),
    box-shadow var(--t);
}
.info-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.info-item__ico {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
  font-size: 1.1rem;
}
.info-item__txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.info-item__txt small {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-weight: 300;
}
.info-item__txt b {
  font-size: 0.9rem;
  font-weight: 500;
}

/* --------------------------- CONTACT PAGE -------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 26px;
  align-items: start;
}
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child {
  border-bottom: none;
}
.contact-item__ico {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--green-soft);
  font-size: 1.15rem;
  transition:
    transform var(--t),
    background var(--t);
}
.contact-item:hover .contact-item__ico {
  transform: rotate(-8deg) scale(1.08);
  background: var(--primary);
}
.contact-item__txt {
  display: flex;
  flex-direction: column;
}
.contact-item__txt small {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 300;
}
.contact-item__txt b,
.contact-item__txt a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.contact-item__txt a:hover {
  color: var(--primary);
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}

/* ---------------------------- CART DRAWER -------------------------- */
/* ---------------------------- CART DRAWER -------------------------- */
/* ⚠️ در RTL از inset-inline استفاده نمی‌کنیم چون transform قرینه نمی‌شود */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 380px;
  max-width: 92vw;
  height: 100vh;
  height: 100dvh;
  background: var(--surface, #ffffff);
  border-left: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  box-shadow: var(--shadow-lg, -8px 0 32px rgba(0, 0, 0, 0.18));
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* حالت بسته: کاملاً بیرون از دید */
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.35s;
  z-index: 1000;
}

.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  background: var(--surface, #fff);
  flex-shrink: 0;
}
.drawer__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
}
.drawer__close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  background: var(--surface-2, #f1f3f5);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  color: inherit;
  transition: all 0.2s ease;
}
.drawer__close:hover {
  background: var(--danger, #e03131);
  color: #fff;
  transform: rotate(90deg);
}

.drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---- آیتم کوچک ---- */
.mini-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 32px;
  gap: 11px;
  align-items: center;
  padding: 10px;
  background: var(--surface-2, #f8f9fa);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-sm, 10px);
  animation: fadeInUp 0.3s ease both;
}
.mini-item__img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt, #eceff1);
}
.mini-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mini-item__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mini-item__name {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.mini-item__price {
  font-size: 0.78rem;
  color: var(--primary, #46c372);
  font-weight: 700;
}
.mini-item__del {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: var(--danger, #e03131);
  font-size: 1rem;
  align-self: start;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.mini-item__del:hover {
  background: rgba(224, 49, 49, 0.12);
  transform: scale(1.12);
}

/* ---- کنترل تعداد داخل کشو ---- */
.mini-item .qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mini-item .qty button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 800;
  border-radius: 6px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  color: inherit;
}
.mini-item .qty input {
  width: 34px;
  height: 26px;
  text-align: center;
  padding: 0;
  border-radius: 6px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
}

/* ---- پای کشو ---- */
.drawer__foot {
  padding: 14px 16px;
  border-top: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  background: var(--surface-2, #f8f9fa);
}
.drawer__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.95rem;
}
.drawer__total strong {
  color: var(--primary, #46c372);
  font-size: 1.08rem;
  font-weight: 900;
  white-space: nowrap;
}

/* دکمه تمام‌عرض داخل کشو */
.drawer .btn--block,
.btn--block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

/* ---- روپوش ---- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 990;
}
.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

body.no-scroll {
  overflow: hidden;
}

/* ---- ریسپانسیو ---- */
@media (max-width: 560px) {
  .drawer {
    width: 100%;
    max-width: 100%;
    border-left: none;
  }
  .mini-item {
    grid-template-columns: 54px minmax(0, 1fr) 30px;
    gap: 9px;
  }
  .mini-item__img {
    width: 54px;
    height: 54px;
  }
  .drawer__body {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawer,
  .drawer-overlay {
    transition: none;
  }
}
/* ------------------------------ FOOTER ----------------------------- */
.footer {
  margin-top: 70px;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 48px;
  font-weight: 300;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 30px;
  padding-bottom: 34px;
}
.footer .logo--footer {
  margin-bottom: 14px;
}
.footer .logo--footer .logo__text strong {
  color: #fff;
}
.footer .logo--footer .logo__text small {
  color: var(--footer-text);
  opacity: 0.75;
}

.footer__about {
  font-size: 0.86rem;
  line-height: 2.1;
  opacity: 0.82;
  margin-bottom: 16px;
}
.footer__title {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  position: relative;
}
.footer__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
}
.footer__links li,
.footer__contact li {
  margin-bottom: 10px;
  font-size: 0.86rem;
}
.footer__links a,
.footer__contact a {
  color: var(--footer-text);
  opacity: 0.82;
  transition: all var(--t-fast);
}
.footer__links a:hover,
.footer__contact a:hover {
  color: var(--primary);
  opacity: 1;
  padding-inline-start: 6px;
}
.footer__contact li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  opacity: 0.85;
}

.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.05rem;
  transition: all var(--t);
}
.footer__social a:hover {
  background: var(--primary);
  transform: translateY(-5px) rotate(-8deg);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}
.footer__credit {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
}
.footer__credit::before {
  content: "✦ ";
  color: var(--primary);
}
.footer__credit::after {
  content: " ✦";
  color: var(--primary);
}
.footer__copy {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.6;
}

/* ---------------------------- TO-TOP BTN --------------------------- */
.to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-green);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--t);
  z-index: 800;
}
.to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-4px) scale(1.08);
}

/* ------------------------------ TOASTS ----------------------------- */
.toast-wrap {
  position: fixed;
  top: 18px;
  inset-inline-start: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1100;
  max-width: 340px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--primary);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  animation: toastIn 0.35s cubic-bezier(0.2, 1.1, 0.3, 1) both;
}
.toast.is-out {
  animation: toastOut 0.3s ease forwards;
}
.toast--err {
  border-inline-start-color: var(--danger);
}
.toast--info {
  border-inline-start-color: var(--accent);
}
.toast__ico {
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* ------------------------- SCROLL REVEAL --------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------- ANIMATIONS --------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes bump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.45);
  }
  70% {
    transform: scale(0.88);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-7px);
  }
  75% {
    transform: translateX(7px);
  }
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-40px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(-40px) scale(0.94);
  }
}

/* ================== RESPONSIVE — تبلت (≤ 992px) ==================== */
@media (max-width: 992px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero__visual {
    order: -1;
  }
  .hero__card {
    max-width: 340px;
    transform: none;
  }
  .hero__text {
    max-width: none;
  }
  .hero__stats {
    max-width: none;
  }

  .detail {
    grid-template-columns: 1fr;
  }
  .detail__gallery {
    position: static;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
}

/* ================= RESPONSIVE — موبایل (≤ 768px) =================== */
@media (max-width: 768px) {
  body {
    font-size: 14.5px;
  }
  .section {
    padding: 46px 0;
  }

  /* منوی کشویی موبایل */
  .nav {
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    width: 268px;
    max-width: 82vw;
    height: 100vh;
    background: var(--surface);
    border-inline-start: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 66px 16px 20px;
    margin: 0;
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform var(--t-slow);
    z-index: 940;
    overflow-y: auto;
    right: 3px;
  }
  .nav.is-open {
    transform: translateX(0);
  }

  .nav__link {
    padding: 14px 14px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__link::after {
    display: none;
  }
  .nav__link.is-active {
    background: var(--green-soft);
  }

  .nav__close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav__close:hover {
    background: var(--danger);
    color: #fff;
  }

  .hamburger {
    display: flex;
  }
  .hide-mobile {
    display: none !important;
  }

  .logo__text small {
    display: none;
  }
  .logo__text strong {
    font-size: 1.05rem;
  }
  .header__inner {
    gap: 10px;
  }
  .header__actions {
    gap: 7px;
  }
  .icon-btn {
    width: 39px;
    height: 39px;
    font-size: 1rem;
  }

  .topbar__item--phone {
    display: none;
  }
  .topbar__inner {
    justify-content: center;
  }

  .hero {
    padding: 40px 0 54px;
  }
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .hero__stat {
    padding: 11px 6px;
  }
  .hero__stat b {
    font-size: 1.15rem;
  }
  .hero__stat span {
    font-size: 0.68rem;
  }
  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 13px;
  }
  .product-card {
    border-radius: var(--radius);
  }
  .product-card__body {
    padding: 12px;
    gap: 6px;
  }
  .product-card__title {
    font-size: 0.86rem;
    min-height: 3.1em;
  }
  .price-new {
    font-size: 0.98rem;
  }
  .product-card__foot {
    padding: 0 12px 12px;
    gap: 6px;
  }
  .product-card__foot .btn {
    padding: 9px 8px;
    font-size: 0.78rem;
  }
  .product-card__quick {
    opacity: 1;
    transform: none;
    width: 36px;
    height: 36px;
  }

  .toolbar {
    padding: 12px;
    gap: 9px;
  }
  .toolbar select {
    flex: 1 1 100%;
    min-width: 0;
  }
  .toolbar__count {
    margin-inline-start: 0;
    width: 100%;
    text-align: center;
  }

  .section-head {
    margin-bottom: 24px;
  }

  /* سبد خرید موبایل */
  .cart-row {
    grid-template-columns: 74px 1fr;
    grid-template-areas:
      "img info"
      "end end";
    gap: 11px;
  }
  .cart-row__img {
    grid-area: img;
    width: 74px;
    height: 74px;
  }
  .cart-row__info {
    grid-area: info;
  }
  .cart-row__end {
    grid-area: end;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
  }

  .detail__pricebox {
    padding: 14px;
    gap: 10px;
  }
  .detail__pricebox .price-new {
    font-size: 1.3rem;
  }
  .detail__actions .btn {
    flex: 1 1 100%;
  }

  .auth-card {
    padding: 26px 20px;
  }
  .about-card__body {
    padding: 22px 18px 26px;
  }
  .about-card__quote {
    padding: 16px;
    font-size: 0.9rem;
    line-height: 2.05;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .footer {
    margin-top: 46px;
  }

  .drawer {
    width: 100%;
    max-width: 100%;
  }
  .to-top {
    bottom: 16px;
    inset-inline-start: 16px;
    width: 42px;
    height: 42px;
  }
  .toast-wrap {
    top: 12px;
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    max-width: none;
  }
  .filters {
    display: none;
  }
}

/* ============== RESPONSIVE — موبایل کوچک (≤ 420px) ================= */
@media (max-width: 420px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .hero__stats {
    grid-template-columns: 1fr;
  }
  .cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .btn--lg {
    padding: 13px 22px;
    font-size: 0.95rem;
  }
}

/* ---------------------- کاهش انیمیشن (دسترس‌پذیری) ------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------ PRINT ------------------------------ */
@media print {
  .topbar,
  .header,
  .footer,
  .drawer,
  .drawer-overlay,
  .to-top,
  .toast-wrap,
  .nav-overlay,
  .product-card__foot {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .container {
    max-width: 100%;
  }
}

/* ===================== افزوده‌ها: فیلتر و صفحه‌بندی ================== */

/* --- چیپ‌های دسته‌بندی --- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}
.chip small {
  opacity: 0.6;
  font-size: 0.74rem;
}
.chip:hover {
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateY(-2px);
}
.chip.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #06301a;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(70, 195, 114, 0.32);
}
[data-theme="dark"] .chip.is-active {
  color: #04220f;
}

/* --- صفحه‌بندی --- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 34px;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
}
.page-btn:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateY(-2px);
}
.page-btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #06301a;
  box-shadow: 0 4px 14px rgba(70, 195, 114, 0.3);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-dots {
  padding: 0 4px;
  color: var(--muted);
}

/* --- جست‌وجوی سریع هدر --- */
.search-wrap {
  position: relative;
  flex: 1 1 240px;
  max-width: 380px;
}
.search-wrap input {
  width: 100%;
  padding: 11px 40px 11px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  transition: all var(--t);
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--green);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.search-wrap__ico {
  position: absolute;
  top: 50%;
  inset-inline-end: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.55;
  font-size: 0.95rem;
}

.suggest {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 960;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--t);
  max-height: 60vh;
  overflow-y: auto;
}
.suggest.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.suggest__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}
.suggest__item:hover {
  background: var(--green-soft);
}
.suggest__item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  flex-shrink: 0;
}
.suggest__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.suggest__info b {
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggest__info small {
  font-size: 0.72rem;
  color: var(--muted);
}
.suggest__price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}
.suggest__loading,
.suggest__empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.suggest__all {
  display: block;
  padding: 12px;
  text-align: center;
  background: var(--surface-2);
  color: var(--green-dark);
  font-size: 0.83rem;
  font-weight: 600;
}
.suggest__all:hover {
  background: var(--green);
  color: #06301a;
}

/* --- بنر تخفیف --- */
.offer-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green) 0%, #2fa85c 100%);
  color: #052c16;
  box-shadow: 0 10px 34px rgba(70, 195, 114, 0.28);
  margin-bottom: 26px;
  overflow: hidden;
  position: relative;
}
[data-theme="dark"] .offer-banner {
  background: linear-gradient(135deg, var(--red) 0%, #7a0a0a 100%);
  color: #ffe9e9;
  box-shadow: 0 10px 34px rgba(89, 0, 0, 0.45);
}
.offer-banner::after {
  content: "🔥";
  position: absolute;
  inset-inline-end: -10px;
  bottom: -22px;
  font-size: 7rem;
  opacity: 0.16;
}
.offer-banner h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.offer-banner p {
  font-size: 0.9rem;
  opacity: 0.9;
}
.offer-banner .btn {
  background: rgba(255, 255, 255, 0.92);
  color: #06301a;
  border: none;
  white-space: nowrap;
}
.offer-banner .btn:hover {
  background: #fff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .search-wrap {
    max-width: none;
    order: 3;
    flex: 1 1 100%;
  }
  .offer-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px 18px;
  }
  .offer-banner h3 {
    font-size: 1.1rem;
  }
  .chips {
    gap: 6px;
  }
  .chip {
    padding: 7px 11px;
    font-size: 0.78rem;
  }
}

/* ================== موج تزئینی زیر Hero ================== */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__wave {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  line-height: 0;
  pointer-events: none;
}
.hero__wave svg {
  width: 100%;
  height: 70px;
  display: block;
}
.hero__wave path {
  fill: var(--bg);
  transition: fill var(--t);
}

/* ================== مراحل خرید ================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.step {
  position: relative;
  padding: 30px 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition:
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t);
}
.step:hover {
  transform: translateY(-6px);
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
}
.step__num {
  position: absolute;
  top: -20px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #06301a;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(70, 195, 114, 0.35);
}
[data-theme="dark"] .step__num {
  background: var(--red);
  color: #ffe9e9;
  box-shadow: 0 6px 18px rgba(89, 0, 0, 0.5);
}
.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 8px 0 8px;
}
.step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 2;
}

/* ================== نظرات مشتریان ================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.review-card {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition:
    transform var(--t),
    box-shadow var(--t);
}
.review-card::before {
  content: "”";
  position: absolute;
  top: 4px;
  inset-inline-end: 18px;
  font-size: 4.4rem;
  line-height: 1;
  color: var(--green);
  opacity: 0.16;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.review-card__stars {
  color: #f6b93b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.review-card p {
  font-size: 0.88rem;
  line-height: 2.1;
  color: var(--text);
  margin-bottom: 16px;
}
.review-card footer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-card__avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  font-size: 1.2rem;
}
.review-card__meta {
  display: flex;
  flex-direction: column;
}
.review-card__meta b {
  font-size: 0.85rem;
  font-weight: 700;
}
.review-card__meta small {
  font-size: 0.74rem;
  color: var(--muted);
}

/* ================== باکس CTA پایانی ================== */
.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 34px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green) 0%, #2fa85c 100%);
  color: #052c16;
  box-shadow: 0 14px 40px rgba(70, 195, 114, 0.3);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .cta-box {
  background: linear-gradient(135deg, var(--red) 0%, #7a0a0a 100%);
  color: #ffe9e9;
  box-shadow: 0 14px 40px rgba(89, 0, 0, 0.5);
}
.cta-box::after {
  content: "🚗";
  position: absolute;
  inset-inline-end: -18px;
  bottom: -30px;
  font-size: 9rem;
  opacity: 0.14;
}
.cta-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.cta-box p {
  font-size: 0.92rem;
  opacity: 0.92;
}
.cta-box__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-box .btn--primary {
  background: #fff;
  color: #06301a;
  border: none;
}
.cta-box .btn--primary:hover {
  background: #f2fff7;
  transform: translateY(-2px);
}
.cta-box .btn--ghost {
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.cta-box .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ================== ریسپانسیو ================== */
@media (max-width: 900px) {
  .cta-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-box__actions {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .hero__wave svg {
    height: 44px;
  }
  .cta-box {
    padding: 26px 20px;
  }
  .cta-box h2 {
    font-size: 1.2rem;
  }
  .steps {
    gap: 26px;
  }
  .review-card {
    padding: 20px 18px;
  }
}

/* ============== نان‌بردکرامب ============== */
.breadcrumb {
  padding: 14px 0;
  background: var(--surface-2, var(--surface));
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--muted);
  transition: color var(--t);
}
.breadcrumb a:hover {
  color: var(--green);
}
.breadcrumb span {
  color: var(--muted);
  opacity: 0.6;
}
.breadcrumb b {
  color: var(--text);
  font-weight: 700;
}

/* ============== هدر صفحات داخلی ============== */
.page-hero {
  padding: 34px 0 24px;
  text-align: center;
}
.page-hero__title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.page-hero__sub {
  font-size: 0.9rem;
  color: var(--muted);
}
.page-hero__sub b {
  color: var(--green);
  font-weight: 700;
}

/* ============== چیدمان فروشگاه ============== */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
}
.shop-main {
  min-width: 0;
}

/* ============== سایدبار فیلتر ============== */
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  position: sticky;
  top: 92px;
}
.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.filters__head h2 {
  font-size: 1rem;
  font-weight: 800;
}
.filters__close {
  display: none;
  background: none;
  border: 0;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
}
.filters__open {
  display: none;
}
.filters__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 60;
  backdrop-filter: blur(2px);
}

.filter-block {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.filter-block:last-of-type {
  border-bottom: 0;
}
.filter-block__title {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.filter-search {
  position: relative;
}
.filter-search__ico {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  font-size: 0.9rem;
  pointer-events: none;
}
.filter-search .input {
  padding-inline-start: 36px;
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
}
.filter-list__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--t);
  text-align: start;
}
.filter-list__btn:hover {
  background: var(--green-soft);
}
.filter-list__btn em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 7px;
  border-radius: 20px;
}
.filter-list__btn.is-active {
  background: var(--green);
  color: #06301a;
  font-weight: 700;
}
.filter-list__btn.is-active em {
  background: rgba(255, 255, 255, 0.35);
  color: inherit;
}
[data-theme="dark"] .filter-list__btn.is-active {
  background: var(--red);
  color: #ffe9e9;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-row__dash {
  color: var(--muted);
}
.input--sm {
  padding: 8px 10px;
  font-size: 0.8rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  padding: 7px 12px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all var(--t);
}
.chip:hover {
  border-color: var(--green);
  color: var(--green);
}
.chip.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #06301a;
  font-weight: 700;
}
[data-theme="dark"] .chip.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #ffe9e9;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ============== نوار ابزار ============== */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.shop-toolbar__info {
  font-size: 0.82rem;
  color: var(--muted);
}
.shop-toolbar__info b {
  color: var(--text);
}
.shop-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============== تگ‌های فیلتر فعال ============== */
.active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.active-tags:empty {
  display: none;
}
.tag {
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px dashed var(--green);
  background: var(--green-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all var(--t);
}
.tag:hover {
  background: var(--green);
  color: #06301a;
}
.tag--reset {
  border-style: solid;
  border-color: var(--muted);
  background: transparent;
  color: var(--muted);
}
.tag--reset:hover {
  background: var(--muted);
  color: var(--surface);
}

/* ============== اسکلت بارگذاری ============== */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
}
.skeleton-card__img {
  height: 165px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.sk {
  background: linear-gradient(
    90deg,
    var(--border) 25%,
    var(--bg) 50%,
    var(--border) 75%
  );
  background-size: 200% 100%;
  animation: skLoad 1.3s infinite;
}
.sk--line {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 9px;
}
@keyframes skLoad {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============== حالت خالی ============== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state__ico {
  font-size: 3.4rem;
  display: block;
  margin-bottom: 14px;
  opacity: 0.7;
}
.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ============== صفحه‌بندی ============== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.pagination__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--t);
}
.pagination__btn:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}
.pagination__btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #06301a;
  font-weight: 800;
}
[data-theme="dark"] .pagination__btn.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #ffe9e9;
}
.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination__dots {
  color: var(--muted);
  padding: 0 4px;
}

/* ============== هشدار ============== */
.alert {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 0.86rem;
  text-align: center;
}
.alert--error {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #dc3545;
}

/* ============== دکمه «اضافه شد» ============== */
.btn.is-added {
  background: #2fa85c !important;
  border-color: #2fa85c !important;
  color: #fff !important;
}

/* ============== ریسپانسیو ============== */
@media (max-width: 992px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .filters__open {
    display: inline-flex;
  }
  .filters__close {
    display: block;
  }
  .filters {
    display: none;
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(320px, 88vw);
    z-index: 70;
    border-radius: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .filters.is-open {
    transform: translateX(0);
  }
  html[dir="rtl"] .filters {
    transform: translateX(105%);
  }
  html[dir="rtl"] .filters.is-open {
    transform: translateX(0);
  }
}
@media (max-width: 560px) {
  .page-hero__title {
    font-size: 1.3rem;
  }
  .shop-toolbar {
    padding: 10px 12px;
  }
  .shop-toolbar__info {
    order: 3;
    width: 100%;
    text-align: center;
  }
}
/* ================= چیدمان صفحه محصول ================= */
.pd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ---------- گالری ---------- */
.pd-gallery {
  position: sticky;
  top: 92px;
}
.pd-gallery__main {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 18px;
}
.pd-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition:
    opacity 0.25s ease,
    transform 0.4s ease;
}
.pd-gallery__main:hover img {
  transform: scale(1.05);
}
.pd-gallery__badges {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.pd-gallery__zoom {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--t);
  z-index: 2;
}
.pd-gallery__zoom:hover {
  background: var(--green);
  border-color: var(--green);
  transform: scale(1.1);
}

.pd-gallery__thumbs {
  display: flex;
  gap: 9px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pd-thumb {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  padding: 5px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--t);
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pd-thumb:hover {
  border-color: var(--green);
}
.pd-thumb.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
[data-theme="dark"] .pd-thumb.is-active {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(89, 0, 0, 0.35);
}

/* ---------- اطلاعات ---------- */
.pd-info__cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 30px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 12px;
  transition: all var(--t);
}
.pd-info__cat:hover {
  background: var(--green);
  color: #06301a;
}
.pd-info__title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.8;
  margin-bottom: 12px;
}
.pd-info__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 16px;
}
.pd-info__meta b {
  color: var(--text);
}
.pd-info__dot {
  opacity: 0.4;
}
.pd-rate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stars {
  color: #f6b93b;
  letter-spacing: 1px;
}
.pd-info__short {
  font-size: 0.9rem;
  line-height: 2.1;
  color: var(--muted);
  margin-bottom: 18px;
}

.pd-perks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-bottom: 20px;
}
.pd-perks li {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- جعبه خرید ---------- */
.pd-buy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.pd-buy__old {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.pd-buy__old del {
  color: var(--muted);
  font-size: 0.84rem;
}
.pd-buy__save {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
  font-weight: 700;
}
.pd-buy__now {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 12px;
}
.pd-buy__now b {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--green);
}
[data-theme="dark"] .pd-buy__now b {
  color: #ff8a8a;
}
.pd-buy__now small {
  font-size: 0.85rem;
  color: var(--muted);
}

.pd-buy__stock {
  font-size: 0.8rem;
  margin-bottom: 14px;
  font-weight: 600;
}
.pd-buy__stock--ok {
  color: #2fa85c;
}
.pd-buy__stock--low {
  color: #e8a33d;
}
.pd-buy__stock--out {
  color: #dc3545;
}

.pd-buy__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.pd-buy__row--sub {
  margin-top: 10px;
}
.pd-buy__add {
  flex: 1;
}

/* ---------- انتخاب تعداد ---------- */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.qty__btn {
  width: 38px;
  height: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t);
}
.qty__btn:hover {
  background: var(--green);
  color: #06301a;
}
[data-theme="dark"] .qty__btn:hover {
  background: var(--red);
  color: #ffe9e9;
}
.qty__input {
  width: 46px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  outline: none;
}

/* ---------- اشتراک‌گذاری ---------- */
.pd-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}
.pd-share__btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--t);
}
.pd-share__btn:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ================= تب‌ها ================= */
.tabs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tabs__nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tabs__btn {
  padding: 15px 22px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color var(--t);
}
.tabs__btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 12px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--green);
  transform: scaleX(0);
  transition: transform var(--t);
}
[data-theme="dark"] .tabs__btn::after {
  background: #ff8a8a;
}
.tabs__btn:hover {
  color: var(--text);
}
.tabs__btn.is-active {
  color: var(--green);
}
[data-theme="dark"] .tabs__btn.is-active {
  color: #ff8a8a;
}
.tabs__btn.is-active::after {
  transform: scaleX(1);
}

.tabs__panel {
  display: none;
  padding: 26px 24px;
  animation: fadeUp 0.35s ease;
}
.tabs__panel.is-active {
  display: block;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.prose {
  font-size: 0.88rem;
  line-height: 2.3;
  color: var(--text);
}
.muted-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- جدول مشخصات ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.spec-table tr {
  border-bottom: 1px solid var(--border);
}
.spec-table tr:last-child {
  border-bottom: 0;
}
.spec-table th {
  text-align: start;
  padding: 13px 14px;
  width: 34%;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
}
.spec-table td {
  padding: 13px 14px;
  color: var(--text);
}

/* ---------- نظرات ---------- */
.rev-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px;
  margin-bottom: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.rev-summary__score {
  text-align: center;
}
.rev-summary__score b {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
}
[data-theme="dark"] .rev-summary__score b {
  color: #ff8a8a;
}
.rev-summary__score small {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 4px;
}
.rev-summary__cta p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.rev-form {
  padding: 16px;
  margin-bottom: 20px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.rev-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.rev-form textarea {
  width: 100%;
  resize: vertical;
  margin-bottom: 10px;
  font-family: inherit;
}

.rev-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rev-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.rev-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.rev-item__head > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rev-item__head b {
  font-size: 0.84rem;
  font-weight: 700;
}
.rev-item__head small {
  font-size: 0.72rem;
  color: var(--muted);
}
.rev-item__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  font-size: 1rem;
}
.rev-item p {
  font-size: 0.84rem;
  line-height: 2.1;
  color: var(--text);
}

/* ================= نوار خرید چسبان ================= */
.pd-sticky {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.14);
  transform: translateY(105%);
  transition: transform 0.3s ease;
}
.pd-sticky.is-show {
  transform: translateY(0);
}
.pd-sticky__price b {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
}
[data-theme="dark"] .pd-sticky__price b {
  color: #ff8a8a;
}
.pd-sticky__price small {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ================= لایت‌باکس (ادامه) ================= */
.lightbox__close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all var(--t);
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

/* ================= ریسپانسیو صفحه محصول ================= */
@media (max-width: 992px) {
  .pd {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pd-gallery {
    position: static;
  }
  .pd-gallery__main {
    aspect-ratio: 4 / 3;
  }
  .pd-sticky {
    display: flex;
  }
}

@media (max-width: 640px) {
  .pd-info__title {
    font-size: 1.15rem;
  }
  .pd-perks {
    grid-template-columns: 1fr;
  }
  .pd-buy {
    padding: 16px;
  }
  .pd-buy__now b {
    font-size: 1.4rem;
  }
  .pd-buy__row {
    flex-direction: column;
  }
  .pd-buy__add {
    width: 100%;
  }
  .qty {
    align-self: stretch;
    justify-content: space-between;
  }
  .qty__input {
    flex: 1;
  }
  .tabs__btn {
    padding: 13px 16px;
    font-size: 0.8rem;
  }
  .tabs__panel {
    padding: 20px 16px;
  }
  .spec-table th {
    width: 42%;
    padding: 11px 10px;
  }
  .spec-table td {
    padding: 11px 10px;
  }
  .rev-form .form-row {
    grid-template-columns: 1fr;
  }
  .rev-summary {
    flex-direction: column;
    text-align: center;
  }
  .lightbox {
    padding: 14px;
  }
}

/* ================= مراحل خرید ================= */
.steps {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.steps__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  position: relative;
  transition: color var(--t);
}
.steps__item:not(:last-child)::after {
  content: "";
  width: 46px;
  height: 2px;
  background: var(--border);
  margin-inline-start: 16px;
}
.steps__item span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  transition: all var(--t);
}
.steps__item.is-active {
  color: var(--green);
}
.steps__item.is-active span {
  background: var(--green);
  color: #06301a;
  box-shadow: 0 0 0 4px var(--green-soft);
}
.steps__item.is-done span {
  background: #2fa85c;
  color: #fff;
}
.steps__item.is-done {
  color: #2fa85c;
}
[data-theme="dark"] .steps__item.is-active {
  color: #ff8a8a;
}
[data-theme="dark"] .steps__item.is-active span {
  background: var(--red);
  color: #ffe9e9;
  box-shadow: 0 0 0 4px rgba(89, 0, 0, 0.3);
}

/* ================= چیدمان سبد ================= */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: start;
}
.cart-main {
  min-width: 0;
}
.cart-step {
  display: none;
}
.cart-step.is-active {
  display: block;
  animation: fadeUp 0.35s ease;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cart-head h2 {
  font-size: 1.05rem;
  font-weight: 800;
}
.cart-head h2 small {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.btn-link {
  background: none;
  border: 0;
  padding: 4px 2px;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--t);
}
.btn-link:hover {
  color: var(--green);
}
.btn-link--danger:hover {
  color: #dc3545;
}

/* ---------- آیتم سبد ---------- */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.28s ease;
}
.cart-item:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.cart-item.is-removing {
  opacity: 0;
  transform: translateX(-30px) scale(0.96);
}

.cart-item__img {
  width: 92px;
  height: 92px;
  border-radius: var(--radius);
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 7px;
  overflow: hidden;
}
.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--t);
}
.cart-item__img:hover img {
  transform: scale(1.09);
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cart-item__info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.8;
}
.cart-item__info h4 a:hover {
  color: var(--green);
}
.cart-item__unit {
  font-size: 0.76rem;
  color: var(--muted);
}
.cart-item__info .btn-link {
  align-self: flex-start;
}

.cart-item__price {
  text-align: end;
  white-space: nowrap;
}
.cart-item__price del {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 3px;
}
.cart-item__price b {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green);
}
[data-theme="dark"] .cart-item__price b {
  color: #ff8a8a;
}

.cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

/* ================= خلاصه فاکتور ================= */
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 92px;
}
.cart-summary__title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.84rem;
}
.sum-row span {
  color: var(--muted);
}
.sum-row b {
  font-weight: 700;
}
.sum-row--off b {
  color: #dc3545;
}
.sum-row--off i {
  font-style: normal;
  font-weight: 700;
}
.sum-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}
.sum-row--total {
  padding-top: 4px;
}
.sum-row--total span {
  color: var(--text);
  font-weight: 700;
}
.sum-row--total b {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green);
}
[data-theme="dark"] .sum-row--total b {
  color: #ff8a8a;
}

.coupon {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.coupon .input {
  flex: 1;
}
.coupon__hint {
  font-size: 0.74rem;
  margin-top: 7px;
  min-height: 16px;
}
.coupon__hint.is-ok {
  color: #2fa85c;
}
.coupon__hint.is-err {
  color: #dc3545;
}

.cart-summary__trust {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 0.74rem;
  color: var(--muted);
}

/* ================= فرم سفارش ================= */
.cart-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.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: 0.82rem;
  font-weight: 600;
}
.field label b {
  color: #dc3545;
}
.field__err {
  font-size: 0.72rem;
  color: #dc3545;
  min-height: 14px;
}
.field.has-err .input {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.14);
}

/* ---------- گزینه‌ها (رادیو) ---------- */
.opt-group {
  margin-top: 22px;
}
.opt-group__title {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 11px;
}
.opt {
  display: block;
  cursor: pointer;
  margin-bottom: 9px;
}
.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.opt__box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: all var(--t);
}
.opt__box b {
  font-size: 0.85rem;
  font-weight: 700;
}
.opt__box small {
  font-size: 0.74rem;
  color: var(--muted);
}
.opt:hover .opt__box {
  border-color: var(--green);
}
.opt input:checked + .opt__box {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 3px var(--green-soft);
}
[data-theme="dark"] .opt input:checked + .opt__box {
  border-color: var(--red);
  background: rgba(89, 0, 0, 0.22);
  box-shadow: 0 0 0 3px rgba(89, 0, 0, 0.25);
}

/* ================= پیام‌ها ================= */
.notice {
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 2;
  margin-bottom: 18px;
}
.notice--info {
  background: rgba(70, 195, 114, 0.1);
  border: 1px dashed var(--green);
}
.notice a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
}

/* ================= نتیجه سفارش ================= */
.order-done {
  text-align: center;
  padding: 50px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.order-done__ico {
  font-size: 3.6rem;
  display: block;
  margin-bottom: 16px;
  animation: pop 0.5s ease;
}
@keyframes pop {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.order-done h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #2fa85c;
}
.order-done p {
  font-size: 0.86rem;
  color: var(--muted);
}
.order-done__code {
  display: inline-block;
  margin: 14px 0;
  padding: 12px 28px;
  border-radius: var(--radius);
  background: var(--green-soft);
  border: 2px dashed var(--green);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 2px;
  direction: ltr;
}
[data-theme="dark"] .order-done__code {
  background: rgba(89, 0, 0, 0.2);
  border-color: var(--red);
}
.order-done__note {
  font-size: 0.8rem;
}

/* ================= اسپینر ================= */
.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-inline-end: 6px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================= ریسپانسیو ================= */
@media (max-width: 992px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
    order: -1;
  }
}
@media (max-width: 640px) {
  .steps__item {
    padding: 8px 10px;
    font-size: 0.74rem;
  }
  .steps__item:not(:last-child)::after {
    width: 20px;
    margin-inline-start: 8px;
  }
  .cart-item {
    grid-template-columns: 72px 1fr;
    grid-template-areas: "img info" "qty price";
    gap: 12px;
  }
  .cart-item__img {
    width: 72px;
    height: 72px;
    grid-area: img;
  }
  .cart-item__info {
    grid-area: info;
  }
  .cart-item__qty {
    grid-area: qty;
  }
  .cart-item__price {
    grid-area: price;
    text-align: end;
    align-self: center;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cart-form {
    padding: 16px;
  }
  .cart-actions {
    flex-direction: column-reverse;
  }
  .cart-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
/* ================= هدر صفحات داخلی ================= */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 52px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-hero--sm {
  padding: 46px 0 40px;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
}
.blob--1 {
  width: 300px;
  height: 300px;
  background: var(--green);
  top: -110px;
  inset-inline-start: -70px;
}
.blob--2 {
  width: 250px;
  height: 250px;
  background: var(--green);
  bottom: -120px;
  inset-inline-end: -60px;
  opacity: 0.2;
}
[data-theme="dark"] .blob--1,
[data-theme="dark"] .blob--2 {
  background: var(--red);
  opacity: 0.45;
}

.page-hero__inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.page-hero__kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 14px;
}
[data-theme="dark"] .page-hero__kicker {
  background: rgba(89, 0, 0, 0.28);
  color: #ff9d9d;
}
.page-hero__title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.7;
  margin-bottom: 12px;
}
.page-hero__title b {
  color: var(--green);
}
[data-theme="dark"] .page-hero__title b {
  color: #ff8a8a;
}
.page-hero__sub {
  font-size: 0.9rem;
  line-height: 2.2;
  color: var(--muted);
}

/* ================= داستان ما ================= */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.about-story__media {
  position: relative;
}
.about-story__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.about-story__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-story__fallback {
  display: none;
  font-size: 6rem;
}
.about-story__frame.is-fallback {
  background: var(--green-soft);
}
.about-story__frame.is-fallback .about-story__fallback {
  display: block;
}

.about-story__float {
  position: absolute;
  bottom: -18px;
  inset-inline-start: -14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: floaty 3.4s ease-in-out infinite;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
.about-story__float b {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green);
}
[data-theme="dark"] .about-story__float b {
  color: #ff8a8a;
}
.about-story__float small {
  font-size: 0.72rem;
  color: var(--muted);
}

.about-story__title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.8;
  margin: 10px 0 16px;
}
.about-story__body p {
  font-size: 0.88rem;
  line-height: 2.3;
  color: var(--muted);
  margin-bottom: 14px;
}
.about-story__list {
  list-style: none;
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-story__list li {
  font-size: 0.85rem;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.about-story__list b {
  color: var(--green);
  flex-shrink: 0;
}
[data-theme="dark"] .about-story__list b {
  color: #7de6a4;
}

/* ================= آمار ================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-box {
  text-align: center;
  padding: 28px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.stat-box:hover {
  transform: translateY(-6px);
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
}
.stat-box__ico {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}
.stat-box__num {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.3;
}
[data-theme="dark"] .stat-box__num {
  color: #ff8a8a;
}
.stat-box small {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ================= ارزش‌ها ================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.value-card {
  padding: 26px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.32s ease;
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.32s ease;
}
[data-theme="dark"] .value-card::before {
  background: var(--red);
}
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}
.value-card:hover::before {
  transform: scaleX(1);
}
.value-card__ico {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green-soft);
  font-size: 1.7rem;
  transition: transform 0.35s ease;
}
[data-theme="dark"] .value-card__ico {
  background: rgba(89, 0, 0, 0.25);
}
.value-card:hover .value-card__ico {
  transform: rotate(-8deg) scale(1.08);
}
.value-card h3 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 9px;
}
.value-card p {
  font-size: 0.8rem;
  line-height: 2.1;
  color: var(--muted);
}

/* ================= بخش توسعه‌دهنده ================= */
.dev-wrap {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
  align-items: start;
}

.dev-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
}
.dev-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}
.dev-card__avatar {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  font-size: 2rem;
  border: 2px solid var(--green);
}
[data-theme="dark"] .dev-card__avatar {
  background: rgba(89, 0, 0, 0.28);
  border-color: var(--red);
}
.dev-card__name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 5px;
}
.dev-card__role {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
}
[data-theme="dark"] .dev-card__role {
  color: #ff9d9d;
}

.dev-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.dev-table th,
.dev-table td {
  padding: 12px 10px;
  font-size: 0.83rem;
  text-align: start;
  vertical-align: middle;
}
.dev-table th {
  width: 38%;
  color: var(--muted);
  font-weight: 600;
  background: var(--bg);
  border-radius: var(--radius) 0 0 var(--radius);
}
.dev-table td {
  font-weight: 700;
}
.dev-table tr {
  border-bottom: 1px solid var(--border);
}
.dev-table tr:last-child {
  border-bottom: 0;
}
.dev-table tr:hover th {
  background: var(--green-soft);
}
[data-theme="dark"] .dev-table tr:hover th {
  background: rgba(89, 0, 0, 0.2);
}
.dev-table__link {
  color: var(--green);
  font-weight: 800;
}
.dev-table__link:hover {
  text-decoration: underline;
}
[data-theme="dark"] .dev-table__link {
  color: #ff8a8a;
}

.dev-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

/* ---------- ستون تکنولوژی‌ها ---------- */
.dev-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.dev-side__title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.tech-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid transparent;
  transition: all var(--t);
}
.tech-item:hover {
  border-color: var(--green);
  transform: translateX(-4px);
}
[dir="rtl"] .tech-item:hover {
  transform: translateX(4px);
}
.tech-item__ico {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  font-size: 1.15rem;
}
[data-theme="dark"] .tech-item__ico {
  background: rgba(89, 0, 0, 0.25);
}
.tech-item b {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.tech-item small {
  font-size: 0.73rem;
  color: var(--muted);
  line-height: 1.8;
}

.dev-side__note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--green-soft);
  border: 1px dashed var(--green);
  font-size: 0.78rem;
  line-height: 2.1;
}
[data-theme="dark"] .dev-side__note {
  background: rgba(89, 0, 0, 0.18);
  border-color: var(--red);
}

/* ================= امکانات ================= */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feat-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.feat-item:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.feat-item > span {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
  font-size: 1.25rem;
}
[data-theme="dark"] .feat-item > span {
  background: rgba(89, 0, 0, 0.25);
}
.feat-item b {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.feat-item small {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ================= آکاردئون ================= */
.accordion {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t);
}
.acc-item.is-open {
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  text-align: start;
  cursor: pointer;
  transition: color var(--t);
}
.acc-head:hover {
  color: var(--green);
}
[data-theme="dark"] .acc-head:hover {
  color: #ff9d9d;
}
.acc-head i {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 800;
  transition: transform 0.3s ease;
}
[data-theme="dark"] .acc-head i {
  background: rgba(89, 0, 0, 0.28);
  color: #ff9d9d;
}
.acc-item.is-open .acc-head i {
  transform: rotate(135deg);
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.38s ease,
    padding 0.3s ease;
  padding: 0 20px;
}
.acc-item.is-open .acc-body {
  max-height: 340px;
  padding: 0 20px 18px;
}
.acc-body p {
  font-size: 0.82rem;
  line-height: 2.3;
  color: var(--muted);
}

/* ================= CTA ================= */
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding: 34px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green), #2fa85c);
  color: #06301a;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .cta-box {
  background: linear-gradient(135deg, var(--red), #8a0f0f);
  color: #ffe9e9;
}
.cta-box::after {
  content: "";
  position: absolute;
  inset-inline-end: -50px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.cta-box h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 7px;
  position: relative;
}
.cta-box p {
  font-size: 0.85rem;
  opacity: 0.88;
  position: relative;
}
.cta-box__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.9);
  color: #0d2b1c;
  border: 0;
}
.btn--ghost:hover {
  background: #fff;
  transform: translateY(-2px);
}
[data-theme="dark"] .btn--ghost {
  color: #4a0000;
}

/* ================= کارت‌های تماس ================= */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
}
.contact-card__ico {
  width: 54px;
  height: 54px;
  margin-bottom: 6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  font-size: 1.5rem;
  transition: transform 0.32s ease;
}
[data-theme="dark"] .contact-card__ico {
  background: rgba(89, 0, 0, 0.25);
}
.contact-card:hover .contact-card__ico {
  transform: scale(1.1) rotate(-6deg);
}
.contact-card b {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.contact-card__val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green);
}
[data-theme="dark"] .contact-card__val {
  color: #ff8a8a;
}
.contact-card small {
  font-size: 0.71rem;
  color: var(--muted);
}

/* ================= چیدمان تماس ================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.contact-form-wrap__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 5px;
}
.contact-form-wrap__sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.trap {
  position: absolute !important;
  inset-inline-start: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.field__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.field__count {
  font-size: 0.71rem;
  color: var(--muted);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  font-size: 0.8rem;
  line-height: 1.9;
  cursor: pointer;
}
.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  margin-top: 3px;
  flex-shrink: 0;
}
[data-theme="dark"] .check input {
  accent-color: var(--red);
}

.contact-form__actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

/* ---------- هشدارها ---------- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.83rem;
  line-height: 2;
  font-weight: 600;
  margin-bottom: 18px;
  animation: fadeUp 0.3s ease;
}
.alert--success {
  background: rgba(47, 168, 92, 0.13);
  border: 1px solid #2fa85c;
  color: #1d7a41;
}
.alert--error {
  background: rgba(220, 53, 69, 0.11);
  border: 1px solid #dc3545;
  color: #b02a37;
}
.alert--info {
  background: rgba(70, 195, 114, 0.11);
  border: 1px dashed var(--green);
}
[data-theme="dark"] .alert--success {
  color: #7de6a4;
}
[data-theme="dark"] .alert--error {
  color: #ff9d9d;
}

/* ---------- ستون کنار ---------- */
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.side-box h3 {
  font-size: 0.93rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.side-box p {
  font-size: 0.79rem;
  line-height: 2.1;
  color: var(--muted);
  margin-bottom: 14px;
}
.side-box--tip {
  background: var(--green-soft);
  border-style: dashed;
  border-color: var(--green);
}
.side-box--tip p {
  margin-bottom: 0;
  color: var(--text);
}
[data-theme="dark"] .side-box--tip {
  background: rgba(89, 0, 0, 0.16);
  border-color: var(--red);
}

.side-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.side-links a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.81rem;
  font-weight: 600;
  transition: all var(--t);
}
.side-links a:hover {
  background: var(--green-soft);
  color: var(--green);
  padding-inline-start: 18px;
}
[data-theme="dark"] .side-links a:hover {
  background: rgba(89, 0, 0, 0.22);
  color: #ff9d9d;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ================= نقشه ================= */
.map-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.map-box__placeholder {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  padding: 34px 20px;
  background:
    radial-gradient(circle at 30% 30%, var(--green-soft), transparent 60%),
    radial-gradient(circle at 70% 70%, var(--green-soft), transparent 60%),
    var(--surface);
}
[data-theme="dark"] .map-box__placeholder {
  background:
    radial-gradient(circle at 30% 30%, rgba(89, 0, 0, 0.3), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(89, 0, 0, 0.3), transparent 60%),
    var(--surface);
}
.map-box__placeholder span {
  font-size: 2.6rem;
  animation: floaty 3s ease-in-out infinite;
}
.map-box__placeholder b {
  font-size: 1.05rem;
  font-weight: 800;
}
.map-box__placeholder small {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ================= ریسپانسیو (about + contact) ================= */
@media (max-width: 992px) {
  .about-story {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .about-story__frame {
    aspect-ratio: 16 / 10;
  }
  .dev-wrap {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-side {
    order: -1;
  }
  .stats-grid,
  .values-grid,
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 44px 0 36px;
  }
  .page-hero__title {
    font-size: 1.45rem;
  }
  .page-hero__sub {
    font-size: 0.83rem;
  }
  .about-story__title {
    font-size: 1.2rem;
  }
  .about-story__float {
    inset-inline-start: 10px;
    bottom: -14px;
    padding: 11px 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-box__num {
    font-size: 1.5rem;
  }
  .values-grid,
  .contact-cards,
  .feat-grid {
    grid-template-columns: 1fr;
  }
  .dev-card,
  .dev-side,
  .contact-form-wrap {
    padding: 18px;
  }
  .dev-card__top {
    flex-direction: column;
    text-align: center;
  }
  .dev-table th {
    width: 44%;
    font-size: 0.77rem;
    padding: 10px 8px;
  }
  .dev-table td {
    font-size: 0.79rem;
    padding: 10px 8px;
  }
  .cta-box {
    padding: 24px 20px;
    text-align: center;
    justify-content: center;
  }
  .cta-box h2 {
    font-size: 1.1rem;
  }
  .cta-box__actions {
    width: 100%;
  }
  .cta-box__actions .btn {
    flex: 1;
    justify-content: center;
  }
  .contact-form__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .acc-head {
    padding: 14px 15px;
    font-size: 0.82rem;
  }
  .acc-item.is-open .acc-body {
    padding: 0 15px 15px;
    max-height: 420px;
  }
}

/* =====================================================================
 *  اتوشاهی — بخش ۶ : صفحات احراز هویت (auth) + پنل کاربری (profile)
 *  نویسنده: سید محمد امین شاهی
 * ===================================================================== */

/* ---------------------------------------------------------------
 |  پل ارتباطی متغیرها (سازگاری با بخش‌های قبلی)
 * --------------------------------------------------------------- */
.auth-section,
.pro-hero,
.pro-layout {
  --ac: var(--color-primary, var(--primary, #46c372));
  --ac-d: var(--color-primary-dark, #2fa85c);
  --dk: var(--color-secondary, var(--dark-red, #590000));
  --card: var(--color-card, var(--card-bg, #ffffff));
  --bg2: var(--color-bg-alt, #f5f7f9);
  --txt: var(--color-text, var(--text, #1d2530));
  --mut: var(--color-muted, var(--muted, #6d7b8d));
  --bdr: var(--color-border, var(--border, #e2e8ef));
  --rad: var(--radius, 16px);
  --sh: var(--shadow, 0 10px 30px rgba(20, 30, 45, 0.08));
}

/* ==============================================================
 *  ۱) قالب کلی صفحات ورود / ثبت‌نام
 * ============================================================== */
.page-auth {
  background: var(--bg2);
}

.auth-section {
  position: relative;
  padding: clamp(28px, 5vw, 70px) 0;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
}

/* لکه‌های تزئینی پس‌زمینه */
.auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.auth-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
  animation: authFloat 14s ease-in-out infinite;
}
.auth-bg .blob--1 {
  width: 380px;
  height: 380px;
  background: var(--ac);
  top: -110px;
  inset-inline-end: -90px;
}
.auth-bg .blob--2 {
  width: 320px;
  height: 320px;
  background: var(--dk);
  bottom: -120px;
  inset-inline-start: -80px;
  animation-delay: -6s;
}
@keyframes authFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-24px, 26px) scale(1.09);
  }
}

.auth-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(18px, 3vw, 38px);
  align-items: stretch;
}
.auth-wrap--rev {
  grid-template-columns: 1fr 1.05fr;
}
.auth-wrap--rev .auth-aside {
  order: 2;
}
.auth-wrap--rev .auth-card {
  order: 1;
}

/* ==============================================================
 *  ۲) ستون تبلیغاتی
 * ============================================================== */
.auth-aside {
  border-radius: calc(var(--rad) + 8px);
  background:
    radial-gradient(
      120% 90% at 100% 0%,
      rgba(70, 195, 114, 0.35) 0%,
      transparent 60%
    ),
    linear-gradient(160deg, #073d22 0%, var(--dk) 100%);
  color: #fff;
  box-shadow: var(--sh);
  overflow: hidden;
  position: relative;
}
.auth-aside::after {
  content: "";
  position: absolute;
  inset-inline-start: -40%;
  bottom: -55%;
  width: 130%;
  height: 90%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}
.auth-aside__inner {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.auth-aside__logo {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  margin-bottom: 16px;
}
.auth-aside__title {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.65;
  margin: 0 0 8px;
}
.auth-aside__title b {
  color: #8ff0b6;
}
.auth-aside__sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 2;
  margin: 0 0 22px;
}

.auth-aside__list {
  list-style: none;
  margin: 0 0 auto;
  padding: 0;
  display: grid;
  gap: 13px;
}
.auth-aside__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    background 0.25s,
    transform 0.25s;
}
.auth-aside__list li:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateX(-4px);
}
.auth-aside__list li > span {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(143, 240, 182, 0.18);
  font-size: 1.05rem;
}
.auth-aside__list b {
  display: block;
  font-size: 0.87rem;
  margin-bottom: 3px;
}
.auth-aside__list small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  line-height: 1.8;
}

.auth-aside__foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.auth-aside__foot span {
  font-size: 1.1rem;
}
.auth-aside__foot small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  line-height: 1.9;
}

/* ==============================================================
 *  ۳) کارت فرم
 * ============================================================== */
.auth-card {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: calc(var(--rad) + 8px);
  box-shadow: var(--sh);
  padding: clamp(22px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  animation: authUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes authUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.auth-card__head {
  text-align: center;
  margin-bottom: 18px;
}
.auth-card__title {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--txt);
}
.auth-card__sub {
  color: var(--mut);
  font-size: 0.84rem;
  margin: 0;
  line-height: 1.9;
}

/* تب‌ها */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  background: var(--bg2);
  border: 1px solid var(--bdr);
  border-radius: 14px;
  margin-bottom: 20px;
}
.auth-tab {
  text-align: center;
  padding: 11px 8px;
  border-radius: 10px;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--mut);
  text-decoration: none;
  transition: all 0.25s;
}
.auth-tab:hover {
  color: var(--ac-d);
  background: rgba(70, 195, 114, 0.1);
}
.auth-tab.is-active {
  background: var(--ac);
  color: #fff;
  box-shadow: 0 5px 16px rgba(70, 195, 114, 0.35);
}

/* فرم */
.auth-form {
  display: grid;
  gap: 15px;
}
.auth-form__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: -3px;
}
.auth-link {
  color: var(--ac-d);
  font-size: 0.79rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.auth-link:hover {
  border-bottom-color: currentColor;
}

/* جداکننده «یا» */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 22px 0 16px;
}
.auth-divider::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 1px;
  background: var(--bdr);
}
.auth-divider span {
  position: relative;
  background: var(--card);
  padding: 0 14px;
  color: var(--mut);
  font-size: 0.78rem;
}

.auth-alt {
  text-align: center;
}
.auth-alt p {
  color: var(--mut);
  font-size: 0.82rem;
  margin: 0 0 10px;
}

/* باکس حساب آزمایشی */
.auth-demo {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px dashed rgba(70, 195, 114, 0.5);
  background: rgba(70, 195, 114, 0.07);
  display: grid;
  gap: 8px;
}
.auth-demo > b {
  font-size: 0.82rem;
  color: var(--ac-d);
}
.auth-demo__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.79rem;
  color: var(--mut);
}
.auth-demo__row code {
  background: var(--card);
  border: 1px solid var(--bdr);
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 0.78rem;
  color: var(--txt);
  letter-spacing: 0.5px;
}
.auth-demo .btn {
  justify-self: start;
  margin-top: 3px;
}

.auth-back {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--mut);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}
.auth-back:hover {
  color: var(--ac-d);
}

/* تله ربات */
.trap {
  position: absolute !important;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ==============================================================
 *  ۴) اجزای فرم مشترک (input-icon / field / check / alert)
 * ============================================================== */
.field {
  display: grid;
  gap: 6px;
  position: relative;
}
.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--txt);
}
.field label b {
  color: #dc3545;
}
.field--full {
  grid-column: 1 / -1;
}

.field__err {
  font-size: 0.74rem;
  color: #dc3545;
  min-height: 0;
  display: none;
}
.field.has-err .field__err {
  display: block;
  animation: shakeX 0.34s;
}
.field.has-err .input {
  border-color: #dc3545 !important;
  background: rgba(220, 53, 69, 0.04);
}
@keyframes shakeX {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
.field__hint {
  font-size: 0.73rem;
  color: var(--mut);
}
.field__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.field__count {
  font-size: 0.72rem;
  color: var(--mut);
}

.input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--txt);
  background: var(--card);
  border: 1.5px solid var(--bdr);
  border-radius: 12px;
  outline: none;
  transition:
    border-color 0.22s,
    box-shadow 0.22s,
    background 0.22s;
}
.input::placeholder {
  color: var(--mut);
  opacity: 0.65;
  font-size: 0.82rem;
}
.input:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 4px rgba(70, 195, 114, 0.14);
}
.input:disabled {
  background: var(--bg2);
  color: var(--mut);
  cursor: not-allowed;
}
.textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 2;
}

.input-icon {
  position: relative;
  display: block;
}
.input-icon .input {
  padding-inline-start: 42px;
  padding-inline-end: 42px;
}
.input-icon__ico {
  position: absolute;
  inset-inline-start: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  opacity: 0.7;
  pointer-events: none;
}
.input-icon__eye {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.input-icon__eye:hover {
  background: var(--bg2);
}

/* چک‌باکس */
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--txt);
  line-height: 2;
}
.check input {
  appearance: none;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-top: 6px;
  border: 1.5px solid var(--bdr);
  border-radius: 6px;
  background: var(--card);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.check input:checked {
  background: var(--ac);
  border-color: var(--ac);
}
.check input:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
}
.check--sm {
  font-size: 0.79rem;
  color: var(--mut);
}
.check--sm input {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
  margin-top: 4px;
}

/* هشدارها */
.alert {
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 0.83rem;
  line-height: 2;
  margin-bottom: 16px;
  border: 1px solid transparent;
  animation: authUp 0.3s both;
}
.alert--success {
  background: rgba(70, 195, 114, 0.12);
  border-color: rgba(70, 195, 114, 0.4);
  color: #1e7a45;
}
.alert--error {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.35);
  color: #b02733;
}
.alert--info {
  background: rgba(58, 130, 220, 0.1);
  border-color: rgba(58, 130, 220, 0.32);
  color: #21578f;
}
.alert--warn {
  background: rgba(230, 170, 0, 0.12);
  border-color: rgba(230, 170, 0, 0.35);
  color: #8a6400;
}

/* سنجه قدرت رمز */
.pw-meter {
  display: grid;
  gap: 5px;
  margin-top: 2px;
}
.pw-meter__bar {
  height: 5px;
  border-radius: 99px;
  background: var(--bdr);
  overflow: hidden;
}
.pw-meter__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition:
    width 0.35s ease,
    background 0.35s;
}
.pw-meter__txt {
  font-size: 0.73rem;
  font-weight: 700;
}

/* اسپینر */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-inline-end: 5px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==============================================================
 *  ۵) پنل کاربری — هدر
 * ============================================================== */
.page-profile {
  background: var(--bg2);
}

.pro-hero {
  background:
    radial-gradient(
      90% 130% at 0% 0%,
      rgba(70, 195, 114, 0.28) 0%,
      transparent 62%
    ),
    linear-gradient(140deg, #06301c 0%, var(--dk) 100%);
  color: #fff;
  padding: clamp(26px, 4vw, 46px) 0;
  position: relative;
  overflow: hidden;
}
.pro-hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -8%;
  top: -60%;
  width: 42%;
  height: 200%;
  background: rgba(255, 255, 255, 0.04);
  transform: rotate(18deg);
}
.pro-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.pro-hero__user {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pro-avatar {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  font-weight: 800;
  color: #06301c;
  background: linear-gradient(150deg, #a8f5c6, var(--ac));
  box-shadow: 0 8px 24px rgba(70, 195, 114, 0.4);
}
.pro-hero__name {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 800;
  margin: 0 0 6px;
}
.pro-hero__meta {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pro-hero__meta b {
  color: #b9f7d1;
  font-weight: 700;
}
.pro-hero__meta .dot {
  opacity: 0.4;
}

.pro-hero__stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pro-stat {
  min-width: 108px;
  padding: 13px 16px;
  border-radius: 15px;
  text-align: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(7px);
  transition:
    transform 0.25s,
    background 0.25s;
}
.pro-stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
}
.pro-stat b {
  display: block;
  font-size: 1.22rem;
  font-weight: 800;
  color: #b9f7d1;
}
.pro-stat small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ==============================================================
 *  ۶) پنل کاربری — چیدمان
 * ============================================================== */
.pro-layout {
  display: grid;
  grid-template-columns: 262px 1fr;
  gap: 22px;
  align-items: start;
}

.pro-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 88px;
}

.pro-menu {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--rad);
  box-shadow: var(--sh);
  padding: 9px;
  display: grid;
  gap: 3px;
}
.pro-menu__item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 13px;
  border: 0;
  background: transparent;
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--txt);
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s;
  position: relative;
}
.pro-menu__item > span {
  font-size: 1.02rem;
  width: 22px;
  text-align: center;
}
.pro-menu__item:hover {
  background: var(--bg2);
  transform: translateX(-3px);
}
.pro-menu__item.is-active {
  background: linear-gradient(
    90deg,
    rgba(70, 195, 114, 0.16),
    rgba(70, 195, 114, 0.05)
  );
  color: var(--ac-d);
}
.pro-menu__item.is-active::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 22%;
  width: 3px;
  height: 56%;
  border-radius: 99px;
  background: var(--ac);
}
.pro-menu__badge {
  margin-inline-start: auto;
  font-style: normal;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 99px;
  background: var(--ac);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}
.pro-menu__item--out {
  color: #b02733;
}
.pro-menu__item--out:hover {
  background: rgba(220, 53, 69, 0.08);
}

.side-box {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--rad);
  padding: 17px;
  box-shadow: var(--sh);
}
.side-box h3 {
  font-size: 0.92rem;
  margin: 0 0 8px;
  color: var(--txt);
}
.side-box p {
  font-size: 0.79rem;
  color: var(--mut);
  line-height: 2;
  margin: 0 0 12px;
}
.side-box--tip {
  border-inline-start: 3px solid var(--ac);
}

/* محتوا */
.pro-content {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.pro-tab {
  display: none;
}
.pro-tab.is-active {
  display: grid;
  gap: 20px;
  animation: authUp 0.35s both;
}

.pro-box {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--rad);
  box-shadow: var(--sh);
  padding: clamp(17px, 2.2vw, 26px);
}
.pro-box__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--bdr);
}
.pro-box__head h2 {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0;
  color: var(--txt);
}
.pro-box__sub {
  font-size: 0.77rem;
  color: var(--mut);
}

/* کارت‌های میان‌بر */
.pro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 13px;
}
.pro-card {
  display: grid;
  gap: 5px;
  padding: 18px 15px;
  border: 1.5px solid var(--bdr);
  border-radius: 15px;
  background: var(--card);
  text-decoration: none;
  font-family: inherit;
  text-align: start;
  cursor: pointer;
  transition: all 0.25s;
}
.pro-card:hover {
  border-color: var(--ac);
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(70, 195, 114, 0.16);
}
.pro-card__ico {
  font-size: 1.55rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(70, 195, 114, 0.11);
  margin-bottom: 6px;
}
.pro-card b {
  font-size: 0.87rem;
  color: var(--txt);
}
.pro-card small {
  font-size: 0.74rem;
  color: var(--mut);
  line-height: 1.8;
}

/* تایم‌لاین */
.pro-timeline {
  list-style: none;
  margin: 0;
  padding: 0 16px 0 0;
  position: relative;
}
.pro-timeline::before {
  content: "";
  position: absolute;
  inset-inline-end: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--bdr);
}
.pro-timeline li {
  position: relative;
  padding: 0 20px 18px 0;
}
.pro-timeline li:last-child {
  padding-bottom: 0;
}
.pro-timeline li::before {
  content: "";
  position: absolute;
  inset-inline-end: -1px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ac);
  border: 2.5px solid var(--card);
  box-shadow: 0 0 0 2px rgba(70, 195, 114, 0.28);
}
.pro-timeline b {
  display: block;
  font-size: 0.85rem;
  color: var(--txt);
  margin-bottom: 3px;
}
.pro-timeline small {
  font-size: 0.75rem;
  color: var(--mut);
}

/* فرم‌های پنل */
.pro-form {
  display: grid;
  gap: 17px;
}
.form-grid {
  display: grid;
  gap: 16px;
}
.form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pro-form__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px dashed var(--bdr);
  margin-top: 2px;
  padding-top: 16px;
}

/* جدول */
.table-wrap {
  overflow-x: auto;
  border-radius: 13px;
  border: 1px solid var(--bdr);
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.table thead th {
  background: var(--bg2);
  padding: 12px 13px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--mut);
  text-align: start;
  white-space: nowrap;
}
.table tbody td {
  padding: 13px;
  font-size: 0.82rem;
  color: var(--txt);
  border-top: 1px solid var(--bdr);
}
.table tbody tr {
  transition: background 0.2s;
}
.table tbody tr:hover {
  background: rgba(70, 195, 114, 0.05);
}
.table code {
  background: var(--bg2);
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 0.76rem;
}

.dev-table {
  width: 100%;
  border-collapse: collapse;
}
.dev-table th,
.dev-table td {
  padding: 10px 12px;
  font-size: 0.8rem;
  border-bottom: 1px dashed var(--bdr);
  text-align: start;
}
.dev-table th {
  color: var(--mut);
  font-weight: 700;
  width: 40%;
}
.dev-table tr:last-child th,
.dev-table tr:last-child td {
  border-bottom: 0;
}

/* برچسب وضعیت */
.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}
.badge--ok {
  background: rgba(70, 195, 114, 0.15);
  color: #1e7a45;
}
.badge--info {
  background: rgba(58, 130, 220, 0.13);
  color: #21578f;
}
.badge--warn {
  background: rgba(230, 170, 0, 0.16);
  color: #8a6400;
}
.badge--err {
  background: rgba(220, 53, 69, 0.12);
  color: #b02733;
}

/* حالت خالی */
.empty {
  text-align: center;
  padding: 42px 18px;
}
.empty__ico {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.8;
}
.empty b {
  display: block;
  font-size: 1rem;
  color: var(--txt);
  margin-bottom: 7px;
}
.empty p {
  font-size: 0.82rem;
  color: var(--mut);
  line-height: 2;
  margin: 0 0 18px;
}

/* ==============================================================
 *  ۷) تم شب
 * ============================================================== */
[data-theme="dark"] .page-auth,
[data-theme="dark"] .page-profile,
body.dark .page-auth,
body.dark .page-profile {
  background: #0e1319;
}

[data-theme="dark"] .auth-card,
[data-theme="dark"] .pro-menu,
[data-theme="dark"] .pro-box,
[data-theme="dark"] .side-box,
[data-theme="dark"] .pro-card,
body.dark .auth-card,
body.dark .pro-box {
  background: #161d26;
  border-color: #26313d;
}
[data-theme="dark"] .auth-divider span {
  background: #161d26;
}
[data-theme="dark"] .auth-tabs,
[data-theme="dark"] .table thead th,
[data-theme="dark"] .table code,
[data-theme="dark"] .auth-demo__row code {
  background: #10161d;
  border-color: #26313d;
}
[data-theme="dark"] .input {
  background: #10161d;
  border-color: #2b3745;
  color: #e6ecf3;
}
[data-theme="dark"] .input:disabled {
  background: #0d1218;
}
[data-theme="dark"] .check input {
  background: #10161d;
  border-color: #2b3745;
}
[data-theme="dark"] .pro-menu__item:hover,
[data-theme="dark"] .input-icon__eye:hover {
  background: #1d2731;
}
[data-theme="dark"] .pro-timeline li::before {
  border-color: #161d26;
}

/* ==============================================================
 *  ۸) واکنش‌گرایی
 * ============================================================== */
@media (max-width: 992px) {
  .auth-wrap,
  .auth-wrap--rev {
    grid-template-columns: 1fr;
  }
  .auth-wrap--rev .auth-aside {
    order: 1;
  }
  .auth-wrap--rev .auth-card {
    order: 2;
  }
  .auth-aside__list {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .pro-layout {
    grid-template-columns: 1fr;
  }
  .pro-side {
    position: static;
  }
  .pro-menu {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
  }
  .pro-menu::-webkit-scrollbar {
    display: none;
  }
  .pro-menu__item {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .pro-menu__item.is-active::before {
    inset-inline: 18%;
    inset-block-end: 0;
    top: auto;
    width: auto;
    height: 3px;
  }
}

@media (max-width: 640px) {
  .auth-section {
    padding: 20px 0;
    min-height: auto;
  }
  .auth-aside__list {
    grid-template-columns: 1fr;
  }
  .auth-aside__logo {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
  .form-grid--2 {
    grid-template-columns: 1fr;
  }
  .pro-hero__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .pro-hero__stats {
    width: 100%;
  }
  .pro-stat {
    flex: 1 1 30%;
    min-width: 88px;
    padding: 11px 8px;
  }
  .pro-avatar {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    font-size: 1.35rem;
  }
  .pro-form__actions .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-bg .blob,
  .spinner {
    animation: none;
  }
  .auth-card,
  .pro-tab {
    animation: none;
  }
}
