:root {
  --bs-body-font-family: var(--font-vazir);
  --bs-font-sans-serif: var(--font-vazir);
  --bs-heading-font-family: var(--font-vazir);
  --primary: #d63384;
  --primary-dark: #a61e4d;
  --primary-light: #fce4ec;
  --secondary: #9b59b6;
  --dark: #1a1a2e;
  --hero-gradient: linear-gradient(135deg, #d63384 0%, #9b59b6 50%, #e84393 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(214, 51, 132, 0.12);
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-vazir);
  font-weight: 400;
  color: #333;
  background: #fafafa;
}

/* ── Navbar ── */
.navbar-brand {
  font-size: 1.35rem;
  color: var(--primary) !important;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  border-radius: 50%;
  margin-left: 6px;
}

.nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
}

.cart-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  background: #e91e8c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(233, 30, 140, 0.35);
  z-index: 1;
}

.search-form .form-control {
  border-radius: 20px 0 0 20px;
  border: 1px solid #dee2e6;
  min-width: 200px;
}

.search-form .btn {
  border-radius: 0 20px 20px 0;
}

/* ── Colors ── */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ── Page header ── */
.page-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.page-title { font-weight: 700; }

.breadcrumb-item + .breadcrumb-item::before {
  float: right;
  padding-left: 0.5rem;
  padding-right: 0;
}

/* ── Hero ── */
.hero-section {
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section .container { position: relative; z-index: 1; }

.features-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.feature-item {
  padding: 1rem;
  text-align: center;
}

.feature-item i {
  font-size: 1.8rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── Cards ── */
.category-card, .product-card, .brand-card, .blog-card {
  border-radius: var(--radius) !important;
  transition: transform 0.25s, box-shadow 0.25s;
  background: #fff;
}

.category-card:hover, .product-card:hover, .brand-card:hover, .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md) !important;
}

.product-card { overflow: hidden; }
.product-card .card-img-top { transition: transform 0.35s; }
.product-card:hover .card-img-top { transform: scale(1.06); }

.product-card .quick-add {
  position: absolute;
  bottom: -40px;
  left: 0; right: 0;
  transition: bottom 0.3s;
  padding: 8px;
  background: rgba(255,255,255,0.95);
}

.product-card:hover .quick-add { bottom: 0; }

.blog-card-img { height: 120px; object-fit: cover; }
.blog-card-placeholder { height: 120px; background: var(--primary-light); }

.blog-card-title {
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.blog-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--primary-light, #fce4ef);
  padding: 6px;
  border-radius: 50px;
  width: fit-content;
  max-width: 100%;
}

.blog-category-tabs .nav-link {
  border: none;
  border-radius: 50px;
  color: #6b6570;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  text-decoration: none;
  white-space: nowrap;
}

.blog-category-tabs .nav-link:hover {
  color: var(--bs-primary, #e91e8c);
}

.blog-category-tabs .nav-link.active {
  background: #fff;
  color: var(--bs-primary, #e91e8c);
  box-shadow: 0 2px 10px rgba(45, 42, 50, 0.06);
}

/* ── Account menu sidebar ── */
.account-menu {
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 26, 46, .04);
}

.account-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.35rem 1.25rem;
  border-bottom: 1px solid #f0f0f4;
}

.account-menu-user {
  font-size: 1.05rem;
  font-weight: 800;
  color: #23254e;
  line-height: 1.5;
}

.account-menu-avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 2px solid #d5d7e3;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5c5f7b;
  font-size: 1.35rem;
  overflow: hidden;
}

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

.account-menu-list {
  list-style: none;
  margin: 0;
  padding: .35rem .65rem;
}

.account-menu-list > li {
  margin: 0 0 .2rem;
}

.account-menu-list > li:last-child {
  margin-bottom: 0;
}

.account-menu-link,
.logout-form button.account-menu-link {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #3f4064;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.account-menu-link i,
.logout-form button.account-menu-link i {
  flex-shrink: 0;
  width: 1.35rem;
  font-size: 1.2rem;
  color: #5c5f7b;
  text-align: center;
}

.account-menu-link span,
.logout-form button.account-menu-link span {
  flex: 1;
  text-align: start;
}

.account-menu-link:hover,
.logout-form button.account-menu-link:hover {
  background: #f3f4f8;
  border-color: #e2e4ec;
  color: #23254e;
}

.account-menu-link.is-active {
  background: #e8eaf2;
  border-color: #c8ccd8;
  color: #23254e;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(35, 37, 78, .04);
}

.account-menu-link.is-active i {
  color: #23254e;
}

.account-menu-link--logout,
.logout-form button.account-menu-link--logout {
  color: #3f4064;
}

.account-menu-link--logout:hover,
.logout-form button.account-menu-link--logout:hover {
  background: #fff5f7;
  color: #c0392b;
}

.account-menu-link--logout:hover i,
.logout-form button.account-menu-link--logout:hover i {
  color: #c0392b;
}

.logout-form {
  margin: 0;
}

@media (max-width: 991.98px) {
  .account-menu-user {
    font-size: 1rem;
  }

  .account-menu-link,
  .logout-form button.account-menu-link {
    padding: .95rem 1.15rem;
    font-size: .98rem;
  }
}

/* legacy sidebar (catalog etc.) */
.sidebar-card, .account-sidebar {
  border-radius: var(--radius) !important;
}

.sidebar-link {
  text-decoration: none;
  color: #555;
  display: block;
}

.list-group-item.active-category {
  background: var(--primary-light);
  border-right: 3px solid var(--primary);
}

.list-group-item.active-category .sidebar-link {
  color: var(--primary);
  font-weight: 600;
}

.account-avatar {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}

.account-avatar-placeholder {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}

/* ── Cart ── */
.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-product-name {
  color: #3f4064;
  font-weight: 600;
  text-decoration: none;
}

.cart-product-name:hover {
  color: var(--primary);
}

.cart-summary {
  border-radius: var(--radius);
  position: sticky;
  top: 90px;
}

/* ── Cart drawer ── */
body.cart-drawer-open { overflow: hidden; }

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(26, 26, 46, 0.2);
  opacity: 0;
  transition: opacity .2s ease;
}
.cart-drawer-backdrop.is-visible { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 4.5rem;
  left: 1rem;
  z-index: 1070;
  width: min(320px, calc(100vw - 2rem));
  max-height: min(420px, calc(100vh - 6rem));
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  transition: opacity .22s ease, transform .22s ease;
}
.cart-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: none;
}

.cart-drawer-panel {
  display: flex;
  flex-direction: column;
  max-height: min(420px, calc(100vh - 6rem));
  background: #fff;
  border: 1px solid #f0e6ee;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.16);
  overflow: hidden;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem .75rem;
  border-bottom: 1px solid #f0e6ee;
  background: #fdf8fb;
  flex-shrink: 0;
}
.cart-drawer-header h2 {
  font-size: .88rem;
  font-weight: 800;
  margin: 0;
  color: #1a1a2e;
}
.cart-drawer-header-count {
  font-size: .78rem;
  font-weight: 600;
  color: #8a8a9a;
}
.cart-drawer-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #8a8a9a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background .15s, color .15s;
}
.cart-drawer-close:hover { background: #fef2f2; color: #dc2626; }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cart-drawer-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-drawer-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .75rem;
  border-bottom: 1px solid #f0e6ee;
}
.cart-drawer-item:last-child { border-bottom: none; }

.cart-drawer-item-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f0e6ee;
  background: #fff;
}
.cart-drawer-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-drawer-item-body { flex: 1; min-width: 0; }
.cart-drawer-item-name {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .3rem;
}
.cart-drawer-item-name:hover { color: var(--primary); }

.cart-drawer-item-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.cart-drawer-qty {
  display: inline-flex;
  align-items: center;
  background: #fdf8fb;
  border: 1px solid #f0e6ee;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-drawer-qty-btn {
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .7rem;
  padding: 0;
}
.cart-drawer-qty-btn:hover { color: var(--primary); }
.cart-drawer-qty-input {
  width: 24px;
  border: none;
  border-right: 1px solid #f0e6ee;
  border-left: 1px solid #f0e6ee;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  background: transparent;
  color: #1a1a2e;
  padding: 0;
  -moz-appearance: textfield;
}
.cart-drawer-qty-input::-webkit-outer-spin-button,
.cart-drawer-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-drawer-item-total {
  font-size: .78rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  margin-right: auto;
}
.cart-drawer-item-total small { font-size: .65rem; font-weight: 500; margin-right: 1px; }

.cart-drawer-remove {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .72rem;
  padding: 0;
  flex-shrink: 0;
}
.cart-drawer-remove:hover { color: #dc2626; background: #fef2f2; }

.cart-drawer-footer {
  padding: .55rem .75rem .65rem;
  border-top: 1px solid #f0e6ee;
  background: #fdf8fb;
  flex-shrink: 0;
}
.cart-drawer-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.cart-drawer-summary {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  font-size: .68rem;
  color: #8a8a9a;
}
.cart-drawer-summary strong {
  font-size: .92rem;
  color: #1a1a2e;
  line-height: 1.2;
}
.cart-drawer-summary strong small { font-size: .65rem; font-weight: 500; color: #8a8a9a; }
.cart-drawer-checkout {
  font-weight: 700;
  padding: .4rem .85rem;
  white-space: nowrap;
  font-size: .8rem;
}
.cart-drawer-full-link {
  display: block;
  text-align: center;
  font-size: .7rem;
  font-weight: 600;
  color: #8a8a9a;
  text-decoration: none;
  margin-top: .35rem;
  transition: color .15s;
}
.cart-drawer-full-link:hover { color: var(--primary); }

.cart-drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  gap: .5rem;
}
.cart-drawer-empty > i {
  font-size: 1.75rem;
  color: #cbd5e1;
}
.cart-drawer-empty p {
  font-size: .82rem;
  color: #8a8a9a;
  margin: 0;
}

@media (max-width: 991px) {
  .cart-drawer {
    top: auto;
    bottom: .75rem;
    left: 50%;
    transform: translateX(-50%) translateY(12px) scale(.97);
    width: min(340px, calc(100vw - 1.5rem));
    max-height: min(360px, 55vh);
  }
  .cart-drawer.is-open { transform: translateX(-50%); }
  .cart-drawer-panel { max-height: min(360px, 55vh); }
}

@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cart-drawer-backdrop { transition: none; }
}

/* ── Cart toast ── */
.cart-toast-host {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.cart-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #f0e6ee;
  box-shadow: 0 10px 28px rgba(26, 26, 46, 0.14);
  max-width: min(380px, calc(100vw - 2rem));
  animation: cartToastIn 0.28s ease;
}

.cart-toast--hide {
  animation: cartToastOut 0.28s ease forwards;
}

.cart-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #fce4ec 0%, #f3e8ff 100%);
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.cart-toast--error .cart-toast-icon {
  background: #fff5f5;
  color: #c0392b;
}

.cart-toast-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.4;
}

.cart-toast--error .cart-toast-text {
  color: #c0392b;
}

#cartToast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  top: auto;
  transform: translateX(-50%) translateY(12px);
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .9rem;
  background: var(--accent, #d63384);
  color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(26, 26, 46, .18);
  font-size: .8rem;
  font-weight: 600;
  opacity: 0;
  max-width: min(90vw, 300px);
  pointer-events: none;
  animation: none;
  transition: opacity .22s ease, transform .22s ease;
}
#cartToast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
#cartToast .cart-toast-icon {
  width: auto;
  height: auto;
  background: none;
  color: #86efac;
  font-size: .95rem;
}
#cartToast.cart-toast--error {
  background: #7f1d1d;
}
#cartToast.cart-toast--error .cart-toast-icon {
  color: #fca5a5;
  background: none;
}
#cartToast .cart-toast-text {
  color: #fff;
}

@keyframes cartToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cartToastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ── Orders ── */
.order-timeline .step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #aaa;
}

.order-timeline .step.done { color: var(--primary); font-weight: 600; }
.order-timeline .step.active { color: var(--primary-dark); font-weight: 700; }

/* ── Auth ── */
.auth-card {
  border-radius: var(--radius);
  max-width: 480px;
  margin: 0 auto;
}

.auth-card .card-header-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--primary);
}

/* ── Blog ── */
.post-content {
  line-height: 2.2;
  font-size: 1.05rem;
}

.post-content p { margin-bottom: 1.2rem; }

/* ── Footer (هماهنگ با v2-compat + تم میکاپ) ── */
.site-footer {
  background: #0f172a;
  color: #e2e8f0;
}
.footer-heading { color: #fff; font-weight: 800; margin-bottom: 1rem; }
.footer-top {
  padding: 2.4rem 0 1.6rem;
}
.footer-top .row {
  align-items: flex-start;
}
@media (min-width: 992px) {
  .footer-links-col .footer-heading {
    margin-top: 0;
  }
}
.footer-links a,
.footer-contact a {
  color: #e2e8f0;
  text-decoration: none;
}
.footer-links li,
.footer-contact li {
  color: #e2e8f0;
  margin-bottom: 0.55rem;
  line-height: 1.65;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary);
}
.footer-contact i {
  color: var(--primary);
  margin-left: 0.35rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b1220;
  color: #94a3b8;
}
.footer-eco-kicker,
.footer-trust-kicker {
  color: #f4b8d0;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.site-footer .footer-social .social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.site-footer .footer-social .social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.footer-brand .site-logo-name {
  color: #fff;
}
.footer-brand .site-logo-name--accent {
  color: #f4b8d0;
}

.footer-tracking-wrap {
  margin-bottom: 1.15rem;
}

.footer-tracking-head {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  color: #fff;
}

.footer-tracking-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #f4b8d0;
  font-size: 1rem;
}

.footer-tracking-title {
  flex-shrink: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-tracking-lead {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.footer-tracking-carriers {
  gap: 0.45rem;
}

.footer-tracking-carriers .tracking-carrier-card {
  min-height: 4.1rem;
  padding: 0.55rem 0.2rem;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.footer-tracking-carriers .tracking-carrier-card:hover {
  border-color: rgba(244, 184, 208, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.footer-tracking-carriers .tracking-carrier-icon {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.12);
  color: #f4b8d0;
}

.footer-tracking-carriers .tracking-carrier-card:hover .tracking-carrier-icon {
  background: rgba(244, 184, 208, 0.22);
  color: #fff;
}

.footer-tracking-carriers .tracking-carrier-name {
  font-size: 0.7rem;
}

.footer-tracking-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-bottom: 1.15rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.footer-tracking-box i {
  font-size: 1.1rem;
  color: #f4b8d0;
}

.footer-tracking-box:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 184, 208, 0.45);
  color: #fff;
}

.footer-tracking-box:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.25);
}

.tracking-modal-dialog {
  max-width: 620px;
}

.tracking-modal .modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(214, 51, 132, 0.18), 0 4px 16px rgba(26, 26, 46, 0.06);
  overflow: hidden;
}

.tracking-modal .modal-content::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--hero-gradient);
}

.tracking-modal .modal-header {
  padding: 1.25rem 1.35rem 0;
}

.tracking-modal .modal-body {
  padding: 0.85rem 1.35rem 1.35rem;
}

.tracking-modal .modal-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  color: #1a1a2e;
  font-size: 1.05rem;
}

.tracking-modal-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #fce4ec 0%, #f3e8ff 100%);
  color: var(--primary);
  font-size: 1rem;
}

.tracking-modal-lead {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: #8a8a9a;
}

.tracking-carrier-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  justify-content: center;
}

.tracking-carrier-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 5rem;
  padding: 0.75rem 0.35rem;
  border: 1px solid #f0e6ee;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fdf8fb 100%);
  color: #3f4064;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(214, 51, 132, 0.06);
  transition: border-color 0.25s, background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.tracking-carrier-card:hover {
  border-color: rgba(214, 51, 132, 0.45);
  background: linear-gradient(180deg, #fff9fc 0%, #fce4ec 100%);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(214, 51, 132, 0.16);
}

.tracking-carrier-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.2);
}

.tracking-carrier-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff5f9 0%, #f8f0ff 100%);
  color: var(--primary);
  font-size: 1.1rem;
  transition: background 0.25s, transform 0.2s;
}

.tracking-carrier-card:hover .tracking-carrier-icon {
  background: linear-gradient(145deg, #fce4ec 0%, #f3e5f5 100%);
  transform: scale(1.08);
}

.tracking-carrier-name {
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
}

.tracking-modal-note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: #999;
  text-align: center;
}

@media (max-width: 575px) {
  .tracking-modal-dialog {
    max-width: calc(100% - 1rem);
    margin: 0.5rem auto;
  }

  .tracking-carrier-grid {
    gap: 0.4rem;
  }

  .tracking-carrier-card {
    min-height: 4.5rem;
    padding: 0.65rem 0.2rem;
    border-radius: 12px;
  }

  .tracking-carrier-icon {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.95rem;
  }

  .tracking-carrier-name {
    font-size: 0.72rem;
  }
}

.footer-newsletter { background: var(--dark); }

.newsletter-box {
  background: linear-gradient(135deg, #2d2a32 0%, #5c2d4a 50%, #2d2a32 100%);
  border-radius: var(--radius-xl, 28px);
  padding: 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.newsletter-box::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(233, 30, 140, 0.25) 0%, transparent 70%);
}

.newsletter-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.newsletter-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.newsletter-desc { opacity: 0.75; margin-bottom: 0; }

.newsletter-form .form-control {
  border: none;
  padding: 14px 20px;
  border-radius: 50px 0 0 50px;
  background: rgba(255, 255, 255, 0.95);
}

.newsletter-form .btn-newsletter {
  background: linear-gradient(135deg, var(--rose, #e91e8c), #ff6b9d);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 0 50px 50px 0;
}

.newsletter-form .btn-newsletter:hover { color: #fff; }

@media (max-width: 991px) {
  .newsletter-box { padding: 2rem; }
}

.footer-connect-card {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  padding: 0.85rem 1.25rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(233, 30, 140, 0.1) 100%);
  border: 1px solid rgba(233, 30, 140, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.footer-connect-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-connect-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.footer-connect-card .social-link {
  width: 52px;
  height: 52px;
  font-size: 1.6rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-connect-card .footer-connect-extra {
  animation: footerConnectFadeIn 0.25s ease;
}

@keyframes footerConnectFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.footer-connect-card .social-link:hover {
  transform: translateY(-2px) scale(1.05);
}

.footer-connect-card .social-link--whatsapp {
  color: #25d366;
}

.footer-connect-card .social-link--whatsapp:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: rgba(37, 211, 102, 0.5);
  color: #25d366;
}

.footer-connect-card .social-link--telegram {
  color: #2aabee;
}

.footer-connect-card .social-link--telegram:hover {
  background: rgba(42, 171, 238, 0.22);
  border-color: rgba(42, 171, 238, 0.5);
  color: #2aabee;
}

.footer-connect-card .social-link--instagram {
  color: #e4405f;
}

.footer-connect-card .social-link--instagram:hover {
  background: rgba(228, 64, 95, 0.22);
  border-color: rgba(228, 64, 95, 0.5);
  color: #e4405f;
}

.footer-connect-support-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.footer-connect-support-wrap i {
  font-size: 1.05rem;
  color: var(--primary);
}

.footer-connect-label {
  font-family: 'Vazir', sans-serif;
}

.footer-connect-card .social-link--bale {
  color: #21a84a;
}

.footer-connect-card .social-link--bale img {
  display: block;
  width: 28px;
  height: 28px;
}

.footer-connect-card .social-link--bale:hover {
  background: rgba(33, 168, 74, 0.22);
  border-color: rgba(33, 168, 74, 0.5);
}

@media (max-width: 575px) {
  .footer-connect-card {
    padding: 0.8rem 1rem;
  }

  .footer-connect-row {
    gap: 0.75rem;
  }
}

/* ── Footer social block (legacy) ── */
.footer-social { margin-top: 0.25rem; }

.footer-social-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary, #e91e8c);
  margin-bottom: 0.2rem;
}

.footer-social-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
}

.footer-support-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-support-line:hover { color: var(--primary); }

.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-contact a:hover { color: var(--primary); }

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
.social-link:hover { background: var(--primary); color: #fff; }

/* ── Empty state ── */
.empty-state { padding: 4rem 1rem; }

/* ── Section titles ── */
.section-title {
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin-top: 8px;
  border-radius: 2px;
}

.section-title.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

/* ── Cart page ── */
.cart-card {
  background: #fff;
  border: 1px solid #e8e8ed;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e8e8ed;
  transition: background .15s;
}

.cart-item-row:last-child {
  border-bottom: none;
}

.cart-item-row:hover {
  background: #f8f9fa;
}

.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid #e8e8ed;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: .92rem;
  color: var(--dark);
  text-decoration: none;
  display: block;
  margin-bottom: .2rem;
}

.cart-item-name:hover {
  color: var(--primary);
}

.cart-item-price {
  font-size: .82rem;
  color: #6c757d;
}

.cart-item-qty {
  flex-shrink: 0;
}

.cart-item-total {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  min-width: 100px;
  text-align: left;
}

.cart-summary-card {
  background: #fff;
  border: 1px solid #e8e8ed;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

.cart-summary-card h5 {
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.cart-summary-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

@media (max-width: 575px) {
  .cart-item-row {
    flex-wrap: wrap;
    gap: .75rem;
  }

  .cart-item-info {
    flex: 1 1 calc(100% - 88px);
  }

  .cart-item-qty {
    order: 3;
  }

  .cart-item-total {
    order: 4;
    flex: 1;
    text-align: right;
  }
}

/* ── About ── */
.about-stat {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.about-stat .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* ── Contact ── */
.contact-info-card {
  border-radius: var(--radius);
  background: var(--primary-light);
  padding: 2rem;
}

.contact-info-card li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(214,51,132,0.15);
}

.contact-info-card li:last-child { border-bottom: none; }

/* ── Product detail ── */
.product-detail-img { height: 420px; object-fit: cover; }
.product-detail-placeholder { height: 420px; background: var(--primary-light); }
.price-box { background: var(--primary-light); }
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
}
.spec-row:last-child { border-bottom: none; }
.blog-detail-img { max-height: 420px; object-fit: cover; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .search-form { width: 100%; margin: 0.5rem 0 !important; }
  .search-form .form-control { min-width: unset; }
}

/* ══════════════════════════════════════
   Catalog Menu (saraystore-style)
   ══════════════════════════════════════ */
.btn-catalog-trigger {
  background: var(--rose-light, #fce4ef);
  color: var(--primary, #d63384);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-catalog-btn {
  color: var(--ink, #2d2a32) !important;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.75rem !important;
}

.nav-catalog-btn:hover { color: var(--primary, #d63384) !important; }

/* ── Site header ── */
.site-header {
  z-index: 1040;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.site-header-unified {
  position: relative;
  border-bottom: 1px solid #f0f0f1;
  overflow: visible;
}

.site-header-container {
  width: 100%;
  max-width: 1676px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.7rem 0 0.6rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
  color: inherit !important;
}

.site-logo-img {
  display: block;
  height: 46px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.site-logo--sm .site-logo-img {
  height: 38px;
  max-width: 160px;
}

.site-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--hero-gradient);
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 3px 12px rgba(214, 51, 132, 0.28);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.site-logo-mark::after {
  content: '';
  position: absolute;
  top: -18%;
  right: -18%;
  width: 50%;
  height: 50%;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.site-logo-mark--sm {
  width: 30px;
  height: 30px;
  font-size: 0.88rem;
  border-radius: 9px;
}

.site-logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.site-logo-name {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.site-logo-name--accent {
  color: var(--secondary);
  font-weight: 700;
}

.site-logo--sm .site-logo-mark {
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
  border-radius: 10px;
}

.site-logo--sm .site-logo-name {
  font-size: 1.08rem;
}

.header-search-form {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.header-search-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  height: 44px;
  padding: 0 1rem;
  background: #f0f0f1;
  border-radius: 8px;
  position: relative;
}

.header-search-field i {
  color: #a1a3a8;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.header-search-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  color: #3f4064;
  font-family: inherit;
}

.header-search-field input::placeholder {
  color: #a1a3a8;
}

.header-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #666;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.header-search-clear:hover {
  background: rgba(0, 0, 0, 0.14);
}

.header-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1060;
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.header-search-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-height: 420px;
  overflow-y: auto;
}

.header-search-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 118px;
  padding: 0.85rem 0.9rem;
  text-decoration: none;
  color: inherit;
  border-inline-end: 1px solid #f0f0f3;
  border-bottom: 1px solid #f0f0f3;
  transition: background 0.15s ease;
}

.header-search-item:hover {
  background: #faf5f8;
}

.header-search-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.header-search-item-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.55;
  color: #2d2a32;
}

.header-search-item-sku {
  font-size: 0.72rem;
  color: #8a8a96;
}

.header-search-item-prices {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: auto;
}

.header-search-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: #c62828;
}

.header-search-price small {
  font-size: 0.72rem;
  font-weight: 700;
}

.header-search-price-old {
  font-size: 0.72rem;
  color: #999;
  text-decoration: line-through;
}

.header-search-item-thumb {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f7;
}

.header-search-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-search-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #bbb;
  font-size: 1.2rem;
}

.header-search-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.25rem;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}

.header-search-all {
  display: block;
  padding: 0.8rem 1rem;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  border-top: 1px solid #f0f0f3;
  background: #fafafa;
}

.header-search-all:hover {
  color: var(--primary-dark);
  background: #f5f5f7;
}

@media (max-width: 1199px) {
  .header-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .header-search-results {
    grid-template-columns: 1fr;
  }
}

.site-header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid #e0e0e2;
  border-radius: 8px;
  color: #424750;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  background: #fff;
}

.header-auth-btn:hover {
  color: var(--primary);
  border-color: #d4d4d8;
}

.header-auth-btn i {
  font-size: 1.1rem;
}

.site-header-actions .dropdown-menu {
  min-width: 14rem;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid #ececf0;
}

.site-header-actions .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #3f4064;
  border-radius: 8px;
}

.site-header-actions .dropdown-item i {
  font-size: 1.15rem;
}

.site-header-actions .dropdown-divider {
  margin: 0.4rem 0;
}

.logout-form {
  margin: 0;
}

.logout-form button.dropdown-item,
.logout-form button.list-group-item {
  cursor: pointer;
  font-family: inherit;
}

.logout-form button.dropdown-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: start;
}

.logout-form button.list-group-item {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.header-auth-sep {
  color: #c0c2c5;
  font-weight: 400;
}

.header-actions-divider {
  width: 1px;
  height: 28px;
  background: #e0e0e2;
  margin: 0 1rem;
  flex-shrink: 0;
}

.header-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #424750;
  text-decoration: none;
  padding: 0.15rem 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.header-cart-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.2);
  border-radius: 8px;
}

.header-cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f0f0f1;
  border-radius: 8px;
  flex-shrink: 0;
}

.header-cart-btn i {
  font-size: 1.3rem;
  color: #3f4064;
}

.header-cart-btn:hover .header-cart-icon-wrap {
  background: #e8e8ed;
}

.header-cart-btn:hover i {
  color: var(--primary);
}

.header-cart-divider {
  width: 1px;
  height: 28px;
  background: #e0e0e2;
  flex-shrink: 0;
}

.header-cart-total {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2d2a32;
  white-space: nowrap;
}

.header-cart-total small {
  font-size: 0.78rem;
  font-weight: 600;
}

.header-cart-btn:hover {
  color: var(--primary);
}

.header-cart-btn:hover .header-cart-total {
  color: var(--primary);
}

.header-cart-btn--mobile {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.15rem;
}

.header-cart-btn--mobile .header-cart-total {
  font-size: 0.82rem;
}

.header-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid #e8e8ea;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #424750;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-support-btn i {
  font-size: 1rem;
  color: var(--primary);
}

.header-support-btn:hover {
  background: #fff;
  border-color: #d4d4d8;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-support-btn:active,
.header-support-btn:focus,
.header-support-btn:focus-visible {
  background: rgba(255, 255, 255, 0.62);
  border-color: #e0e0e2;
  color: #424750;
  box-shadow: none;
  outline: none;
}

.header-support-btn:active i,
.header-support-btn:focus i,
.header-support-btn:focus-visible i {
  color: var(--primary);
}

.header-support-btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

.site-header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.site-header-tools .search-form {
  margin: 0;
}

.site-header-tools .search-form .form-control {
  min-width: 200px;
  max-width: 260px;
}

.header-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  color: #444;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
}

.header-tool-btn:hover {
  color: var(--primary);
  background: #faf5f8;
}

.header-tool-btn i {
  font-size: 1.2rem;
}

.header-tool-btn.cart-link i {
  font-size: 1.6rem;
}

.header-tool-btn.cart-link {
  padding: 0.25rem 0.55rem;
}

/* ── Horizontal category nav ── */
.horiz-cat-nav {
  position: relative;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.horiz-cat-nav--bar {
  border-top: 1px solid #f0f0f1;
  padding: 0.45rem 0 0.15rem;
}

.horiz-cat-nav-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  display: flex;
  justify-content: center;
}

.horiz-cat-nav-scroll::-webkit-scrollbar {
  display: none;
}

.horiz-cat-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: max-content;
  min-width: 100%;
}

.horiz-cat-item {
  position: relative;
  flex: 0 0 auto;
}

.horiz-cat-item.is-active > .horiz-cat-link {
  background: #faf5f8;
  color: var(--primary);
}

.horiz-cat-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
  color: #3f4064;
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.horiz-cat-link:hover,
.horiz-cat-item:hover > .horiz-cat-link {
  background: #faf5f8;
  color: var(--primary);
}

.horiz-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.horiz-cat-nav .horiz-cat-link > .horiz-cat-icon {
  position: relative;
  right: -4px;
}

.horiz-cat-icon-0 { background: #fce4ef; color: #e91e8c; }
.horiz-cat-icon-1 { background: #f3e5f9; color: #9c27b0; }
.horiz-cat-icon-2 { background: #fce4ec; color: #d81b60; }
.horiz-cat-icon-3 { background: #e0f7fa; color: #00acc1; }
.horiz-cat-icon-4 { background: #e8f5e9; color: #43a047; }
.horiz-cat-icon-5 { background: #ffebee; color: #e53935; }
.horiz-cat-icon-6 { background: #e3f2fd; color: #1e88e5; }
.horiz-cat-icon-7 { background: #fff3e0; color: #fb8c00; }
.horiz-cat-icon-brands { background: #fff8e1; color: #f9a825; }
.horiz-cat-icon-sale { background: #ffebee; color: #e53935; }

.horiz-cat-label {
  flex-shrink: 0;
}

.horiz-cat-chevron {
  font-size: 0.72rem;
  color: #bbb;
  flex-shrink: 0;
}

.horiz-cat-link-sale {
  font-size: 1.02rem;
  font-weight: 800;
  color: #c62828;
  gap: 0.12rem;
  padding: 0.5rem 0.95rem;
  margin-inline-end: 0.15rem;
}

.horiz-cat-link-sale .horiz-cat-icon {
  width: 34px;
  height: 34px;
  font-size: 1.05rem;
  right: 2px;
}

.horiz-cat-link-sale:hover,
.horiz-cat-item:hover > .horiz-cat-link-sale {
  color: #e53935;
  background: #fff5f5;
}

@media (min-width: 1200px) {
  .site-header-container {
    padding: 0 2rem;
  }

  .header-search-form {
    max-width: 900px;
  }

  .horiz-cat-link {
    font-size: 0.96rem;
    padding: 0.45rem 0.7rem;
  }

  .horiz-cat-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* Mega dropdown panels */
.horiz-mega-panels {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
}

.horiz-mega-panel {
  display: none;
  position: relative;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  max-height: 70vh;
  overflow-y: auto;
}

.horiz-mega-panel.is-open {
  display: block;
}

.horiz-mega-inner {
  padding: 1.5rem 0 0.75rem;
}

.horiz-mega-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem 2rem;
}

.horiz-mega-branches {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.85rem;
}

.horiz-mega-branch {
  flex: 0 0 auto;
  width: auto;
  min-width: 176px;
  max-width: 210px;
}

.horiz-mega-branches:empty {
  display: none;
}

.horiz-mega-leaf-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  align-content: flex-start;
  width: min(100%, 28rem);
  margin: 0;
  gap: 0.85rem;
}

.horiz-mega-leaf-grid .horiz-mega-branch--leaf {
  flex: 0 0 calc(50% - 0.45rem);
  width: calc(50% - 0.45rem);
  max-width: calc(50% - 0.45rem);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.horiz-mega-col {
  margin-bottom: 0;
  height: 100%;
  padding: 0.9rem 1rem 1rem;
  background: #fafafa;
  border: 1px solid #e8e8ed;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.horiz-mega-branch:hover .horiz-mega-col {
  border-color: #f3d0e2;
  box-shadow: 0 4px 16px rgba(214, 51, 132, 0.08);
}

.horiz-mega-branch--leaf .horiz-mega-col {
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.horiz-mega-branch--leaf .horiz-mega-heading {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
}

.horiz-mega-heading {
  display: block;
  font-weight: 500;
  font-size: 1.05rem;
  color: #2d2a32;
  text-decoration: none;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #f3d0e2;
}

.horiz-mega-heading:hover { color: var(--primary); }

.horiz-mega-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.horiz-mega-list a {
  display: block;
  padding: 5px 0;
  font-size: 0.98rem;
  font-weight: 400;
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}

.horiz-mega-list a:hover {
  color: var(--primary);
}

.horiz-mega-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid #ececf1;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.horiz-mega-all:hover {
  color: var(--primary-dark);
}

.horiz-mega-foot {
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid #f0f0f0;
}

.horiz-mega-foot a {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.horiz-mega-foot a:hover { color: var(--primary-dark); }

.horiz-brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.horiz-brand-chip {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  color: #2d2a32;
  text-decoration: none;
  transition: all 0.15s;
}

.horiz-brand-chip:hover {
  background: #fce4ef;
  border-color: var(--primary);
  color: var(--primary);
}

.horiz-mega-panel-sm .horiz-mega-inner {
  padding: 1.35rem 0 0.85rem;
}

/* Desktop mega menu (legacy / offcanvas) */
.navbar .dropdown-mega { position: static; }

.mega-menu-dropdown {
  width: 100%;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  top: 100% !important;
  border: none;
  border-top: 1px solid #f0f0f0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  margin-top: 0;
  padding: 0;
  max-height: 75vh;
  overflow-y: auto;
  z-index: 1030;
}

.navbar { z-index: 1040; }

/* ── Mobile header layout ── */
.mobile-header.navbar {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.mobile-header .mobile-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.mobile-header .site-logo--icon-only {
  justify-self: start;
  margin: 0;
  padding: 0;
}

.mobile-header-menu-btn {
  justify-self: center;
  margin: 0;
  padding: 0.35rem 0.5rem;
}

.mobile-header .header-cart-btn--icon-only {
  justify-self: end;
  padding: 0.35rem;
  text-decoration: none;
  color: #2d2a32;
}

.mobile-header .header-cart-btn--icon-only .header-cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.mobile-header .header-cart-btn--icon-only i {
  font-size: 1.35rem;
}

.mobile-header-collapse {
  grid-column: 1 / -1;
  overflow: visible;
}

@media (max-width: 991.98px) {
  .mobile-header .mobile-header-collapse.collapse:not(.show) {
    display: none !important;
  }

  .mobile-header .mobile-header-collapse.collapse.show,
  .mobile-header .mobile-header-collapse.collapsing {
    display: block !important;
  }

  .mobile-header .mobile-header-collapse .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin-top: 0.25rem;
    border: 1px solid #f0f0f0;
    box-shadow: none;
    padding: 0.45rem;
    border-radius: 12px;
  }

  .mobile-header .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
  }

  .mobile-header .dropdown-item i {
    font-size: 1.15rem;
  }
}

.mobile-menu-auth-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--primary) !important;
}

.mobile-menu-auth-link i {
  font-size: 1.1rem;
}

.mega-menu-inner {
  padding: 1.75rem 0 0;
}

.mega-menu-col { margin-bottom: 0.5rem; }

.mega-menu-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #2d2a32;
  text-decoration: none;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #fce4ef;
}

.mega-menu-heading i {
  color: #c41e3a;
  font-size: 1.1rem;
}

.mega-menu-heading:hover { color: #c41e3a; }

.mega-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-list > li > a {
  display: block;
  padding: 4px 0;
  font-size: 0.84rem;
  color: #666;
  text-decoration: none;
  transition: color 0.15s;
}

.mega-menu-list > li > a:hover { color: #c41e3a; }

.mega-menu-group { margin-bottom: 0.6rem; }

.mega-menu-subhead {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #444;
  margin-bottom: 2px;
}

.mega-menu-sublist {
  list-style: none;
  padding: 0 0.75rem 0 0;
  margin: 0 0 0.25rem;
}

.mega-menu-sublist a {
  display: block;
  padding: 2px 0;
  font-size: 0.78rem;
  color: #888;
  text-decoration: none;
}

.mega-menu-sublist a:hover { color: #c41e3a; }

.mega-menu-footer-bar {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.mega-menu-footer-bar a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-menu-footer-bar a:hover { color: #c41e3a; }
.mega-menu-footer-bar a i { color: #c41e3a; }

.catalog-offcanvas {
  width: min(340px, 92vw) !important;
  border: none;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.catalog-offcanvas-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 1rem 1.25rem;
}

.catalog-offcanvas-header .offcanvas-title {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-search {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.catalog-search .form-control {
  border: 1px solid #e8e8e8;
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  padding: 10px 14px;
}

.catalog-search-btn {
  background: #c41e3a;
  color: #fff;
  border: none;
  border-radius: 10px 0 0 10px;
  padding: 0 16px;
}

.catalog-search-btn:hover { background: #a01830; color: #fff; }

.catalog-nav { padding: 0; }

.catalog-group { border-bottom: 1px solid #f0f0f0; }

.catalog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.catalog-row:hover { background: #faf5f7; }

.catalog-row-start {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fce4ef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c41e3a;
  font-size: 1rem;
  flex-shrink: 0;
}

.catalog-row-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2d2a32;
}

.catalog-toggle-btn {
  width: 32px;
  height: 32px;
  background: #c41e3a;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.catalog-row-toggle[aria-expanded="true"] .catalog-toggle-btn {
  transform: rotate(180deg);
}

.catalog-row-link {
  text-decoration: none;
  color: inherit;
}

.catalog-chevron-link {
  color: #ccc;
  font-size: 0.85rem;
}

.catalog-children { background: #fff; }

.catalog-sub-accordion { border-top: 1px solid #f5f5f5; }

.catalog-sub-accordion > .catalog-row {
  padding-right: 2rem;
  background: #fefefe;
}

.catalog-sub-accordion .catalog-toggle-btn {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

.catalog-leaf,
.catalog-sub-leaf {
  display: block;
  padding: 12px 1.25rem 12px 2.5rem;
  color: #555;
  text-decoration: none;
  font-size: 0.88rem;
  border-top: 1px solid #f8f8f8;
  transition: color 0.15s, background 0.15s;
}

.catalog-sub-leaf { padding-right: 3.5rem; }

.catalog-leaf:hover,
.catalog-sub-leaf:hover {
  color: #c41e3a;
  background: #fff5f8;
}

.catalog-menu-footer {
  border-top: 1px solid #f0f0f0;
  margin-top: 0.5rem;
}

.catalog-footer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 1.25rem;
  text-decoration: none;
  color: #2d2a32;
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
}

.catalog-footer-item:hover { background: #faf5f7; color: #c41e3a; }
.catalog-footer-item i:first-child { font-size: 1.1rem; color: #888; }
.catalog-footer-item .bi-chevron-left { margin-right: auto; color: #ccc; font-size: 0.8rem; }

.catalog-footer-sale .bi-percent { color: #c41e3a !important; }

.badge-sale-mini {
  background: #c41e3a;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  margin-right: auto;
}

/* Sidebar nested catalog */
.catalog-sidebar-nav { max-height: 70vh; overflow-y: auto; }

.catalog-sidebar-all {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.catalog-sidebar-all.active,
.catalog-sidebar-all:hover { color: #c41e3a; background: #fff5f8; }

.catalog-sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f8f8f8;
  transition: background 0.15s;
}

.catalog-sidebar-toggle:hover { background: #faf5f7; }
.catalog-sidebar-toggle.active { color: #c41e3a; }

.catalog-sidebar-link { text-decoration: none; }

.catalog-sidebar-children { background: #fafafa; }

.catalog-sidebar-mid,
.catalog-sidebar-leaf {
  display: block;
  padding: 8px 16px 8px 28px;
  font-size: 0.82rem;
  color: #666;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.catalog-sidebar-leaf { padding-right: 40px; }

.catalog-sidebar-mid.active,
.catalog-sidebar-leaf.active,
.catalog-sidebar-mid:hover,
.catalog-sidebar-leaf:hover { color: #c41e3a; background: #fff; }

.catalog-sidebar-subtoggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 8px 28px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #444;
  cursor: pointer;
}

.catalog-sidebar-subtoggle:hover { color: #c41e3a; }

.toggle-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

[aria-expanded="true"] .toggle-arrow { transform: rotate(180deg); }

/* ── Header support modal ── */
.support-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.support-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.support-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.support-modal-dialog {
  position: relative;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-modal.open .support-modal-dialog {
  transform: translateY(0) scale(1);
}

.support-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: var(--hero-gradient);
  color: #fff;
}

.support-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-modal-info {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.support-modal-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0;
}

.support-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.support-modal-close:hover {
  background: rgba(255, 255, 255, 0.34);
}

.support-modal-body {
  padding: 22px 20px 24px;
  background: #fff;
}

.support-modal-lead {
  color: #8b5a7a;
  font-size: 0.92rem;
  margin-bottom: 18px;
  text-align: center;
  line-height: 1.75;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 92px;
  padding: 16px 12px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(214, 51, 132, 0.14);
}

.support-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(214, 51, 132, 0.22);
  color: #fff;
}

.support-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1;
}

.support-card-icon img {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

.support-card-whatsapp {
  background: linear-gradient(135deg, #3ddc84 0%, #25d366 100%);
}

.support-card-telegram {
  background: linear-gradient(135deg, #b388ff 0%, #7c4dff 55%, #64b5f6 100%);
}

.support-card-bale {
  background: linear-gradient(135deg, #69f0ae 0%, #21a84a 100%);
}

body.support-modal-open {
  overflow: hidden;
}

@media (max-width: 575px) {
  .header-support-btn span {
    display: none;
  }

  .header-support-btn {
    padding: 0.55rem 0.7rem;
  }

  .support-modal-dialog {
    border-radius: 20px;
  }

  .support-card {
    min-height: 80px;
    padding: 14px 8px;
    font-size: 0.82rem;
  }

  .support-card-icon {
    font-size: 1.5rem;
  }

  .support-card-icon img {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* ── Auth modal ── */
body.auth-modal-open { overflow: hidden; }

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(26, 26, 46, .42);
  opacity: 0;
  transition: opacity .22s ease;
}
.auth-modal-backdrop.is-visible { opacity: 1; }

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}
.auth-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.auth-modal-panel {
  position: relative;
  width: min(100%, 480px);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(214, 51, 132, .2);
  border: 1px solid rgba(214, 51, 132, .06);
}

.auth-modal-close {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #9a9aaa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.auth-modal-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.auth-modal-body {
  padding: 2.5rem 2.25rem 1.75rem;
}

.auth-modal-step {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-modal-head {
  text-align: center;
}

.auth-modal-heading {
  margin: 0 0 .6rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark, #1a1a2e);
  line-height: 1.45;
}

.auth-modal-subtitle {
  margin: 0;
  font-size: 1rem;
  color: #8a8a9a;
  line-height: 1.7;
}

.auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.auth-modal-form--inline {
  margin-top: -.5rem;
}

.auth-modal-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.auth-modal-label {
  font-size: .95rem;
  font-weight: 600;
  color: #8a8a9a;
  margin: 0;
}

.auth-modal-input {
  width: 100%;
  padding: 1rem 1.15rem;
  border: 1.5px solid #e8dce6;
  border-radius: 16px;
  background: #fff;
  color: var(--dark, #1a1a2e);
  font-size: 1.1rem;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.auth-modal-field input[name="code"] {
  font-size: 1.75rem;
  letter-spacing: .3em;
  padding: 1.15rem 1rem;
}

.auth-modal-input::placeholder {
  color: #b8b8c6;
}

.auth-modal-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(214, 51, 132, .12);
}

.auth-modal-input--filled {
  background: #fdf5f9;
  border-color: transparent;
}

.auth-modal-input--filled:focus {
  background: #fff;
  border-color: var(--primary);
}

.auth-modal-password-wrap {
  position: relative;
}

.auth-modal-password-wrap .auth-modal-input {
  padding-left: 2.75rem;
}

.auth-modal-password-toggle {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #9a9aaa;
  padding: .25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-password-toggle:hover {
  color: var(--primary);
}

.auth-modal-terms {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 0;
  font-size: .92rem;
  color: #8a8a9a;
  line-height: 1.65;
  cursor: pointer;
}

.auth-modal-terms-check {
  margin-top: .2rem;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.auth-modal-terms a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-modal-btn {
  width: 100%;
  margin-top: .35rem;
  padding: 1.05rem 1.15rem;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #e84393 0%, var(--primary) 55%, #c2185b 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, opacity .15s ease;
  box-shadow: 0 8px 22px rgba(214, 51, 132, .28);
}

.auth-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(214, 51, 132, .34);
}

.auth-modal-btn:active {
  transform: translateY(0);
}

.auth-modal-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.auth-modal-foot {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding-top: .25rem;
}

.auth-modal-foot--center {
  justify-content: center;
}

.auth-modal-foot--split {
  justify-content: space-between;
  gap: .75rem;
}

.auth-modal-foot-text {
  font-size: .95rem;
  color: #8a8a9a;
}

.auth-modal-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.auth-modal-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-modal-link--block {
  display: block;
  width: 100%;
  text-align: center;
}

.auth-modal-error {
  font-size: .88rem;
  color: #c0392b;
  line-height: 1.5;
}

.auth-modal-hint {
  font-size: .85rem;
  color: #9a9aaa;
  line-height: 1.5;
}

.auth-modal-hint ul {
  margin: .25rem 0 0;
  padding-right: 1rem;
}

.header-auth-btn.auth-modal-trigger {
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: inherit;
}

@media (max-width: 420px) {
  .auth-modal-body {
    padding: 2rem 1.5rem 1.5rem;
  }

  .auth-modal-heading {
    font-size: 1.3rem;
  }

  .auth-modal-subtitle {
    font-size: .95rem;
  }

  .auth-modal-input {
    font-size: 1.05rem;
  }

  .auth-modal-field input[name="code"] {
    font-size: 1.55rem;
  }

  .auth-modal-foot--split {
    flex-direction: column;
    align-items: center;
    gap: .5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-modal, .auth-modal-backdrop, .auth-modal-btn { transition: none; }
}

