/* ===== VOYA - Design System ===== */
:root {
  --primary: #2C2C2C;
  --secondary: #FFFFFF;
  --accent: #D4AF37;
  --light-gray: #F5F5F5;
  --text-gray: #9CA3AF;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--primary);
  background: var(--secondary);
  direction: rtl;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--light-gray);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo a {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent);
  color: white;
}

.nav-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.cart-btn,
.user-btn {
  font-size: 20px;
  color: var(--primary);
  position: relative;
  transition: color 0.3s ease;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

/* ===== Hero Section (base) ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: white;
  text-align: right;
}

/* ===== Hero Split Layout ===== */
.hero.hero-split {
  background: radial-gradient(circle at top left, rgba(212,175,55,0.15), transparent 55%),
              radial-gradient(circle at bottom, rgba(0,0,0,0.85), #000000);
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 4.5vw, 4rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-copy p {
  font-size: 1.1rem;
  color: #e5e7eb;
  margin-bottom: 2rem;
  max-width: 450px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(148,163,184,0.4);
  color: #e5e7eb;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.hero-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 2px solid white;
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.btn:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: #b8942f;
  color: white;
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(249,250,251,0.6);
  color: #f9fafb;
}

.btn-outline-light:hover {
  background: #f9fafb;
  color: #111827;
}

/* Hero media */
.hero-media {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.hero-main-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

.hero-main-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.hero-main-card:hover img {
  transform: scale(1.07);
}

.hero-main-label {
  position: absolute;
  bottom: 18px;
  right: 18px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: rgba(17,24,39,0.78);
  color: #f9fafb;
  font-size: 0.8rem;
}

.hero-main-label strong {
  display: block;
  font-size: 0.9rem;
}

.hero-side-cards {
  display: grid;
  gap: 1.2rem;
}

.hero-side-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

.hero-side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-side-card:hover img {
  transform: scale(1.06);
}

.hero-side-label {
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(17,24,39,0.75);
  color: #e5e7eb;
  font-size: 0.8rem;
}

/* ===== Sections ===== */
section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-gray);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Products Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--light-gray);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.08);
}

.product-info {
  padding: 1.8rem;
  text-align: right;
}

.product-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.product-info p {
  color: var(--text-gray);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin: 1rem 0;
}

.add-to-cart {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart:hover {
  background: #b8942f;
  transform: translateY(-2px);
}

/* ===== Cart Page ===== */
.cart-items {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.cart-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.cart-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.quantity-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--light-gray);
  background: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s;
}

.quantity-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.cart-total {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.cart-total h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ===== Checkout Form ===== */
.checkout-form {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ===== Auth Pages ===== */
.auth-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: white;
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  width: 100%;
  margin: 1rem;
}

.auth-card h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* ===== Dashboard ===== */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
}

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 70px;
  height: 70px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg, var(--primary), #1a1a1a);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer h4 {
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 1rem;
}

.footer a {
  color: var(--text-gray);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  color: var(--text-gray);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 3rem 0 2rem;
  }
  .hero-media {
    grid-template-columns: 1.4fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    width: 100%;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    min-height: 70vh;
    text-align: center;
  }

  .hero-content,
  .hero-copy {
    padding: 0 1rem;
  }

  .hero-media {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cart-item {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-btn {
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }
  .product-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.product-detail-image img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
}

.product-detail-info h1 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.product-description {
  margin-top: 0.75rem;
  color: #4b5563;
  line-height: 1.6;
}

.product-stock.in-stock {
  color: #16a34a;
  font-weight: 600;
  margin-top: 0.75rem;
}

.product-stock.out-stock {
  color: #b91c1c;
  font-weight: 600;
  margin-top: 0.75rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.quantity-selector input {
  width: 70px;
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
}

}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
}
