:root {
  /* Brand Colors */
  --primary-color: #D4A373; /* Warm Caramel/Gold */
  --secondary-color: #FAEDCD; /* Soft Beige */
  --accent-color: #CCD5AE; /* Soft Sage Green */
  --text-dark: #2A2A2A; /* Deep Charcoal */
  --text-light: #F9F9F9; /* Off White */
  --background-color: #FEFAE0; /* Very Light Beige */
  --card-bg: #FFFFFF;
  
  /* Typography */
  --font-main: 'Outfit', sans-serif;
  --font-heading: 'Playfair Display', serif;

  /* Spacing & Sizes */
  --nav-height: 80px;
  --border-radius: 12px;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--background-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Navbar */
.navbar {
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background: rgba(254, 250, 224, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-fast);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-icon {
  font-size: 1.5rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.cart-icon:hover {
  transform: scale(1.1);
  color: var(--primary-color);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-weight: bold;
}

/* Hero Section */
.hero {
  height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--background-color) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease forwards;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #555;
  animation: fadeUp 1s ease 0.2s forwards;
  opacity: 0;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(212, 163, 115, 0.4);
  animation: fadeUp 1s ease 0.4s forwards;
  opacity: 0;
}

.btn-primary:hover {
  background-color: #c09060;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 163, 115, 0.6);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: fadeIn 1.5s ease forwards;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transform: rotate(2deg);
  transition: var(--transition-smooth);
}

.hero-image img:hover {
  transform: rotate(0deg) scale(1.02);
}

/* Floating Shapes */
.shape {
  position: absolute;
  background: var(--accent-color);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  z-index: 0;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 5%;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: 10%;
  background: var(--primary-color);
}

/* Products Section */
.products {
  padding: 5rem 5%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
  text-align: center;
  background: white;
  position: relative;
  z-index: 2;
}

.product-category {
  font-size: 0.9rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.add-to-cart-btn {
  width: 100%;
  padding: 10px;
  background: var(--text-dark);
  color: white;
  border: none;
  font-family: var(--font-main);
  font-weight: 600;
  margin-top: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  opacity: 0;
  transform: translateY(10px);
}

.product-card:hover .add-to-cart-btn {
  opacity: 1;
  transform: translateY(0);
}

.add-to-cart-btn:hover {
  background: var(--primary-color);
}

/* Features */
.features {
  display: flex;
  justify-content: space-around;
  padding: 4rem 5%;
  background: var(--card-bg);
  flex-wrap: wrap;
  gap: 2rem;
}

.feature-box {
  text-align: center;
  flex: 1;
  min-width: 250px;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-box h3 {
  margin-bottom: 0.5rem;
}

.feature-box p {
  color: #666;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--text-light);
  padding: 4rem 5% 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: #bbb;
  transition: var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #888;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--card-bg);
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  z-index: 2000;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  padding: 2rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  transition: var(--transition-fast);
}

#close-cart:hover {
  color: var(--text-dark);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.item-details h4 {
  font-family: var(--font-main);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.item-details p {
  color: var(--primary-color);
  font-weight: 600;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.item-actions button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
}

.item-actions button:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.cart-footer {
  padding: 2rem;
  border-top: 1px solid #eee;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.checkout-btn {
  width: 100%;
  text-align: center;
  background-color: #25D366; /* WhatsApp Green */
  color: white;
}

.checkout-btn:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Cart Overlay */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding-top: calc(var(--nav-height) + 2rem);
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-image {
    margin-top: 3rem;
  }
  
  .add-to-cart-btn {
    opacity: 1;
    transform: none;
  }
}

/* Language Selector */
.lang-select {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--text-dark);
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
  font-family: var(--font-main);
  font-weight: 500;
  cursor: pointer;
  outline: none;
  margin-right: 1rem;
}

/* RTL Support for Arabic */
.rtl-mode {
  text-align: right;
  direction: rtl;
}

.rtl-mode .nav-actions {
  flex-direction: row-reverse;
}

.rtl-mode .lang-select {
  margin-right: 0;
  margin-left: 1rem;
}

.rtl-mode .cart-sidebar {
  right: auto;
  left: -400px;
}

.rtl-mode .cart-sidebar.active {
  left: 0;
}

.rtl-mode .item-actions {
  flex-direction: row-reverse;
}

.rtl-mode .feature-box, 
.rtl-mode .product-info,
.rtl-mode .footer-col {
  text-align: right;
}

.rtl-mode .social-links {
  justify-content: flex-start;
}

.rtl-mode .nav-links a::after {
  right: 0;
  left: auto;
}
