/* ============== RESET & BASE ============== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange: #f4790a;
  --orange-dark: #e0690a;
  --ink: #1c1d21;
  --ink-soft: #51545c;
  --gray-bg: #f3f4f6;
  --gray-line: #e7e8ec;
  --peach-bg: #fdf0e4;
  --dark-bg: #131417;
  --dark-card: #1d1e22;
  --radius-lg: 18px;
  --radius-md: 12px;
  /* Animation variables */
  --anim-dur: 0.65s;
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --maxw: 1240px;
}

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  color: var(--ink);
  background: #fff;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

.accent { color: var(--orange); }

/* ============== SHARED ============== */
.btn-cta, .btn-cta-small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.btn-cta:hover, .btn-cta-small:hover { background: var(--orange-dark); }
.btn-cta:active, .btn-cta-small:active { transform: scale(.98); }

.btn-cta-small { padding: 9px 16px; font-size: 13.5px; }
.btn-cta { padding: 13px 26px; font-size: 15px; }

.plus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1.5px solid #dcdde1;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.btn-ghost:hover { border-color: var(--orange); background: #fff8f1; }

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #b9bbc2;
  font-size: 11px;
  font-style: italic;
  font-family: Georgia, serif;
}

.send-icon { width: 17px; height: 17px; transform: scaleX(-1); }

/* ============== HEADER ============== */
.site-header {
  border-bottom: 1px solid var(--gray-line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 600;
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: .5px;
}
.logo-cart { width: 22px; height: 22px; color: var(--ink); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { position: relative; padding-bottom: 6px; transition: color .15s ease; white-space: nowrap; flex-shrink: 0; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.active {
  color: var(--ink);
  font-weight: 600;
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background .15s ease;
}
.icon-btn:hover { background: var(--gray-bg); }
.icon-btn svg { width: 19px; height: 19px; }

.cart-badge {
  position: absolute;
  top: -2px;
  left: -2px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============== HERO ============== */
.hero { background: var(--gray-bg); overflow: hidden; }

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 70px 32px 60px;
}

.hero-text { max-width: 480px; flex-shrink: 0; }

.hero-eyebrow {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 10px;
}
.hero-eyebrow.light { color: #b5b6bc; }

.hero-text h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 22px;
}

.hero-desc {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 2;
  margin-bottom: 32px;
}

.hero-cta-row { display: flex; align-items: center; gap: 14px; }

.hero-media {
  position: relative;
  width: 460px;
  height: 380px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 55% 45%, rgba(244,121,10,.22) 0%, rgba(244,121,10,.08) 38%, rgba(244,121,10,0) 65%);
  pointer-events: none;
}

.hero-platform {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(20, 20, 30, .12), 0 2px 0 rgba(0,0,0,.03);
}

.hero-cart-img {
  position: relative;
  width: 100%;
  max-width: 440px;
  z-index: 2;
  filter: drop-shadow(0 25px 30px rgba(20,20,30,.16));
}

/* ============== FEATURE STRIP ============== */
.feature-strip { border-bottom: 1px solid var(--gray-line); }
.feature-strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-left: 1px solid var(--gray-line);
}
.feature-item:last-child { border-left: none; }

.feature-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff4e9;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 21px; height: 21px; }

.feature-text { display: flex; flex-direction: column; gap: 4px; }
.feature-text strong { font-size: 14.5px; font-weight: 700; }
.feature-text small { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }

/* ============== SECTION HEAD ============== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 64px 32px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-head h2 { font-size: 24px; font-weight: 800; }
.see-all {
  font-size: 13.5px;
  color: var(--orange);
  font-weight: 600;
  transition: opacity .15s ease;
}
.see-all:hover { opacity: .75; }

/* ============== CATEGORIES ============== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.category-card {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  padding: 26px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.category-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(244,121,10,.1);
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gray-bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-icon svg { width: 26px; height: 26px; }
.category-label { font-size: 13.5px; font-weight: 600; }

/* ============== PRODUCTS ============== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.product-card:hover {
  box-shadow: 0 16px 30px rgba(20,20,30,.08);
  transform: translateY(-3px);
}

.product-thumb {
  aspect-ratio: 1 / 0.85;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-glyph { width: 30%; color: #b6b8c0; }
.product-glyph svg { width: 100%; height: 100%; }

.product-name {
  font-size: 14px;
  font-weight: 600;
  padding: 16px 16px 12px;
  line-height: 1.6;
  min-height: 48px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 16px;
}

.product-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange);
}
.product-price small { font-weight: 500; color: var(--ink-soft); font-size: 11.5px; }

.product-add {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff4e9;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.product-add svg { width: 15px; height: 15px; }
.product-add:hover { background: var(--orange); color: #fff; }

/* ============== TAOBAO STEPS ============== */
.taobao-section { background: var(--peach-bg); }

.taobao-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 32px;
  text-align: center;
}

.taobao-inner h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.taobao-sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 48px; }

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  margin-bottom: 44px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 170px;
}

.step-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(244,121,10,.12);
}
.step-icon svg { width: 26px; height: 26px; }

.step-title { font-size: 14.5px; font-weight: 700; }
.step-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }

.step-arrow {
  color: var(--orange);
  font-size: 20px;
  margin-top: 22px;
  flex-shrink: 0;
}

.taobao-btn { margin: 0 auto; }

/* ============== APP PROMO ============== */
.app-promo { background: var(--dark-bg); overflow: hidden; }

.app-promo-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 200px;
}

.app-promo-text { text-align: right; }
.app-promo-text h2 { color: #fff; font-size: 26px; font-weight: 800; margin: 8px 0 22px; }

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1.5px solid #3a3b41;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease;
}
.btn-outline-light:hover { border-color: var(--orange); background: rgba(244,121,10,.08); }
.btn-outline-light svg { width: 17px; height: 17px; }

.app-promo-phones {
  display: flex;
  align-items: center;
  gap: -10px;
  flex-shrink: 0;
}
.phone {
  width: 110px;
  height: 220px;
  border-radius: 20px;
  background: linear-gradient(160deg, #2a2b30, #0e0f12);
  border: 2px solid #3a3b41;
  box-shadow: inset 0 0 30px rgba(244,121,10,.06);
  position: relative;
}
.phone::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: 0 0 18px 1px rgba(244,121,10,.45);
  opacity: .5;
}
.phone-1 { margin-left: -28px; transform: translateY(10px) rotate(-4deg); opacity: .7; }
.phone-2 { z-index: 2; }
.phone-3 { margin-right: -28px; transform: translateY(10px) rotate(4deg); opacity: .7; }

/* ============== FOOTER ============== */
.site-footer { background: var(--dark-bg); color: #fff; }

.newsletter {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 32px 50px;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 30px;
  align-items: center;
  border-bottom: 1px solid #2a2b30;
}

.newsletter-cart {
  position: relative;
  width: 100%;
  max-width: 220px;
}
.newsletter-cart-img {
  width: 100%;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.6));
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 55%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 45%, #000 55%, transparent 78%);
}
.hero-glow.small { inset: -20%; opacity: .8; }

.newsletter-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.newsletter-content p { font-size: 13.5px; color: #a7a8ae; line-height: 1.9; margin-bottom: 22px; max-width: 380px; }

.newsletter-form { display: flex; gap: 10px; max-width: 380px; }
.newsletter-form input {
  flex: 1;
  background: #1d1e22;
  border: 1px solid #34353b;
  border-radius: 10px;
  padding: 0 16px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
}
.newsletter-form input::placeholder { color: #75767c; }

.newsletter-brand { text-align: right; }
.footer-logo { justify-content: flex-start; margin-bottom: 14px; }
.footer-logo .logo-cart { color: #fff; }
.newsletter-brand p { font-size: 13px; color: #a7a8ae; line-height: 1.9; margin-bottom: 18px; }

.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #34353b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8c9ce;
  transition: border-color .15s ease, color .15s ease;
}
.social-icons a:hover { border-color: var(--orange); color: var(--orange); }
.social-icons svg { width: 16px; height: 16px; }

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #8d8e94;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: #fff; }

/* ============== CONTACT HERO ============== */
.contact-hero {
  background: linear-gradient(120deg, #fff7ef 0%, #fdfbf9 45%, #ffffff 100%);
  border-bottom: 1px solid var(--gray-line);
  overflow: hidden;
}

.contact-hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 70px 32px;
}

.contact-hero-media {
  position: relative;
  width: 480px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-hero-img {
  position: relative;
  width: 100%;
  z-index: 2;
  filter: drop-shadow(0 20px 26px rgba(20,20,30,.12));
}

.contact-hero-text { max-width: 420px; text-align: right; }
.contact-hero-text h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 18px;
}
.contact-hero-text p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2;
}

/* ============== SECTION TITLE (centered) ============== */
.centered-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 36px;
}

/* ============== CONTACT METHODS ============== */
.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.contact-method-card {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.contact-method-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(244,121,10,.1);
}

.contact-method-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff4e9;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-method-icon svg { width: 23px; height: 23px; }

.contact-method-title { font-size: 15px; font-weight: 700; }
.contact-method-lines { font-size: 13px; color: var(--ink-soft); line-height: 1.9; }
.nowrap-line { white-space: nowrap; direction: ltr; unicode-bidi: embed; }

/* ============== CONTACT FORM + MAP ============== */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.contact-card {
  background: var(--gray-bg);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 22px;
  text-align: center;
}
.map-card p {
  color: var(--ink-soft);
  font-size: 13.5px;
  text-align: center;
  margin-top: -10px;
  margin-bottom: 22px;
  line-height: 1.9;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Standalone form-input class (Shop search box, Register/Login pages) */
.form-input, .form-select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color .15s ease;
}
.form-input:focus, .form-select:focus { outline: none; border-color: var(--orange); }
.form-input::placeholder { color: #9b9da3; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  resize: vertical;
  transition: border-color .15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--orange); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9b9da3; }

.form-submit {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--gray-line);
}
.map-svg { width: 100%; height: 100%; display: block; }

/* ============== FAQ CTA ============== */
.faq-cta-section { padding-top: 0; }
.faq-cta-card {
  background: var(--gray-bg);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  text-align: center;
}
.faq-cta-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.faq-cta-card p { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 22px; }
.faq-cta-card .btn-ghost { margin: 0 auto; background: #fff; }

/* ============== SHOP PAGE HEADER ============== */
.shop-page-header { background: var(--gray-bg); border-bottom: 1px solid var(--gray-line); }
.shop-page-header-inner { max-width: var(--maxw); margin: 0 auto; padding: 28px 32px 34px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--orange); }
.crumb-sep { font-size: 12px; transform: scaleX(-1); }

.shop-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.shop-title-row h1 { font-size: 26px; font-weight: 800; }
.shop-title-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff4e9;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-title-icon svg { width: 18px; height: 18px; }
.shop-subtitle { color: var(--ink-soft); font-size: 14px; }

/* ============== SHOP BODY LAYOUT ============== */
.shop-body { max-width: var(--maxw); margin: 0 auto; padding: 40px 32px 64px; }
.shop-body-inner { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }

/* ============== SIDEBAR ============== */
.shop-sidebar {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  padding: 22px;
}

.filter-block { padding: 18px 0; border-bottom: 1px solid var(--gray-line); }
.filter-block:first-child { padding-top: 0; }
.filter-block:last-child { border-bottom: none; padding-bottom: 0; }

.filter-block h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
}
.filter-block h3 svg { width: 17px; height: 17px; color: var(--ink-soft); }
.filter-block h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 14px; }

.filter-list { display: flex; flex-direction: column; gap: 12px; }
.filter-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.filter-row label { display: flex; align-items: center; gap: 9px; cursor: pointer; color: var(--ink); }
.filter-count { color: #a9abb2; font-size: 12px; }

.filter-row input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-fake {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #cfd0d6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease;
}
.checkbox-fake svg { width: 11px; height: 11px; opacity: 0; transition: opacity .1s ease; }
.filter-row input:checked + .checkbox-fake {
  background: var(--orange);
  border-color: var(--orange);
}
.filter-row input:checked + .checkbox-fake svg { opacity: 1; }

.price-slider {
  position: relative;
  height: 18px;
  margin-bottom: 10px;
}
.price-slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gray-line);
  border-radius: 4px;
  transform: translateY(-50%);
}
.price-slider-fill {
  position: absolute;
  inset: 0;
  width: 38%;
  background: var(--orange);
  border-radius: 4px;
}
.price-slider-handle {
  position: absolute;
  top: 50%;
  right: 38%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--orange);
  transform: translate(50%, -50%);
}
.price-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
}

.brand-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-line);
  border-radius: 9px;
  padding: 9px 12px;
  margin-bottom: 16px;
}
.brand-search svg { width: 15px; height: 15px; color: #9b9da3; flex-shrink: 0; }
.brand-search input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 12.5px;
  width: 100%;
  background: transparent;
  color: var(--ink);
}
.brand-search input::placeholder { color: #aeb0b6; }

.see-more-btn { width: 100%; justify-content: center; margin-top: 16px; padding: 11px; font-size: 13px; }

/* ============== SHOP TOOLBAR ============== */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 22px;
}

.view-toggle { display: flex; gap: 6px; }
.view-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b6b8c0;
  border: 1px solid var(--gray-line);
  transition: background .15s ease, color .15s ease;
}
.view-btn svg { width: 16px; height: 16px; }
.view-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }

.result-count { font-size: 13px; color: var(--ink-soft); }

.sort-control { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.sort-select {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}
.sort-select svg { width: 14px; height: 14px; }

/* ============== SHOP PRODUCT GRID ============== */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.shop-product-card {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.shop-product-card:hover {
  box-shadow: 0 16px 30px rgba(20,20,30,.08);
  transform: translateY(-3px);
}

.shop-product-thumb {
  position: relative;
  aspect-ratio: 1 / 0.85;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-product-thumb .product-glyph { width: 32%; color: #b6b8c0; }
.shop-product-thumb .product-glyph svg { width: 100%; height: 100%; }

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 4px 9px;
  border-radius: 6px;
  z-index: 2;
}
.badge-new { background: var(--orange); }
.badge-sale { background: #e1452f; }
.badge-best { background: #2a9d6f; }
.badge-sale .badge-text { unicode-bidi: bidi-override; direction: ltr; display: inline-block; }

.shop-product-body { padding: 14px 16px 16px; }

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.product-rating svg { width: 13px; height: 13px; color: #f4b400; }

.shop-product-body .product-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  padding: 0;
  min-height: 42px;
  margin-bottom: 8px;
}
.shop-product-body .product-name bdi { white-space: nowrap; }

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.product-old-price {
  font-size: 12px;
  color: #b3b4ba;
  text-decoration: line-through;
}
.product-price-row .product-price { font-size: 14px; font-weight: 700; color: var(--orange); }
.product-price-row .product-price small { font-weight: 500; color: var(--ink-soft); font-size: 11px; }

.shop-product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-action {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--gray-line);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.icon-action svg { width: 15px; height: 15px; }
.icon-action:hover { background: #fff4e9; color: var(--orange); border-color: var(--orange); }

.btn-view {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--orange);
  color: var(--orange);
  border-radius: 8px;
  height: 32px;
  font-size: 12.5px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.btn-view svg { width: 14px; height: 14px; }
.btn-view:hover { background: var(--orange); color: #fff; }

/* ============== PAGINATION ============== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--gray-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.page-btn:hover { border-color: var(--orange); color: var(--orange); }
.page-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.page-dots { color: #b3b4ba; padding: 0 2px; }


@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .icon-btn { width: 32px; height: 32px; }
  .btn-auth-header-ghost, .btn-auth-header-fill { padding: 7px 11px; font-size: 12.5px; }
  .header-inner { padding: 12px 16px; }
}

@media (max-width: 880px) {
  .hero-inner { flex-direction: column-reverse; text-align: center; padding-top: 40px; }
  .hero-text { max-width: 100%; }
  .hero-media { width: 320px; height: 280px; }
  .hero-cta-row { justify-content: center; }
  .feature-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .feature-item { border-left: none; padding: 0; }
  .app-promo-inner { flex-direction: column; text-align: center; }
  .app-promo-text { text-align: center; }
  .newsletter { grid-template-columns: 1fr; text-align: center; }
  .newsletter-form { margin: 0 auto; }
  .newsletter-content p { margin-inline: auto; }
  .newsletter-brand { text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 14px; }
  .contact-hero-inner { flex-direction: column-reverse; text-align: center; padding-top: 40px; }
  .contact-hero-text { max-width: 100%; text-align: center; }
  .contact-hero-media { width: 320px; }
  .contact-methods-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form-grid { grid-template-columns: 1fr; }
  .shop-body-inner { grid-template-columns: 1fr; }
  .shop-products-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-toolbar { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 600px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .hero-text h1 { font-size: 32px; }
  .steps-row { flex-wrap: wrap; }
  .step-arrow { display: none; }
  .contact-methods-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 24px; }
  .shop-products-grid { grid-template-columns: 1fr; }
}

/* ============== SEARCH PAGE ============== */
.search-page-header .shop-page-header-inner { padding-bottom: 28px; }
.search-query-label { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }

.search-bar-block { max-width: 480px; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--gray-line);
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
  transition: border-color .15s ease;
}
.search-bar:focus-within { border-color: var(--orange); }
.search-bar-icon { width: 17px; height: 17px; color: #9b9da3; flex-shrink: 0; }
.search-bar-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  padding: 13px 0;
  background: transparent;
  color: var(--ink);
  direction: rtl;
}
.search-clear {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eeeff2;
  color: var(--ink-soft);
  transition: background .15s ease;
  flex-shrink: 0;
}
.search-clear:hover { background: #e3e4e8; }
.search-clear svg { width: 13px; height: 13px; }

/* Search category list — plain links, active in orange */
.search-cat-list { gap: 0 !important; }
.search-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.search-cat-item:last-child { border-bottom: none; }
.search-cat-item:hover { color: var(--orange); }
.search-cat-item.active .cat-label { color: var(--orange); font-weight: 700; }
.search-cat-item.active .cat-count { color: var(--orange); }
.cat-count { font-size: 12px; color: #b0b2b9; }

/* Star rating filter */
.rating-filter-list { display: flex; flex-direction: column; gap: 10px; }
.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.rating-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.star-row { display: flex; gap: 3px; }
.star-row svg { width: 14px; height: 14px; }


/* ── KO Logo Image in Header ── */
.header-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.header-logo-img:hover { transform: scale(1.04); opacity: 0.9; }

/* Keep logo anchor clean */
a.logo { display: flex; align-items: center; text-decoration: none; }

/* ============================================================
   HEADER AUTH BUTTONS (guest: ورود / عضویت)
   ============================================================ */
.header-auth-guest {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-auth-header-ghost {
  padding: 8px 15px;
  border: 1.5px solid var(--orange);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-auth-header-ghost:hover {
  background: #fff4e9;
  transform: translateY(-1px);
}

.btn-auth-header-fill {
  padding: 8px 15px;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn-auth-header-fill:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(244,121,10,0.3);
}

/* ============================================================
   HEADER USER DROPDOWN (logged-in)
   ============================================================ */
.header-auth-user { position: relative; }

.header-user-dropdown { position: relative; }

.header-user-btn {
  position: relative;
}
.header-user-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a9d6f;
  border: 2px solid #fff;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20,20,30,0.13);
  padding: 8px 0;
  z-index: 500;
  display: none;
  animation: dropdown-pop 0.22s cubic-bezier(0.34,1.56,0.64,1) forwards;
  transform-origin: top right;
}
.user-dropdown-menu.open { display: block; }

@keyframes dropdown-pop {
  0%   { opacity: 0; transform: scale(0.88) translateY(-8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.udm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--gray-line);
  margin-bottom: 6px;
}
.udm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--peach-bg);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.udm-header strong { font-size: 13.5px; font-weight: 700; display: block; }
.udm-header span   { font-size: 11.5px; color: var(--orange); font-weight: 600; }

.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.13s ease, color 0.13s ease;
}
.user-dropdown-menu a svg { flex-shrink: 0; }
.user-dropdown-menu a:hover { background: #fff8f1; color: var(--ink); }

.udm-divider { height: 1px; background: var(--gray-line); margin: 6px 0; }
.udm-logout { color: #e1452f !important; }
.udm-logout:hover { background: #fff5f5 !important; }

/* Close dropdown when clicking outside */
.dropdown-backdrop {
  position: fixed;
  inset: 0;
  z-index: 499;
  display: none;
}

/* ============================================================
   MOBILE HAMBURGER MENU
   ============================================================ */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background .15s;
  order: -1;
}
.hamburger-btn:hover { background: var(--gray-bg); }
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, width .3s ease;
  transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
  opacity: 0;
  transition: opacity .25s ease;
}
.mobile-nav-overlay.open { opacity: 1; }

/* Mobile nav drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right .3s cubic-bezier(.25,1,.5,1);
  box-shadow: -8px 0 32px rgba(20,20,30,.15);
  overflow-y: auto;
}
.mobile-nav-drawer.open { right: 0; }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-line);
}
.mobile-nav-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-line);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink-soft);
  transition: background .15s, border-color .15s;
}
.mobile-nav-close:hover { background: var(--gray-bg); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  flex: 1;
}
.mobile-nav-links a {
  display: flex;
  align-items: center;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-line);
  transition: background .13s, color .13s;
  gap: 12px;
}
.mobile-nav-links a:hover { background: #fff8f1; color: var(--orange); }
.mobile-nav-links a.active { color: var(--orange); background: var(--peach-bg); }
.mobile-nav-links a svg { color: var(--orange); flex-shrink: 0; }
.mobile-nav-links a:last-child { border-bottom: none; }

.mobile-nav-footer {
  padding: 20px;
  border-top: 1px solid var(--gray-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .hamburger-btn { display: flex; }
  .header-inner { position: relative; }
}

@media (max-width: 600px) {
  .btn-cta-small { display: none; }
  .header-logo-img { height: 34px; }
}

/* ============================================================
   GENERAL UX POLISH & MICRO-INTERACTIONS
   ============================================================ */

/* Smooth focus styles */
*:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Better form inputs on mobile */
@media (max-width: 600px) {
  .form-input, .form-select { font-size: 16px; } /* prevent iOS zoom */
  .account-layout { padding: 20px 16px 48px; }
  .account-card { padding: 18px 16px; }
  .order-list-item { padding: 14px 12px; gap: 10px; }
}

/* Better table/grid breakpoints */
@media (max-width: 768px) {
  .similar-products-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .next-steps { flex-direction: column; align-items: center; gap: 16px; }
  .ns-arrow { display: none; }
  .cart-page-wrap { padding: 20px 16px 48px; }
  .checkout-wrap { padding: 20px 16px 48px; }
  .submit-order-wrap { padding: 20px 16px 48px; gap: 16px; }
  .blog-page-wrap { padding: 20px 16px 48px; }
}

@media (max-width: 480px) {
  .order-meta-grid { grid-template-columns: 1fr 1fr; }
  .order-bottom-row { grid-template-columns: 1fr; }
  .success-code-actions { flex-direction: column; }
  .about-stats { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .about-stat-val { font-size: 22px; }
  .address-grid { grid-template-columns: 1fr; }
  .login-benefits { grid-template-columns: 1fr 1fr; }
  .footer-ext-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-media { width: 260px; height: 230px; }
  .header-actions .btn-cta-small { display: none; }
}

/* Page section spacing */
@media (max-width: 768px) {
  .about-section { padding: 36px 20px; }
  .about-hero-inner { padding: 36px 20px; }
  .terms-page-wrap { padding: 24px 16px 48px; }
  .track-page-wrap { padding: 24px 16px 48px; }
  .success-page-wrap { padding: 36px 16px 48px; }
  .product-page-wrap { padding: 24px 16px 48px; }
}

/* ── Loading skeleton animation ── */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.skeleton {
  background: var(--gray-bg);
  border-radius: 8px;
  animation: skeleton-pulse 1.5s ease infinite;
}

/* ── Toast notification ── */
.ko-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 5000;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(20,20,30,.2);
}
.ko-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ko-toast.success { background: #2a9d6f; }
.ko-toast.error   { background: #e1452f; }

/* ── Cart badge bounce ── */
@keyframes badge-bounce {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}
.cart-badge.bump { animation: badge-bounce .3s ease; }

/* ── Button loading state ── */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ── Input password toggle ── */
.input-password-wrap { position: relative; }
.input-password-wrap .pwd-toggle {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; color: #b3b4ba;
  padding: 4px;
  transition: color .15s;
}
.input-password-wrap .pwd-toggle:hover { color: var(--orange); }

/* ── Number input hide arrows ── */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }

/* ── Print styles ── */
@media print {
  .site-header, .site-footer, .feature-strip,
  .scroll-top-btn, .page-transition-overlay,
  .mobile-nav-overlay, .mobile-nav-drawer { display: none !important; }
  body { background: #fff; color: #000; }
  .order-meta-card, .order-status-card, .order-info-card { break-inside: avoid; }
}

/* ============================================================
   DARK MODE — Full Coverage
   Deep dark base, warm amber accents, full readability
   ============================================================ */

/* ── ROOT VARIABLES ─────────────────────────────────────── */


/* ── BODY + PAGE BASE ────────────────────────────────────── */



/* ── HEADER ──────────────────────────────────────────────── */






/* ── LOGO ────────────────────────────────────────────────── */




/* ── UNIVERSAL WHITE CARD FIX ─────────────────────────────
   Every element whose class contains -card, -item, -box, -panel
   plus explicit list for things using inline background:#fff    */


/* ── INLINE style="background:#fff" CATCH-ALL ────────────── */


/* ── INLINE style="background:var(--gray-bg)" ────────────── */


/* ── PAGE-LEVEL SECTION BACKGROUNDS ──────────────────────── */


/* ── HERO / BANNER SECTIONS ───────────────────────────────── */



/* ── FORMS ────────────────────────────────────────────────── */




/* ── TEXT OVERRIDES ────────────────────────────────────────── */










/* ── SPECIFIC WIDGET BACKGROUNDS ──────────────────────────── */


/* hero glow + newsletter cart panel */


/* ── PEACH BG ─────────────────────────────────────────────── */


/* ── DARK INLINE SECTION CARDS (account/dashboard) ─────────── */


/* ── BREADCRUMB & NAV TABS ────────────────────────────────── */





/* ── ACCOUNT SIDEBAR NAV ──────────────────────────────────── */






/* ── BUTTONS ──────────────────────────────────────────────── */



/* ── FEATURE STRIP ────────────────────────────────────────── */





/* ── FOOTER DARK ──────────────────────────────────────────── */









/* ── STATUS BADGES ────────────────────────────────────────── */






/* ── TOGGLE SWITCHES ──────────────────────────────────────── */



/* ── DIVIDERS & LINES ─────────────────────────────────────── */


/* ── SCROLLBAR ────────────────────────────────────────────── */





/* ── NEWSLETTER SECTION ───────────────────────────────────── */





/* ── MOBILE NAV ───────────────────────────────────────────── */






/* ── DROPDOWN USER MENU ───────────────────────────────────── */





/* ── PRODUCT PAGE SPECIFICS ───────────────────────────────── */














/* ── ORDER / TRACKING SPECIFICS ───────────────────────────── */









/* ── SEARCH PAGE ──────────────────────────────────────────── */




/* ── ABOUT PAGE ───────────────────────────────────────────── */






/* ── CART / CHECKOUT SPECIFICS ─────────────────────────────── */







/* ── FILE UPLOAD AREA ─────────────────────────────────────── */



/* ── CATEGORIES / SHOP FILTERS ────────────────────────────── */


/* ── PAGE TRANSITION OVERLAY ──────────────────────────────── */



/* order-detail white title section */




/* "اطلاعات بیشتر" / "سوالی درباره" white panels in order-detail */








/* cart "خرید امن" badge */


/* Product perks strip */



/* sp-card (product cards) buttons at bottom */





/* Blog card body */




/* FAQ + Terms accordions */







/* account page toggles row */




/* notif row */




/* Address card */







/* Payment method rows */




/* About us commitment box */




/* "با تیم ما بیشتر آشنا شوید" button */


/* Hero section text */




/* Dashboard welcome banner stays vibrant */


/* Dashboard stat cards */


/* Success page */






/* Payment success */



/* Input icons */



/* Image drag & drop uploader (shared across admin forms + order submit) */
.image-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 160px;
  padding: 20px;
  border: 2px dashed var(--gray-line);
  border-radius: var(--radius-md);
  background: var(--gray-bg);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.image-dropzone:hover { border-color: var(--orange); }
.image-dropzone.dropzone-drag { border-color: var(--orange); background: #fff8f1; }
.image-dropzone.dropzone-error { border-color: #d9534f; background: #fdf3f2; }
.image-dropzone.has-image { padding: 12px; }
.image-dropzone input[type="file"] { display: none; }
.dropzone-icon { width: 32px; height: 32px; color: var(--ink-soft); }
.image-dropzone.has-image .dropzone-icon { display: none; }
.dropzone-label { font-size: 13px; color: var(--ink-soft); line-height: 1.9; }
.dropzone-hint { font-size: 11.5px; color: #9a9da5; }
.dropzone-preview {
  display: none;
  max-width: 100%;
  max-height: 220px;
  border-radius: calc(var(--radius-md) - 4px);
  object-fit: cover;
}

/* ===================== Checkout page ===================== */
.checkout-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
.checkout-summary-card {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 20px;
}
.cs-header {
  font-weight: 800;
  font-size: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-line);
}
.checkout-product-list {
  max-height: 320px;
  overflow-y: auto;
}
.cpl-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-line);
}
.cpl-item:last-child { border-bottom: none; }
.cpl-img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-bg);
}
.cpl-img img { width: 100%; height: 100%; object-fit: cover; }
.cpl-name { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.cpl-meta { font-size: 12px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .checkout-wrap { grid-template-columns: 1fr; }
  .checkout-summary-card { position: static; }
}

/* Status badges (shared with admin panel — order/ticket/product status pills) */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px;
  font-size: 11.8px; font-weight: 700; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending    { background: #fef3c7; color: #92620a; }
.badge-processing { background: #dbeafe; color: #1d4ed8; }
.badge-purchased  { background: #ede9fe; color: #6d28d9; }
.badge-shipped    { background: #e0e7ff; color: #4338ca; }
.badge-done       { background: #dcfce7; color: #15803d; }
.badge-cancelled  { background: #fee2e2; color: #b91c1c; }
.badge-active     { background: #dcfce7; color: #15803d; }
.badge-blocked    { background: #fee2e2; color: #b91c1c; }
.badge-draft      { background: #f1f2f4; color: #51545c; }
.badge-published  { background: #dcfce7; color: #15803d; }
.badge-open       { background: #dbeafe; color: #1d4ed8; }
.badge-closed     { background: #f1f2f4; color: #51545c; }
.badge-answered   { background: #dcfce7; color: #15803d; }

/* Timeline (order status history — shared with admin panel) */
.admin-timeline { display: flex; flex-direction: column; gap: 0; padding: 4px 0; }
.admin-timeline-item { display: flex; gap: 12px; position: relative; padding-bottom: 20px; }
.admin-timeline-item:last-child { padding-bottom: 0; }
.admin-timeline-item:not(:last-child)::before {
  content: ''; position: absolute; right: 11px; top: 26px; bottom: 0; width: 2px; background: var(--gray-line);
}
.admin-timeline-dot {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: #dcfce7; color: #15803d;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; z-index: 1;
}
.admin-timeline-content { display: flex; flex-direction: column; gap: 2px; font-size: 13.3px; padding-top: 2px; }
.admin-timeline-content span { font-size: 11.8px; color: var(--ink-soft); }

/* Outline button, filter chips, empty-state (shared with admin panel — used on My Orders, Cart, Shop, Blog) */
.btn-admin-outline {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 10px;
  border: 1.5px solid var(--gray-line); font-size: 13.3px; font-weight: 600; color: var(--ink); background: #fff;
  transition: border-color .15s, background .15s;
}
.btn-admin-outline:hover { border-color: var(--orange); color: var(--orange); }
.admin-filter-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 20px; font-size: 12.8px;
  font-weight: 600; background: var(--gray-bg); color: var(--ink-soft); white-space: nowrap; border: none; cursor: pointer;
}
.admin-filter-chip.active { background: var(--orange); color: #fff; }
.admin-empty { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.admin-empty svg { margin-bottom: 14px; opacity: .5; }
.admin-empty strong { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 5px; }
