/* ========== CSS VARIABLES - Easy to customize per client ========== */
:root {
  --bg-primary: #0D0D0D;
  --bg-secondary: #1A1A1A;
  --bg-card: #1E1E1E;
  --text-primary: #FFFFFF;
  --text-secondary: #AAAAAA;
  --accent-blue: #2196F3;
  --accent-orange: #FF6B35;
  --badge-green: #4CAF50;
  --badge-red: #F44336;
  --badge-grey: #666666;
  --radius-card: 14px;
  --radius-badge: 20px;
  --font-family: 'Cairo', sans-serif;
  --bottom-nav-height: 60px;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

/* Mac/Safari broken image fallback */
img[src=""],
img:not([src]) {
  display: none !important;
}

.card-image-wrapper:empty::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 16px;
}

/* Single row: brand right + search left */
.header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  direction: rtl;
  justify-content: center;
}

/* Store branding */
.store-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.store-brand-text {
  text-align: right;
  min-width: 0;
}

.store-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.store-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.store-subtitle {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

/* Search wrap */
.header-search-wrap {
  position: relative;
  flex: 0 1 520px;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: 0 4px 16px 0 rgba(33,150,243,0.10);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: rgba(33,150,243,0.75);
  pointer-events: none;
  display: flex;
  align-items: center;
  font-size: 1.1em;
}

.header-search {
  width: 100%;
  border: 2px solid rgba(33,150,243,0.25);
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 28px;
  padding: 10px 16px 10px 42px;
  font-family: var(--font-family);
  font-size: 1rem;
  outline: none;
  direction: rtl;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  box-shadow: 0 4px 16px 0 rgba(33,150,243,0.10);
}

.header-search::placeholder {
  color: rgba(255,255,255,0.45);
}

.header-search:focus {
  border-color: var(--accent-blue);
  background: rgba(255,255,255,0.22);
  box-shadow: 0 0 0 4px rgba(33,150,243,0.18);
}

/* ========== CATEGORY NAV ========== */
.category-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 85px;
  z-index: 90;
  background: var(--bg-primary);
  max-width: 1280px;
  margin: 0 auto;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav-item {
  flex-shrink: 0;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
  white-space: nowrap;
}

.category-nav-item.active {
  background: var(--accent-blue);
  color: #fff;
}

/* ========== MENU SECTIONS ========== */
.menu-sections {
  padding: 0 0 24px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ========== ADS ========== */
.ads-area {
  max-width: 1280px;
  margin: 8px auto 4px;
  padding: 0 16px;
  display: grid;
  gap: 10px;
}

.ads-slider {
  border-radius: 14px;
  overflow: hidden;
}

.ad-card {
  border-radius: 14px;
  overflow: hidden;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-card a {
  display: block;
  color: inherit;
}

.ad-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.ad-title {
  font-size: 0.86rem;
  color: var(--text-primary);
  padding: 8px 10px;
  text-align: center;
}

.ad-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 16px;
}

.ad-popup-overlay.show {
  display: flex;
}

.ad-popup-card {
  width: min(420px, 100%);
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ad-popup-card img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.ad-popup-card p {
  padding: 10px 12px 14px;
  text-align: center;
  color: #fff;
}

.ad-popup-close {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

/* ========== CART FAB ========== */
.cart-fab {
  position: fixed;
  left: 16px;
  bottom: calc(var(--bottom-nav-height) + 18px);
  z-index: 210;
  background: #2d6df6;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(45, 109, 246, 0.35);
  display: none;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
}

.cart-fab:hover {
  color: #fff;
  opacity: 0.95;
}

.cart-fab-count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  color: #2d6df6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
}

.category-section {
  margin-bottom: 28px;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.section-more {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-blue);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-family);
}

.section-more svg {
  width: 16px;
  height: 16px;
}

/* ========== CAROUSEL ========== */
.carousel-wrapper {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 4px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--accent-blue);
  width: 7px;
}

/* ========== PRODUCT CARD ========== */
.product-card {
  flex-shrink: 0;
  width: 170px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.product-card:active {
  transform: scale(0.97);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}

.card-image-wrapper {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Unavailable overlay */
.product-card.unavailable .card-image-wrapper::after {
  content: 'غير متوفر';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-family);
}

/* Badge */
.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-badge);
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
}

.card-badge.new {
  background: var(--badge-green);
  color: #fff;
}

.card-badge.unavail {
  background: var(--badge-grey);
  color: #fff;
}

/* Card info */
.card-info {
  padding: 8px 4px 0;
}

.card-name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.card-price-now {
  color: var(--accent-blue);
  font-weight: 800;
}

.card-price-old {
  color: var(--text-secondary);
  text-decoration: line-through;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}

.add-cart-btn {
  margin-top: 8px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: var(--accent-blue);
  color: #fff;
  padding: 12px 14px;
  min-height: 46px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  touch-action: manipulation;
}

.add-cart-btn {
  margin-top: 14px;
}

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

/* ========== GRID VIEW ========== */
.menu-sections.grid-view .carousel-wrapper {
  display: none;
}

.grid-container {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 16px;
}

.menu-sections.grid-view .grid-container {
  display: grid;
}

.menu-sections.grid-view .carousel-dots {
  display: none;
}

.grid-container .product-card {
  width: 100%;
}

.grid-container .card-image-wrapper {
  height: 140px;
}

/* ========== EXPANDED CATEGORY VIEW ========== */
.category-section.expanded .carousel-wrapper {
  display: none;
}

.category-section.expanded .carousel-dots {
  display: none;
}

.category-section.expanded .grid-container {
  display: grid;
}

/* ========== BOTTOM NAVIGATION ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 8px;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.nav-btn:active,
.nav-btn.active {
  color: var(--accent-blue);
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-content {
  background: var(--bg-secondary);
  border-radius: 20px;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  transform: translateY(30px);
  transition: transform 0.25s ease;
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.modal-info {
  padding: 20px;
}

.modal-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.modal-badges {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.cart-modal-content {
  max-width: 420px;
}

.cart-modal-body {
  padding: 18px;
}

.modal-options {
  padding: 0 20px 12px;
}
.opt-group {
  margin-bottom: 10px;
}
.opt-group-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.opt-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 0.85rem;
  cursor: pointer;
}
.opt-item input { accent-color: var(--accent-blue); }
.opt-item small {
  color: var(--accent-blue);
  font-weight: 600;
  margin-right: auto;
}
.cart-item-opts {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.cart-modal-body h3 {
  margin-bottom: 12px;
}

.cart-items {
  max-height: 260px;
  overflow: auto;
  padding-left: 4px;
}

.cart-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 0;
}

.cart-item-info {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cart-item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cart-item-actions button {
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 4px 8px;
  cursor: pointer;
}

.cart-total {
  margin: 12px 0;
  font-size: 1rem;
}

.checkout-form {
  display: grid;
  gap: 8px;
}

.checkout-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font-family);
}

.order-type-select {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.order-type-option {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-family);
}
.order-type-option.active {
  border-color: var(--accent-blue);
  background: rgba(33,150,243,0.15);
  color: var(--accent-blue);
}
.order-type-option input { display: none; }

.checkout-submit {
  border: none;
  border-radius: 10px;
  background: #1fb86a;
  color: #fff;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.empty-search {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 16px;
  font-size: 0.95rem;
}

.contact-section {
  max-width: 1280px;
  margin: 4px auto 0;
  padding: 10px 16px 18px;
}

.contact-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.contact-icon-btn:hover {
  background: rgba(255,255,255,0.14);
  transform: scale(1.06);
}

.contact-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Remove old card styles */
.contact-item,
.contact-label,
.contact-value { display: none; }

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer a {
  color: var(--accent-blue);
  font-weight: 600;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-section {
  animation: fadeInUp 0.4s ease both;
  scroll-margin-top: 140px;
}

.category-section:nth-child(2) { animation-delay: 0.06s; }
.category-section:nth-child(3) { animation-delay: 0.12s; }
.category-section:nth-child(4) { animation-delay: 0.18s; }
.category-section:nth-child(5) { animation-delay: 0.24s; }

/* ========== DESKTOP: Show grid by default ========== */
@media (min-width: 900px) {
  .carousel-wrapper {
    display: none !important;
  }
  .carousel-dots {
    display: none !important;
  }
  .grid-container {
    display: grid !important;
  }
  .section-more {
    display: none;
  }
}

/* ========== RESPONSIVE ========== */

/* Small phones */
@media (max-width: 360px) {
  .product-card { width: 150px; }
  .card-image-wrapper { height: 140px; }
  .section-title { font-size: 1.05rem; }
  .header-search { font-size: 0.88rem; }
  .store-name { font-size: 0.9rem; }
  .modal-content { max-width: 94vw; }
  .add-cart-btn { min-height: 50px; font-size: 1.02rem; }
}

/* Large phones */
@media (min-width: 414px) {
  .product-card { width: 185px; }
  .card-image-wrapper { height: 170px; }
  .grid-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .modal-content {
    width: min(96vw, 420px);
  }
  .modal-info {
    padding: 18px;
  }
  .add-cart-btn {
    min-height: 52px;
    font-size: 1.05rem;
  }
}

/* Tablets */
@media (min-width: 768px) {
  .product-card { width: 210px; }
  .card-image-wrapper { height: 190px; }
  .grid-container { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .store-name { font-size: 1.1rem; max-width: 160px; }
  .store-subtitle { max-width: 160px; }
  .store-logo { width: 46px; height: 46px; }
  .section-title { font-size: 1.35rem; }
  .menu-sections { padding: 0 16px 24px; }
  .card-name { font-size: 0.92rem; }
  .card-price { font-size: 1rem; }
  .category-nav-item { padding: 10px 22px; font-size: 0.9rem; }
  .category-nav { justify-content: center; padding: 14px 24px; }
}

/* Desktop */
@media (min-width: 1024px) {
  body {
    padding-bottom: 24px;
  }
  .bottom-nav {
    display: none;
  }
  .header {
    padding: 14px 32px;
  }
  .store-logo { width: 48px; height: 48px; }
  .store-name { font-size: 1.15rem; max-width: 200px; }
  .store-subtitle { font-size: 0.8rem; max-width: 200px; }
  .header-search-wrap {
    max-width: 480px;
  }
  .menu-sections { padding: 0 32px 40px; }
  .section-header { padding: 24px 0 16px; }
  .section-title { font-size: 1.5rem; }
  .grid-container { grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; }
  .card-image-wrapper { height: 200px; }
  .grid-container .card-image-wrapper { height: 200px; }
  .card-name { font-size: 0.95rem; }
  .card-price { font-size: 1.05rem; }
  .card-info { padding: 10px 6px 0; }
  .modal-content { max-width: 500px; }
  .modal-image { height: 350px; }
  .modal-name { font-size: 1.4rem; }
  .modal-price { font-size: 1.5rem; }
  .category-nav { padding: 16px 32px; gap: 4px; }
  .category-nav-item { padding: 10px 28px; font-size: 0.95rem; }
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer { padding: 32px 16px; font-size: 0.85rem; }
}

/* Large Desktop */
@media (min-width: 1400px) {
  .grid-container { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .card-image-wrapper { height: 220px; }
  .grid-container .card-image-wrapper { height: 220px; }
}

/* ========== THEME: MODERN ========== */
/* Product images at exact 320x400 (4:5) proportions using aspect-ratio */

.theme-modern .product-card {
  width: 200px;
}

.theme-modern .card-image-wrapper {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
}

.theme-modern .card-info {
  padding: 10px 4px 0;
}

.theme-modern .card-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.theme-modern .card-price {
  font-size: 0.92rem;
}

.theme-modern .grid-container .product-card {
  width: 100%;
}

.theme-modern .grid-container .card-image-wrapper {
  height: auto;
  aspect-ratio: 4 / 5;
}

.theme-modern .add-cart-btn {
  margin-top: 10px;
}

@media (max-width: 360px) {
  .theme-modern .product-card { width: 160px; }
}

@media (min-width: 414px) {
  .theme-modern .product-card { width: 210px; }
}

@media (min-width: 768px) {
  .theme-modern .product-card { width: 240px; }
  .theme-modern .grid-container { gap: 22px; }
}

@media (min-width: 1024px) {
  .theme-modern .card-name { font-size: 1rem; }
  .theme-modern .card-price { font-size: 1.05rem; }
}

@media (min-width: 1400px) {
  .theme-modern .grid-container { gap: 28px; }
}

/* ========== THEME: ELEGANT ========== */
/* White bg, horizontal list cards (image right, info left), blue names, gray descriptions */

.card-desc {
  display: none;
}

body.theme-elegant {
  background: #FFFFFF;
  color: #333333;
}

.theme-elegant .product-card {
  width: 100% !important;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.theme-elegant .product-card:hover {
  transform: none;
  background: #f8f9fa;
}

.theme-elegant .card-image-wrapper {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 10px;
}

.theme-elegant .card-name {
  color: #1565C0;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: normal;
  overflow: visible;
}

.theme-elegant .card-desc {
  display: block;
  color: #888888;
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

.theme-elegant .card-info {
  flex: 1;
  padding: 0;
}

.theme-elegant .card-price {
  margin-top: 4px;
}

.theme-elegant .card-badge {
  top: auto;
  bottom: auto;
}

.theme-elegant .carousel-wrapper {
  overflow: visible !important;
}

.theme-elegant .carousel-track {
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
  gap: 2px;
}

.theme-elegant .carousel-dots {
  display: none !important;
}

.theme-elegant .grid-container {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  padding: 0 16px;
}

.theme-elegant .grid-container .product-card {
  width: 100% !important;
}

.theme-elegant .section-header {
  padding: 8px 16px 4px;
}

.theme-elegant .section-title {
  font-size: 1rem;
  color: #333;
}

.theme-elegant .category-nav {
  background: #FFFFFF;
  border-bottom: 1px solid #eee;
  padding: 10px 16px;
  gap: 0;
}

.theme-elegant .category-nav-item {
  padding: 8px 16px;
  font-size: 0.85rem;
  color: #666;
  background: transparent;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
}

.theme-elegant .category-nav-item.active {
  background: #1565C0;
  color: #fff;
  border-color: #1565C0;
}

.theme-elegant .header-wrap {
  background: #FFFFFF;
  border-bottom: 1px solid #eee;
}

.theme-elegant .footer {
  background: #f5f5f5;
  color: #666;
  border-top: 1px solid #eee;
}

/* ========== LOADING SKELETON ========== */
.skeleton {
  background: linear-gradient(110deg, #1E1E1E 8%, #2A2A2A 18%, #1E1E1E 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-card);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
