body {
    font-family: Arial, sans-serif;
}

.navbar {
    background-color: #212529;
    margin-bottom: 40px; /* Space between the navbar and the slider */
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-color: white;
    border-radius: 5px;
}

.navbar-nav {
    margin-left: auto;
    margin-right: auto; /* Center the menu on desktop */
}

.nav-link {
    color: white !important;
    font-size: 1rem;
    margin: 0 10px;
}

.cart-icon {
    font-size: 1.8rem;
    color: white;
    position: relative;
}

.cart-badge {
    background-color: red;
    color: white;
    font-size: 0.9rem; /* Slightly increase font size for readability */
    font-weight: bold; /* Make text more visible */
    border-radius: 50%;
    padding: 4px 8px; /* Add more spacing inside the badge */
    position: absolute;
    top: -10px; /* Position above the icon */
    right: -15px; /* Adjust position to the right */
    min-width: 20px; /* Set a minimum width for consistent appearance */
    text-align: center; /* Center text in the badge */
    line-height: 1; /* Reduce line height for a compact look */
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 500px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.product-title {
    font-size: 16px;
    color: #000000;
    margin-top: 50px !important;
}


/* 1) Center the main price */
.price-value {
  display: block;      /* allow margin auto */
  margin: 0.2em auto;  /* center horizontally */
  color: #0944E7;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
}

/* 2) Unit-price below, flush right */
.price-per-unit {
  display: block;
  width: 100%;
  font-size: 0.8em;
  text-align: right;
  margin-top: 0.1em;
}

.price-per-unit .unit-text {
  color: #000;
  margin-right: 4px;
}

.price-per-unit .unit-value {
  color: #0944E7;
  font-weight: bold;
}

.product-card .efficiency {
    text-align: center; /* Center the text */
    margin-top: 10px; /* Space between title and efficiency text */
    font-size: 0.8rem; /* Adjust the font size if necessary */
}

.btn-buy, .btn-view-product {
    background-color: #67dba2;
    color: white;
    font-size: 1rem;
    border: none;
    padding: 10px;
    width: 100%;
    text-align: center;
    border-radius: 5px;
    text-transform: uppercase;
}

.btn-buy:hover, .btn-view-product:hover {
    background-color: #5cc992;
}

.product-card h5 {
    margin-top: 15px;
}

.product-card p {
    margin: 10px 0;
}

.btn-add-to-cart {
    background-color: #0071a1;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    margin-top: auto;
    text-align: center;
}

.btn-add-to-cart:hover {
    background-color: #005f85;
}

.fly-to-cart {
  position: absolute;
  width: 50px;
  height: 50px;
  z-index: 1000;
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
  pointer-events: none;
  opacity: 1;
}

.fly-to-cart.fly-end {
  /* Not used in the new JS version; we do the transform inline */
  /* You can remove or ignore this block if you like */
  transform: translate(calc(100vw - 80px), -20px);
  opacity: 0;
}

.slider-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.carousel-inner img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.container {
    max-width: 1140px;
}

@media (max-width: 992px) {
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-brand {
        order: 0;
        margin-right: auto; /* Keep the logo on the left */
    }

    .cart-icon {
        order: 2;
        font-size: 1.8rem;
        color: white;
        position: relative;
    }

    .navbar-toggler {
        order: 1;
        margin-left: 10px; /* Space between the toggle button and the logo */
        background: none;
        border: none;
        font-size: 1.5rem;
        color: white;
    }

    .navbar-collapse {
        order: 3;
        width: 100%; /* Menu links occupy full width */
        flex-grow: 1; /* Expand across full width */
        align-items: center;
        text-align: center;
    }

    .navbar-nav {
        flex-direction: column; /* Vertical arrangement for links */
        gap: 10px; /* Space between links */
    }

    .navbar-nav .nav-link {
        color: white !important;
        font-size: 1rem;
        text-align: center;
        margin: 0; /* Remove unnecessary margins */
    }

    .cart-icon {
        margin-left: auto; /* Position the cart on the right */
    }
}


.logo-img {
    width: 120px; /* Default width for small screens */
    height: auto;
}


/* General Footer Styles */
footer {
    background-color: #212529;
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0;
    font-size: 0.9rem;
}

footer img {
    height: 50px;
    margin-bottom: 15px;
}

footer p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #0071a1;
}

/* Adjust size for medium screens */
@media (min-width: 768px) {
    .logo-img {
        width: 150px; /* Increase the width for tablets */
    }
}

/* Adjust size for large screens */
@media (min-width: 1200px) {
    .logo-img {
        width: 200px; /* Increase the width for desktops */
    }
}


/* Responsive styles */
@media (max-width: 768px) {
    footer .text-md-start,
    footer .text-md-end {
        text-align: center !important; /* Center on small screens */
    }

    footer address {
        text-align: center;
    }
}


/* ─── FILTER PANEL STYLES ────────────────────────────────────────────────── */
.filter-panel {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  max-width: 280px;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

/* Make it sticky on larger screens */
@media (min-width: 992px) {
  .filter-panel {
    position: sticky;
    top: 1rem;
  }
}

/* ── Panel Title ───────────────────────────────────────── */
.filter-title {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
}

/* ── Each Section (Brand, Algorithm, etc.) ────────────────── */
.filter-section {
  margin-bottom: 1.5rem;
}

/* ── Section Label ────────────────────────────────────────── */
.filter-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.5rem;
}

/* ── Options Container ────────────────────────────────────── */
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Hide native checkbox/radio ───────────────────────────── */
.filter-checkbox input[type="checkbox"],
.filter-radio   input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* ── Checkbox Label (with custom square “box”) ────────────── */
.filter-checkbox {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.925rem;
  color: #212529;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
}

.filter-checkbox .custom-checkbox {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
  transition: border-color 0.2s, background-color 0.2s;
}

/* Checked state for custom-checkbox */
.filter-checkbox input:checked ~ .custom-checkbox {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* Checkmark inside when checked */
.filter-checkbox input:checked ~ .custom-checkbox::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── Radio Label (with custom circle) ────────────────────── */
.filter-radio {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.925rem;
  color: #212529;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
}

.filter-radio .custom-radio {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid #ccc;
  border-radius: 50%;
  background-color: #fff;
  transition: border-color 0.2s;
}

/* Checked state for custom-radio */
.filter-radio input:checked ~ .custom-radio {
  border-color: #0d6efd;
  background-color: #0d6efd;
}

/* Inner dot on checked radio */
.filter-radio input:checked ~ .custom-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ── Search Input ──────────────────────────────────────────── */
.filter-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.925rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #212529;
}
.filter-input:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

/* ── Reset All Filters Button ───────────────────────────────── */
.btn-reset {
  display: block;
  width: 100%;
  background-color: #0d6efd;
  color: #ffffff;
  font-size: 0.925rem;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
.btn-reset:hover {
  background-color: #0b5ed7;
}

/* ── Responsive: Panel Full-Width on Mobile ─────────────────── */
@media (max-width: 767px) {
  .filter-panel {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
}

.product-card .image-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.product-card .cooling-badge {
  position: absolute;
  top: 1px;
  right: 4px;
  display: inline-flex;
  visibility: visible;
  opacity: 1;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  color: #000;                  /* black text */
}

.product-card .cooling-badge img {
  width: 20px;
  height: 20px;
  margin-right: 4px;
}

.product-card .cooling-badge span {
  color: #000;
}

/* ─── MOBILE “Filters” BUTTON: fixed on left, hide/show on scroll ───────────────── */
@media (max-width: 767px) {
  /* 1) Position the Filters button fixed on the left */
  #mobileFiltersBtn {
    position: fixed;
    top: 80px;              /* adjust as needed */
    left: 1rem;
    z-index: 1040;          /* above page content but under offcanvas backdrop */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  }

  /* 2) Ensure the desktop sidebar is hidden on mobile */
  aside.col-lg-3.col-md-4 {
    display: none !important;
  }

  /* 3) Remove extra bottom margin on the wrapper that contains the button */
  .d-md-none.mb-3 {
    margin-bottom: 0;
  }

  /* Reduce section labels (“Brand”, “Algorithm”, etc.) */
  .filter-label {
    font-size: 0.85rem; /* was 0.95rem */
  }

  /* Reduce checkbox/radio option text */
  .filter-checkbox,
  .filter-radio {
    font-size: 0.8rem; /* was 0.925rem */
    padding-left: 1.6rem; /* tighten up the left padding a bit */
  }

  /* Shrink the “custom” box/circle itself */
  .filter-checkbox .custom-checkbox,
  .filter-radio .custom-radio {
    width: 1rem;  /* was 1.25rem */
    height: 1rem; /* was 1.25rem */
  }

  /* Shrink the filter‐input field */
  .filter-input {
    font-size: 0.85rem; /* was 0.925rem */
    padding: 0.4rem 0.6rem; /* tighten padding */
  }

  /* Shrink the Reset button text */
  .btn-reset {
    font-size: 0.85rem; /* was 0.925rem */
    padding: 0.4rem 0;  /* tighten padding */
  }
}