/* ==========================================================================
   Matrix VPN Shop (فروشگاه متریکس)
   AutoLatch-Inspired Minimalist RTL Stylesheet
   ========================================================================== */

:root {
  --bg-page: #FFFFFF;
  --bg-hero-band: #F8F8FA;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F7F7F9;
  --text-primary: #111113;
  --text-secondary: #52525B;
  --text-muted: #71717A;
  --border-light: #EAEAEF;
  --border-card: #EDEDEF;
  --accent-orange: #F97316;
  --accent-orange-hover: #EA580C;
  --accent-gold-outline: #E89547;
  --heart-red: #F43F5E;
  --telegram-blue: #0088CC;
  --telegram-dark: #0F172A;
  --radius-card: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 30px rgba(17, 17, 19, 0.045), 0 1px 3px rgba(17, 17, 19, 0.03);
  --shadow-card-hover: 0 18px 42px rgba(17, 17, 19, 0.085), 0 4px 12px rgba(17, 17, 19, 0.04);
  --font-fa: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Plus Jakarta Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-fa);
  background-color: var(--bg-page);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   HEADER (Mirrors AutoLatch Navbar in RTL)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
}

/* Right Side: Minimal Logo "متريکس" (Matrix) */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  user-select: none;
}

.brand-slashes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 2px;
}

.brand-slashes .slash {
  display: inline-block;
  width: 4.5px;
  height: 20px;
  border-radius: 2px;
  transform: skewX(-18deg);
}

.brand-slashes .slash-primary {
  background: linear-gradient(180deg, #FB923C 0%, #EA580C 100%);
}

.brand-slashes .slash-secondary {
  background: linear-gradient(180deg, #F43F5E 0%, #EA580C 100%);
  opacity: 0.85;
}

.brand-text {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

.brand-sub {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: #F4F4F6;
  padding: 2px 7px;
  border-radius: 6px;
  margin-right: 2px;
}

/* Center: Navigation Menu */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 800;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
}

/* Left Side: Header Actions (Heart, Cart, Orange/Gold Outline Login Button) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.icon-btn:hover {
  background-color: #F4F4F6;
  transform: translateY(-1px);
}

.cart-badge,
.badge-dot {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background-color: var(--accent-orange);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #FFFFFF;
}

.badge-dot[hidden] {
  display: none !important;
}

.btn-auth-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 11px;
  border: 1.5px solid var(--accent-gold-outline);
  background-color: #FFFFFF;
  color: #D97706;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.2s ease;
  margin-right: 4px;
}

.btn-auth-outline:hover {
  background-color: #FFF7ED;
  border-color: var(--accent-orange);
  color: var(--accent-orange-hover);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.mobile-nav-drawer {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 14px 28px 20px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-nav-link.active {
  background: #FFF7ED;
  color: var(--accent-orange-hover);
}

/* ==========================================================================
   HERO GIANT TITLE ("فروشگاه" - AutoLatch Half-Cropped Display Band Style)
   ========================================================================== */
.shop-hero {
  background: linear-gradient(180deg, #FAFAFC 0%, #F4F4F7 100%);
  border-bottom: 1px solid #EAECEF;
  padding-top: 38px;
  padding-bottom: 0;
  overflow: hidden;
  text-align: center;
}

.hero-title-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.shop-giant-title {
  font-size: clamp(3.6rem, 8vw, 6.4rem);
  font-weight: 900;
  color: #0D0D0F;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: -8px;
  user-select: none;
}

/* ==========================================================================
   MAIN SHOP LAYOUT (Right Sidebar Filters + Left 3-Column Product Grid)
   ========================================================================== */
.shop-main {
  background-color: var(--bg-page);
  padding: 46px 0 64px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 265px 1fr;
  gap: 38px;
  align-items: start;
}

/* ==========================================================================
   RIGHT SIDEBAR: FILTERS & TELEGRAM BOX
   ========================================================================== */
.shop-sidebar {
  position: sticky;
  top: 102px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #9A3412;
  font-weight: 600;
}

.filter-status-bar[hidden] {
  display: none !important;
}

.btn-reset-filters {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-orange-hover);
  text-decoration: underline;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 0;
  text-align: right;
  color: var(--text-primary);
}

.filter-group-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
}

.chevron-icon {
  color: var(--text-secondary);
  transition: transform 0.25s ease;
}

.filter-group-header[aria-expanded="false"] .chevron-icon {
  transform: rotate(180deg);
}

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

.filter-options[hidden] {
  display: none !important;
}

/* AutoLatch style row: Label on the start side (Right in RTL), Checkbox on the end side (Left in RTL) */
.filter-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 3px 0;
  user-select: none;
  transition: color 0.15s ease;
}

.filter-label-text {
  font-size: 0.94rem;
  font-weight: 500;
  color: #3F3F46;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.filter-checkbox-row:hover .filter-label-text {
  color: var(--text-primary);
}

.filter-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.6px solid #D4D4D8;
  background-color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.filter-checkbox-row:hover .custom-checkbox {
  border-color: #A1A1AA;
}

.filter-input:checked ~ .custom-checkbox {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.28);
}

.filter-input:checked ~ .custom-checkbox::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #FFFFFF;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.filter-input:checked + .custom-checkbox,
.filter-checkbox-row:has(.filter-input:checked) .filter-label-text {
  color: var(--text-primary);
  font-weight: 700;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 4px 0;
}

/* Eye-Catching Telegram Box inside Sidebar */
.telegram-sidebar-card {
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
  border-radius: 20px;
  padding: 18px 16px;
  color: #FFFFFF;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.22);
  position: relative;
  overflow: hidden;
}

.telegram-sidebar-card::before {
  content: '';
  position: absolute;
  top: -35px;
  left: -35px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.tg-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tg-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.tg-card-heading {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tg-card-heading h3 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #F8FAFC;
}

.tg-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.tg-links-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tg-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: #E2E8F0;
  transition: all 0.2s ease;
}

.tg-contact-row:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.tg-row-icon {
  color: #38BDF8;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.tg-row-text {
  line-height: 1.45;
  word-break: break-all;
}

.tg-row-text strong {
  color: #38BDF8;
  font-family: var(--font-en);
  font-weight: 700;
}

/* ==========================================================================
   LEFT AREA: 3-COLUMN PRODUCT GRID (AutoLatch Rounded Cards)
   ========================================================================== */
.products-section {
  width: 100%;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Shared Product Card Base */
.product-card {
  position: relative;
  border-radius: var(--radius-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 395px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.25s ease;
}

/* White Product Plan Cards (Matches clean white/off-white rounded card specification) */
.card-plan {
  background-color: #FFFFFF;
  border: 1.5px solid #EFEFF3;
  box-shadow: var(--shadow-card);
}

.card-plan:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: #E2E2E9;
}

/* Card 1: Special Dark Gradient Promo Card (Matches AutoLatch black/amber gradient card) */
.card-custom-promo {
  background:
    radial-gradient(125% 95% at 85% 90%, rgba(217, 119, 6, 0.48) 0%, rgba(120, 53, 15, 0.26) 42%, rgba(12, 12, 14, 0) 75%),
    radial-gradient(90% 80% at 20% 25%, rgba(249, 115, 22, 0.18) 0%, transparent 65%),
    linear-gradient(165deg, #09090B 0%, #14110F 55%, #27170B 100%);
  color: #FFFFFF;
  border: 1px solid rgba(251, 146, 60, 0.24);
  box-shadow: 0 18px 40px rgba(15, 12, 10, 0.22);
  text-align: center;
  align-items: center;
  overflow: hidden;
}

.card-custom-promo:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(234, 88, 12, 0.22);
}

.promo-top-bar {
  width: 100%;
  display: flex;
  justify-content: center !important;
}

.promo-center-content {
  margin: auto 0;
  padding: 18px 6px;
  z-index: 1;
}

.promo-headline {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.42;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.promo-subtext {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 220px;
  margin: 0 auto;
  line-height: 1.6;
}

.promo-bottom-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 4px;
  z-index: 1;
}

.btn-orange-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FB923C 0%, #F97316 55%, #EA580C 100%);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.36);
  transition: all 0.2s ease;
}

.btn-orange-cta:hover {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.48);
}

/* Card Top Row: Badge on Right, Cart & Heart Icons on Left */
.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 2;
}

/* Pill Badges */
.pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tag-dark-glass {
  background: rgba(255, 255, 255, 0.11);
  color: #F4F4F5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.tag-gold {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #92400E;
  border: 1px solid #F59E0B;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.tag-silver {
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
  color: #334155;
  border: 1px solid #CBD5E1;
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.12);
}

.tag-bronze {
  background: linear-gradient(135deg, #FFEDD5 0%, #FED7AA 100%);
  color: #9A3412;
  border: 1px solid #EA580C;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.14);
}

.tag-special {
  background: #FFFFFF;
  color: #18181B;
  border: 1px solid #D4D4D8;
}

.tag-unlimited {
  background: #F0FDFA;
  color: #0F766E;
  border: 1px solid #99F6E4;
}

/* Card Top-Left Action Buttons (Cart & Wishlist Heart) */
.card-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.card-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid #E4E4E7;
  color: #27272A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.card-icon-btn:hover {
  border-color: #A1A1AA;
  transform: scale(1.06);
}

.btn-add-cart:hover {
  background-color: #FFF7ED;
  border-color: var(--accent-orange);
  color: var(--accent-orange-hover);
}

.btn-wishlist.is-favorited {
  color: var(--heart-red);
  border-color: #FECDD3;
  background-color: #FFF1F2;
}

/* Product Visual Area (Minimal 3D Security Shield) */
.product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 8px;
  margin: auto 0;
}

.shield-3d-wrap {
  position: relative;
  width: 158px;
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-plan:hover .shield-3d-wrap {
  transform: translateY(-4px) scale(1.04);
}

.shield-3d-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Bottom Product Info & Pricing */
.card-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #F4F4F6;
}

.product-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.device-chip {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #F6F6F8;
  padding: 2px 8px;
  border-radius: 6px;
}

.product-title {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
}

.product-pricing-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.price-per-gb {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.price-per-gb span {
  font-weight: 700;
  color: #27272A;
}

.price-unlimited {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}

.price-underline {
  font-size: 1.04rem;
  font-weight: 900;
  color: #111113;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent-orange);
}

/* Empty State */
.empty-filter-state {
  text-align: center;
  padding: 56px 24px;
  background: #FAFAFC;
  border: 1.5px dashed #E4E4E7;
  border-radius: var(--radius-card);
}

.empty-filter-state p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ==========================================================================
   TELEGRAM CONTACT & CHANNEL BANNER (Bottom Eye-Catching Section)
   ========================================================================== */
.telegram-banner-section {
  padding: 12px 0 64px;
}

.telegram-banner-box {
  background: linear-gradient(135deg, #0B1120 0%, #111827 55%, #1E293B 100%);
  border-radius: 28px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #FFFFFF;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.24);
  position: relative;
  overflow: hidden;
}

.telegram-banner-box::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.tg-banner-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tg-banner-badge {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.38);
}

.tg-banner-copy h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: #FFFFFF;
}

.tg-banner-copy p {
  font-size: 0.9rem;
  color: #CBD5E1;
}

.tg-banner-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 340px;
  z-index: 1;
}

.tg-info-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tg-pill-primary {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #F8FAFC;
}

.tg-pill-primary:hover {
  background: rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

.tg-pill-primary strong {
  color: #38BDF8;
  font-family: var(--font-en);
  font-weight: 800;
}

.tg-pill-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
}

.tg-pill-secondary:hover {
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.45);
  transform: translateY(-2px);
}

.tg-pill-secondary strong {
  color: #FB923C;
  font-family: var(--font-en);
  font-weight: 700;
}

/* ==========================================================================
   MINIMAL FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 26px 0;
  background: #FAFAFC;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-right: 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.dot-sep {
  color: #D4D4D8;
}

/* ==========================================================================
   MODALS & TOAST NOTIFICATION
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-dialog {
  width: 100%;
  max-width: 460px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-light);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F4F4F6;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: #E4E4E7;
  color: var(--text-primary);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid #E4E4E7;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-primary);
  background: #FAFAFC;
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-orange);
  background: #FFFFFF;
}

.range-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.range-label-row strong {
  color: var(--accent-orange-hover);
  font-size: 0.95rem;
}

.range-slider {
  width: 100%;
  accent-color: var(--accent-orange);
  cursor: pointer;
}

.range-hints {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.custom-calc-summary {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-calc-summary span {
  font-size: 0.88rem;
  font-weight: 600;
  color: #9A3412;
}

.custom-calc-summary strong {
  font-size: 1.1rem;
  font-weight: 900;
  color: #C2410C;
}

.modal-footer {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-full {
  width: 100%;
}

.btn-tg-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid #0284C7;
  color: #0284C7;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.btn-tg-outline:hover {
  background: #F0F9FF;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #FAFAFC;
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.cart-item-price {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.cart-remove-btn {
  color: #EF4444;
  font-size: 0.78rem;
  font-weight: 700;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 1rem;
}

.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 300;
  background: #18181B;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  border-right: 4px solid var(--accent-orange);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablet & Mobile Breakpoints)
   ========================================================================== */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telegram-banner-box {
    flex-direction: column;
    align-items: stretch;
  }

  .tg-banner-details {
    min-width: 0;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .shop-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .shop-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    height: 68px;
  }

  .brand-sub {
    display: none;
  }

  .btn-auth-outline {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .shop-giant-title {
    font-size: 3.2rem;
    margin-bottom: -4px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 360px;
  }

  .telegram-banner-box {
    padding: 22px 18px;
  }

  .tg-banner-right {
    flex-direction: column;
    align-items: flex-start;
  }
}
