/* ==============================================================================
   EasyMobile.ir — Clean Modern Tech Storefront Stylesheet
   Matches Flagship Reference UI (Apple/Samsung Aesthetic)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --color-primary: #0f2942;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-orange: #ea580c;
  --color-text-dark: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #f1f5f9;
  --color-border-hover: #cbd5e1;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.1);
  --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-fa: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-en), var(--font-fa);
  background-color: var(--bg-body);
  color: var(--color-text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ==============================================================================
   Top Ecosystem Bar
   ============================================================================== */
.top-announcement-bar {
  background: #0b132b;
  color: #e2e8f0;
  font-size: 0.78rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.badge-coin {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #000;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.announcement-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.announcement-link {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.announcement-link:hover {
  color: #ffffff;
}

.sep {
  color: #475569;
}

/* ==============================================================================
   Site Navigation Header
   ============================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 32px;
  height: 32px;
}

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

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

.nav-item {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  width: 240px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #94a3b8;
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  outline: none;
  transition: all 0.2s;
}

.search-box input:focus {
  background: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.action-icon-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.action-icon-btn svg {
  width: 19px;
  height: 19px;
}

.action-icon-btn:hover {
  background: #f1f5f9;
  color: var(--color-primary);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #2563eb;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.keyone-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.keyone-pill:hover {
  background: #fef3c7;
  border-color: #f59e0b;
}

.coin-amount {
  font-weight: 800;
  font-size: 0.85rem;
  color: #b45309;
}

.coin-label {
  font-size: 0.72rem;
  color: #92400e;
}

.signin-btn {
  background: transparent;
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.signin-btn:hover {
  border-color: var(--color-primary);
  background: #f8fafc;
}

/* ==============================================================================
   Hero Section
   ============================================================================== */
.hero-section {
  padding: 45px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  gap: 30px;
}

.hero-tag {
  display: inline-block;
  color: var(--color-orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.hero-heading {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text-dark);
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-subtext {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 440px;
  margin-bottom: 26px;
}

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

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(15, 41, 66, 0.25);
}

.btn-primary:hover {
  background: #153a5c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 41, 66, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border-hover);
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: #f8fafc;
}

/* Hero Visual Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  max-width: 480px;
  width: 100%;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: floatBounce 4s ease-in-out infinite;
}

.badge-free-delivery {
  bottom: 25%;
  left: -15px;
}

.badge-best-price {
  top: 15%;
  right: -10px;
  animation-delay: -1.5s;
}

.badge-warranty {
  bottom: 12%;
  right: 15px;
  animation-delay: -3s;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ==============================================================================
   Floating Category Filter Pills Bar
   ============================================================================== */
.category-pills-bar {
  background: #ffffff;
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  margin: 25px 0 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-pills-bar::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s;
}

.cat-pill:hover {
  background: #f1f5f9;
  color: var(--color-primary);
}

.cat-pill.active {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

/* ==============================================================================
   Latest Arrivals Section & 4-Column Grid
   ============================================================================== */
.products-section {
  padding: 10px 0 40px;
}

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

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-text-dark);
}

.view-all-link {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: var(--color-accent-hover);
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #ffedd5;
  color: #ea580c;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.product-thumb-wrapper {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 10px;
}

.product-thumb {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-thumb {
  transform: scale(1.05);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-specs {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.price-group {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-dark);
}

.price-unit {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.cart-action-btn {
  background: #1e3a8a;
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-action-btn svg {
  width: 16px;
  height: 16px;
}

.cart-action-btn:hover {
  background: #2563eb;
  transform: scale(1.06);
}

.rating-stars {
  color: #f59e0b;
  font-size: 0.75rem;
  margin-top: 6px;
  letter-spacing: 1px;
}

.keyone-discount-hint {
  margin-top: 8px;
  padding: 4px 8px;
  background: #fffbeb;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #b45309;
}

/* ==============================================================================
   Ecosystem Banner
   ============================================================================== */
.ecosystem-banner {
  margin: 30px auto 50px;
}

.ecosystem-card {
  background: linear-gradient(135deg, #0f2942 0%, #0b192c 100%);
  border-radius: 20px;
  padding: 32px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 25px;
  align-items: center;
  box-shadow: 0 15px 35px rgba(15, 41, 66, 0.15);
}

.eco-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(37, 99, 235, 0.5);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.eco-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.eco-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.eco-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.eco-btn-game {
  background: #f59e0b;
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s;
}

.eco-btn-game:hover {
  background: #fbbf24;
  transform: translateY(-2px);
}

.eco-btn-calc {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.eco-stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ==============================================================================
   Site Footer
   ============================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 45px 0 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

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

.btn-dyo-footer {
  margin-top: 12px;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ==============================================================================
   Modals & Shopping Cart & Product Detail Showcase
   ============================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card,
.modal-window {
  background: #ffffff;
  border-radius: 24px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(226, 232, 240, 0.8);
  transform: scale(0.94) translateY(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-card,
.modal-overlay.active .modal-window {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.close-modal-btn,
.modal-close-btn {
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #64748b;
  transition: all 0.2s ease;
}

.close-modal-btn:hover,
.modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

/* Shopping Cart Items List */
.cart-items-container,
.cart-items-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 14px 24px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
}

.cart-item-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 10px;
  padding: 4px;
  border: 1px solid #e2e8f0;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.82rem;
  color: #2563eb;
  font-weight: 700;
}

/* Coin Voucher Box inside Cart */
.coin-voucher-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 14px 18px;
  margin: 12px 24px;
}

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

.coin-badge-glow {
  background: #f59e0b;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 2px 10px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.coin-slider {
  width: 100%;
  accent-color: #f59e0b;
  cursor: pointer;
  margin: 6px 0;
}

.voucher-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #92400e;
  margin-top: 4px;
}

/* Cart Summary & Checkout */
.cart-summary {
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px 18px;
  margin: 0 24px 16px;
  border: 1px solid #e2e8f0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: #475569;
}

.summary-row.summary-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  border-top: 1px solid #cbd5e1;
  padding-top: 10px;
  margin-top: 8px;
  margin-bottom: 0;
}

.btn-checkout {
  margin: 0 24px 24px;
  width: calc(100% - 48px);
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-checkout:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* ==============================================================================
   Product Detail Modal (Rich Showcase)
   ============================================================================== */
.modal-card.product-detail-card {
  max-width: 820px;
}

.detail-header-tags {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-category-badge {
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.detail-stock-badge {
  background: #ecfdf5;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.product-detail-body {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 28px;
  padding: 24px;
}

@media (max-width: 768px) {
  .product-detail-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.detail-gallery-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-main-img-box {
  width: 100%;
  height: 320px;
  background: #f8fafc;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.detail-main-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.detail-main-img-box:hover .detail-main-img {
  transform: scale(1.08);
}

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.detail-rating-row .rating-stars {
  color: #f59e0b;
  font-size: 1rem;
}

.detail-rating-row .rating-val {
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f172a;
}

.detail-rating-row .rating-count {
  font-size: 0.78rem;
  color: #94a3b8;
}

.detail-info-col {
  display: flex;
  flex-direction: column;
}

.detail-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 6px;
}

.detail-specs {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 14px;
}

.detail-price-box {
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.detail-price-num {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
}

.detail-price-unit {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 700;
}

.detail-coin-voucher-badge {
  display: inline-flex;
  align-items: center;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #fde68a;
  width: fit-content;
}

.detail-option-group {
  margin-bottom: 16px;
}

.option-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
}

.color-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-option-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-option-btn:hover,
.color-option-btn.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.dot-black { background: #1e293b; }
.dot-gray { background: #64748b; }
.dot-blue { background: #2563eb; }
.dot-silver { background: #e2e8f0; }

.detail-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 20px;
  padding: 0;
}

.detail-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.quantity-counter {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  gap: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-num {
  font-weight: 800;
  font-size: 0.95rem;
  min-width: 24px;
  text-align: center;
}

.btn-add-detail {
  flex-grow: 1;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-add-detail:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.product-card {
  cursor: pointer;
}

/* ==============================================================================
   Responsive Queries
   ============================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtext {
    margin: 0 auto 26px;
  }
  .hero-actions {
    justify-content: center;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ecosystem-card {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links, .search-box {
    display: none;
  }
  .hero-heading {
    font-size: 2rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}



/* ==============================================================================
   Language Selector Dropdown (fa, ar, en, zh)
   ============================================================================== */
.lang-selector-dropdown {
  position: relative;
  display: inline-block;
  z-index: 1005;
}

.lang-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill);
  padding: 0 12px;
  height: 38px;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.lang-trigger-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.lang-trigger-btn .chevron-icon {
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.lang-selector-dropdown.open .chevron-icon {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 155px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 99999 !important;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lang-menu.show {
  display: flex !important;
}

html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

html[dir="ltr"] .lang-menu {
  right: 0;
  left: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.15s ease;
  width: 100%;
  text-align: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.lang-option:hover,
.lang-option.active {
  background: #eff6ff;
  color: #2563eb;
}

.lang-option .flag {
  font-size: 1.1rem;
}

.lang-option .name {
  flex: 1;
  text-align: inherit;
  margin: 0 6px;
}

.lang-option .code {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
}

/* ==============================================================================
   Directional & Locale Styling (RTL vs LTR)
   ============================================================================== */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .hero-heading,
html[dir="rtl"] .hero-subtext {
  text-align: right;
}

html[dir="rtl"] .hero-actions {
  justify-content: flex-start;
}

html[dir="ltr"] .hero-heading,
html[dir="ltr"] .hero-subtext {
  text-align: left;
}

html[dir="ltr"] .hero-actions {
  justify-content: flex-start;
}

html[dir="rtl"] .search-box .search-icon {
  left: auto;
  right: 12px;
}

html[dir="rtl"] .search-box input {
  padding-left: 14px;
  padding-right: 36px;
}

html[dir="ltr"] .search-box .search-icon {
  left: 12px;
  right: auto;
}

html[dir="ltr"] .search-box input {
  padding-left: 36px;
  padding-right: 14px;
}

html[dir="rtl"] .card-badge {
  left: auto;
  right: 14px;
}

html[dir="ltr"] .card-badge {
  left: 14px;
  right: auto;
}

html[dir="rtl"] .announcement-inner {
  direction: rtl;
}

html[dir="ltr"] .announcement-inner {
  direction: ltr;
}

html[dir="rtl"] .header-inner {
  direction: rtl;
}

html[dir="ltr"] .header-inner {
  direction: ltr;
}

html[dir="rtl"] .nav-links {
  direction: rtl;
}

html[dir="ltr"] .nav-links {
  direction: ltr;
}

/* Fonts per language class */
body.lang-fa {
  font-family: var(--site-font, "Vazirmatn", "Vazir", Tahoma, sans-serif);
}

body.lang-ar {
  font-family: var(--site-font, "Cairo", "Vazirmatn", Tahoma, sans-serif);
}

body.lang-en {
  font-family: var(--site-font, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

body.lang-zh {
  font-family: var(--site-font, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif);
}


/* 3D Cyber-Corporate Emblem Logo Styles */
.brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  direction: ltr !important;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 275px;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
  vertical-align: middle;
  filter: drop-shadow(0 2px 8px rgba(2, 132, 199, 0.15));
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
  filter: drop-shadow(0 4px 14px rgba(2, 132, 199, 0.28));
}

.footer-logo-img {
  height: 40px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.12));
}

.hero-emblem-mini {
  height: 20px;
  width: auto;
  vertical-align: -3px;
  margin-right: 6px;
}
html[dir="rtl"] .hero-emblem-mini {
  margin-right: 0;
  margin-left: 6px;
}
