/* Add custom CSS styles below */ 
/* =========================
   متجر لعبتيك - Light & Fast
   ========================= */

:root {
  --primary: #6d28d9;
  --primary-hover: #5b21b6;
  --secondary: #0ea5e9;

  --bg: #f8fafc;
  --white: #ffffff;
  --card: #ffffff;

  --text: #111827;
  --text-soft: #6b7280;

  --border: #e5e7eb;

  --danger: #ef4444;

  --radius-sm: 8px;
  --radius-md: 14px;

  --shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  direction: rtl;
  font-family: Arial, "Tajawal", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1200px, 92%);
  margin: auto;
}

/* =========================
   Header
   ========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 27px;
  font-weight: 800;
  color: var(--text);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  color: var(--text-soft);
}

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

/* =========================
   Buttons
   ========================= */

.btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-weight: 700;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

/* =========================
   Hero
   ========================= */

.hero {
  padding: 45px 0;
}

.hero-content {
  min-height: 400px;
  padding: 45px;
  background: linear-gradient(
    135deg,
    #f3e8ff,
    #eff6ff
  );
  border-radius: 20px;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 35px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.2;
  margin-bottom: 15px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  color: var(--text-soft);
  font-size: 18px;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================
   Sections
   ========================= */

.section {
  padding: 50px 0;
}

.section-heading {
  margin-bottom: 25px;

  display: flex;
  justify-content: space-between;
  align-items: end;
}

.section-heading h2 {
  font-size: 30px;
}

.section-heading p {
  color: var(--text-soft);
}

/* =========================
   Search
   ========================= */

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.search-box input {
  flex: 1;
  height: 50px;

  padding: 0 15px;

  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  outline: none;
}

.search-box input:focus {
  border-color: var(--primary);
}

/* =========================
   Categories
   ========================= */

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-bottom: 25px;
}

.category-btn {
  background: white;
  border: 1px solid var(--border);

  padding: 9px 17px;
  border-radius: 20px;

  color: var(--text-soft);
}

.category-btn:hover,
.category-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =========================
   Products
   ========================= */

.products-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 18px;
}

.product-card {
  background: var(--card);

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  overflow: hidden;

  box-shadow: var(--shadow);
}

.product-card:hover {
  border-color: #c4b5fd;
}

/* صورة المنتج */

.product-image {
  position: relative;

  aspect-ratio: 1 / 1;

  background: #f3f4f6;

  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* Badges */

.badge {
  position: absolute;

  top: 10px;
  right: 10px;

  background: var(--danger);
  color: white;

  padding: 4px 9px;

  font-size: 12px;

  border-radius: 20px;
}

/* Product info */

.product-info {
  padding: 15px;
}

.product-title {
  font-size: 16px;
  margin-bottom: 7px;
}

.product-description {
  font-size: 13px;

  color: var(--text-soft);

  margin-bottom: 12px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 10px;
}

.price {
  font-weight: 800;
  font-size: 20px;

  color: var(--primary);
}

.old-price {
  font-size: 13px;

  color: #9ca3af;

  text-decoration: line-through;

  margin-right: 5px;
}

.add-to-cart {
  width: 40px;
  height: 40px;

  border: 0;

  background: var(--primary);
  color: white;

  border-radius: 8px;

  font-size: 20px;
}

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

/* =========================
   Cart
   ========================= */

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;

  top: -8px;
  left: -8px;

  background: var(--danger);
  color: white;

  min-width: 20px;
  height: 20px;

  display: grid;
  place-items: center;

  font-size: 11px;

  border-radius: 50%;
}

/* =========================
   Notification
   ========================= */

.notification {
  position: fixed;

  bottom: 20px;
  left: 20px;

  z-index: 2000;

  background: #111827;
  color: white;

  padding: 12px 18px;

  border-radius: 8px;

  opacity: 0;

  transform: translateY(10px);

  pointer-events: none;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Footer
   ========================= */

.footer {
  background: white;

  border-top: 1px solid var(--border);

  padding: 40px 0 20px;

  margin-top: 50px;
}

.footer-grid {
  display: grid;

  grid-template-columns:
    2fr 1fr 1fr;

  gap: 30px;
}

.footer p,
.footer a {
  color: var(--text-soft);
}

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

.copyright {
  text-align: center;

  margin-top: 30px;
  padding-top: 20px;

  border-top: 1px solid var(--border);

  color: var(--text-soft);
}

/* =========================
   Mobile
   ========================= */

.menu-btn {
  display: none;

  border: 0;

  background: white;

  font-size: 26px;
}

@media (max-width: 1000px) {

  .products-grid {
    grid-template-columns:
      repeat(3, 1fr);
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {

  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;

    top: 70px;
    right: 4%;
    left: 4%;

    background: white;

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 18px;

    flex-direction: column;

    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .products-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .hero-content {
    padding: 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 480px) {

  .products-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .product-info {
    padding: 10px;
  }

  .product-title {
    font-size: 14px;
  }

  .price {
    font-size: 17px;
  }

}