/* assets/css/style.css - GLOBAL BEAUTY SIGNATURE THEME v16 */
/* الهوية: كحلي ملكي + ذهبي (مستوحاة من اللوجو) */

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

:root {
  /* ===== الهوية ===== */
  --navy: #1B1B4E;
  --navy-dark: #0F0F33;
  --navy-deep: #0A0A24;
  --navy-light: #2A2A6E;
  --navy-soft: #F4F3FA;

  --gold: #C9A961;
  --gold-light: #E0C08A;
  --gold-dark: #A88548;
  --gold-gradient: linear-gradient(135deg, #E0C08A 0%, #C9A961 50%, #A88548 100%);
  --gold-border: rgba(201, 169, 97, 0.35);
  --gold-glow: 0 6px 24px rgba(201, 169, 97, 0.32);

  /* ===== ألوان مساعدة ===== */
  --ivory: #FAF9F5;
  --white: #FFFFFF;
  --dark: #1A1A2E;
  --gray: #6B6B80;
  --border: #E8E4DC;
  --success: #0D9488;
  --danger: #DC2626;

  --shadow-sm: 0 4px 16px rgba(27, 27, 78, 0.06);
  --shadow-md: 0 12px 32px rgba(27, 27, 78, 0.12);
  --shadow-lg: 0 20px 50px rgba(27, 27, 78, 0.16);
  --radius: 18px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===================== الخطوط حسب اللغة ===================== */
body,
html[lang="ar"] body {
  font-family: 'Tajawal', 'Inter', system-ui, -apple-system, sans-serif;
}

html[lang="ku"] body,
html[lang="ku"] input,
html[lang="ku"] button,
html[lang="ku"] select,
html[lang="ku"] textarea {
  font-family: 'Vazirmatn', 'Tajawal', 'Inter', system-ui, sans-serif;
}

html[lang="en"] body,
html[lang="en"] input,
html[lang="en"] button,
html[lang="en"] select,
html[lang="en"] textarea {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
  background-color: var(--ivory);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 85px;
}

input, button, select, textarea {
  font-family: inherit;
}

/* ===================== Font Awesome ===================== */
.fa, .fas, .far, .fab, .fal, .fad,
.fa-solid, .fa-regular, .fa-brands, .fa-light,
.fa-duotone, .fa-thin,
i[class*="fa-"],
[class*=" fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Pro", "FontAwesome" !important;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================== الشعار ===================== */
.brand-en {
  font-family: 'Cinzel', serif !important;
  letter-spacing: 2px;
  font-weight: 700;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--navy-deep);
  color: var(--gold-light);
  text-align: center;
  font-size: 0.8rem;
  padding: 8px 14px;
  font-weight: 500;
  border-bottom: 1px solid rgba(201, 169, 97, 0.3);
  letter-spacing: 0.5px;
}

/* ---------- Header ---------- */
.header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  height: 84px;
  padding: 0 1.5rem;
  box-shadow: 0 4px 24px rgba(15, 15, 51, 0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--gold);
}

.header-content {
  max-width: 1320px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
  transform: scale(1.65);
  display: block;
  filter: drop-shadow(0 3px 8px rgba(201, 169, 97, 0.4));
  transition: var(--transition);
}

.header-brand-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  color: var(--white);
}
.header-brand-badge .brand-en {
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 3px;
}
.header-brand-badge small {
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  color: var(--gold-light);
  font-weight: 700;
  opacity: 0.8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 20;
}

.action-icon {
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--gold-light);
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.12);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.action-icon:hover {
  background: var(--gold-gradient);
  color: var(--navy);
  border-color: transparent;
  box-shadow: var(--gold-glow);
  transform: translateY(-2px);
}

.action-icon span {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
}

.auth-btn {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: 30px;
  background: var(--gold-gradient);
  color: var(--navy);
  border: 1px solid var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
  font-family: inherit;
}
.auth-btn:hover {
  filter: brightness(1.08);
  box-shadow: var(--gold-glow);
  transform: translateY(-2px);
}

/* مبدل اللغة */
.lang-switcher {
  display: inline-flex;
  background: rgba(201, 169, 97, 0.12);
  border: 1px solid var(--gold-border);
  border-radius: 25px;
  padding: 3px;
  gap: 2px;
  z-index: 20;
}
.lang-btn {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--gold-light);
  transition: var(--transition);
}
.lang-btn:hover { color: var(--gold); }
.lang-btn.active {
  background: var(--gold-gradient);
  color: var(--navy);
}

/* ---------- Main Container ---------- */
.main-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.6rem 1.2rem;
}

/* ================ Hero (مربع مثل إنستغرام) ================ */
.hero-section {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 2rem auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(27, 27, 78, 0.25);
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 169, 97, 0.5);
  border-radius: 18px;
  pointer-events: none;
  z-index: 3;
}

.hero-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-images img.active { opacity: 1; }

/* ================ بانر العروض ================ */
.offers-banner {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #fff;
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 1.6rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 32px rgba(220, 38, 38, 0.35);
  border: 2px solid #FDE68A;
  position: relative;
  overflow: hidden;
}
.offers-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(253, 230, 138, 0.3), transparent 60%);
  pointer-events: none;
}
.offers-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(220, 38, 38, 0.45);
}
.offers-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.offers-banner-content > i:first-child {
  font-size: 2rem;
  color: #FDE68A;
  animation: fireGlow 1.5s ease-in-out infinite;
}
@keyframes fireGlow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(253,230,138,0.6)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 14px rgba(253,230,138,0.9)); }
}
.offers-banner-title { font-size: 1.15rem; font-weight: 900; letter-spacing: 0.5px; }
.offers-banner-subtitle { font-size: 0.82rem; opacity: 0.9; margin-top: 2px; }
.offers-banner-count {
  background: #FDE68A;
  color: #991B1B;
  font-weight: 900;
  font-size: 1.1rem;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.offers-banner-arrow { color: #FDE68A; font-size: 1.1rem; }

/* ---------- Search & Sort ---------- */
.search-sort-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin-bottom: 1.4rem;
}
.search-box-wrap { position: relative; }
.search-box-wrap i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
}
[dir="ltr"] .search-box-wrap i { right: auto; left: 18px; }

.search-input, .sort-select {
  width: 100%;
  padding: 14px 22px;
  border: 1.5px solid var(--border);
  border-radius: 35px;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  font-family: inherit;
}
.search-input { padding-right: 48px; }
[dir="ltr"] .search-input { padding-right: 22px; padding-left: 48px; }

.search-input:focus, .sort-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}

/* ================ Categories ================ */
.categories-grid {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 4px 0 14px 0;
  margin-bottom: 1.3rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-padding-inline-start: 4px;
}
.categories-grid::-webkit-scrollbar { display: none; }
.categories-grid::after { content: ''; flex: 0 0 12px; }
.categories-grid::before { content: ''; flex: 0 0 4px; }

.category-button {
  flex: 0 0 auto;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  padding: 11px 22px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  white-space: nowrap;
}
.category-button i { color: var(--navy); font-size: 1rem; transition: var(--transition); }
.category-button:hover {
  border-color: var(--gold);
  background: var(--ivory);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.category-button.active {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--gold);
  box-shadow: var(--gold-glow);
}
.category-button.active i { color: var(--gold); }

/* زر تصنيف العروض - مميز */
.category-button.category-offers {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-color: #F59E0B;
  position: relative;
  color: #92400E;
}
.category-button.category-offers i { color: #DC2626; }
.category-button.category-offers:hover {
  background: linear-gradient(135deg, #FDE68A 0%, #FCD34D 100%);
}
.category-button.category-offers.active {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #fff;
  border-color: #DC2626;
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.35);
}
.category-button.category-offers.active i { color: #FDE68A; }

.category-button .offers-count {
  background: #DC2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: 4px;
}
.category-button.category-offers.active .offers-count {
  background: #FDE68A;
  color: #991B1B;
}

/* ---------- Brands Section ---------- */
.brands-section {
  margin-bottom: 1.8rem;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.brands-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.brands-header h4 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy);
}
.clear-brand-btn {
  background: var(--navy);
  color: var(--gold-light);
  border: 1.5px solid var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: none;
  font-family: inherit;
  transition: var(--transition);
}
.clear-brand-btn:hover {
  background: var(--gold-gradient);
  color: var(--navy);
}

.brands-grid {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 4px 0 8px 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.brands-grid::after { content: ''; flex: 0 0 8px; }
.brands-grid.expanded-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  overflow-x: visible;
  padding: 4px 0;
}
.brands-grid.expanded-grid::after { display: none; }

.brand-card {
  flex: 0 0 114px;
  background: var(--ivory);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.brand-card:hover, .brand-card.active {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: var(--gold-glow);
  transform: translateY(-3px);
}
.brand-logo {
  width: 100%;
  height: 44px;
  object-fit: contain;
  margin-bottom: 8px;
  background: var(--white);
  border-radius: 8px;
  padding: 4px;
}
.brand-name {
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  color: var(--navy);
}

/* ---------- Results Bar ---------- */
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 10px 16px;
  background: var(--white);
  border-inline-start: 4px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.results-title { font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.results-count { font-size: 0.86rem; color: var(--gold-dark); font-weight: 700; }

/* ---------- Products Grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1.5px solid var(--border);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

/* بطاقة مع عرض (خصم أو هدية) */
.product-card.product-has-offer {
  border-color: #F59E0B;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}
.product-card.product-has-offer:hover {
  border-color: #DC2626;
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.25);
  transform: translateY(-8px);
}

.product-img-wrapper {
  background: var(--white);
  padding: 18px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--ivory);
  position: relative;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s ease;
}
.product-card:hover .product-image { transform: scale(1.07); }

.card-content {
  padding: 1.1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--ivory) 100%);
}
.product-brand-tag {
  font-size: 0.7rem;
  color: var(--gold-dark);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--navy);
  line-height: 1.42;
  height: 2.84em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  font-size: 1.18rem;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 0.85rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

/* مقارنة السعر (كان / الآن) */
.price-comparison {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.price-arrow { color: #DC2626; font-size: 0.7rem; }
.new-price { color: #DC2626; font-weight: 900; font-size: 1.2rem; }
.regular-price { font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.old-price {
  font-size: 0.88rem;
  color: var(--gray);
  text-decoration: line-through;
  font-weight: 600;
}
.savings-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: #059669;
  background: #D1FAE5;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 800;
  margin-top: 4px;
  width: fit-content;
}

.wholesale-tag {
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-top: 4px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-primary:hover {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--navy);
}
.btn-secondary {
  background: var(--gold-gradient);
  color: var(--navy);
  box-shadow: 0 3px 12px rgba(201, 169, 97, 0.3);
}
.btn-secondary:hover {
  filter: brightness(1.05);
  box-shadow: var(--gold-glow);
}
.btn-disabled {
  background: #D4D4D8 !important;
  color: #71717A;
  cursor: not-allowed;
}

/* ---------- Availability Badge ---------- */
.availability-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 2;
  letter-spacing: 0.3px;
}
.available {
  background: var(--navy);
  color: var(--gold-light);
  border: 1px solid var(--gold);
}
.unavailable {
  background: #FEE2E2;
  color: #991B1B;
}

/* ---------- شارة الخصم ---------- */
.discount-ribbon {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 900;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45);
  letter-spacing: 0.5px;
  animation: discountPulse 2s ease-in-out infinite;
}
@keyframes discountPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ---------- شارة الهدية ---------- */
.gift-ribbon {
  position: absolute;
  top: 48px;
  inset-inline-end: 12px;
  background: linear-gradient(135deg, #EC4899 0%, #9D174D 100%);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 900;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.45);
  animation: giftBounce 2s ease-in-out infinite;
}
@keyframes giftBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ---------- صندوق معاينة الهدية في البطاقة ---------- */
.gift-preview {
  background: linear-gradient(135deg, #FCE7F3 0%, #FDF2F8 100%);
  border: 1.5px solid #F9A8D4;
  border-radius: 12px;
  padding: 10px;
  margin: 8px 0;
}
.gift-preview-header {
  color: #9D174D;
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gift-preview-header i { font-size: 1rem; }
.gift-preview-body {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gift-preview-body img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
  border: 1px solid #F9A8D4;
  flex-shrink: 0;
}
.gift-preview-info { flex: 1; min-width: 0; }
.gift-preview-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9D174D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.gift-preview-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
}
.old-price-sm { color: var(--gray); text-decoration: line-through; }
.free-tag {
  background: #EC4899;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.7rem;
}

/* ---------- رسالة "لا عروض" ---------- */
.no-offers-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-radius: 18px;
  border: 2px dashed #F59E0B;
}
.no-offers-message i {
  font-size: 3.5rem;
  color: #DC2626;
  margin-bottom: 1rem;
  display: block;
}
.no-offers-message h3 {
  color: #92400E;
  font-size: 1.3rem;
  font-weight: 800;
}

/* ---------- Pagination ---------- */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2.4rem 0 1.5rem;
}
.page-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  font-family: inherit;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--ivory);
  color: var(--gold-dark);
  transform: translateY(-2px);
}
.page-btn.active {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--gold);
  box-shadow: var(--gold-glow);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-dots { color: var(--gold-dark); font-weight: 800; padding: 0 4px; }

/* ---------- Back Button ---------- */
.back-btn-wrap { max-width: 1200px; margin: 1.4rem auto 0; padding: 0 1.2rem; }
.back-to-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--gold);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.back-to-home-btn:hover {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--navy);
}

/* ---------- Product Details ---------- */
.product-details-wrap { max-width: 1200px; margin: 1.4rem auto 2rem; padding: 0 1.2rem; }
.product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  padding: 2rem;
}
.main-image-box {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  background: var(--ivory);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
  margin-bottom: 1rem;
}
.main-image-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

.main-discount-badge {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 25px;
  box-shadow: 0 6px 20px rgba(220,38,38,0.4);
  animation: discountPulse 2s ease-in-out infinite;
  z-index: 2;
}

.thumbnail-container { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.thumbnail {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  padding: 4px;
  background: var(--white);
  opacity: 0.65;
  transition: var(--transition);
}
.thumbnail.active, .thumbnail:hover {
  border-color: var(--gold);
  opacity: 1;
  box-shadow: var(--gold-glow);
}
.thumbnail img { width: 100%; height: 100%; object-fit: contain; }

.product-info-box { display: flex; flex-direction: column; }
.details-brand-badge {
  display: inline-block;
  width: fit-content;
  background: var(--navy);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 14px;
  border: 1.5px solid var(--gold);
  letter-spacing: 1px;
  transition: var(--transition);
}
.details-brand-badge:hover {
  background: var(--gold-gradient);
  color: var(--navy);
}
.details-title { font-size: 1.7rem; color: var(--navy); margin-bottom: 0.9rem; font-weight: 800; line-height: 1.35; }
.details-price { font-size: 2rem; color: var(--gold-dark); font-weight: 800; margin-bottom: 1rem; }

.hot-deal-badge {
  background: linear-gradient(135deg, #F59E0B 0%, #DC2626 100%);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: fireGlow 1.5s ease-in-out infinite;
}
.hot-deal-badge i { color: #FDE68A; }

/* مقارنة السعر في التفاصيل */
.details-price-comparison {
  background: linear-gradient(135deg, #FEF3C7 0%, #FEF9E7 100%);
  border: 2px solid #F59E0B;
  border-radius: 16px;
  padding: 16px;
  margin: 1rem 0;
}
.price-before, .price-after {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
}
.price-before .label, .price-after .label {
  font-weight: 700;
  color: var(--gray);
  font-size: 0.9rem;
}
.value-strike {
  text-decoration: line-through;
  color: var(--gray);
  font-weight: 700;
  font-size: 1.15rem;
}
.value-highlight {
  color: #DC2626;
  font-weight: 900;
  font-size: 1.5rem;
}
.price-arrow-row {
  text-align: center;
  color: #DC2626;
  font-size: 1.2rem;
  margin: 4px 0;
}
.savings-box {
  margin-top: 12px;
  padding: 10px 14px;
  background: #D1FAE5;
  border-radius: 10px;
  color: #065F46;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.savings-box i { color: #059669; font-size: 1.1rem; }

/* صندوق الهدية في التفاصيل */
.gift-box-detail {
  background: linear-gradient(135deg, #FCE7F3 0%, #FDF2F8 100%);
  border: 2px solid #F9A8D4;
  border-radius: 16px;
  padding: 16px;
  margin: 1.2rem 0;
}
.gift-box-header {
  color: #9D174D;
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gift-box-header i { font-size: 1.3rem; }
.gift-box-content {
  display: flex;
  align-items: center;
  gap: 16px;
}
.gift-box-content img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  border: 2px solid #F9A8D4;
  flex-shrink: 0;
}
.gift-box-info { flex: 1; }
.gift-box-name {
  font-weight: 800;
  color: #9D174D;
  font-size: 1rem;
  margin-bottom: 6px;
}
.gift-box-price {
  font-size: 0.88rem;
  color: var(--gray);
}
.gift-old-price { text-decoration: line-through; margin: 0 6px; }
.gift-free {
  background: #EC4899;
  color: #fff;
  padding: 3px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.8rem;
  margin-inline-start: 8px;
}

.section-title {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
  margin: 1.4rem 0 0.9rem;
  font-size: 1.08rem;
  color: var(--navy);
  font-weight: 800;
}
.colors-list { display: flex; gap: 10px; flex-wrap: wrap; }
.color-option {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--gold);
}
.specifications-list { list-style: none; }
.specifications-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.specifications-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--gold);
}

.add-to-cart-big {
  background: var(--gold-gradient);
  color: var(--navy);
  border: none;
  padding: 17px 26px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 800;
  transition: var(--transition);
  width: 100%;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--gold-glow);
  font-family: inherit;
}
.add-to-cart-big:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 169, 97, 0.45);
}
.add-to-cart-big:disabled {
  background: #D4D4D8 !important;
  box-shadow: none;
  cursor: not-allowed;
}

/* ---------- Modals ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 51, 0.78);
  backdrop-filter: blur(6px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--gold);
}
.modal-header {
  padding: 1.2rem 1.4rem;
  border-bottom: 2px solid var(--gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--gold-light);
}
.close-btn {
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}
.close-btn:hover { color: var(--gold); }
.modal-body { padding: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  background: var(--ivory);
  font-family: inherit;
  transition: var(--transition);
}
.form-input:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}
.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--gold-gradient);
  color: var(--navy);
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--gold-glow);
  font-family: inherit;
  transition: var(--transition);
}
.submit-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}
.cart-total-box {
  font-weight: 800;
  margin: 1rem 0;
  font-size: 1.2rem;
  text-align: left;
  color: var(--navy);
}
.order-summary-box {
  margin-bottom: 1rem;
  background: var(--ivory);
  padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--gold);
  font-size: 0.9rem;
}
.modal-switch-link {
  text-align: center;
  margin-top: 14px;
  cursor: pointer;
  color: var(--gold-dark);
  font-weight: 700;
}
.modal-switch-link:hover { color: var(--navy); }

/* ---------- Cart Items ---------- */
.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.9rem;
  gap: 10px;
}
.cart-item img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 10px;
  border: 1.5px solid var(--gold-border);
  padding: 3px;
  background: var(--white);
}
.cart-item-info { flex-grow: 1; }
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--gold);
  background: var(--ivory);
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.qty-btn:hover {
  background: var(--gold-gradient);
  color: var(--navy);
}

/* ---------- Mobile Bottom Nav ---------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -6px 24px rgba(15, 15, 51, 0.3);
  z-index: 1500;
  justify-content: space-around;
  align-items: center;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(224, 192, 138, 0.65);
  font-size: 0.74rem;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 4px 12px;
  font-family: inherit;
  transition: var(--transition);
}
.nav-item i { font-size: 1.2rem; margin-bottom: 3px; }
.nav-item.active, .nav-item:hover { color: var(--gold); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 88px;
  inset-inline-end: 20px;
  background: var(--navy);
  color: var(--gold-light);
  border: 1.5px solid var(--gold);
  padding: 13px 24px;
  border-radius: 12px;
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .header { height: 72px; padding: 0 0.75rem; }
  .logo img { height: 58px; transform: scale(1.5); }
  .header-brand-badge { display: none; }
  .auth-btn span { display: none; }

  /* الهيرو مربع كامل العرض على الموبايل */
  .hero-section {
    max-width: 100%;
    border-radius: 16px;
    margin-bottom: 1.4rem;
  }
  .hero-section::after {
    inset: 5px;
    border-radius: 12px;
  }

  .search-sort-row { grid-template-columns: 1fr; gap: 8px; }

  .categories-grid {
    padding: 4px 0 12px 0;
    margin-inline: -1.2rem;
    padding-inline-start: 1.2rem;
    padding-inline-end: 1.2rem;
  }
  .categories-grid::after { flex: 0 0 20px; }
  .category-button { padding: 10px 18px; font-size: 0.85rem; }

  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .product-img-wrapper { height: 155px; padding: 10px; }
  .card-content { padding: 10px; }
  .product-title { font-size: 0.86rem; }
  .product-price { font-size: 1.02rem; }
  .product-actions { grid-template-columns: 1fr; gap: 6px; }
  .product-container { grid-template-columns: 1fr; padding: 1.2rem; gap: 1.3rem; }
  .main-image-box { height: 300px; }
  .mobile-bottom-nav { display: flex; }
  .toast {
    inset-inline-end: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
  }
  .lang-btn { padding: 5px 10px; font-size: 0.72rem; }

  /* العروض */
  .offers-banner { padding: 14px 16px; border-radius: 14px; }
  .offers-banner-content > i:first-child { font-size: 1.5rem; }
  .offers-banner-title { font-size: 1rem; }
  .offers-banner-subtitle { font-size: 0.72rem; }
  .offers-banner-count { min-width: 36px; height: 36px; font-size: 0.95rem; padding: 0 10px; }
  .new-price { font-size: 1.05rem; }
  .value-highlight { font-size: 1.3rem; }
  .savings-tag { font-size: 0.68rem; }
  .discount-ribbon { font-size: 0.7rem; padding: 4px 10px; }
  .gift-ribbon { font-size: 0.65rem; padding: 4px 10px; }
  .gift-preview-body img { width: 42px; height: 42px; }
  .gift-preview-name { font-size: 0.72rem; }
  .gift-box-content img { width: 70px; height: 70px; }
  .gift-box-name { font-size: 0.9rem; }
  .main-discount-badge { font-size: 0.85rem; padding: 6px 12px; }
}/* ==================== تصنيف العروض ==================== */
.category-button.category-offers {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-color: #F59E0B;
  color: #92400E;
}
.category-button.category-offers i { color: #DC2626; }
.category-button.category-offers.active {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #fff;
  border-color: #DC2626;
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.35);
}
.category-button.category-offers.active i { color: #FDE68A; }

.category-button .offers-count {
  background: #DC2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: 4px;
}
.category-button.category-offers.active .offers-count {
  background: #FDE68A;
  color: #991B1B;
}

/* ==================== بانر العروض ==================== */
.offers-banner {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #fff;
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 1.6rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 32px rgba(220, 38, 38, 0.35);
  border: 2px solid #FDE68A;
}
.offers-banner:hover { transform: translateY(-3px); }
.offers-banner-content { display: flex; align-items: center; gap: 16px; }
.offers-banner-content > i:first-child {
  font-size: 2rem; color: #FDE68A;
  animation: fireGlow 1.5s ease-in-out infinite;
}
@keyframes fireGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.offers-banner-title { font-size: 1.15rem; font-weight: 900; }
.offers-banner-subtitle { font-size: 0.82rem; opacity: 0.9; margin-top: 2px; }
.offers-banner-count {
  background: #FDE68A; color: #991B1B;
  font-weight: 900; font-size: 1.1rem;
  min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: 21px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-inline-start: auto;
}
.offers-banner-arrow { color: #FDE68A; font-size: 1.1rem; }

/* ==================== شارة الخصم ==================== */
.discount-ribbon {
  position: absolute;
  top: 12px; inset-inline-end: 12px;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem; font-weight: 900;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45);
  animation: discountPulse 2s ease-in-out infinite;
}
@keyframes discountPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ==================== شارة الهدية ==================== */
.gift-ribbon {
  position: absolute;
  top: 48px; inset-inline-end: 12px;
  background: linear-gradient(135deg, #EC4899 0%, #9D174D 100%);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem; font-weight: 900;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.45);
  animation: giftBounce 2s ease-in-out infinite;
}
@keyframes giftBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ==================== مقارنة السعر ==================== */
.price-comparison {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.price-arrow { color: #DC2626; font-size: 0.7rem; }
.new-price { color: #DC2626; font-weight: 900; font-size: 1.2rem; }
.regular-price { font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.old-price {
  font-size: 0.88rem;
  color: var(--gray);
  text-decoration: line-through;
  font-weight: 600;
}
.savings-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: #059669;
  background: #D1FAE5;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 800;
  margin-top: 4px;
  width: fit-content;
}

/* ==================== معاينة الهدية في البطاقة ==================== */
.gift-preview {
  background: linear-gradient(135deg, #FCE7F3 0%, #FDF2F8 100%);
  border: 1.5px solid #F9A8D4;
  border-radius: 12px;
  padding: 10px;
  margin: 8px 0;
}
.gift-preview-header {
  color: #9D174D;
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.gift-preview-body { display: flex; align-items: center; gap: 10px; }
.gift-preview-body img {
  width: 50px; height: 50px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
  border: 1px solid #F9A8D4;
  flex-shrink: 0;
}
.gift-preview-info { flex: 1; min-width: 0; }
.gift-preview-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9D174D;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.gift-preview-price { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; }
.old-price-sm { color: var(--gray); text-decoration: line-through; }
.free-tag {
  background: #EC4899; color: #fff;
  padding: 2px 8px; border-radius: 10px;
  font-weight: 800; font-size: 0.7rem;
}

/* ==================== بطاقة منتج مع عرض ==================== */
.product-card.product-has-offer {
  border-color: #F59E0B;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}
.product-card.product-has-offer:hover {
  border-color: #DC2626;
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.25);
}

/* ==================== صفحة التفاصيل ==================== */
.main-discount-badge {
  position: absolute;
  top: 14px; inset-inline-end: 14px;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 25px;
  box-shadow: 0 6px 20px rgba(220,38,38,0.4);
  animation: discountPulse 2s ease-in-out infinite;
  z-index: 2;
}
.main-image-box { position: relative; }

.hot-deal-badge {
  background: linear-gradient(135deg, #F59E0B 0%, #DC2626 100%);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px;
}
.hot-deal-badge i { color: #FDE68A; }

.details-price-comparison {
  background: linear-gradient(135deg, #FEF3C7 0%, #FEF9E7 100%);
  border: 2px solid #F59E0B;
  border-radius: 16px;
  padding: 16px;
  margin: 1rem 0;
}
.price-before, .price-after {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 4px;
}
.price-before .label, .price-after .label {
  font-weight: 700; color: var(--gray); font-size: 0.9rem;
}
.value-strike {
  text-decoration: line-through;
  color: var(--gray);
  font-weight: 700;
  font-size: 1.15rem;
}
.value-highlight { color: #DC2626; font-weight: 900; font-size: 1.5rem; }
.price-arrow-row { text-align: center; color: #DC2626; font-size: 1.2rem; margin: 4px 0; }
.savings-box {
  margin-top: 12px;
  padding: 10px 14px;
  background: #D1FAE5;
  border-radius: 10px;
  color: #065F46;
  font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.95rem;
}

.gift-box-detail {
  background: linear-gradient(135deg, #FCE7F3 0%, #FDF2F8 100%);
  border: 2px solid #F9A8D4;
  border-radius: 16px;
  padding: 16px;
  margin: 1.2rem 0;
}
.gift-box-header {
  color: #9D174D;
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.gift-box-header i { font-size: 1.3rem; }
.gift-box-content { display: flex; align-items: center; gap: 16px; }
.gift-box-content img {
  width: 90px; height: 90px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  border: 2px solid #F9A8D4;
  flex-shrink: 0;
}
.gift-box-info { flex: 1; }
.gift-box-name { font-weight: 800; color: #9D174D; font-size: 1rem; margin-bottom: 6px; }
.gift-box-price { font-size: 0.88rem; color: var(--gray); }
.gift-old-price { text-decoration: line-through; margin: 0 6px; }
.gift-free {
  background: #EC4899;
  color: #fff;
  padding: 3px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.8rem;
  margin-inline-start: 8px;
}

.no-offers-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-radius: 18px;
  border: 2px dashed #F59E0B;
}
.no-offers-message i { font-size: 3.5rem; color: #DC2626; margin-bottom: 1rem; display: block; }
.no-offers-message h3 { color: #92400E; font-size: 1.3rem; font-weight: 800; }

@media (max-width: 768px) {
  .offers-banner { padding: 14px 16px; border-radius: 14px; }
  .offers-banner-content > i:first-child { font-size: 1.5rem; }
  .offers-banner-title { font-size: 1rem; }
  .new-price { font-size: 1.05rem; }
  .value-highlight { font-size: 1.3rem; }
  .gift-box-content img { width: 70px; height: 70px; }
  .gift-preview-body img { width: 42px; height: 42px; }
}
/* ==================== Orders Premium ==================== */
.orders-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.orders-stat-mini {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: all 0.28s;
  cursor: pointer;
}

.orders-stat-mini::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--gold-gradient);
}

.orders-stat-mini:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: var(--gold);
}

.orders-stat-mini .mini-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.orders-stat-mini .mini-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
}

.orders-stat-mini.new::before { background: #EF4444; }
.orders-stat-mini.processing::before { background: #F59E0B; }
.orders-stat-mini.delivered::before { background: #10B981; }
.orders-stat-mini.revenue::before { background: #3B82F6; }

.orders-tabs {
  display: flex;
  gap: 8px;
  padding: 0 22px;
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-hover);
}

.orders-tab {
  padding: 14px 22px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  position: relative;
  top: 2px;
}

.orders-tab:hover { color: var(--text-primary); }

.orders-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--gold);
  background: var(--bg-card);
  border-radius: 10px 10px 0 0;
}

.orders-tab .tab-count {
  background: var(--bg-hover);
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 900;
}

.orders-tab.active .tab-count {
  background: var(--gold-gradient);
  color: var(--navy);
}

.orders-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 16px 22px;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border-color);
}

.orders-filters .filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.orders-filters label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.orders-filters input,
.orders-filters select {
  padding: 9px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.orders-filters input:focus,
.orders-filters select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.15);
}

.orders-filters-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.orders-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.selected-info {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--gold-dark);
  font-size: 0.9rem;
  padding: 6px 14px;
  background: rgba(201,169,97,0.12);
  border-radius: 20px;
}

.selected-info.active { display: inline-flex; }

.orders-actions-bar .actions-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-row.selected {
  background: rgba(201,169,97,0.1) !important;
  border-right: 4px solid var(--gold);
}

.order-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--gold);
}

.order-customer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-customer .name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.order-customer .phone {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 4px;
}

.order-items-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 280px;
}

.item-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: var(--bg-hover);
  border-radius: 8px;
  font-size: 0.78rem;
}

.item-mini img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  flex-shrink: 0;
}

.item-mini .item-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.item-mini .item-qty {
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 0.75rem;
}

.order-status-select {
  padding: 7px 10px;
  font-size: 0.82rem;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  min-width: 130px;
}

.order-status-select:focus {
  border-color: var(--gold);
  outline: none;
}

.orders-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  flex-wrap: wrap;
}

.order-detail-modal .modal-content { max-width: 800px; }

.order-detail-header {
  background: var(--navy);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-detail-header h3 {
  color: var(--gold-light);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-detail-header .modal-close {
  color: var(--gold-light);
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.order-detail-section {
  background: var(--bg-hover);
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
}

.order-detail-section h4 {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.order-detail-section p {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.order-detail-items {
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.order-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.order-detail-item:last-child { border-bottom: none; }

.order-detail-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  border: 1px solid var(--border-color);
}

.order-detail-item .item-info { flex: 1; }

.order-detail-item .item-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.order-detail-item .item-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.order-detail-item .item-price {
  font-weight: 900;
  color: var(--gold-dark);
  font-size: 0.95rem;
}

.empty-orders {
  padding: 80px 20px;
  text-align: center;
}

.empty-orders i {
  font-size: 4rem;
  color: var(--border-color);
  margin-bottom: 16px;
}

.empty-orders h3 {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 800;
  margin-bottom: 6px;
}

@media print {
  .admin-sidebar, .admin-topbar, .orders-tabs, .orders-filters,
  .orders-actions-bar, .orders-pagination, .btn-group, .modal-header { display: none !important; }
  .admin-main { margin-right: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

@media (max-width: 768px) {
  .orders-filters { grid-template-columns: 1fr 1fr; }
  .orders-actions-bar { flex-direction: column; align-items: stretch; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .orders-stats-grid { grid-template-columns: repeat(2, 1fr); }
}