@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-light: #f0fdfa;
  --primary-subtle: #ccfbf1;
  --accent: #f59e0b;
  --dark: #0f172a;
  --text-main: #334155;
  --text-muted: #64748b;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-focus: #14b8a6;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
}

/* Top Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary-hover), var(--primary));
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 18px;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 960px;
}

.announcement-slide {
  display: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  width: 100%;
}

.announcement-slide.active {
  display: inline-flex;
  opacity: 1;
  transform: translateY(0);
}

.announcement-slide-link {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.announcement-slide-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.announcement-slide-content {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.announcement-thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: white;
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.announcement-slide-link:hover .announcement-thumb {
  transform: scale(1.05);
}

.announcement-text {
  line-height: 1.45;
  font-size: 14.5px;
  font-weight: 700;
}

.announcement-controls {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.announcement-btn {
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s ease;
}
.announcement-btn:hover {
  background: rgba(255, 255, 255, 0.45);
}

.announcement-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.announcement-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

.announcement-dot.active {
  background: #ffffff;
  width: 16px;
}

.announcement-cta-pill {
  background: rgba(255, 255, 255, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.25s ease;
  cursor: pointer;
  margin-right: 6px;
}
.announcement-slide-link:hover .announcement-cta-pill {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.announcement-counter {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .announcement-controls {
    display: none;
  }
  .announcement-bar {
    padding: 6px 10px;
    font-size: 13px;
    min-height: 56px;
  }
  .announcement-thumb {
    width: 46px;
    height: 46px;
  }
  .announcement-text {
    font-size: 13px;
  }
}

/* Hero Banners Slider (White Friday & Seasonal Sales) */
.hero-banners-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  min-height: 270px;
  background: #0f172a;
}

.hero-banners-track {
  position: relative;
  width: 100%;
  min-height: 270px;
}

.hero-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  display: flex;
  align-items: center;
  padding: 36px 44px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-banner-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hero-banner-slide .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.55) 60%, rgba(15, 23, 42, 0.2) 100%);
  z-index: 1;
}

.hero-banner-slide .banner-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  color: #ffffff;
}

.banner-badge {
  display: inline-block;
  background: #ef4444;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.banner-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.banner-subtitle {
  font-size: 15px;
  opacity: 0.95;
  line-height: 1.55;
  margin-bottom: 18px;
  color: #f1f5f9;
}

.btn-hero-cta {
  background: var(--primary);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
  transition: all 0.25s ease;
  border: none;
}
.btn-hero-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.55);
}

/* Slider Controls */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}
.hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
}
.hero-nav-btn.prev {
  right: 14px;
}
.hero-nav-btn.next {
  left: 14px;
}

.hero-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero-dot.active {
  background: #ffffff;
  width: 24px;
}

@media (max-width: 768px) {
  .hero-banners-slider {
    min-height: 220px;
  }
  .hero-banner-slide {
    padding: 22px 18px;
  }
  .banner-title {
    font-size: 20px;
  }
  .banner-subtitle {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .hero-nav-btn {
    display: none;
  }
}

/* Header & Navigation */
header.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  max-width: 130px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
  font-size: 15px;
}
.nav-link:hover, .nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

.cart-btn {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-subtle);
  position: relative;
  font-weight: 700;
}
.cart-badge {
  background: var(--primary);
  color: #fff;
  border-radius: 9999px;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 4px;
}

/* Main Container */
main.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* Alerts & Flash Messages */
.flash-message {
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash-message.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #064e3b 100%);
  color: white;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 860px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 14px;
  opacity: 0.94;
  margin-bottom: 14px;
  line-height: 1.5;
}

.trust-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-pill {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Category Filter Pills */
.category-filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.cat-pill {
  display: inline-block;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-subtle);
}

.product-img-wrapper {
  position: relative;
  background: #f1f5f9;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img {
  transform: scale(1.05);
}
.product-category-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.product-badge-group {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.product-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}

.badge-bestseller {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.badge-new {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px;
}
.product-title a {
  color: inherit;
}
.product-title a:hover {
  color: var(--primary);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}
.product-currency {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.product-stock {
  font-size: 12px;
  font-weight: 600;
}
.stock-in { color: #059669; }
.stock-low { color: #d97706; }
.stock-out { color: #dc2626; }

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
}
.btn-secondary {
  background: white;
  border-color: var(--border);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: #f1f5f9;
}
.btn-danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}
.btn-danger:hover {
  background: #fecaca;
}
.btn-block {
  width: 100%;
}

/* Forms & Panels */
.panel, .card-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="email"],
select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14.5px;
  color: #0f172a !important;
  background-color: #ffffff !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select option, option {
  color: #0f172a !important;
  background-color: #ffffff !important;
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
}

textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
  margin-bottom: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
th {
  background: #f8fafc;
  color: var(--dark);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background-color: #f8fafc;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}
.badge-new { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #dbeafe; color: #1e40af; }
.badge-preparing { background: #e0e7ff; color: #3730a3; }
.badge-out_for_delivery { background: #f3e8ff; color: #6b21a8; }
.badge-delivered_collected { background: #dcfce7; color: #166534; }
.badge-cancelled, .badge-failed, .badge-returned { background: #fee2e2; color: #991b1b; }

/* Admin Navigation Tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  padding-bottom: 6px;
}
.admin-tab {
  padding: 10px 18px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--text-muted);
}
.admin-tab.active, .admin-tab:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-card .val {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}
.stat-card .lbl {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Footer */
footer.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: auto;
  padding: 40px 20px 24px;
  border-top: 1px solid #1e293b;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: white;
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col p {
  font-size: 14px;
  line-height: 1.6;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #94a3b8;
}
.footer-links a:hover {
  color: white;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 13.5px;
}

/* Social Media Badges & Footer Grid */
.footer-social-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.social-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.22s ease;
}
.social-link-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(-4px);
  color: #ffffff;
}
.social-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.social-item-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.social-item-name {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.2;
}
.social-item-handle {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.social-item-arrow {
  color: #64748b;
  font-size: 14px;
  transition: color 0.2s;
}
.social-link-item:hover .social-item-arrow {
  color: #ffffff;
}

/* Header Social Strip */
.header-social-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}
.header-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}
.header-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.header-social-btn.social-badge-facebook:hover { background: #1877F2; color: white; }
.header-social-btn.social-badge-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.header-social-btn.social-badge-tiktok:hover { background: #000000; color: white; }
.header-social-btn.social-badge-telegram:hover { background: #229ED9; color: white; }
.header-social-btn.social-badge-snapchat:hover { background: #FFFC00; color: #000000; }
.header-social-btn.social-badge-youtube:hover { background: #FF0000; color: white; }
.header-social-btn.social-badge-x:hover { background: #000000; color: white; }

@media (max-width: 768px) {
  .header-social-strip {
    display: none;
  }
}


/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: #25d366;
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: all 0.25s ease;
  animation: pulse-wa 2.5s infinite;
  text-decoration: none;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: white;
}
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-tooltip {
  position: absolute;
  right: 68px;
  background: #0f172a;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s ease;
}
.floating-whatsapp:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Checkout 2-column Layout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
@media (max-width: 850px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* Search & Filter Row */
.search-filter-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search-bar-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 520px;
}
.search-input-wrapper {
  position: relative;
  flex: 1;
}
.search-input-wrapper input {
  padding-left: 36px;
  border-radius: 9999px;
  background: white;
}
.search-icon-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
}
.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort-select {
  padding: 8px 14px;
  border-radius: 9999px;
  background: white;
  border: 1px solid var(--border);
  font-size: 13.5px;
  cursor: pointer;
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--border);
  color: var(--text-main);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}
.page-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-subtle);
}
.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Additional Button Styles */
.btn-success {
  background: #059669;
  color: white;
  border-color: #059669;
}
.btn-success:hover {
  background: #047857;
  color: white;
}
.btn-warning {
  background: #f59e0b;
  color: white;
  border-color: #f59e0b;
}
.btn-warning:hover {
  background: #d97706;
  color: white;
}

/* Stat Card Color Accents */
.stat-card.revenue {
  border-right: 4px solid #059669;
}
.stat-card.pending {
  border-right: 4px solid #f59e0b;
}
.stat-card.alert {
  border-right: 4px solid #dc2626;
  background: #fff5f5;
}

/* Quick Filter Badges */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: var(--text-muted);
  font-weight: 700;
  transition: all 0.2s;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--primary);
  color: white;
}

/* ================= Mobile & Responsive Enhancements ================= */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 12px;
    padding: 10px 14px;
    align-items: stretch;
  }
  .brand {
    justify-content: center;
  }
  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 13px;
  }
  .search-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .search-bar-form {
    max-width: 100%;
  }
  .sort-wrapper {
    justify-content: space-between;
    width: 100%;
  }
  .sort-select {
    flex: 1;
  }
  main.main-content {
    padding: 16px 12px 36px;
  }
}

@media (max-width: 520px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-img-wrapper {
    height: 140px;
  }
  .product-body {
    padding: 10px;
  }
  .product-title {
    font-size: 13.5px;
    height: 38px;
    line-height: 1.35;
  }
  .product-price {
    font-size: 16.5px;
  }
  .product-actions {
    flex-direction: column;
    gap: 6px;
  }
  .product-actions .btn {
    padding: 7px 10px;
    font-size: 12px;
  }
  .floating-whatsapp {
    bottom: 16px;
    left: 16px;
    width: 50px;
    height: 50px;
  }
}

/* Password Visibility Toggle */
.password-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-toggle-wrapper input {
  width: 100%;
  padding-left: 42px !important;
}
.password-toggle-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: color 0.2s ease;
  z-index: 2;
  border-radius: 4px;
}
.password-toggle-btn:hover {
  color: var(--primary);
  background: rgba(0, 0, 0, 0.04);
}

/* Mobile App Badges & Download Banner */
.app-badges-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  padding: 8px 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  direction: ltr;
  width: fit-content;
}
.app-store-badge:hover {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  color: #ffffff !important;
}
.app-store-badge .badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-store-badge .badge-texts {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}
.app-store-badge .badge-small {
  font-size: 9.5px;
  opacity: 0.85;
  letter-spacing: 0.2px;
}
.app-store-badge .badge-bold {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Homepage App Download Banner */
.app-download-home-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid #334155;
  border-radius: var(--radius);
  padding: 24px 30px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.app-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}
.app-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-banner-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}
.app-banner-subtitle {
  color: #94a3b8;
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
.app-banner-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 640px) {
  .app-download-home-banner {
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .app-banner-badges {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ========================================================
   VISITOR ANALYTICS & TRAFFIC DASHBOARD
   ======================================================== */
.visitor-analytics-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.traffic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.traffic-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.traffic-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(13, 148, 136, 0.25));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.traffic-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 700;
}

.traffic-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.traffic-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.traffic-mini-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.traffic-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.traffic-mini-lbl {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.traffic-mini-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.traffic-mini-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* Conversion Rate Strip */
.traffic-conversion-strip {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 1px solid #99f6e4;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.conv-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #0f766e;
  font-size: 14.5px;
}

.conv-highlight {
  background: #0d9488;
  color: white;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 800;
}

/* 7-Day Trend Chart */
.traffic-trend-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.traffic-trend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.traffic-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 180px;
  padding-top: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.traffic-bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  min-width: 32px;
}

.traffic-bar-count-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  white-space: nowrap;
}

.traffic-bar-pillar {
  width: 100%;
  max-width: 48px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(13, 148, 136, 0.65) 100%);
  border-radius: 6px 6px 0 0;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s;
  cursor: pointer;
  position: relative;
}

.traffic-bar-col:hover .traffic-bar-pillar {
  filter: brightness(1.15);
}

.traffic-bar-footer {
  margin-top: 10px;
  text-align: center;
}

.traffic-bar-day {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dark);
}

.traffic-bar-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========================================================
   GOOGLE SERP LIVE PREVIEW (SEO Engine)
   ======================================================== */
.google-serp-preview {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 18px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.serp-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #202124;
  margin-bottom: 6px;
}

.serp-favicon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f1f3f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.serp-site-name {
  font-weight: 500;
  color: #202124;
}

.serp-path {
  color: #5f6368;
  font-size: 12px;
}

.serp-title {
  color: #1a0dab;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}

.serp-title:hover {
  text-decoration: underline;
}

.serp-snippet {
  color: #4d5156;
  font-size: 14px;
  line-height: 1.58;
  margin: 0;
}




/* Video Banner Background */
.hero-banner-slide .banner-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Product Multi-Image Gallery */
.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}
.gallery-thumb-item {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: all 0.2s ease;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.gallery-thumb-item:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}
.gallery-thumb-item.active-thumb {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.25);
  transform: translateY(-2px);
}

/* ========================================================
   LIBYAN FLAG WAVING HERO SECTION
   ======================================================== */
.libya-hero-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 56px 32px 64px 32px;
  margin-bottom: 36px;
  text-align: center;
  color: #ffffff;
  background: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.55);
}

/* Multi-layer Flag Gradients */
.libya-wave-layer-red {
  position: absolute;
  top: -60px;
  left: -20%;
  width: 140%;
  height: 220px;
  background: radial-gradient(ellipse at 50% 30%, rgba(225, 29, 72, 0.65) 0%, rgba(190, 18, 60, 0.35) 45%, transparent 75%);
  filter: blur(24px);
  animation: libya-flow-top 9s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

.libya-wave-layer-green {
  position: absolute;
  bottom: -60px;
  left: -20%;
  width: 140%;
  height: 220px;
  background: radial-gradient(ellipse at 50% 70%, rgba(16, 185, 129, 0.65) 0%, rgba(5, 150, 105, 0.35) 45%, transparent 75%);
  filter: blur(24px);
  animation: libya-flow-bottom 10s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

/* Center Moonlight / Starlight glow */
.libya-center-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, rgba(15, 23, 42, 0.85) 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Wavy SVG Ribbon Effect */
.libya-wave-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.28;
  pointer-events: none;
  z-index: 1;
}

@keyframes libya-flow-top {
  0% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(35px) scaleY(1.15) skewX(2deg); }
  100% { transform: translateX(-30px) scaleY(0.95) skewX(-2deg); }
}

@keyframes libya-flow-bottom {
  0% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-35px) scaleY(1.12) skewX(-2deg); }
  100% { transform: translateX(30px) scaleY(0.95) skewX(2deg); }
}

.libya-hero-content {
  position: relative;
  z-index: 2;
}

.libya-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.libya-hero-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 14px;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.libya-hero-desc {
  font-size: 16.5px;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 30px auto;
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
