/* ورقچی - استایل اصلی سایت */
/* فونت وزیرمتن به‌صورت محلی سرو می‌شود (بدون وابستگی به Google Fonts) تا سرعت بارگذاری در ایران بالا برود */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/vazirmatn-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/vazirmatn-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+2113;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/vazirmatn-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

:root {
  --brown-900: #3b2617;
  --brown-800: #4e3120;
  --brown-700: #6b4527;
  --brown-600: #8a5a34;
  --amber-500: #d98a3d;
  --amber-400: #e8a95f;
  --cream-100: #faf3e9;
  --cream-200: #f3e6d3;
  --cream-300: #ecdcc2;
  --ink-900: #241812;
  --ink-600: #5b4a3c;
  --green-ok: #3f8f4f;
  --red-bad: #c0392b;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 3px rgba(59,38,23,.08), 0 4px 18px rgba(59, 38, 23, 0.10);
  --shadow-lg: 0 2px 4px rgba(59,38,23,.12), 0 18px 34px rgba(59,38,23,.20);
  --shadow-press: inset 0 2px 4px rgba(0,0,0,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(217,138,61,.10), transparent 40%),
    radial-gradient(circle at 100% 15%, rgba(107,69,39,.08), transparent 38%),
    var(--cream-100);
  background-attachment: fixed;
  color: var(--ink-900);
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
}
.header-main {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}
.logo {
  font-size: 26px;
  font-weight: 900;
  color: var(--brown-800);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo span.dot { color: var(--amber-500); }
.logo small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-600); }

.search-box { flex: 1; display: flex; max-width: 460px; }
.search-box input {
  flex: 1;
  border: 2px solid var(--cream-300);
  border-left: none;
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}
.search-box input:focus { border-color: var(--amber-500); box-shadow: 0 0 0 4px rgba(217,138,61,.15); }
.search-box button {
  border: 2px solid var(--amber-500);
  background: var(--amber-500);
  color: var(--white);
  border-radius: 10px 0 0 10px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 16px;
  transition: background .15s, transform .1s;
}
.search-box button:hover { background: var(--brown-700); }
.search-box button:active { transform: scale(.94); }
.search-ic { display: inline-block; animation: search-ic-float 2.6s ease-in-out infinite; }
@keyframes search-ic-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.search-box { position: relative; }
.search-suggest {
  display: none; position: absolute; top: calc(100% + 6px); right: 0; left: 0;
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream-300); z-index: 120; max-height: 420px; overflow-y: auto;
  animation: search-suggest-in .16s ease-out;
}
@keyframes search-suggest-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.search-suggest.open { display: block; }
.search-suggest-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-bottom: 1px solid var(--cream-200);
  transition: background .12s;
}
.search-suggest-item:hover { background: var(--cream-100); }
.search-suggest-thumb {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--cream-200);
}
.search-suggest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-suggest-info { min-width: 0; }
.search-suggest-title { font-size: 13px; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggest-price { font-size: 12px; color: var(--brown-700); font-weight: 700; }
.search-suggest-empty { padding: 14px; font-size: 13px; color: var(--ink-600); text-align: center; }
.search-suggest-viewall {
  display: block; text-align: center; padding: 10px; font-size: 13px; font-weight: 700;
  color: var(--brown-700); background: var(--cream-100);
}

.header-actions { display: flex; align-items: center; gap: 16px; margin-right: auto; }
.header-actions a {
  display: flex; flex-direction: column; align-items: center;
  font-size: 12px; color: var(--brown-800); position: relative;
}
.header-actions a .ic { font-size: 22px; }
.cart-count {
  position: absolute; top: -6px; left: -10px;
  background: var(--red-bad); color: #fff;
  font-size: 11px; border-radius: 50%;
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
}

.cart-link .cart-ic {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream-200); font-size: 19px;
  transition: background .15s, transform .15s;
}
.cart-link:hover .cart-ic { background: var(--amber-400); transform: translateY(-2px); }

.account-menu { position: relative; }
.account-dots {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream-200); border: none; cursor: pointer;
  font-size: 20px; font-weight: 900; color: var(--brown-800);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.account-dots:hover { background: var(--amber-400); }
.account-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px; max-width: calc(100vw - 24px); background: var(--white); box-shadow: var(--shadow-lg);
  border-radius: 12px; padding: 8px 0; z-index: 70; overflow-x: hidden;
}
.account-dropdown.open { display: block; }
.account-dropdown-head { padding: 10px 18px; font-weight: 700; color: var(--brown-800); }
.account-dropdown-item {
  display: block; padding: 9px 18px; color: var(--ink-900); font-size: 14px;
}
.account-dropdown-item:hover { background: var(--cream-200); color: var(--brown-700); }
.account-dropdown-item.active { color: var(--amber-500); font-weight: 700; }
.account-dropdown-label { padding: 6px 18px 2px; font-size: 11.5px; color: var(--ink-600); }
.account-dropdown-sep { height: 1px; background: var(--cream-300); margin: 6px 0; }

.trust-seal-slot {
  border: 1.5px dashed var(--cream-300);
  border-radius: 10px; padding: 16px; text-align: center;
  font-size: 12px; color: var(--ink-600); opacity: .8;
}

.main-nav {
  background: var(--cream-100);
  border-bottom: 1px solid var(--cream-300);
}
.main-nav ul { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav > .container > ul > li { position: relative; }
.main-nav a.top-link {
  display: block; padding: 12px 18px; color: var(--brown-800);
  font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.main-nav > .container > ul > li:hover > a.top-link,
.main-nav a.top-link.active { background: var(--cream-200); color: var(--amber-500); border-color: var(--amber-500); }

.mega-menu {
  display: none;
  position: absolute; top: 100%; right: 0; min-width: 240px;
  background: var(--white); box-shadow: var(--shadow); border-radius: 0 0 10px 10px;
  padding: 10px 0; z-index: 60;
}
.main-nav li:hover .mega-menu { display: block; }
.mega-menu a { display: block; padding: 9px 20px; color: var(--ink-900); font-size: 14px; }
.mega-menu a:hover { background: var(--cream-200); color: var(--brown-700); }

.mobile-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--brown-800); cursor: pointer; }

.back-bar { background: var(--cream-200); border-bottom: 1px solid var(--cream-300); }
body[data-page="home"] .back-bar { display: none; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
  padding: 8px 0; font-size: 13px; font-weight: 600; color: var(--brown-700); cursor: pointer;
  transition: color .15s;
}
.back-btn:hover { color: var(--amber-500); }
.back-arrow { display: inline-block; transition: transform .15s; }
.back-btn:hover .back-arrow { transform: translateX(3px); }
body.lang-ltr .back-arrow { transform: scaleX(-1); }
body.lang-ltr .back-btn:hover .back-arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- Hero ---------- */
.hero-slider { position: relative; margin-bottom: 34px; min-height: 336px; overflow: hidden; border-radius: 0; }
.hero-slider .hero {
  position: absolute; inset: 0; margin-bottom: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s ease;
  display: flex; align-items: center;
}
.hero-slider .hero.active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero {
  background: linear-gradient(120deg, var(--brown-900), var(--brown-700) 70%);
  color: var(--cream-100);
  padding: 46px 0;
  margin-bottom: 34px;
  width: 100%;
}
.hero .container { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.hero-brand-pakchoob { background: linear-gradient(120deg, #2f4d2a, #4f7a3f 70%); }
.hero-brand-foomiz { background: linear-gradient(120deg, #1f4a5c, #2f7a94 70%); }
.hero-brand-agt { background: linear-gradient(120deg, #3b2617, #8a5a34 70%); }
.hero-brand-icon {
  flex: 0 0 220px; height: 210px; display: flex; align-items: center; justify-content: center;
  font-size: 96px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.35));
}
.hero-brand-icon-logo img {
  width: 190px; height: 190px; object-fit: contain; background: #fff;
  border-radius: 26px; padding: 22px; box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.hero-brand-icon-photo img {
  width: 220px; height: 200px; object-fit: cover; border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,.35); border: 3px solid rgba(255,255,255,.25);
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.35); color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.hero-arrow:hover { background: rgba(0,0,0,.55); }
.hero-arrow-prev { right: 16px; }
.hero-arrow-next { left: 16px; }
.hero-dots {
  position: absolute; bottom: 14px; right: 50%; transform: translateX(50%); z-index: 5;
  display: flex; gap: 8px;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.4); transition: background .15s, transform .15s;
}
.hero-dots button.active { background: var(--amber-400); transform: scale(1.3); }
.hero-text { flex: 1; min-width: 280px; }
.hero-text h1 { font-size: 30px; margin: 0 0 10px; }
.hero-text p { color: var(--cream-300); margin: 0 0 16px; max-width: 520px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-badges span {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 12px; border-radius: 30px; font-size: 13px;
}
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  background: linear-gradient(180deg, var(--amber-400), var(--amber-500) 60%, #c47a30);
  color: var(--ink-900); font-weight: 700;
  border: none; border-bottom: 3px solid rgba(0,0,0,.22);
  cursor: pointer; font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 8px rgba(217,138,61,.3);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 18px rgba(217,138,61,.45); }
.btn:active { transform: translateY(1px); box-shadow: var(--shadow-press); border-bottom-width: 1px; }
.btn.btn-outline { background: transparent; border: 2px solid var(--cream-200); border-bottom: 2px solid var(--cream-200); color: var(--cream-100); box-shadow: none; }
.btn.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn.btn-danger { background: linear-gradient(180deg, #d9584a, var(--red-bad) 70%); color: #fff; }
.btn.btn-secondary { background: linear-gradient(180deg, var(--brown-600), var(--brown-700) 70%); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.hero-visual {
  flex: 0 0 300px; height: 210px; position: relative; perspective: 900px;
}
.hero-visual .plank {
  position: absolute; width: 140px; height: 190px; border-radius: 12px;
  background-size: cover; background-position: center;
  box-shadow: 0 20px 34px rgba(0,0,0,.45), inset 0 3px 0 rgba(255,255,255,.25), inset 0 -16px 20px -10px rgba(0,0,0,.35);
  border: 3px solid rgba(255,255,255,.18);
  transition: transform .35s ease;
  transform-style: preserve-3d;
}
.hero-visual .plank.p1 { background-image: url("../img/textures/wood-b.svg"); transform: rotate3d(0,1,0.15,-24deg) rotate(-6deg); right: 110px; top: 18px; z-index: 1; }
.hero-visual .plank.p2 { background-image: url("../img/textures/veneer-a.svg"); transform: rotate3d(0,1,0,-6deg); right: 60px; top: 2px; z-index: 2; }
.hero-visual .plank.p3 { background-image: url("../img/textures/pvc-a.svg"); transform: rotate3d(0,1,-0.15,24deg) rotate(6deg); right: 5px; top: 22px; z-index: 3; }
.hero-visual:hover .plank.p1 { transform: rotate3d(0,1,0.15,-32deg) rotate(-6deg) translateY(-6px); }
.hero-visual:hover .plank.p2 { transform: rotate3d(0,1,0,-6deg) translateY(-10px); }
.hero-visual:hover .plank.p3 { transform: rotate3d(0,1,-0.15,32deg) rotate(6deg) translateY(-6px); }

/* ---------- Section headings ---------- */
.section { margin: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-size: 21px; color: var(--brown-800); margin: 0; border-right: 5px solid var(--amber-500); padding-right: 10px; }
.section-head a { font-size: 13px; color: var(--brown-600); font-weight: 600; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.cat-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 16px; text-align: center; transition: transform .18s, box-shadow .18s;
  border: 1px solid var(--cream-300);
}
.cat-card:hover { transform: translateY(-5px) scale(1.02); border-color: var(--amber-500); box-shadow: var(--shadow-lg); }
.cat-card .ic { font-size: 34px; margin-bottom: 10px; }
.cat-card .ic img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.cat-card h3 { font-size: 15px; margin: 0; color: var(--brown-800); }
.cat-card small { color: var(--ink-600); font-size: 12px; }

/* ---------- Brand strip ---------- */
.brand-strip { display: flex; gap: 14px; flex-wrap: wrap; }
.brand-chip {
  background: var(--white); border: 1px solid var(--cream-300); border-radius: 40px;
  padding: 10px 20px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
  color: var(--brown-800); box-shadow: var(--shadow);
}
.brand-chip .ic { font-size: 20px; }

/* ---------- Product grid/card ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; perspective: 1200px; }
.prod-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--cream-300); display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
  transform: perspective(1000px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(0);
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}
.compare-check {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.92); border-radius: 20px; padding: 4px 9px 4px 6px;
  font-size: 11px; color: var(--brown-800); cursor: pointer; box-shadow: var(--shadow);
}
.compare-check input { margin: 0; }
.compare-check-inline {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 12px; color: var(--brown-700); cursor: pointer; width: fit-content;
}
.compare-check-inline input { margin: 0; width: 15px; height: 15px; accent-color: var(--amber-500); }
.prod-card:hover {
  transform: perspective(1000px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.prod-thumb {
  height: 116px; position: relative; display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: rgba(255,255,255,.85); background: var(--cream-200); overflow: hidden;
  box-shadow: inset 0 -18px 22px -14px rgba(0,0,0,.4), inset 0 3px 0 rgba(255,255,255,.3), inset -3px 0 8px rgba(0,0,0,.15);
}
.prod-real-img { width: 100%; height: 100%; object-fit: cover; }
.prod-thumb .stock-badge {
  position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.45); color: #fff;
  font-size: 11px; padding: 3px 8px; border-radius: 20px;
}
.prod-thumb .discount-badge {
  position: absolute; top: 8px; right: 8px; background: var(--red-bad); color: #fff;
  font-size: 11px; padding: 3px 8px; border-radius: 20px; font-weight: 700;
}
.prod-flag-badges {
  position: absolute; bottom: 8px; left: 8px; right: 8px; z-index: 2;
  display: flex; gap: 5px; flex-wrap: wrap;
}
.flag-badge {
  font-size: 10.5px; padding: 3px 8px; border-radius: 20px; font-weight: 700; color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.flag-badge.flag-amazing { background: linear-gradient(135deg, #d98a3d, #b8641f); }
.flag-badge.flag-sale { background: linear-gradient(135deg, #d64545, #a82f2f); }
.install-app-banner {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 500;
  background: linear-gradient(135deg, var(--brown-800), var(--brown-900)); color: #fff;
  border-radius: 16px; padding: 10px 12px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  animation: installBannerIn .3s ease;
}
@keyframes installBannerIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.install-app-icon { font-size: 26px; background: rgba(255,255,255,.12); border-radius: 12px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.install-app-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.install-app-text b { font-size: 13px; }
.install-app-text span { font-size: 11px; color: var(--cream-200); }
.install-app-banner .btn { flex-shrink: 0; padding: 8px 14px; font-size: 12.5px; }
.install-app-close {
  background: rgba(255,255,255,.12); border: none; color: #fff; width: 26px; height: 26px; border-radius: 50%;
  cursor: pointer; flex-shrink: 0; font-size: 12px;
}
body.has-install-banner .support-fab-wrap { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
body.has-install-banner .compare-bar { margin-bottom: 74px; }
body.has-install-banner .chat-panel { bottom: 152px; }
.pd-flag-badges { position: static; margin: 4px 0; }
.pd-flag-badges:empty { display: none; margin: 0; }
.pd-compare-check {
  position: static; display: inline-flex; margin: 6px 0 10px; background: var(--cream-200);
  box-shadow: none; border: 1px solid var(--cream-300);
}
.wood-a, .wood-b, .pvc-a, .pvc-b, .veneer-a, .veneer-b {
  background-size: cover; background-position: center; position: relative;
}
.wood-a { background-image: url("../img/textures/wood-a.svg"); }
.wood-b { background-image: url("../img/textures/wood-b.svg"); }
.pvc-a { background-image: url("../img/textures/pvc-a.svg"); color:#8a5a34; }
.pvc-b { background-image: url("../img/textures/pvc-b.svg"); color:#4e3120; }
.veneer-a { background-image: url("../img/textures/veneer-a.svg"); }
.veneer-b { background-image: url("../img/textures/veneer-b.svg"); }
.wood-a::before, .wood-b::before, .pvc-a::before, .pvc-b::before, .veneer-a::before, .veneer-b::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.18) 100%);
}

.prod-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-brand { font-size: 11px; color: var(--brown-600); font-weight: 700; }
.prod-title { font-size: 14.5px; font-weight: 700; color: var(--ink-900); min-height: 42px; }
.prod-meta { font-size: 12px; color: var(--ink-600); display: flex; gap: 10px; flex-wrap: wrap; }
.prod-rating { font-size: 12px; color: var(--amber-500); }
.prod-price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.prod-price { font-weight: 800; color: var(--brown-800); font-size: 15px; }
.prod-oldprice { font-size: 12px; color: #999; text-decoration: line-through; }
.prod-card .btn { width: 100%; text-align: center; border-radius: 0 0 var(--radius) var(--radius); }

.stars { color: var(--amber-500); letter-spacing: 1px; }

/* ---------- Filters ---------- */
.layout-2col { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.filter-box {
  background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  border: 1px solid var(--cream-300); position: sticky; top: 16px;
}
.filter-box h4 {
  margin: 0 0 12px; font-size: 13px; font-weight: 800; color: var(--brown-800); padding-bottom: 10px;
  border-bottom: 2px solid var(--cream-200); display: flex; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: .3px;
}
.filter-box .subcat-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 9px 10px; font-size: 13.5px; color: var(--ink-900); border-radius: 9px;
  transition: background .15s, color .15s, transform .15s; margin-bottom: 2px;
}
.filter-box .subcat-list a:hover { background: var(--cream-100); transform: translateX(-2px); }
.filter-box .subcat-list a.active {
  color: var(--brown-900); font-weight: 700; background: linear-gradient(90deg, var(--cream-200), var(--cream-100));
  box-shadow: inset 3px 0 0 var(--amber-500);
}
.filter-box .subcat-list a span.count {
  color: var(--brown-600); font-size: 11px; background: var(--cream-200); border-radius: 20px; padding: 2px 8px; min-width: 20px; text-align: center;
}
.filter-box .subcat-list a.active span.count { background: var(--amber-500); color: #fff; }

.breadcrumb { font-size: 13px; color: var(--ink-600); margin-bottom: 16px; }
.breadcrumb a { color: var(--brown-600); }

/* ---------- Product detail ---------- */
.pd-wrap { display: grid; grid-template-columns: 420px 1fr; gap: 32px; align-items: start; margin-bottom: 40px; }
.pd-image {
  height: 340px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; font-size: 80px; color: rgba(255,255,255,.9);
  position: relative; margin-right: 14px;
  box-shadow: var(--shadow-lg), inset 0 -30px 34px -20px rgba(0,0,0,.4), inset 0 4px 0 rgba(255,255,255,.3);
}
.pd-image::after {
  content: ""; position: absolute; top: 10px; bottom: -10px; left: -14px; width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,.06), rgba(0,0,0,.28));
  border-radius: var(--radius) 0 0 var(--radius); z-index: -1;
}
img.pd-image, video.pd-image { width: 100%; object-fit: cover; box-shadow: var(--shadow-lg); background: var(--cream-200); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb-item {
  width: 64px; height: 64px; border-radius: 8px; overflow: hidden; cursor: pointer; position: relative;
  border: 2px solid transparent; opacity: .7; transition: opacity .15s, border-color .15s;
}
.pd-thumb-item img, .pd-thumb-item video { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb-item.active, .pd-thumb-item:hover { opacity: 1; border-color: var(--amber-500); }
.pd-thumb-item .play-ic {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; background: rgba(0,0,0,.25);
}
.pd-info h1 { font-size: 24px; margin: 0 0 10px; color: var(--brown-800); }
.pd-specs { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 18px 0; }
.pd-specs div { background: var(--cream-200); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.pd-specs b { display: block; color: var(--brown-800); font-size: 12px; margin-bottom: 3px; }
.pd-price-box { background: var(--white); border: 2px dashed var(--amber-500); border-radius: var(--radius); padding: 18px; margin: 18px 0; }
.pd-price-box .price { font-size: 28px; font-weight: 900; color: var(--brown-800); line-height: 1.4; margin-top: 4px; }
.pd-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.qty-input { display: flex; align-items: center; border: 2px solid var(--cream-300); border-radius: 10px; overflow: hidden; }
.qty-input button { border: none; background: var(--cream-200); width: 34px; height: 40px; font-size: 18px; cursor: pointer; }
.qty-input input { width: 50px; text-align: center; border: none; font-size: 15px; }
.pd-extra-list { margin-top: 14px; font-size: 13.5px; }
.pd-extra-list li { padding: 4px 0; }
.pd-extra-list li::before { content: "✔ "; color: var(--green-ok); }

.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--cream-300); margin-bottom: 20px; flex-wrap: wrap; overflow-x: auto; }
.tabs button {
  border: none; background: none; padding: 10px 18px; font-size: 14px; cursor: pointer;
  color: var(--ink-600); border-bottom: 3px solid transparent; font-weight: 600;
}
.tabs button.active { color: var(--brown-800); border-color: var(--amber-500); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.faq-accordion { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--cream-300); border-radius: 10px; overflow: hidden; background: var(--white); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--cream-100); border: none; padding: 14px 16px; font-size: 14px; font-weight: 700;
  color: var(--brown-800); cursor: pointer; text-align: right;
}
.faq-arrow { transition: transform .2s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 16px; font-size: 13.5px; color: var(--ink-900); line-height: 1.9; }
.faq-item.open .faq-a { max-height: 600px; padding: 12px 16px 16px; }

.review-item { border-bottom: 1px solid var(--cream-300); padding: 14px 0; }
.review-item .rh { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-600); margin-bottom: 6px; }
.review-item .rname { font-weight: 700; color: var(--brown-800); }

.review-form { background: var(--cream-200); border-radius: var(--radius); padding: 18px; margin-top: 20px; }
.review-form .stars-input { font-size: 22px; cursor: pointer; unicode-bidi: bidi-override; direction: ltr; display: inline-block; }
.review-form .stars-input span { color: #ccc; }
.review-form .stars-input span.active { color: var(--amber-500); }

/* ---------- Forms ---------- */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; color: var(--brown-800); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 2px solid var(--cream-300); border-radius: 10px; font-size: 14px; outline: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--amber-500); }
.pwd-wrap { position: relative; display: block; }
.pwd-wrap input { padding-left: 40px !important; }
body.lang-ltr .pwd-wrap input { padding-left: 12px !important; padding-right: 40px !important; }
.pwd-toggle-btn {
  position: absolute; top: 50%; left: 8px; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 15px; padding: 4px; line-height: 1;
  color: var(--ink-600);
}
body.lang-ltr .pwd-toggle-btn { left: auto; right: 8px; }
.suggest-pwd-btn {
  background: none; border: none; color: var(--brown-600); font-size: 12px; cursor: pointer;
  padding: 4px 0; text-decoration: underline; display: inline-block; margin-top: 4px;
}
.suggest-pwd-btn:hover { color: var(--amber-500); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---------- Cart / Checkout ---------- */
table.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.data-table th, table.data-table td { padding: 12px 14px; text-align: right; font-size: 13.5px; border-bottom: 1px solid var(--cream-300); }
table.data-table th { background: var(--cream-200); color: var(--brown-800); }
table.data-table tr:last-child td { border-bottom: none; }
.cart-summary { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-top: 20px; max-width: 380px; margin-right: 0; margin-left: auto; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.cart-summary .row.total { font-weight: 800; font-size: 17px; border-top: 2px dashed var(--cream-300); margin-top: 6px; padding-top: 12px; color: var(--brown-800); }
.remove-link { color: var(--red-bad); cursor: pointer; font-size: 13px; }

.empty-box { text-align: center; padding: 60px 20px; color: var(--ink-600); }
.empty-box .ic { font-size: 50px; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream-200); color: var(--ink-900); margin-top: 60px; padding: 40px 0 20px;
  border-top: 1px solid var(--cream-300);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 26px; margin-bottom: 26px; }
.footer-grid h4 { color: var(--brown-800); font-size: 15px; margin: 0 0 12px; border-bottom: 2px solid var(--amber-500); display: inline-block; padding-bottom: 4px; }
.footer-grid p, .footer-grid a { color: var(--ink-600); font-size: 13.5px; }
.footer-grid a:hover { color: var(--amber-500); }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { text-align: center; font-size: 12.5px; color: var(--ink-600); border-top: 1px solid var(--cream-300); padding-top: 16px; }

/* ---------- بنر تبلیغاتی چوبیتاژ (میان محصولات صفحه اول) ---------- */
.choobitazh-promo {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 22px;
  padding: 26px 32px; border-radius: var(--radius);
  background: linear-gradient(100deg, #3b2617 0%, #6b4527 45%, #b8641f 85%, #d98a3d 100%);
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.choobitazh-promo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 50%, rgba(255,180,90,.25), transparent 60%);
}
.choobitazh-promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.choobitazh-promo-logo {
  width: 72px; height: 72px; border-radius: 18px; object-fit: cover; flex-shrink: 0;
  background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.3); position: relative; z-index: 1;
}
.choobitazh-promo-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.choobitazh-promo-text h3 { margin: 0 0 5px; font-size: 20px; font-weight: 800; color: #fff; }
.choobitazh-promo-text p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.88); line-height: 1.8; max-width: 620px; }
.choobitazh-promo-btn {
  position: relative; z-index: 1; flex-shrink: 0;
  background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.45); color: #fff;
  padding: 11px 22px; border-radius: 30px; font-size: 13.5px; font-weight: 700; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.choobitazh-promo:hover .choobitazh-promo-btn { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.7); }
@media (max-width: 720px) {
  .choobitazh-promo { flex-wrap: wrap; padding: 20px; gap: 14px; }
  .choobitazh-promo-logo { width: 56px; height: 56px; border-radius: 14px; }
  .choobitazh-promo-text { flex: 1 1 60%; }
  .choobitazh-promo-text h3 { font-size: 17px; }
  .choobitazh-promo-text p { font-size: 12.5px; }
  .choobitazh-promo-btn { flex: 1 1 100%; text-align: center; }
}
@media (max-width: 480px) {
  .choobitazh-promo { padding: 16px; }
  .choobitazh-promo-logo { width: 46px; height: 46px; border-radius: 12px; }
  .choobitazh-promo-text h3 { font-size: 15px; }
  .choobitazh-promo-text p { display: none; }
}

/* ---------- دکمه شناور پشتیبانی آنلاین ---------- */
.support-fab-wrap {
  position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); right: 24px; z-index: 150;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.support-fab {
  position: static; width: 56px; height: 56px; border-radius: 50%;
  background: var(--amber-500); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 8px 20px rgba(0,0,0,.3);
  border: none; cursor: pointer;
  transition: transform .2s;
  animation: fab-pulse 2.4s infinite;
}
.support-fab:hover { transform: scale(1.08); }
.support-fab-label {
  background: var(--brown-900); color: var(--cream-100); font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; box-shadow: 0 3px 8px rgba(0,0,0,.25); white-space: nowrap;
}
.support-fab.has-unread::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--red-bad); border: 2px solid var(--white);
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(0,0,0,.3), 0 0 0 0 rgba(217,138,61,.5); }
  50% { box-shadow: 0 8px 20px rgba(0,0,0,.3), 0 0 0 10px rgba(217,138,61,0); }
}

/* ---------- ویجت چت پشتیبانی ---------- */
.chat-panel {
  position: fixed; bottom: 92px; right: 24px; width: 340px; max-width: calc(100vw - 32px);
  height: 460px; max-height: calc(100vh - 140px);
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg);
  z-index: 151; display: flex; flex-direction: column; overflow: hidden;
}
.chat-head {
  background: var(--brown-800); color: var(--cream-100); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; font-weight: 700;
}
.chat-close { background: none; border: none; color: var(--cream-100); font-size: 16px; cursor: pointer; }
.chat-body {
  flex: 1; overflow-y: auto; padding: 14px; background: var(--cream-100);
  display: flex; flex-direction: column; gap: 8px;
}
.chat-empty { color: var(--ink-600); font-size: 13px; text-align: center; margin-top: 20px; }
.chat-msg { display: flex; flex-direction: column; max-width: 78%; }
.chat-msg-me { align-self: flex-end; align-items: flex-end; }
.chat-msg-admin { align-self: flex-start; align-items: flex-start; }
.chat-bubble { padding: 8px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.7; word-break: break-word; }
.chat-msg-me .chat-bubble { background: var(--amber-500); color: #fff; border-bottom-left-radius: 3px; }
.chat-msg-admin .chat-bubble { background: var(--white); color: var(--ink-900); box-shadow: var(--shadow); border-bottom-right-radius: 3px; }
.chat-msg-time { font-size: 10px; color: var(--ink-600); margin-top: 2px; }
.chat-input-row { display: flex; border-top: 1px solid var(--cream-300); padding: 8px; gap: 8px; }
.chat-input-row input {
  flex: 1; border: 1px solid var(--cream-300); border-radius: 20px; padding: 8px 14px; font-size: 13.5px;
}
.chat-input-row button {
  width: 36px; height: 36px; border-radius: 50%; background: var(--amber-500); color: #fff;
  border: none; cursor: pointer; font-size: 15px;
}
.chat-auth { padding: 16px; }
.chat-auth p { font-size: 13px; color: var(--ink-600); margin-top: 0; }
.chat-auth-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.chat-auth-tabs button {
  flex: 1; padding: 8px; border-radius: 8px; border: 1px solid var(--cream-300); background: var(--cream-100);
  cursor: pointer; font-weight: 600; font-size: 13px;
}
.chat-auth-tabs button.active { background: var(--amber-500); color: #fff; border-color: var(--amber-500); }
.chat-auth form { display: flex; flex-direction: column; gap: 8px; }
.chat-auth input {
  border: 1px solid var(--cream-300); border-radius: 8px; padding: 9px 12px; font-size: 13.5px;
}
.chat-auth-error { color: var(--red-bad); font-size: 12.5px; min-height: 16px; }
@media (max-width: 480px) {
  .chat-panel { right: 16px; left: 16px; width: auto; bottom: 88px; }
}

/* ---------- نوار و مودال مقایسه‌ی محصولات ---------- */
.compare-bar {
  display: none;
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 140;
  background: var(--brown-900); color: var(--cream-100);
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px)); align-items: center; justify-content: space-between;
  box-shadow: 0 -6px 20px rgba(0,0,0,.25); gap: 14px; flex-wrap: wrap;
}
.compare-bar.open { display: flex; }
.compare-bar-items { display: flex; gap: 8px; }
.compare-bar-item {
  position: relative; width: 44px; height: 44px; border-radius: 8px; overflow: hidden;
  background: var(--cream-200); display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.compare-bar-item img { width: 100%; height: 100%; object-fit: cover; }
.compare-bar-remove {
  position: absolute; top: -5px; left: -5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red-bad); color: #fff; border: none; font-size: 9px; cursor: pointer; line-height: 1;
}
.compare-bar-actions { display: flex; gap: 8px; }

.compare-modal-backdrop {
  display: none;
  position: fixed; inset: 0; background: rgba(36,24,18,.55); z-index: 200;
  align-items: center; justify-content: center; padding: 20px;
}
.compare-modal-backdrop.open { display: flex; }
.compare-modal {
  background: var(--white); border-radius: 16px; max-width: 960px; width: 100%;
  max-height: 85vh; overflow: hidden; display: flex; flex-direction: column;
}
.compare-modal-head {
  background: var(--brown-800); color: var(--cream-100); padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center; font-weight: 700;
}
.compare-modal-head button { background: none; border: none; color: var(--cream-100); font-size: 16px; cursor: pointer; }
.compare-modal-body { overflow: auto; padding: 16px; }
.compare-table { border-collapse: collapse; width: 100%; }
.compare-table th, .compare-table td { border: 1px solid var(--cream-300); padding: 10px; text-align: center; font-size: 13px; white-space: nowrap; }
.compare-table th img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.compare-row-label { font-weight: 700; color: var(--brown-800); background: var(--cream-100); white-space: nowrap; }
.compare-best { background: rgba(63,143,79,.12); color: var(--green-ok); font-weight: 700; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--brown-900); color: #fff; padding: 12px 22px; border-radius: 40px;
  font-size: 14px; box-shadow: var(--shadow); opacity: 0; transition: all .25s; z-index: 200; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Admin ---------- */
body.admin-body { background: #f2ede4; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 230px; background: var(--brown-900); color: var(--cream-200); flex-shrink: 0;
  padding: 20px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .brand { padding: 0 20px 20px; font-size: 20px; font-weight: 900; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 14px; }
.admin-sidebar .brand span { color: var(--amber-400); }
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: 14px; color: var(--cream-300);
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--brown-700); color: #fff; }
.admin-sidebar .logout-link { margin-top: 20px; color: #e08a7d; }

.admin-main { flex: 1; padding: 26px 30px; max-width: 1200px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.admin-topbar h1 { font-size: 21px; color: var(--brown-800); margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); border-right: 5px solid var(--amber-500); }
.stat-card .label { font-size: 13px; color: var(--ink-600); }
.stat-card .value { font-size: 22px; font-weight: 800; color: var(--brown-800); margin-top: 6px; }
.stat-card.bad { border-color: var(--red-bad); }
.stat-card.good { border-color: var(--green-ok); }

.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 24px; }
.panel h3 { margin: 0 0 16px; font-size: 16px; color: var(--brown-800); }
.panel-head-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head-row h3 { margin: 0; }
.admin-search-box {
  position: relative; min-width: 240px; flex: 0 0 auto;
}
.admin-search-box input {
  width: 100%; padding: 9px 34px 9px 12px; border: 2px solid var(--cream-300); border-radius: 20px;
  font-size: 13px; outline: none; transition: border-color .15s;
}
.admin-search-box input:focus { border-color: var(--amber-500); }
.admin-search-ic { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--ink-600); }

.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding: 10px 0; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-chart .bar { width: 70%; border-radius: 6px 6px 0 0; background: var(--amber-500); position: relative; min-height: 2px; }
.bar-chart .bar.expense { background: var(--red-bad); }
.bar-chart .lbl { font-size: 11px; color: var(--ink-600); margin-top: 6px; }
.legend-dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-left:5px; }

.status-pill { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-pill.pending { background: #fdecd2; color: #a5690a; }
.status-pill.approved, .status-pill.done { background: #dcf3df; color: var(--green-ok); }
.status-pill.processing { background: #dbe8fb; color: #2b5faa; }

.table-actions { display: flex; gap: 8px; }
.table-actions button, .table-actions a { font-size: 12px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--cream-300); background: var(--cream-100); cursor: pointer; }
.table-actions .danger { color: var(--red-bad); border-color: #f2c4bd; }
.table-actions .ok { color: var(--green-ok); border-color: #bfe6c6; }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--brown-900); }
.login-card { background: var(--white); border-radius: var(--radius); padding: 34px; width: 100%; max-width: 360px; box-shadow: var(--shadow); }
.login-card h2 { text-align: center; color: var(--brown-800); margin-top: 0; }
.login-hint { font-size: 12px; color: var(--ink-600); text-align: center; margin-top: 10px; }

.upload-zone {
  display: flex; align-items: center; gap: 16px; cursor: pointer;
  border: 2px dashed var(--amber-500); border-radius: var(--radius);
  padding: 18px 20px; background: linear-gradient(135deg, var(--cream-100), var(--cream-200));
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--brown-700); transform: translateY(-2px); box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--cream-200), var(--amber-400));
}
.upload-zone-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(180deg, var(--amber-400), var(--amber-500));
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 3px 8px rgba(217,138,61,.35);
}
.upload-zone-video .upload-zone-icon { background: linear-gradient(180deg, var(--brown-600), var(--brown-700)); }
.upload-zone-text b { display: block; color: var(--brown-800); font-size: 14px; margin-bottom: 3px; }
.upload-zone-text span { display: block; font-size: 12px; color: var(--ink-600); }
.media-preview { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.media-preview-item { position: relative; width: 90px; height: 90px; border-radius: 10px; overflow: hidden; border: 1px solid var(--cream-300); }
.media-preview-item img, .media-preview-item video { width: 100%; height: 100%; object-fit: cover; }
.media-remove-btn {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(192,57,43,.9); color: #fff; border: none; cursor: pointer; font-size: 12px; line-height: 1;
}
.badge-tag { display: inline-block; background: var(--cream-200); border-radius: 20px; padding: 2px 10px; font-size: 11.5px; margin: 2px; }
.tree-item {
  padding: 4px 4px; border: 1px solid var(--cream-300); border-radius: 12px; margin-bottom: 10px;
  background: var(--cream-100); transition: box-shadow .15s;
}
.tree-item:hover { box-shadow: var(--shadow); }
.tree-item > a { padding: 9px 10px; border-radius: 9px; transition: background .15s, color .15s; }
.tree-item > a:hover { background: rgba(255,255,255,.6); }
.tree-item > a.active { color: var(--amber-500); background: var(--white); box-shadow: var(--shadow); }
.tree-item .child { margin: 6px 4px 4px; padding: 4px 6px; background: var(--white); border-radius: 9px; }
.tree-item .child a {
  padding: 7px 10px; border-radius: 7px; font-size: 13px; display: block; transition: background .15s, color .15s;
}
.tree-item .child a:hover { background: var(--cream-100); }
.tree-item .child a.active { color: var(--amber-500); font-weight: 700; background: var(--cream-100); }

@media (max-width: 900px) {
  .pd-wrap { grid-template-columns: 1fr; }
  .layout-2col { display: flex; flex-direction: column; }
  .layout-2col > main { order: 1; }
  .layout-2col > aside { order: 2; }
  .filter-box { position: static; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px 14px; }
  .admin-sidebar a { flex: 1 1 140px; }
  .admin-main { padding: 18px; max-width: 100%; }
  .hero-visual, .hero-brand-icon { display: none; }
  .hero-slider { min-height: 260px; }
}
@media (max-width: 720px) {
  .container { padding: 0 14px; }
  .search-box { order: 3; max-width: 100%; width: 100%; }
  .header-main { flex-wrap: wrap; gap: 10px 14px; }
  .logo small { display: none; }
  .mobile-toggle { display: block; }
  .main-nav .container > ul { display: none; flex-direction: column; }
  .main-nav.open .container > ul { display: flex; }
  .main-nav ul li { width: 100%; }
  .main-nav .cat-nav-item { display: none; }
  .mega-menu { position: static; box-shadow: none; padding-right: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 30px 0; }
  .hero-text h1 { font-size: 24px; }
  .hero-slider { min-height: 240px; }
  .hero-arrow { width: 30px; height: 30px; font-size: 16px; }
  .section-head { flex-wrap: wrap; gap: 8px; }
  .cart-summary { max-width: 100%; }
  .admin-topbar { flex-wrap: wrap; gap: 10px; }
  .panel-head-row { flex-direction: column; align-items: stretch; }
  table.data-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .table-actions { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .logo { font-size: 19px; }
  .header-actions { gap: 8px; }
  .cart-link { font-size: 10px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 16px 10px; }
  .cat-card .ic { font-size: 28px; margin-bottom: 6px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .prod-thumb { height: 100px; }
  .prod-body { padding: 10px; gap: 4px; }
  .prod-title { font-size: 13px; }
  .prod-price { font-size: 14px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .pd-specs { grid-template-columns: 1fr; }
  .section { margin: 26px 0; }
  .section-head h2 { font-size: 17px; }
  .hero { padding: 22px 0; }
  .hero-text h1 { font-size: 20px; }
  .hero-slider { min-height: 210px; }
  .hero-badges { gap: 6px; }
  .hero-badges span { font-size: 11.5px; padding: 4px 10px; }
  .btn { padding: 12px 20px; font-size: 13.5px; }
  .btn.btn-sm { padding: 10px 16px; font-size: 12.5px; }
  .form-row input, .form-row select, .form-row textarea { padding: 11px 12px; font-size: 15px; }
  .support-fab-wrap { bottom: 18px; right: 16px; }
  .support-fab-label { font-size: 10px; padding: 3px 8px; }
}

/* ---------- وبلاگ ---------- */
.blog-cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.blog-chip {
  background: var(--white); border: 1px solid var(--cream-300); border-radius: 20px;
  padding: 7px 16px; font-size: 13px; color: var(--brown-800); font-weight: 600;
}
.blog-chip.active { background: var(--amber-500); border-color: var(--amber-500); color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.blog-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-thumb {
  height: 170px; position: relative; display: flex; align-items: center; justify-content: center;
  font-size: 34px; background: var(--cream-200); color: rgba(255,255,255,.85);
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-cat-badge {
  position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.5); color: #fff;
  font-size: 11px; padding: 4px 10px; border-radius: 20px;
}
.blog-card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.blog-card-date { font-size: 11.5px; color: var(--ink-600); }
.blog-card-body h3 { font-size: 15.5px; margin: 0; color: var(--ink-900); line-height: 1.6; }
.blog-card-body p { font-size: 13px; color: var(--ink-600); margin: 0; line-height: 1.8; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.blog-post { max-width: 820px; margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.blog-post-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.blog-post-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-600); margin-bottom: 8px; }
.blog-cat-badge-static { position: static; background: var(--cream-200); color: var(--brown-800); }
.blog-post h1 { font-size: 26px; margin: 6px 0 18px; color: var(--ink-900); line-height: 1.5; }
.blog-post-content { font-size: 15px; line-height: 2; color: var(--ink-900); }
.blog-post-content h2 { font-size: 20px; margin: 28px 0 12px; color: var(--brown-800); }
.blog-post-content h3 { font-size: 17px; margin: 22px 0 10px; color: var(--brown-800); }
.blog-post-content p { margin: 0 0 16px; }
.blog-post-content ul, .blog-post-content ol { margin: 0 0 16px; padding-right: 22px; }
.blog-post-content li { margin-bottom: 6px; }
.blog-post-content img { max-width: 100%; border-radius: 10px; margin: 14px 0; }
.blog-post-content strong { color: var(--brown-800); }
.blog-post-content blockquote {
  border-right: 4px solid var(--amber-500); background: var(--cream-100); padding: 12px 18px;
  margin: 0 0 16px; border-radius: 0 10px 10px 0; color: var(--ink-600);
}
.blog-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--cream-300); }
.blog-tag { background: var(--cream-200); color: var(--brown-800); font-size: 12px; padding: 4px 12px; border-radius: 20px; }
@media (max-width: 720px) {
  .blog-post { padding: 18px; }
  .blog-post h1 { font-size: 21px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .blog-card-thumb { height: 110px; font-size: 24px; }
  .blog-card-body { padding: 10px; }
  .blog-card-body h3 { font-size: 13px; }
}

/* ---------- Lightbox تمام‌صفحه‌ی عکس محصول ---------- */
.lightbox-backdrop {
  display: none; position: fixed; inset: 0; z-index: 300; background: rgba(15,10,6,.92);
  align-items: center; justify-content: center;
}
.lightbox-backdrop.open { display: flex; }
.lightbox-backdrop img { max-width: 90vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 18px; left: 18px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; color: #fff; font-size: 18px; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; color: #fff; font-size: 24px; cursor: pointer;
}
.lightbox-arrow:hover { background: rgba(255,255,255,.22); }
.lightbox-prev { right: 18px; }
.lightbox-next { left: 18px; }
@media (max-width: 720px) {
  .lightbox-close { top: 10px; left: 10px; width: 34px; height: 34px; font-size: 15px; }
  .lightbox-arrow { width: 38px; height: 38px; font-size: 20px; }
  .lightbox-prev { right: 8px; }
  .lightbox-next { left: 8px; }
}

/* ---------- درباره ما / تماس با ما ---------- */
.step-list { display: flex; flex-wrap: wrap; gap: 10px; counter-reset: step; }
.step-item {
  flex: 1 1 180px; position: relative; background: var(--white); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; box-shadow: var(--shadow);
}
.step-item::before {
  content: counter(step); counter-increment: step; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--brown-800); color: var(--cream-100);
  font-weight: 800; font-size: 15px; margin: 0 auto 12px;
}
.step-item h5 { margin: 0 0 6px; font-size: 14px; color: var(--brown-800); }
.step-item p { margin: 0; font-size: 12.5px; color: var(--ink-600); line-height: 1.7; }

.cta-banner {
  background: linear-gradient(120deg, var(--brown-800), var(--brown-600));
  color: var(--cream-100); border-radius: var(--radius); padding: 34px; text-align: center;
}
.cta-banner h3 { margin: 0 0 8px; font-size: 21px; }
.cta-banner p { margin: 0 0 18px; color: var(--cream-200); font-size: 14px; }

.policy-box { background: var(--cream-100); border: 1px solid var(--cream-300); border-radius: 12px; padding: 16px 18px; margin-top: 14px; }
.policy-box h5 { margin: 0 0 6px; font-size: 13.5px; color: var(--brown-800); }
.policy-box p { margin: 0; font-size: 13px; color: var(--ink-600); line-height: 1.8; }

.contact-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.contact-card {
  background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; transition: transform .15s, box-shadow .15s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-card .ic {
  font-size: 22px; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--cream-200); display: flex; align-items: center; justify-content: center;
}
.contact-card .txt { min-width: 0; }
.contact-card .txt b { display: block; font-size: 13px; color: var(--brown-800); }
.contact-card .txt span { font-size: 12px; color: var(--ink-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

.about-hero-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero-cat-chip {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 30px; font-size: 13px; color: var(--cream-100); text-decoration: none;
  transition: background .15s;
}
.hero-cat-chip:hover { background: rgba(255,255,255,.22); }
@media (max-width: 720px) {
  .step-list { flex-direction: column; }
  .cta-banner { padding: 22px; }
  .cta-banner h3 { font-size: 18px; }
}
