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

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #C0392B;
  --red-dark: #922B21;
  --red-light: #E74C3C;
  --dark: #F8F6F3;
  --dark2: #FFFFFF;
  --dark3: #EDE9E4;
  --white: #1A1A1A;
  --gray: #6B6B6B;
  --gold: #B8860B;
  --font: 'Tajawal', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  direction: rtl;
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
#cursor {
  width: 20px; height: 20px;
  border: 2px solid var(--red);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, background 0.15s ease;
  transform: translate(-50%, -50%);
}
#cursor-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
body:hover #cursor { opacity: 1; }

/* Navbar */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: 50px;
  padding: 12px 30px;
  min-width: 700px;
  justify-content: space-between;
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 0 4px rgba(192,57,43,0.3));
  transition: filter 0.3s, transform 0.3s;
}
.nav-logo img:hover {
  filter: drop-shadow(0 0 10px rgba(192,57,43,0.7));
  transform: scale(1.05);
}
.nav-logo span { color: var(--white); }
.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; right: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }
.nav-cart {
  position: relative;
  background: var(--red);
  border: none;
  color: white;
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: none;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, background 0.3s;
}
.nav-cart:hover { transform: scale(1.1); background: var(--red-dark); }
.cart-count {
  position: absolute;
  top: -5px; left: -5px;
  background: var(--gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Hamburger Button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #333;
  border-radius: 3px;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Sections */
section { padding: 80px 60px; }

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.section-title span { color: var(--red); }
.section-subtitle {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 50px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  padding: 13px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(26,26,26,0.25);
  cursor: none;
  transition: all 0.3s;
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Product Cards */
.product-card {
  background: var(--dark2);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.4s;
  cursor: none;
  position: relative;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}
.product-card:hover {
  transform: translateY(-8px) rotate(0deg);
  box-shadow: 0 20px 60px rgba(192,57,43,0.15);
}
.product-card .card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .card-img { transform: scale(1.08); }
.card-body { padding: 20px; }
.card-category {
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
}
.card-price small { font-size: 0.7rem; color: var(--gray); font-weight: 400; }
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.btn-add-cart {
  flex: 1;
  background: var(--red);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 12px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: none;
  transition: all 0.3s;
}
.btn-add-cart:hover { background: var(--red-dark); transform: scale(1.02); }
.btn-wish {
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--gray);
  border-radius: 12px;
  cursor: none;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.btn-wish:hover { color: var(--red); border-color: var(--red); }

/* Badge */
.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge.gold { background: var(--gold); color: #000; }

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 400px;
  height: 100vh;
  background: #FFFFFF;
  border-right: 1px solid rgba(192,57,43,0.2);
  box-shadow: 4px 0 30px rgba(0,0,0,0.12);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { transform: translateX(0); }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-header {
  padding: 25px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h3 { font-size: 1.3rem; font-weight: 900; }
.cart-close {
  background: none;
  border: none;
  color: #555;
  font-size: 1.4rem;
  cursor: none;
  transition: color 0.3s;
}
.cart-close:hover { color: var(--red); }

.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  align-items: center;
}
.cart-item img {
  width: 70px; height: 70px;
  object-fit: cover;
  border-radius: 12px;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-price { color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.qty-btn {
  width: 26px; height: 26px;
  background: var(--dark3);
  border: none;
  color: #333;
  border-radius: 8px;
  cursor: none;
  font-size: 0.9rem;
  transition: background 0.3s;
}
.qty-btn:hover { background: var(--red); color: white; }
.qty-val { font-weight: 700; min-width: 20px; text-align: center; }

.cart-footer {
  padding: 25px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cart-total span:first-child { color: var(--gray); }
.cart-total span:last-child { font-size: 1.4rem; font-weight: 900; color: var(--red); }

/* Footer */
footer {
  background: #1A1A1A;
  padding: 60px;
  border-top: 1px solid rgba(0,0,0,0.1);
  color: #F5F5F0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { font-size: 1.8rem; font-weight: 900; color: var(--red); }
.footer-brand p { color: #aaa; line-height: 1.8; margin-top: 15px; font-size: 0.9rem; }
.footer-col h4 { font-weight: 700; margin-bottom: 20px; font-size: 1rem; color: #fff; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #aaa; text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #aaa;
  font-size: 0.85rem;
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.9rem;
}
.social-link:hover { background: var(--red); color: white; }

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #FFFFFF;
  border: 1px solid rgba(192,57,43,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  color: #1A1A1A;
  padding: 15px 25px;
  border-radius: 15px;
  font-weight: 700;
  z-index: 9998;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast .toast-icon { color: var(--red); font-size: 1.2rem; }

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    min-width: 90vw;
    padding: 10px 20px;
    top: 10px;
    flex-wrap: wrap;
    gap: 12px;
    border-radius: 20px;
  }

  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    border-top: 1px solid rgba(192,57,43,0.15);
    padding-top: 10px;
    margin-top: 4px;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 8px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: 10px;
  }
  .nav-links a:hover { background: rgba(192,57,43,0.06); padding-right: 16px; }
  .nav-links li:last-child a { border-bottom: none; }

  section { padding: 60px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-sidebar { width: 100%; }
}
