@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #d97706;
  --primary-hover: #b45309;
  --bg-main: #fafaf9;
  --text-main: #1c1917;
  --text-muted: #78716c;
  --card-bg: #ffffff;
  --border: #e7e5e4;
  --whatsapp: #25d366;
  --amazon: #ff9900;
  --noon: #feee00;
  --radius: 16px;
  --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

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

/* Top Announcement Bar */
.top-bar {
  background: #1c1917;
  color: #d6d3d1;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #292524;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar a:hover {
  color: #fbbf24;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
}
.logo span {
  color: var(--primary);
}
nav {
  display: flex;
  gap: 28px;
}
nav a {
  font-size: 15px;
  font-weight: 600;
  color: #44403c;
}
nav a:hover, nav a.active {
  color: var(--primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.icon-btn {
  background: #f5f5f4;
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.icon-btn:hover {
  background: #e7e5e4;
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&q=80&w=1600') center/cover no-repeat;
  color: white;
  padding: 80px 0;
}
.hero-content {
  max-width: 650px;
}
.hero-badge {
  display: inline-block;
  background: rgba(217, 119, 6, 0.9);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 span {
  color: #fbbf24;
}
.hero p {
  font-size: 18px;
  color: #e7e5e4;
  margin-bottom: 30px;
}
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  background: white;
  color: var(--text-main);
}

/* Sections */
.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Products Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.product-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #f5f5f4;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}
.store-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.product-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.product-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}
.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 16px;
}
.current-price {
  font-size: 20px;
  font-weight: 800;
  color: #b45309;
}
.original-price {
  font-size: 14px;
  color: #a8a29e;
  text-decoration: line-through;
}
.discount-pill {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: auto;
}

/* Affiliate Buttons */
.btn-affiliate-amazon {
  background: var(--amazon);
  color: #111;
  font-weight: 800;
}
.btn-affiliate-amazon:hover {
  background: #e68a00;
}
.btn-affiliate-noon {
  background: var(--noon);
  color: #000;
  font-weight: 900;
}
.btn-affiliate-noon:hover {
  background: #e5d600;
}
.btn-affiliate-aliexpress {
  background: #ff4747;
  color: white;
  font-weight: 800;
}
.btn-affiliate-aliexpress:hover {
  background: #e03e3e;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: var(--whatsapp);
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.12);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* Footer */
footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 70px 0 30px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h3 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
  font-size: 14px;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid #292524;
  padding-top: 25px;
  text-align: center;
  font-size: 13px;
  color: #78716c;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: white;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 25px;
}
.cart-drawer.active {
  transform: translateX(0);
}
.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}
.cart-drawer-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  .hero h1 {
    font-size: 34px;
  }
}
