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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #ffffff;
    color: #333;
}

/* Header */
.header {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 10px;
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #333;
    color: white;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Layout */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Featured Product */
.featured-product {
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 70px;
    border-bottom: 3px solid #dfdcdc;
}

.featured-product__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0px 10px 0px;
}

.featured-add-to-cart {
    background: #333;
    color: white;
    border: none;
    padding: 12px 24px;
    margin-bottom: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
}

.featured-add-to-cart:hover {
    background: #555;
}

.featured-image {
    position: relative;
    overflow: hidden;
}

.featured-product img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
}

.photo-day-label {
    position: absolute;
    bottom: 0px;
    background: rgb(255, 255, 255);
    padding: 15px 40px;
}

.photo-day-label h2 {
    margin: 0;
    padding: 0;
    font-weight: 700;
    color: black;
}

.featured-content {
    padding: 20px 0 0 0px;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.featured-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.people-also-buy-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.featured-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}


.featured-category__label {
    padding: 5px 0;
    color: #666;
}

.featured-body {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.featured-description {
    color: #666;
    line-height: 1.5;
    font-size: 14px;
    flex: 1;
    max-width: 600px;
}

.people-also-buy-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 300px;
    flex-shrink: 0;
}

.featured-extra {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-extra_images {
    display: flex;
    gap: 20px;
}

.featured-extra_images img {
    width: 90px;
    height: 120px;
    object-fit: fill;
    cursor: pointer;
}

.featured-extra_details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #666;
    text-align: right;
}

.featured-extra_details h3 {
    color: #333;
    margin-bottom: 5px;
}

/* Products Section */
 .products-section {
      margin-top: 30px;
      padding-top: 20px;
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .section-title {
      font-size: 18px;
      font-weight: 600;
    }

    span img {
      vertical-align: middle;
    }

    .sort-dropdown {
      padding: 8px 5px;
      border: 0px solid #ddd;
      background: white;
    }

    /* SIDE-BY-SIDE LAYOUT */
    .products-layout {
      display: flex;
      flex-direction: row;
      gap: 30px;
      align-items: flex-start;
      width: 100%;
    }

    /* LEFT SIDEBAR */
    .category-filters {
      padding: 20px 0;
      width: 220px;
      min-width: 220px;
      flex-shrink: 0;
    }

    /* RIGHT CONTENT - FULL WIDTH */
    .products-content {
      flex: 1;
      min-width: 0;
      width: 100%;
    }

    .filter-section {
      margin-bottom: 25px;
    }

    .filter-section:last-child {
      border-top: 2px solid #dfdcdc;
      padding-top: 20px;
    }

    .filter-title {
      font-weight: 600;
      margin-bottom: 15px;
    }

    .filter-options,
    .price-options {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .filter-option,
    .price-option {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .filter-option input,
    .price-option input {
      width: 16px;
      height: 16px;
    }

    .filter-option label,
    .price-option label {
      font-size: 14px;
      cursor: pointer;
    }

    /* RESPONSIVE GRID */
    .products-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-bottom: 30px;
      width: 100%;
    }

    /* PRODUCT CARDS */
    .product-card {
      background: white;
      overflow: hidden;
      transition: transform 0.2s;
      width: 100%;
      position: relative;
    }

    .product-card:hover {
      transform: translateY(-2px);
    }

    .product-image {
      width: 100%;
      height: 380px;
      object-fit: cover;
      position: relative;
    }

    .product-info {
      padding: 15px;
    }

    .product-category {
      font-size: 11px;
      color: #666;
      text-transform: uppercase;
      margin-bottom: 5px;
    }

    .product-title {
      font-weight: 600;
      margin-bottom: 8px;
      font-size: 14px;
    }

    .product-price {
      color: #666;
      font-weight: 500;
      margin-bottom: 12px;
    }

    .product-add-btn {
      position: absolute;
      bottom: 10px;
      left: 10px;
      right: 10px;
      background: rgba(51, 51, 51, 0.9);
      color: white;
      border: none;
      padding: 12px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      margin: 0;
    }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination button {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 12px;
    cursor: pointer;
}

.pagination button.active {
    background: #333;
    color: white;
    border-color: #333;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.cart-content {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 400px;
    background: white;
    padding: 20px;
    overflow-y: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.clear-cart-btn {
    background: none;
    color: black;
    border: 2px solid black;
    padding: 15px 12px;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #666;
}

/* RESPONSIVE LAYOUT*/

/* Large screens - maintain sidebar */
 @media (max-width: 700px) {
      .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
      }
    }

    /* Mobile screens */
    @media (max-width: 600px) {
      .main-container {
        padding: 20px 15px;
      }

      .products-layout {
        flex-direction: column;
        gap: 20px;
      }

      .category-filters {
        width: 100%;
        min-width: auto;
        padding: 20px 0;
      }

      .products-content {
        width: 100%;
      }

      .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
      }

      .cart-content {
        width: 100%;
      }

      /* Featured product adjustments */
      .featured-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
      }

      .featured-header-right {
        align-items: flex-start;
      }

      .featured-body {
        flex-direction: column;
        gap: 20px;
      }

      .people-also-buy-section {
        min-width: auto;
        width: 100%;
      }

      .featured-extra {
        flex-direction: column;
        gap: 15px;
      }

      .featured-extra_images {
        display: flex;
        gap: 8px;
        width: 100%;
      }

      .featured-extra_images img {
        flex: 1;
        width: calc(33.333% - 6px);
        height: 100px;
        min-width: 0;
      }

      .featured-extra_details {
        text-align: left;
      }
    }

    /* Very small mobile screens */
    @media (max-width: 480px) {
      .main-container {
        padding: 15px 10px;
      }

      .featured-product__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }

      .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }

      .featured-extra_images {
        display: flex;
        gap: 5px;
        width: 100%;
      }

      .featured-extra_images img {
        flex: 1;
        width: calc(33.333% - 4px);
        height: 80px;
        min-width: 0;
      }
    }


/* Mobile Filter Button */
.mobile-filter-toggle {
  display: none;
  background-color: white;
  border: none;
  color: black;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  align-items: center;
  gap: 5px;
}

/* Mobile Filter Modal */
.mobile-filter-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.mobile-filter-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: white;
  border-radius: 15px 15px 0 0;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 100px;
}

.mobile-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.mobile-filter-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 15px;
}

@media (max-width: 600px) {
  /* Add this line to show mobile filter button */
  .mobile-filter-toggle {
    display: flex;
  }
  .section-filer span, .sort-dropdown {
    display: none;
  }

  /* Hide desktop filters on mobile */
  .category-filters {
    display: none !important;
  }
  
  /* Show mobile filter button */
  .mobile-filter-toggle {
    display: flex;
  }
}