body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background-color: #f8f9fa; /* Light background for the page */
}

/* Top Header Styles */
.top-header {
  background-color: #000;
  color: #fff;
  padding: 0.75rem 0;
  font-size: 0.875rem;
}
.top-header .header span {
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}
.top-header select {
  background-color: transparent;
  color: #fff;
  border: none;
  outline: none;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}
.top-header select option {
  background-color: #000;
  color: #fff;
}
/* Navbar Customization */
.navbar-brand {
  font-weight: 700;
  font-size: 1.75rem;
}
.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
  color: #db4444 !important;
}
.navbar-nav .nav-link.active {
  color: #db4444 !important;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.dropdown-menu {
  line-height: 1.8rem;
}
.dropdown-menu a {
  text-decoration: none;
  color: #333;
}
.dropdown-menu a:hover {
  color: #db4444;
  background-color: #f8f9fa;
}

/* Section Headings */
.section-header-line {
  background-color: #db4444;
  width: 1.3rem;
  height: 2.5rem;
  border-radius: 0.25rem;
}
.section-heading-text {
  color: #db4444;
  font-weight: bold;
  font-size: 1.1rem;
}
.main-section-title {
  font-weight: bold;
  font-size: 2.2rem;
}

/* Card Customization */
.card {
  border: none;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out;
}
.card:hover {
  transform: translateY(-5px);
}
.card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* For product images, use contain for full item visibility */
  padding: 1rem;
}
.card-title {
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.card-text {
  font-weight: 600;
  color: #db4444;
}
.card-text span {
  color: #000;
  margin-left: 0.5rem;
  text-decoration: line-through;
  font-weight: normal;
}
.star-rating img {
  width: 20px;
  height: 16px;
  margin-right: 0.1rem;
  object-fit: contain;
  background-color: transparent;
  padding: 0;
}

/* Button Hover Effects (from previous updates) */
.btn {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-danger:hover {
  background-color: #c0392b !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(219, 68, 68, 0.4);
}
.btn-outline-light.text-danger:hover {
  background-color: rgba(220, 53, 69, 0.1);
  color: #db4444;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Input Field Hover Effects (from previous updates) */
.form-control {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-control:hover {
  border-color: #db4444;
  box-shadow: 0 0 0 0.25rem rgba(219, 68, 68, 0.25);
}
.form-control:focus {
  border-color: #db4444;
  box-shadow: 0 0 0 0.25rem rgba(219, 68, 68, 0.25);
  outline: 0;
}

/* Footer Styles */
footer {
  background-color: #000;
  color: #fff;
  padding: 4rem 0;
}
footer h3 {
  font-weight: bold;
  margin-bottom: 1.5rem;
}
footer p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
footer .form-control {
  background-color: transparent;
  border-color: #fff;
  color: #fff;
}
footer .form-control::placeholder {
  color: #ccc;
}
footer .form-control:focus {
  background-color: transparent;
  border-color: #db4444;
  box-shadow: none;
  color: #fff;
}
footer .social-icons img {
  width: 30px;
  height: 30px;
  filter: invert(1);
}
footer .qr-code {
  max-width: 100px;
  height: auto;
}
footer .app-store-btn {
  max-width: 120px;
  height: auto;
}
.footer-subscribe .input-group {
  max-width: 250px;
}
.footer-subscribe .input-group-text {
  background-color: transparent;
  border: 1px solid #fff;
  border-left: none;
  color: #fff;
}

/* --- NEW: Products page specific styles --- */
.home:hover{
  color: #db4444 !important;
}
.products-hero {
  background: linear-gradient(rgba(131, 129, 129, 0.6), rgba(59, 59, 59, 0.6)),
    url("./utils/images/products-hero-bg.jpg") no-repeat center center; /* Placeholder image */
  background-size: cover;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 3rem;
  border-radius: 0.75rem;
}
.products-hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
}
.products-hero p {
  font-size: 1.25rem;
}

.filter-sort-bar {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex; /* For flex-wrap behavior */
  flex-wrap: wrap; /* Allow items to wrap on smaller screens */
  align-items: center;
  gap: 1rem; /* Space between filter/sort items */
}
.filter-sort-bar .form-select,
.filter-sort-bar .form-control {
  max-width: 200px; /* Limit width of select/input */
  flex-grow: 1; /* Allow them to grow */
}
.filter-sort-bar label {
  font-weight: 500;
  margin-right: 0.5rem;
  min-width: 60px; /* Ensure label has enough space */
}
.filter-sort-bar .btn {
  min-width: 100px;
}
.filter-sort-bar .input-group {
  max-width: 250px;
}

/* Responsive adjustments for filter bar */
@media (max-width: 767.98px) {
  .filter-sort-bar {
    flex-direction: column; /* Stack items vertically on mobile */
    align-items: stretch; /* Stretch items to full width */
  }
  .filter-sort-bar .form-select,
  .filter-sort-bar .form-control,
  .filter-sort-bar .input-group,
  .filter-sort-bar label,
  .filter-sort-bar .btn {
    max-width: 100%; /* Full width on mobile */
    width: 100%;
    margin-bottom: 0.5rem; /* Space between stacked items */
  }
  .filter-sort-bar label {
    text-align: center; /* Center labels on mobile */
    margin-right: 0;
  }
}

.product-category-heading {
  margin-top: 3rem; /* Space between category sections */
  margin-bottom: 2rem;
}

/* Media Queries (from previous updates) */
@media (max-width: 991.98px) {
  .products-hero h1 {
    font-size: 2.8rem;
  }
  .products-hero p {
    font-size: 1.1rem;
  }
}
@media (max-width: 767.98px) {
  .products-hero h1 {
    font-size: 2rem;
  }
  .products-hero p {
    font-size: 1rem;
  }
}


/* --- Product Cards Styling --- */
.custom-product-card {
  transition: all 0.3s ease-in-out;
  border-radius: 10px;
  background-color: #fff;
}

.custom-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* --- Product Image --- */
.product-img-container {
  width: 100%;
  height: 180px;
  display: flex; 
  margin-bottom: 20px;
  align-items: center;
  justify-content: center;
  background-color: #fafafa; 
  border-bottom: 1px solid #eee;
  padding: 10px;
}

.product-img {
  max-height: 150px!important;
  object-fit: contain;
}

/* --- Card Text --- */
.custom-product-card .card-title {
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.custom-product-card .card-text {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* --- Price and Button --- */
.text-accent-red {
  color: #ff3366 !important;
}

/* --- Responsive Tweaks --- */
@media (max-width: 992px) {
  .product-img-container {
    height: 200px;
  }
  .product-img {
    max-height: 180px;
  }
}


@media (max-width: 768px) {
  .product-img-container {
    height: 180px;
  }
  .product-img {
    max-height: 160px;
  }
}

@media (max-width: 576px) {
  .product-img-container {
    height: 160px;
  }
  .product-img {
    max-height: 140px;
    }
    
    .custom-product-card{
    margin-bottom: 30px; 
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
  }
}

cart-item-card {
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px var(--shadow-light);
}
.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background-color: var(--primary-light);
    border-radius: 0.25rem;
}
.cart-item-title {
    font-family: var(--bs-font-sans-serif) !important;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-dark) !important;
}
.cart-item-price {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
    color: var(--accent-red);
}
.quantity-control .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
    line-height: 1;
}
.order-summary-card {
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: var(--primary-light);
    box-shadow: 0 2px 8px var(--shadow-light);
    position: sticky;
    top: 80px; /* Adjust based on navbar height */
}
.order-summary-card .h4 {
    font-family: var(--bs-font-sans-serif) !important;
    color: var(--primary-dark) !important;
}
.order-summary-card .text-muted-gray { /* For "Subtotal", "Shipping" */
    font-family: 'Inter', sans-serif !important;
}
.order-summary-card .fw-bold { /* For values like "$100.00", "Free" */
    font-family: 'Inter', sans-serif !important;
    color: var(--primary-dark) !important;
}
.order-summary-card .total-price {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-red);
}
.empty-cart-message {
    text-align: center;
    padding: 3rem 0;
}
.empty-cart-message h2 {
    font-family: var(--bs-font-sans-serif) !important;
    color: var(--text-muted-gray) !important;
    margin-bottom: 1.5rem;
}
.empty-cart-message p {
    font-family: 'Inter', sans-serif !important;
}
