/* ========================================== */
/* General */
/* ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Amazon Ember", Arial, sans-serif;

}

body {
  font-family: 'Cairo', Arial, sans-serif;
  background: #fafafa;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}






/* ========================================== */
/* Products Grid Section */
/* ========================================== */

.products-grid-section {
  padding: 30px 0;
  background-color: #fff;
}

.products-grid-section:nth-child(even) {
  background-color: #ffffff;
}

.products-grid-section:first-of-type {
  padding-top: 20px;
}

/* ========================================== */
/* Header */
/* ========================================== */

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 10px;
}

.products-title {
  font-size: 34px;
  font-weight: 900;
  color: #1a1a1a;
  position: relative;
  padding-inline-end: 20px;
  margin: 0;
}

.products-title::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 32px;
  background: #b42f4c;
  border-radius: 4px;
}

.products-more-btn {
  display: inline-block;
  padding: 10px 28px;
  background: #b42f4c;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(180, 47, 76, 0.25);
}

.products-more-btn:hover {
  background: #8d2439;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(180, 47, 76, 0.35);
}

/* ========================================== */
/* Grid - الديسكتوب: 5×2 */
/* ========================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* ========================================== */
/* Product Card - نفس التنسيق */
/* ========================================== */

.product-grid-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* ========================================== */
/* Product Badges */
/* ========================================== */

.product-badges {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-sale {
  background: #b42f4c;
  color: #fff;
}

.badge-new {
  background: #15803d;
  color: #fff;
}

.badge-hot {
  background: #ea580c;
  color: #fff;
}

/* ========================================== */
/* Product Image */
/* ========================================== */

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #f9f9f9;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-grid-card:hover .product-image-wrapper img {
  transform: scale(1.08);
}

/* ========================================== */
/* Overlay & Button */
/* ========================================== */

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.product-grid-card:hover .product-overlay {
  opacity: 1;
  visibility: visible;
}

.quick-view-btn {
  padding: 12px 24px;
  background: #fff;
  color: #b42f4c;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.quick-view-btn:hover {
  background: #b42f4c;
  color: #fff;
}

/* ========================================== */
/* Product Info */
/* ========================================== */

.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-category {
  font-size: 12px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
}

.product-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.product-name a {
  color: inherit;
  transition: color 0.3s ease;
  text-decoration: none;
}

.product-name a:hover {
  color: #b42f4c;
}

.product-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================== */
/* Product Footer */
/* ========================================== */

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-price {
  font-size: 20px;
  font-weight: 900;
  color: #b42f4c;
}

.old-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.view-details-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f9f9f9;
  color: #b42f4c;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.view-details-btn:hover {
  background: #b42f4c;
  color: #fff;
}

.view-details-btn i {
  font-size: 11px;
}

/* ========================================== */
/* Responsive - التابلت */
/* ========================================== */

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .products-grid-section {
    padding: 25px 0;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .products-title {
    font-size: 26px;
  }

  .products-title::before {
    height: 26px;
    width: 5px;
  }

  .product-image-wrapper {
    height: 280px;
  }

  .product-info {
    padding: 16px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-desc {
    font-size: 12px;
  }
}

/* ========================================== */
/* Responsive - الموبايل: 2×5 */
/* ========================================== */

@media (max-width: 768px) {
  .products-grid-section {
    padding: 20px 0;
  }

  .products-grid-section:first-of-type {
    padding-top: 15px;
  }

  .products-header {
    margin-bottom: 16px;
  }

  .products-title {
    font-size: 22px;
  }

  .products-title::before {
    height: 22px;
  }

  .products-more-btn {
    font-size: 14px;
    padding: 8px 22px;
  }

  /* Grid: عمودين فقط */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-image-wrapper {
    height: 260px;
  }

  .product-info {
    padding: 14px;
  }

  .product-name {
    font-size: 14px;
    margin: 0 0 6px;
  }

  .product-desc {
    font-size: 12px;
  }

  .quick-view-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .current-price {
    font-size: 18px;
  }

  .view-details-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    gap: 10px;
  }

  .product-image-wrapper {
    height: 240px;
  }

  .product-info {
    padding: 12px;
  }

  .product-name {
    font-size: 13px;
  }

  .product-desc {
    font-size: 11px;
  }

  .quick-view-btn {
    padding: 9px 18px;
    font-size: 12px;
  }

  .current-price {
    font-size: 16px;
  }

  .old-price {
    font-size: 12px;
  }
}