:root {
  --primary: #ff4400;
  /* Temu/AliExpress vibrant orange-red */
  --secondary: #111111;
  --bg: #f5f5f5;
  /* Clean light gray background */
  --white: #ffffff;
  --text: #222222;
  --muted: #767676;
  --border: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

.app-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

[dir="rtl"] {
  font-family: 'Tajawal', sans-serif;
}

/* Global Header - Clean & Professional */
.main-header {
  background: var(--white);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.logo-box {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
}

.logo-img {
  height: 28px;
}

.logo-text {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}

@media (max-width: 360px) {
  .logo-text {
    display: none;
  }
}

.header-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.back-btn-ui,
.nav-icon-btn {
  background: transparent;
  border: none;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 1.3rem;
  color: var(--text);
}

.badge-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 12px;
  border: 1px solid white;
}

/* Language Menu */
.lang-wrap {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: 40px;
  right: -10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  z-index: 1000;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lang-option {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: #f9f9f9;
}

/* Banner */
.promo-banner-wrap {
  padding: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.promo-banner-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

@media (min-width: 768px) {
  .promo-banner-img {
    aspect-ratio: 16 / 4;
  }
}

/* Filter Section */
.filter-section-wrap {
  padding: 0 12px 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
}

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

.filter-badge {
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.chevron-arrow.open {
  transform: rotate(180deg);
}

.filter-expandable-panel {
  background: white;
  border: 1px solid var(--border);
  border-top: none;
  padding: 16px;
  margin-top: -4px;
  border-radius: 0 0 6px 6px;
}

.filter-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-option-item {
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-option-item.active {
  background: #fff0eb;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: bold;
}

/* Products Container - High Density Grid */
.products-container {
  padding: 0 12px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.p-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  /* Tight gap for mobile */
}

/* Product Card - Clean E-commerce style */
.p-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.p-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.p-img-box {
  width: 100%;
  aspect-ratio: 1/1;
  background: #fff;
  position: relative;
  padding: 4px;
}

.p-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.btn-save-ui {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  z-index: 5;
}

.btn-save-ui.saved {
  color: var(--primary);
  border-color: var(--primary);
}

[dir="rtl"] .btn-save-ui {
  right: auto;
  left: 8px;
}

.p-info {
  padding: 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.p-name {
  font-size: 0.85rem;
  color: #333;
  line-height: 1.2;
  height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
}

.p-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.p-price-old {
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: line-through;
  color: var(--muted);
}

/* PC Support High Density Grid */
@media (min-width: 600px) {
  .p-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 900px) {
  .p-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1200px) {
  .p-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

/* Detail View */
.full-screen-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 2000;
  overflow-y: auto;
}

.detail-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: white;
}

.gallery-box {
  width: 100%;
  background: white;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
}

.hero-img {
  width: 100%;
  height: 100%;
}

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

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text);
  z-index: 10;
}

.slider-arrow.prev {
  left: 10px;
}

.slider-arrow.next {
  right: 10px;
}

.img-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.thumb-list {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}

.thumb-list img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  border: 2px solid transparent;
  object-fit: cover;
}

.thumb-list img.active {
  border-color: var(--primary);
}

.info-box {
  padding: 16px;
  background: white;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.product-title-row h1 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0;
  flex: 1;
}

.product-actions-btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.btn-action-ui {
  background: #f5f5f5;
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-ui:hover {
  background: #e8e8e8;
  transform: scale(1.05);
}

.btn-action-ui.saved {
  background: #fff0eb;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-action-ui:active {
  transform: scale(0.95);
}

.info-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-price-old {
  font-size: 1.2rem;
  font-weight: 400;
  text-decoration: line-through;
  color: var(--muted);
}

.info-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-add-cart {
  width: 100%;
  background: #ffb800;
  /* Yellow-orange like Amazon */
  color: #111;
  padding: 16px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 24px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-add-cart:hover {
  background: #f3a847;
}

.btn-add-cart:active {
  transform: scale(0.98);
}

.form-box-ui {
  background: #f9f9f9;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.form-title-ui {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 16px;
}

.input-row {
  margin-bottom: 12px;
}

.input-row input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.input-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 68, 0, 0.15);
}

.btn-order-ui {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
}

.btn-order-ui:hover {
  box-shadow: 0 4px 12px rgba(255, 68, 0, 0.2);
}

.btn-order-ui:active {
  transform: scale(0.98);
}

@media (min-width: 768px) {
  .detail-content {
    flex-direction: row;
    margin-top: 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
  }

  .gallery-box {
    width: 45%;
    border-right: 1px solid var(--border);
  }

  [dir="rtl"] .gallery-box {
    border-right: none;
    border-left: 1px solid var(--border);
  }

  .info-box {
    width: 55%;
    padding: 32px;
  }
}

/* Sidebar & Cart Drawer */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
}

.drawer-body {
  width: 85%;
  max-width: 360px;
  background: white;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sidebar-body {
  margin-right: auto;
}

[dir="rtl"] .sidebar-body {
  margin-right: 0;
  margin-left: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.drawer-header h3 {
  font-size: 1.2rem;
}

.btn-close-drawer {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--muted);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-link i {
  font-size: 1.2rem;
  color: var(--muted);
  width: 24px;
  text-align: center;
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
}

.cart-item-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-row img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.qty-btn-ui {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 4px;
}

.cart-footer {
  padding-top: 16px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.btn-checkout-ui {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Checkout View */
.checkout-view-ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 1500;
  overflow-y: auto;
}

.checkout-wrap-ui {
  padding: 16px;
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.checkout-summary-card,
.checkout-form-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.mini-item-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.mini-item-row img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #eee;
}

.mini-name {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.mini-price {
  font-weight: bold;
  color: var(--primary);
}

/* Thank You */
.thank-you-view-ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 2000;
  text-align: center;
}

.thank-you-content {
  padding: 40px 20px;
}

.icon-success-ui {
  font-size: 5rem;
  color: #068a18;
  margin-bottom: 24px;
}

.btn-shop-more-ui {
  background: var(--secondary);
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 24px;
}

/* Other Pages */
.saved-view-ui,
.help-view-ui,
.about-view-ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 1000;
  overflow-y: auto;
}

.page-header {
  background: white;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.page-header h2 {
  font-size: 1.4rem;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 3rem;
  color: #ccc;
  margin-bottom: 16px;
}

.help-content,
.about-content {
  padding: 0 16px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-logo {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.about-logo img {
  width: 120px;
  max-width: 100%;
  height: auto;
}

.about-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #25D366;
  color: white;
  padding: 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 12px;
}

/* Search Overlay */
.search-overlay-ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 3000;
  display: flex;
  flex-direction: column;
}

.search-overlay-header {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 40px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  font-size: 1rem;
}

.search-icon-left {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

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

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
}

[dir="rtl"] .search-clear-btn {
  right: auto;
  left: 12px;
}

.search-close-btn {
  background: none;
  border: none;
  font-weight: bold;
  font-size: 1rem;
  color: var(--text);
}

.search-suggestions-box {
  flex: 1;
  overflow-y: auto;
  background: white;
}

.search-trending {
  padding: 20px 16px;
}

.trending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.trending-tag {
  padding: 8px 16px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 0.9rem;
}

.search-results {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-result-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.search-result-row img {
  width: 50px;
  height: 50px;
  border: 1px solid #eee;
  border-radius: 4px;
}

.result-info {
  flex: 1;
}

.result-name {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.result-price {
  font-weight: bold;
  color: var(--primary);
}

/* WhatsApp Floating Button & Popup */
.whatsapp-floating-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

[dir="rtl"] .whatsapp-floating-container {
  right: auto;
  left: 20px;
  align-items: flex-start;
}

.whatsapp-floating-btn {
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  border: none;
  font-size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  animation: jump 2s infinite ease-in-out;
}

@keyframes jump {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.whatsapp-popup {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
  width: 250px;
}

.whatsapp-popup-header {
  background: #25d366;
  color: white;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.whatsapp-popup-header button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
}

.whatsapp-popup-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-whatsapp-popup {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  color: #333;
  padding: 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--border);
  transition: background 0.2s;
}

.btn-whatsapp-popup:hover {
  background: #e8f8ec;
  border-color: #25d366;
}

.btn-whatsapp-popup i {
  color: #25d366;
  font-size: 18px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-message {
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideDown 0.3s ease forwards, toastFadeOut 0.3s ease 2.7s forwards;
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* Promo Discount Banners System */
.discounts-banners-container {
  padding: 12px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

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

.discount-card {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  padding: 16px 20px;
  position: relative;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 140px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
  flex: 1;
}

.discount-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.discount-card-content {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  z-index: 2;
}

[dir="rtl"] .discount-card-content {
  align-items: flex-start;
}

.discount-card-content h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-discount-details {
  background: white;
  color: #111;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-discount-details:hover {
  background: #f0f0f0;
  transform: scale(1.03);
}

.discount-card-img {
  flex: 0.8;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 2;
  max-width: 140px;
}

.discount-card-img img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

.discount-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.discount-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.discount-dot.active {
  background: var(--primary);
  width: 18px;
  border-radius: 4px;
}

/* Phone Layout Support (Automatic Carousel) */
@media (max-width: 767px) {
  .discount-card.inactive-mobile {
    display: none !important;
  }

  .discount-card.active-mobile {
    display: flex !important;
    animation: fadeInSlide 0.4s ease-in-out;
  }

  [dir="rtl"] .discount-card.active-mobile {
    animation: fadeInSlideRTL 0.4s ease-in-out;
  }

  .discounts-banners-container {
    padding: 8px 12px;
  }
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInSlideRTL {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* PC Support (Side-by-Side Banners Grid) */
@media (min-width: 768px) {
  .discounts-grid {
    flex-direction: row;
    gap: 16px;
  }

  .discount-card.inactive-mobile {
    display: flex !important;
  }

  .discount-card.active-mobile {
    display: flex !important;
  }

  .discount-dots {
    display: none !important;
  }
}