/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #ffe4ec;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #e91e63;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #e91e63;
}

.icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.icons a {
  text-decoration: none;
  color: #555;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: 0.3s;
}

.icons a:hover {
  color: #e91e63;
}

/* Hero */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #fff0f6, #fafafa);
  flex-wrap: wrap;
}

.hero-text {
  max-width: 50%;
}

.hero-text h3 {
  color: #e91e63;
  font-size: 22px;
}

.hero-text h1 {
  font-size: 48px;
  margin: 15px 0;
}

.hero-text p {
  margin: 20px 0;
  color: #555;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #e91e63;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #c2185b;
}

.hero-img img {
  max-width: 600px;
  border-radius: 8px;
}

/* Categories */
.category {
  padding: 60px 20px;
}

.category h2 {
  font-size: 30px;
  margin-bottom: 25px;
  color: #333;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  padding: 15px;
  border: 1px solid #eee;
  text-align: center;
  border-radius: 6px;
  transition: 0.3s;
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
}

.product-card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-card p {
  margin: 10px 0;
  font-weight: 600;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 8px;
}

.new-price {
  color: #e91e63;
  font-weight: bold;
  font-size: 18px;
}

.cart-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #e91e63;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.cart-btn:hover {
  background: #c2185b;
}

/* Footer */
footer {
  background: #fff;
  color: #000;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #ffe4ec;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #e91e63;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #e91e63;
}

.icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.icons a {
  text-decoration: none;
  color: #555;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: 0.3s;
}

.icons a:hover {
  color: #e91e63;
}

/* Hero */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #fff0f6, #fafafa);
  flex-wrap: wrap;
}

.hero-text {
  max-width: 50%;
}

.hero-text h3 {
  color: #e91e63;
  font-size: 22px;
}

.hero-text h1 {
  font-size: 48px;
  margin: 15px 0;
}

.hero-text p {
  margin: 20px 0;
  color: #555;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #e91e63;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #c2185b;
}

.hero-img img {
  max-width: 600px;
  border-radius: 8px;
}

/* Categories */
.category {
  padding: 60px 20px;
}

.category h2 {
  font-size: 30px;
  margin-bottom: 25px;
  color: #333;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  padding: 15px;
  border: 1px solid #eee;
  text-align: center;
  border-radius: 6px;
  transition: 0.3s;
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
}

.product-card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-card p {
  margin: 10px 0;
  font-weight: 600;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 8px;
}

.new-price {
  color: #e91e63;
  font-weight: bold;
  font-size: 18px;
}

.cart-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #e91e63;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.cart-btn:hover {
  background: #c2185b;
}

/* Footer */
footer {
  background: #fff;
  color: #000;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* 📱 Responsive - Mobile */
@media (max-width: 480px) {
  /* Logo */
  .logo {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
    flex: 1 1 100%;
  }

  /* Navigation */
  nav ul {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  nav ul li {
    margin: 0;
  }

  /* Icons */
  .icons {
    width: 100%;
    justify-content: center;
    align-items: center;       /* يوسّط عمودياً */
    text-align: center;        /* يوسّط نصياً */
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
  }

  .icons a {
    font-size: 12px;
    gap: 3px;
    display: inline-flex;
    align-items: center;
  }

  /* Hero Section */
  .hero-text {
    text-align: center;         /* يخلي الـ Fashion Sale في النص */
    width: 100%;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .btn {
    padding: 8px 15px;
    font-size: 14px;
  }

  .hero-img img {
    max-width: 100%;
    height: auto;
    display: block;
    margin:20px auto 0 auto; /* يوسّط الصورة */
  }

  /* Product Grid */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
/* 📱 Responsive - Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  /* Logo */
  .logo {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
    flex: 1 1 100%;
  }

  /* Navigation */
  nav ul {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }

  nav ul li {
    margin: 0;
  }

  /* Icons */
  .icons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
  }

  .icons a {
    font-size: 14px;
    display: flex;       /* ✅ تم التعديل هنا */
    align-items: center;
    gap: 5px;            /* دلوقتي هيشتغل في كل المتصفحات */
  }

  /* Hero Section */
  .hero-text {
    text-align: center;
    width: 100%;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 16px;
    display: block;
    margin: 15px auto 25px auto; /* يدي مسافة قبل الصورة */
  }

  .hero-img img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* Product Grid / Categories */
  .product-grid,
  .categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* صف فيه صورتين */
    gap: 15px;
    margin-top: 20px;
  }

  .product-grid img,
  .categories img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
  }
}

.card-bottom {
  display: flex;
  justify-content: space-between; /* يخلي الأسعار في ناحية والزرار في الناحية التانية */
  align-items: center;
  margin-top: auto; /* يخليهم ينزلوا لآخر الكارت */
}

.price {
  display: flex;
  gap: 6px; /* مسافة صغيرة بين السعر القديم والجديد */
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* يخلي الكارت منظم والأسعار والزرار تحت */
  height: 100%; /* يخلي كل الكروت نفس الطول */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
}

nav ul li a {
  padding: 8px 12px;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: black;
}

nav ul li a:hover,
nav ul li a:focus {
  color: red;
  border: 2px solid red;
}
