:root {
  --bg-color: #050608;
  --accent: #2ee283;
  --accent-soft: #1b5437;
  --card-bg: #111218;
  --card-border: #252633;
  --text-main: #f5f5f5;
  --text-muted: #a0a3b1;
  --button-bg: #1b1c23;
  --button-hover: #262733;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 16px 40px rgba(0,0,0,.6);
  --shadow-tile: 0 20px 35px rgba(0,0,0,.75);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  background: radial-gradient(circle at top, #1b1c23 0, #050608 45%);
  min-height: 100vh;
  color: var(--text-main);
  direction: rtl;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

/* تم روشن (قابل تغییر از پنل ادمین) */
body.theme-light {
  --bg-color: #f6f7fb;
  --card-bg: #ffffff;
  --card-border: rgba(15, 23, 42, 0.14);
  --text-main: #0f172a;
  --text-muted: rgba(15, 23, 42, 0.62);
  --button-bg: #f1f5f9;
  --button-hover: #e2e8f0;
  --shadow-soft: 0 18px 45px rgba(2, 6, 23, 0.08);

  background: radial-gradient(circle at top, #ffffff 0, #f6f7fb 55%);
  color: var(--text-main);
}

body.theme-light .nav,
body.theme-light .nav-actions {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.10);
}

body.theme-light .nav-links > a,
body.theme-light .nav-links > .nav-item > a {
  color: rgba(15, 23, 42, 0.72);
}

body.theme-light .nav-search {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.10);
}

body.theme-light .nav-search-icon::before { border-color: rgba(15, 23, 42, 0.55); }
body.theme-light .nav-search-icon::after  { background: rgba(15, 23, 42, 0.55); }


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

/* top bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.support {
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}


.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}


.cart-top {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: #111218;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cart-top img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.cart-top-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
}

.auth-links a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--text-muted);
}

/* nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(10,10,15,.85);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.04);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.logo-mark-wrap {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  display: block;
  flex: 0 0 auto;
}

.logo-mark {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.12);
  transform-origin: center;
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}


.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #111218;
  border: 1px solid rgba(255,255,255,.06);
  min-width: 260px;
}

.nav-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 13px;
  width: 100%;
}

.nav-search input::placeholder {
  color: var(--text-muted);
}

.nav-search-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: transparent;
  position: relative;
}

.nav-search-icon::before,
.nav-search-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.nav-search-icon::before {
  width: 11px;
  height: 11px;
  border: 2px solid var(--text-muted);
  top: 3px;
  right: 3px;
}

.nav-search-icon::after {
  width: 7px;
  height: 2px;
  background: var(--text-muted);
  bottom: 4px;
  left: 4px;
  transform: rotate(45deg);
}
.nav-links > a,
.nav-links > .nav-item > a {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  padding-bottom: 4px;
  transition: color .2s ease;
}

.nav-links > a::after,
.nav-links > .nav-item > a::after {
  content: "";
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  right: 0;
  left: 0;
  bottom: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}

.nav-links > a:hover,
.nav-links > a.active,
.nav-links > a.primary,
.nav-links > .nav-item > a:hover,
.nav-links > .nav-item > a.active,
.nav-links > .nav-item > a.primary {
  color: #ffffff;
}

.nav-links > a:hover::after,
.nav-links > a.active::after,
.nav-links > .nav-item > a:hover::after,
.nav-links > .nav-item > a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10,10,15,.85);
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  animation: navActionsFloat 6s ease-in-out infinite alternate;
}

.nav-actions a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(46, 226, 131, 0.9);
  color: var(--accent);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-actions a:hover {
  background: var(--accent);
  color: #020305;
  box-shadow: 0 0 0 1px rgba(46, 226, 131, 0.5);
  transform: translateY(-1px);
}

.nav-actions a:active {
  transform: translateY(0);
  box-shadow: none;
}



.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,.08);
}

.btn-solid {
  background: var(--accent);
  color: #020305;
}

/* hero section */
.hero {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1.1fr);
  gap: 60px;
  align-items: center;
  padding: 56px 8px 32px;
}

/* tiles */
.tile-wrapper {
  display: flex;
  justify-content: center;
}

.tile-grid {
  display: none !important;
  position: relative;
  width: 260px;
  height: 260px;
  transform: rotate(-45deg);
}

.tile {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 34px;
  background: #151821;
  border: 1px solid #2b3040;
  box-shadow: var(--shadow-tile);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease,
              background .22s ease, border-color .22s ease;
}

.tile span {
  transform: rotate(45deg);
  font-size: 20px;
  color: var(--text-main);
  transition: color .22s ease;
}

.tile--center {
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle at top, #1a1f2c 0, #10131b 60%);
}

.tile--top {
  left: 50%;
  top: 8%;
  transform: translate(-50%,0);
}

.tile--bottom {
  left: 50%;
  bottom: 8%;
  transform: translate(-50%,0);
}

.tile--left {
  top: 50%;
  left: 8%;
  transform: translate(0,-50%);
}

.tile--right {
  top: 50%;
  right: 8%;
  transform: translate(0,-50%);
}

/* tile hover interactions */
.tile:hover {
  background: linear-gradient(145deg,#2ee283,#18a355);
  border-color: transparent;
  box-shadow: 0 24px 45px rgba(0,0,0,.9);
  transform: translateY(-6px);
}

.tile--center:hover {
  transform: translate(-50%,-50%) scale(1.04);
}

.tile:hover span {
  color: #020305;
}

/* hero text */
.hero-text h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-text p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 22px;
}

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

.hero-text .cta-row button {
  border-radius: 999px;
  border: none;
  padding: 10px 22px;
  font-size: 13px;
  cursor: pointer;
}

.hero-text .cta-row .primary {
  background: var(--accent);
  color: #020305;
}

.hero-text .cta-row .ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,.12);
}

/* categories */
.categories {
  margin-top: 32px;
}

.categories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.categories-header h2 {
  font-size: 15px;
}

.categories-header a {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 14px;
}

.category-card {
  background: var(--card-bg);
  border-radius: 26px;
  border: 1px solid var(--card-border);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease,
             border-color .18s ease, background .18s ease;
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: radial-gradient(circle at top, #2b2f3a 0, #13151c 70%);
  box-shadow: inset 0 6px 10px rgba(255,255,255,.03),
              0 12px 20px rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon span {
  font-size: 22px;
}

.category-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category-tag {
  font-size: 11px;
  color: var(--accent);
}

.category-name {
  font-size: 13px;
  color: #ffffff;
}

/* hover: کل کارت سبز شود */
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.7);
  border-color: transparent;
  background: linear-gradient(145deg,#2ee283,#19a656);
}

.category-card:hover .category-tag,
.category-card:hover .category-name {
  color: #020305;
}

.category-card:hover .category-icon {
  background: rgba(0,0,0,.12);
}

/* SERVICES SECTION */

.services {
  margin-top: 64px;
}

/* title with colored letters */
.services-header {
  text-align: center;
  margin-bottom: 26px;
}

.services-header h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.services-header .accent-letter {
  color: var(--accent);
}
.ordering-steps-header .accent-letter { color: var(--accent); }


.services-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.services-row {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}

.services-group-label{
  margin: 12px 0 22px;
  text-align: center;
  font-weight: 800;
  letter-spacing: .2px;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px 12px;
}

/* green diagonal pattern base (used by top & bottom) */
.pattern-bg-dark {
  background-color: #252933;
  background-image: repeating-linear-gradient(-45deg,
    rgba(255,255,255,.10) 0,
    rgba(255,255,255,.10) 1px,
    transparent 1px,
    transparent 5px);
}

.pattern-bg-green {
  background-color: #2bd67b;
  background-image: repeating-linear-gradient(-45deg,
    rgba(255,255,255,.20) 0,
    rgba(255,255,255,.20) 1px,
    transparent 1px,
    transparent 5px);
}

/* base service card */
.service-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 26px;
  border: 1px solid var(--card-border);
  box-shadow: 0 18px 30px rgba(0,0,0,.7);
  padding: 52px 16px 16px;
  overflow: hidden;
}

/* top row with two pills */
.service-top-row {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.service-top-pill {
  flex: 1;
  height: 40px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}

.service-top-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: background-color .18s ease;
  background-color: #252933;
  background-image: repeating-linear-gradient(-45deg,
    rgba(255,255,255,.10) 0,
    rgba(255,255,255,.10) 1px,
    transparent 1px,
    transparent 5px);
}

/* icon circle over middle */
.service-icon-circle {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background: var(--button-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 30px rgba(0,0,0,.85);
}

.service-icon-circle img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  /* لوگوها همیشه واضح باشند (نه فقط روی هاور) */
  filter: none;
  transition: filter .18s ease, transform .18s ease;
}

/* body text */
.service-body {
  text-align: center;
  margin-bottom: 12px;
}

.service-body h3 {
  font-size: 13px;
  margin-bottom: 4px;
}

.service-location {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.service-price {
  font-size: 11px;
  color: var(--text-muted);
}

.service-price span {
  color: #ffffff;
  font-weight: 600;
}

/* bottom button with same pattern */
.service-bottom {
  display: block;
  width: 100%;
  border-radius: 22px;
  border: none;
  padding: 9px 0;
  font-size: 12px;
  cursor: pointer;
  color: #020305;
  position: relative;
  overflow: hidden;
  background: none;
  text-align: center;
}


.service-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: #252933;
  background-image: repeating-linear-gradient(-45deg,
    rgba(255,255,255,.10) 0,
    rgba(255,255,255,.10) 1px,
    transparent 1px,
    transparent 5px);
  transition: background-color .18s ease;
}

.service-bottom span {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

/* hover: سبز شدن بالا و پایین، رنگی شدن لوگو */
.service-card:hover .service-top-pill::before,
.service-card:hover .service-bottom::before {
  background-color: #2bd67b;
  background-image: repeating-linear-gradient(-45deg,
    rgba(255,255,255,.20) 0,
    rgba(255,255,255,.20) 1px,
    transparent 1px,
    transparent 5px);
}

.service-card:hover .service-icon-circle img {
  transform: translateY(-1px);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(0,0,0,.85);
}

/* فقط خط کوتاه بین ردیف سرویس و دکمه "مشاهده همه" */
.services-view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 26px;
  position: relative;
}

.services-view-all-wrap::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 26px;
  background: linear-gradient(to bottom, rgba(46,226,131,.85), transparent);
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
}

.services-view-all {
  border-radius: 999px;
  padding: 7px 26px;
  border: 1px solid rgba(255,255,255,.12);
  background: #141622;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
}

/* ORDER LAYOUT */

.order-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.1fr;
  gap: 18px;
  align-items: stretch;
}

/* left order card */
.order-card {
  position: relative;
  background: #101119;
  border-radius: 26px;
  border: 1px solid #2b3040;
  padding: 16px 16px 18px;
  box-shadow: 0 18px 30px rgba(0,0,0,.75);
}

.order-header h3 {
  font-size: 14px;
  margin-bottom: 2px;
}

.order-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;
}

.order-label {
  color: var(--text-muted);
}

.order-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 120px;
  justify-content: flex-end;
}

.order-amount-number {
  color: var(--accent);
}

.order-amount-unit {
  color: #ffffff;
}

.order-qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #181a24;
  padding: 4px 8px;
  border-radius: 999px;
}

.order-qty-controls button {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: none;
  background: #232535;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

.order-qty-controls span {
  min-width: 14px;
  text-align: center;
}

.order-cta {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 9px 0;
  margin-top: 16px;
  font-size: 12px;
  cursor: pointer;
  background: linear-gradient(135deg,#2ee283,#19a656);
  color: #020305;
}

/* middle options */
.options-card {
  background: #101119;
  border-radius: 26px;
  border: 1px solid #2b3040;
  padding: 16px 16px;
  display: grid;
  gap: 10px;
  box-shadow: 0 18px 30px rgba(0,0,0,.75);
}

.option-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: #151825;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.option-check {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  border: 1px solid #3a3e4d;
  background: #101119;
  position: relative;
}

.option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-title {
  font-size: 12px;
  color: #ffffff;
}

.option-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.option-pill--active {
  background: rgba(46,226,131,.08);
  border-color: rgba(46,226,131,.5);
}

.option-pill--active .option-title {
  color: #2ee283;
}

.option-pill--active .option-check {
  border-color: var(--accent);
  background: linear-gradient(135deg,#2ee283,#19a656);
}

.option-pill--active .option-check::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 4px;
  border-left: 2px solid #020305;
  border-bottom: 2px solid #020305;
  transform: rotate(-45deg);
  top: 5px;
  left: 5px;
}

/* right Apple card */
.apple-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(46,226,131,.16) 0, #080a0f 55%);
  border-radius: 26px;
  border: 1px solid #31c777;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  box-shadow: 0 24px 40px rgba(0,0,0,.9);
}

.apple-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 18px solid rgba(46,226,131,.8);
  opacity: .25;
  left: -60px;
  bottom: -80px;
}

.apple-logo {
  position: relative;
  font-size: 54px;
  color: var(--accent);
  margin-bottom: 10px;
}

.apple-text-main {
  position: relative;
  font-size: 15px;
  margin-bottom: 2px;
}

.apple-text-sub {
  position: relative;
  font-size: 11px;
  color: var(--text-muted);
}

/* responsive */
@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    border-radius: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tile-wrapper {
    order: -1;
  }

  .hero-text .cta-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .category-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .services-row {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .order-layout {
    grid-template-columns: 1fr;
  }
}

.support-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

/* مراحل سفارش محصول (Ordering Ways) */
.ordering-steps {
  margin-top: 72px;
}

.ordering-steps-header {
  text-align: center;
  margin-bottom: 32px;
}

.ordering-steps-header h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.ordering-steps-sub {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ordering-steps-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.ordering-step-card {
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-tile);
  width: 240px;
  max-width: 100%;
  padding: 14px 16px;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.ordering-step-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ordering-step-icon img {
  display: block;
  width: 64px;
  height: auto;
  filter: grayscale(0.15) brightness(0.95);
  transition: transform .22s ease, filter .22s ease;
}

.ordering-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ordering-step-title-fa {
  font-size: 14px;
  color: #ffffff;
}

.ordering-step-title-en {
  font-size: 12px;
  color: var(--text-muted);
}

/* hover: سبز شدن کارت مثل سایر کاشی‌ها */
.ordering-step-card:hover {
  background: linear-gradient(145deg,#2ee283,#18a355);
  border-color: transparent;
  box-shadow: 0 24px 45px rgba(0,0,0,.9);
  transform: translateY(-4px);
}

.ordering-step-card:hover .ordering-step-title-fa,
.ordering-step-card:hover .ordering-step-title-en {
  color: #020305;
}

.ordering-step-card:hover .ordering-step-icon img {
  filter: none;
  transform: translateY(-2px);
}

/* responsive */
@media (max-width: 900px) {
  .ordering-steps {
    margin-top: 56px;
  }
  .ordering-step-card {
    width: 220px;
  }
}

@media (max-width: 640px) {
  .ordering-steps {
    margin-top: 48px;
  }
  .ordering-steps-row {
    flex-direction: column;
    align-items: stretch;
  }
  .ordering-step-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* نظرات مشتریان (Reviews) */
.reviews {
  margin-top: 80px;
}

.reviews-header {
  text-align: left;
  margin-bottom: 32px;
}

.reviews-header h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.reviews-sub {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.reviews-desc {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 380px;
}

.reviews-row {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1.3fr;
  gap: 18px;
  align-items: stretch;
}

.review-card {
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  position: relative;
  padding: 18px 18px 20px;
}

.review-card--side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card--center {
  padding-top: 40px;
}

.review-avatar-wrap {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
}

.review-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 3px solid #050608;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(0,0,0,.8);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-body {
  text-align: center;
}

.review-text {
  font-size: 13px;
  line-height: 1.9;
  color: #f5f5f5;
}

.review-name {
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

.review-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* layout tweaks for side cards */
.review-card--side .review-text {
  margin-bottom: 12px;
}

/* responsive */
@media (max-width: 1024px) {
  .reviews-row {
    grid-template-columns: 1fr;
  }
  .reviews-header {
    text-align: center;
  }
  .reviews-header h2 {
    justify-content: center;
  }
  .reviews-desc {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .reviews {
    margin-top: 64px;
  }
}

/* سشن چهارم: نظرات مشتریان */
.reviews {
  margin-top: 80px;
}

.reviews-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.reviews-header-col {
  flex: 0 0 260px;
  text-align: right;
}

.reviews-header-col h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.reviews-sub {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.reviews-desc {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ن و م سبز */
.reviews-header-col .accent-letter {
  color: var(--accent);
}

.reviews-track {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.review-bubble {
  max-width: 260px;
  background: #151620;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 18px 30px rgba(0,0,0,.7);
}

.review-bubble p {
  font-size: 13px;
  line-height: 1.9;
  color: #f5f5f5;
}

.review-profile {
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-tile);
}

.review-profile-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid #050608;
  box-shadow: 0 10px 20px rgba(0,0,0,.8);
  flex-shrink: 0;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-profile-text .review-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.review-profile-text .review-role {
  font-size: 12px;
  color: #020305;
}

/* responsive */
@media (max-width: 1024px) {
  .reviews-layout {
    flex-direction: column;
    align-items: stretch;
  }
  .reviews-header-col {
    text-align: center;
    align-self: center;
  }
  .reviews-desc {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .reviews-track {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .reviews {
    margin-top: 64px;
  }
  .review-bubble {
    max-width: 100%;
  }
}

/* سشن پنجم: وبلاگ اکانت پلاسکو */
.blog {
  margin-top: 96px;
}

.blog-header {
  text-align: center;
  margin-bottom: 32px;
}

.blog-header h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.blog-sub {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* و ا پ سبز */
.blog-header .accent-letter {
  color: var(--accent);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}

.blog-card {
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid var(--card-border);
  box-shadow: 0 18px 34px rgba(0,0,0,.75);
  overflow: hidden;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
}

.blog-card-top {
  position: relative;
  padding: 18px 18px 0;
}

.blog-card-shadow {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 26px;
  border-radius: 999px;
  background: #12131b;
  opacity: 0.94;
}

.blog-card-shadow--left {
  top: 4px;
}

.blog-card-shadow--right {
  top: 10px;
}

.blog-card-image {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(0,0,0,.9);
}

.blog-card-image img {
  display: block;
  width: 100%;
  height: auto;
}

.blog-card-body {
  padding: 16px 18px 14px;
}

.blog-title {
  font-size: 14px;
  margin-bottom: 10px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-meta-main {
  font-weight: 500;
}

.blog-meta-sub {
  opacity: .85;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* دکمه پایین کارت */
.blog-btn {
  border: none;
  border-radius: 999px;
  padding: 6px 22px;
  font-size: 12px;
  background: #181a24;
  color: #f5f5f5;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

/* هاور: سبز شدن دکمه و دو کادر پشت عکس */
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(0,0,0,.9);
}

.blog-card:hover .blog-btn {
  background: linear-gradient(145deg,#2ee283,#18a355);
  color: #020305;
}

.blog-card:hover .blog-card-shadow {
  background: linear-gradient(145deg,#2ee283,#18a355);
}

/* دکمه مشاهده همه */
.blog-all {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.blog-all-btn {
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: #12131b;
  padding: 8px 26px;
  font-size: 12px;
  color: #f5f5f5;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(0,0,0,.8);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.blog-all-btn:hover {
  background: linear-gradient(145deg,#2ee283,#18a355);
  border-color: transparent;
  transform: translateY(-3px);
}

/* responsive */
@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 640px) {
  .blog {
    margin-top: 72px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* سشن ششم: فوتر */
.footer-panels {
  margin-top: 96px;
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.footer-main-card {
  flex: 1 1 auto;
  background: #111218;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 40px rgba(0,0,0,.8);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 1.4fr 1.3fr;
  gap: 24px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-title {
  font-size: 15px;
}

.footer-sub {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.footer-label {
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
}

.footer-value {
  color: var(--text-muted);
}

.footer-licenses {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.license-title {
  color: var(--text-muted);
}

.license-badges {
  display: flex;
  gap: 8px;
}

.license-badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  font-size: 11px;
}

.footer-about-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
}

.footer-about-btn {
  align-self: flex-start;
  margin-top: 8px;
  border-radius: 999px;
  border: none;
  padding: 7px 20px;
  font-size: 12px;
  background: #191a24;
  color: #f5f5f5;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.footer-about-btn:hover {
  background: linear-gradient(145deg,#2ee283,#18a355);
  color: #020305;
  transform: translateY(-2px);
}

/* کارت برند اکانت پلاسکو سمت راست */
.footer-brand-card {
  flex: 0 0 260px;
  border-radius: 22px;
  background: #111218;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 40px rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-inner {
  width: 100%;
  padding: 26px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-title {
  font-size: 20px;
  font-weight: 700;
}

.footer-brand-subtitle {
  font-size: 13px;
  color: #f5f5f5;
}

/* نوار سبز شبکه‌های اجتماعی */
.footer-social-bar {
  margin-top: 12px;
  background: linear-gradient(145deg,#2ee283,#18a355);
  border-radius: 999px;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.social-btn {
  flex: 1 1 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(5,6,8,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

/* hover: فقط همان آیکن کمی روشن‌تر می‌شود */
.social-btn:hover .social-icon {
  background: rgba(5,6,8,.18);
  color: inherit;
}

/* responsive */
@media (max-width: 1100px) {
  .footer-panels {
    flex-direction: column;
  }
  .footer-brand-card {
    max-width: 360px;
    align-self: center;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .footer-main-card {
    grid-template-columns: 1fr;
  }
}

.footer-social-bar .social-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

/* مگامنو سرویس‌های اکانت پلاسکو */
.nav {
  position: relative;
  z-index: 30;
}

.nav-item {
  position: relative;
}

.nav-item--services {
  display: flex;
  align-items: center;
}

.services-mega {
  position: absolute;
  top: 100%;
  right: 90%;
  transform: translateX(50%);
  margin-top: 4px;
  padding: 18px 20px 20px;
  min-width: 820px;
  background: #111218;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  box-shadow: 0 28px 60px rgba(0,0,0,.9);
  display: none;
}

/* نمایش مگامنو با هاور */
.nav-item--services:hover .services-mega,
.nav-item--services:focus-within .services-mega,
.services-mega:hover {
  display: block;
}

.services-mega-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.services-mega-col {
  background: #151620;
  border-radius: 14px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.services-mega-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.services-mega-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #1c1e28;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.services-mega-title {
  font-size: 13px;
  font-weight: 600;
}

.services-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--text-muted);
  flex: 1 1 auto;
}

.services-mega-list li + li {
  margin-top: 4px;
}

.services-mega-all {
  align-self: flex-start;
  margin-top: 10px;
  font-size: 11px;
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

/* ریسپانسیو برای عرض‌های کمتر */
@media (max-width: 1100px) {
  .services-mega-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .services-mega {
    min-width: 0;
    width: 100vw;
    right: 90%;
    transform: translateX(50%);
  }
  .services-mega-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .services-mega-inner {
    grid-template-columns: 1fr;
  }
}

.services-mega-list a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  padding: 2px 0;
}

.services-mega-list a:hover {
  color: #ffffff;
}


/* رنگ لینک‌ها در نوار مسیر محصول و سبد خرید */
.product-breadcrumb a,
.product-breadcrumb a:visited,
.checkout-breadcrumb a,
.checkout-breadcrumb a:visited {
  color: var(--text-muted);
}

.product-breadcrumb .product-breadcrumb-current,
.checkout-breadcrumb .product-breadcrumb-current {
  color: var(--text-main);
}

@keyframes navActionsFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2px); }
}



html, body {
  max-width: 100%;
  overflow-x: hidden;
}


/* انیمیشن ورود سکشن‌ها از چپ/راست هنگام اسکرول */
.section-animate {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.section-animate-right {
  transform: translateX(40px);
}

.section-animate-left {
  transform: translateX(-40px);
}

.section-animate.section-animate-visible {
  opacity: 1;
  transform: translateX(0);
}


/* انیمیشن خاص برای سکشن اول (هیرو) */
.hero.section-animate {
  opacity: 0;
  transform: none;
}

.hero.section-animate .tile-wrapper,
.hero.section-animate .hero-text {
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.9s ease, opacity 0.9s ease;
  will-change: transform, opacity;
}

.hero.section-animate.section-animate-visible {
  opacity: 1;
}

.hero.section-animate.section-animate-visible .tile-wrapper {
  opacity: 1;
  transform: translateX(-18px) translateY(0);
}

.hero.section-animate.section-animate-visible .hero-text {
  opacity: 1;
  transform: translateX(18px) translateY(0);
  transition-delay: 0.08s;
}

.hero.section-animate.section-animate-visible .tile-grid {
  display: none !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}


/* نوار اعتماد زیر هیرو */
.trust-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: radial-gradient(circle at top, rgba(54, 201, 138, 0.12), transparent 55%);
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 12px 0;
  align-items: center;
  justify-content: center;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #34d399, #22c55e);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.65);
}

/* بخش چرا از ما بخرید */
.why-us {
  padding: 40px 0 10px;
}

.why-title {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.why-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.why-item {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.why-bullet {
  color: var(--accent);
  font-weight: 600;
  min-width: 1.2rem;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 640px) {
  .trust-bar-inner {
    align-items: flex-start;
  }
  .trust-item {
    white-space: normal;
  }
}



/* سوالات متداول زیر وبلاگ صفحه اصلی (آکاردئونی) */
.home-faq {
  padding: 32px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.home-faq-title {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.home-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.7);
  overflow: hidden;
}

.home-faq-toggle {
  width: 100%;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.9rem;
  cursor: pointer;
}

.home-faq-q {
  text-align: right;
}

.home-faq-chevron {
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.home-faq-answer {
  max-height: 0;
  opacity: 0;
  padding: 0 12px;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease, padding-top 0.25s ease, padding-bottom 0.25s ease;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.home-faq-answer p {
  margin: 0 0 10px;
  line-height: 1.7;
}

.home-faq-item.is-open .home-faq-answer {
  max-height: 260px;
  opacity: 1;
  padding-top: 4px;
  padding-bottom: 8px;
}

.home-faq-item.is-open .home-faq-chevron {
  transform: rotate(180deg);
}

@media (max-width: 640px) {
  .home-faq-toggle {
    padding-inline: 10px;
  }
}



.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-auth-link {
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 4px 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: transparent;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
}

.nav-auth-logout {
  border-color: rgba(248, 113, 113, 0.8);
  color: #fecaca;
}

@media (max-width: 768px) {
  .nav-auth {
    margin-top: 8px;
  }
}

/* Hero video box replacing old grid */
.hero .hero-video {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 32px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.hero .hero-video video,
.hero .hero-video iframe,
.hero .hero-video img {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  outline: none;
  object-fit: cover;
  border-radius: inherit;
  background: transparent;
  pointer-events: none; /* کاربر نمی‌تواند کلیک/متوقف کند */
}

/* فقط موبایل: عکس هدر وسط بیفته و درست کراپ بشه */
@media (max-width: 640px) {
  .hero .hero-video img,
  .hero .hero-video video {
    width: 90%;
    height: 195px;            /* اگر بزرگ/کوچیک خواستی: 200 تا 280 تغییر بده */
    object-fit: cover;
    object-position: 0% 10%; /* 50% وسط کامل | 60% کمی راست‌تر | 70% راست‌تر */
  }
}


/* لینک‌کردن دسته‌بندی‌ها و دکمه‌ها به صفحات */
.category-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-bottom,
.services-view-all,
.blog-btn,
.blog-all-btn {
  text-decoration: none;
}


/* --- Extra mobile-friendly tweaks (AccountPro mobile layout) --- */
@media (max-width: 992px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .services-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .category-grid,
  .services-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .container {
    padding: 20px 16px 48px;
  }

  .hero {
    padding: 40px 0 28px;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .category-grid,
  .services-row {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 16px 12px 40px;
  }

  .hero {
    padding: 32px 0 24px;
    gap: 24px;
  }

  .hero-title {
    font-size: 22px;
    line-height: 1.5;
  }

  .hero-subtitle {
    font-size: 13px;
  }
}


/* --- Mobile header search / nav layout fixes --- */
@media (max-width: 640px) {
  .nav {
    align-items: stretch;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .nav-search {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 10px 12px;
  }
}


/* Stack navigation layout on small screens */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    border-radius: 28px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-actions a {
    flex: 1 1 48%;
    text-align: center;
  }
}


/* --- Mobile tweaks: nav search full-width and aligned --- */
@media (max-width: 768px) {
  .nav-search {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
}

/* --- Product page mobile layout fixes --- */
@media (max-width: 900px) {
  .product-center-logo-card {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    margin: 18px auto 0;
  }

  .product-stat-grid.product-stat-grid--with-center {
    padding-top: 12px;
  }
}


/* iOS Safari & small screens: stack nav neatly */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }
  .nav-search {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
  .nav-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav-actions a {
    flex: 1 1 48%;
    text-align: center;
  }
}

/* smaller product stats cards on mobile */
@media (max-width: 480px) {
  .product-stat-grid {
    gap: 10px;
  }
  .product-stat-card {
    padding: 12px 10px;
    border-radius: 18px;
    min-width: 140px;
    min-height: 88px;
  }
  .product-stat-value {
    font-size: 18px;
  }
  .product-stat-label {
    font-size: 11px;
  }
}


/* Remove underline / tap highlight for category cards */
.category-card-link,
.category-card-link:visited,
.category-card-link:active,
.category-card-link:focus {
  text-decoration: none;
  color: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Stronger mobile nav layout (Safari) */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .nav-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nav-search {
    order: 10;
    align-self: stretch;
    width: 100%;
    min-width: 0;
  }
}

.nav { flex-wrap: nowrap; }
.logo, .nav-links > a, .nav-links > .nav-item > a { white-space: nowrap; }
.nav-actions { flex-wrap: nowrap; }


/* Support button (Telegram) */
/* From Uiverse.io by vinodjangid07 */ 
.Btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  position: relative;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.3s;
}

.svgContainer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  backdrop-filter: blur(0px);
  letter-spacing: 0.8px;
  border-radius: 10px;
  transition: all 0.3s;
  border: 1px solid rgba(156, 156, 156, 0.466);
}

.BG {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: #24a1de;
  z-index: -1;
  border-radius: 10px;
  pointer-events: none;
  transition: all 0.3s;
}

.Btn:hover .BG {
  transform: rotate(35deg);
  transform-origin: bottom;
}

.Btn:hover .svgContainer {
  border: 1px solid rgba(226, 226, 226, 0.466);
  background-color: rgba(204, 204, 204, 0.466);
  backdrop-filter: blur(4px);
}

.footer-support-link{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
}

.footer-support-text{
  color:#fff;
  font-weight:700;
}

/* آیکون پشتیبانی تلگرام در هدر */
.nav-telegram-support{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-decoration:none;
}

.nav-telegram-support-text{
  color:#fff;
  font-weight:700;
  font-size:0.8rem;
  line-height:1;
}


/* ===== Fix: remove green wrappers around telegram support buttons ===== */
.nav-actions a.nav-telegram-support{
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
.nav-actions a.nav-telegram-support:hover{
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Footer support: remove green bar background and keep only icon + text */
.footer-social-bar{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.footer-social-bar:hover{ transform: none !important; }

.footer-social-bar .footer-support-link{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-social-bar .footer-support-text{
  margin: 0;
}


/* -----------------------
   مودال آموزش خرید (صفحه اصلی)
   ----------------------- */
.ap-modal{position:fixed;inset:0;display:none;z-index:9999}
.ap-modal.is-open{display:block}
.ap-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.ap-modal-dialog{position:relative;max-width:720px;margin:6vh auto 0;background:#0f1420;color:#fff;border-radius:18px;padding:18px 18px 14px;box-shadow:0 20px 60px rgba(0,0,0,.35)}
@media (max-width: 780px){.ap-modal-dialog{margin:10vh 14px 0;padding:16px}}
.ap-modal-close{position:absolute;left:12px;top:10px;width:38px;height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.06);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.ap-modal-title{margin:6px 0 10px;font-size:20px}
.ap-modal-steps{margin:0 18px 10px;padding:0;line-height:1.9}
.ap-modal-note{margin:0 0 2px;opacity:.95}
.ap-modal-note a{color:#8bd3ff;text-decoration:none}
.ap-modal-note a:hover{text-decoration:underline}
body.ap-modal-open{overflow:hidden}
