@import url('https://fonts.googleapis.com/css?family=Poppins:100,300,400,500,600,700,800,800i,900&display=swap');

:root {
  /* Colors */
  --white-color: #fff;
  --black-color: #000000;
  --primary-color: #EE0202;
  --secondary-color: #4d81db;
  --tertiary-color: #FFECDB;
  --quaternary-color: #fffb00;

  /* Font Size */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-xxl: 32px;
  --font-size-xxxl: 74px;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--light-color, #f8f8f8);
  color: var(--black-color);
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

/* ===============================
   Banner Section
=============================== */
.banner {
  width: 100%;
  height: 400px;
  background-image: url('../images/products/IMG-20250903-WA0004.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  margin-bottom: 40px;
}

.banner h1 {
  font-size: var(--font-size-xxl);
  max-width: 90%;
  line-height: 1.2;
  font-weight: 700;
}

@media (max-width: 768px) {
  .banner {
    height: 250px;
    padding: 20px;
  }

  .banner h1 {
    font-size: var(--font-size-lg);
  }
}

/* ===============================
   Filter Container
=============================== */
.filter_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px auto 40px auto;
  max-width: 1200px;
  padding: 0 15px;
}

.filter_container select {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  padding: 10px 14px;
  font-size: var(--font-size-sm);
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: var(--white-color);
  color: var(--black-color);
  cursor: pointer;
  appearance: none;
  transition: all 0.3s ease;
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 16px;
  padding-left: 34px; /* make space for icon */
}

/* Icon backgrounds for each filter dropdown */
.filter_container select:nth-child(1) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zM4 22a8 8 0 0 1 16 0H4z'/%3E%3C/svg%3E");
}

.filter_container select:nth-child(2) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 8h16M4 16h16M4 12h16'/%3E%3C/svg%3E");
}

.filter_container select:nth-child(3) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 1v22M19 5H5M19 19H5'/%3E%3C/svg%3E");
}

.filter_container select:nth-child(4) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
}

.filter_container select:nth-child(5) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h18v4H3zm0 7h18v11H3z'/%3E%3C/svg%3E");
}

.filter_container select:nth-child(6) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

.filter_container select:hover,
.filter_container select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(238, 2, 2, 0.4);
  outline: none;
}
.product-card {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 277px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-name {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-name {
    opacity: 0;
}

.hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.product-card:hover .hover-info {
    transform: translateY(0);
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #ff1800;
    margin: 0;
    position: absolute;
    bottom: 228px;
    left: 3%;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
}

.color {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.color-swatches {
    display: flex;
    gap: 4px;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.2);
}

.color-swatch.red { background: #e74c3c; }
.color-swatch.blue { background: #3498db; }
.color-swatch.black { background: #2c3e50; }

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.quantity-btn:hover {
    background: #f8f9fa;
}

.quantity-value {
    font-size: 16px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart:hover {
    background: #2980b9;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .product-card {
        max-width: 100%;
        height: 372px;
    }

    .image-container {
        height: 250px;
    }

    .hover-info {
        height: 50%;
        padding: 15px;
    }

    .product-name {
        font-size: 16px;
        padding: 6px 12px;
    }
    .price{
      bottom:193px;
    }
}