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

:root {
  /* Light Theme Variables */
  --bg-color: #fff5f8;
  --surface-color: #ffffff;
  --text-color: #1a1a1a;
  --text-muted: #4b5563;
  --primary-color: #db2777; /* Pink */
  --primary-hover: #be185d;
  --accent-color: #1a1a1a; /* Black */
  --border-color: #fce7f3;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --bg-color: #121212;
  --surface-color: #1e1e1e;
  --text-color: #f9fafb;
  --text-muted: #9ca3af;
  --primary-color: #f472b6; /* Lighter Pink for dark mode */
  --primary-hover: #db2777;
  --accent-color: #ffffff; /* White accents */
  --border-color: #374151;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
}

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

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  background-color: var(--surface-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  transition: background-color var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

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

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

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  transition: color var(--transition);
}

.theme-toggle:hover {
  color: var(--primary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1616683693504-3ea7e9ad6fec?q=80&w=1974&auto=format&fit=crop') center/cover;
  color: white;
  margin-bottom: 60px;
  border-radius: 0 0 40px 40px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: var(--accent-color);
  position: relative;
}

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

/* About Section */
.about {
  padding: 60px 0;
  background-color: var(--surface-color);
  margin-bottom: 60px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.about p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Products Grid */
.products {
  padding: 60px 0;
}

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

.product-card {
  background-color: var(--surface-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--border-color);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-info {
  padding: 20px;
  text-align: center;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-color);
  font-weight: 700;
}

.product-price {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 15px;
}

/* Topics / Blog Section */
.topics {
  padding: 60px 0;
  background-color: var(--surface-color);
  margin-bottom: 60px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.topic-card {
  background-color: var(--bg-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.topic-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.topic-content {
  padding: 20px;
}

.topic-title {
  font-size: 1.2rem;
  color: var(--text-color);
  font-weight: 600;
}

/* Order Section */
.order-section {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto 60px;
}

.order-form {
  background-color: var(--surface-color);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-color);
}

.form-group input {
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.2);
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-align: center;
  display: inline-block;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--surface-color);
}

.btn-primary:hover {
  background-color: var(--text-color);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-whatsapp:hover {
  background-color: #1ebd5a;
  transform: translateY(-2px);
}

/* Social Media Section */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.social-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-hover);
}

.icon-whatsapp { background-color: #25D366; }
.icon-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.icon-facebook { background-color: #1877F2; }
.icon-tiktok { background-color: #000000; }

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer */
footer {
  background-color: var(--surface-color);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-socials {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-socials a {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-socials a:hover {
  color: var(--primary-color);
}

footer p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  grid-column: 1 / -1;
  font-size: 1.2rem;
}

/* Admin Styles specific additions */
.admin-login {
  max-width: 400px;
  margin: 100px auto;
  padding: 40px;
  background: var(--surface-color);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.admin-dashboard {
  display: none; /* hidden until logged in */
  padding: 40px 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.admin-form {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table th, .admin-table td {
  padding: 15px;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: var(--bg-color);
  font-weight: 600;
}

.admin-table img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

.action-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: var(--transition);
}

.delete-btn {
  background-color: #ef4444;
  color: white;
}

.delete-btn:hover {
  background-color: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
    box-shadow: var(--shadow);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
}
