/* Shop Base Styles */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

@media (max-width: 991px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
}

h2.body-title {
    font-size: 28px !important;   /* change size */
    color: #333333 !important;    /* change color */
    font-weight: bold !important; /* optional */
    text-align: center;/* keep center if needed */
}

#product-section h2.body-title {
    font-size: 30px;
    color: #ff6600;
}


.form-select .leftFilterPanel {
font-size: 9px !important;
  font-weight: 600;
  color: #ff0000 !important;
  margin-bottom: 4px;
}

aside.col-lg-2 {
  flex: 0 0 180px !important; /* increases width of the left panel */
  max-width: 200px !important;
}



/* Adjust spacing and visual consistency */
#leftFilterPanel .card {
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

#leftFilterPanel .card {
    border: 1px solid #dee2e6;
    max-height: 70vh;
    overflow-y: auto;
  min-width: 150px !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .reset-text {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .form-control, .form-select {
        padding-right: 45px !important;
    }
}

/* left collapse panel styles */
#leftFilterPanel .card {
  border-radius: 5px;
  font-size: 12px !important;
  color: rgb(253, 11, 11) !important;
}




#left-search-box:focus {
  border-color: #007bff;      /* blue border on focus */
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
  outline: none;
}


.form-label.small {
font-size: 11px !important;
  font-weight: 600;
  color: #3d3d3d;
  margin-bottom: 4px;
}

#left-search-box::placeholder {
  color: #888;                /* placeholder text color */
  font-style: italic; 
font-size: 10px !important;        /* subtle style */
}


/* ------------------------- */

/* Force show all filter sections */
#leftFilterPanel .mb-3 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure brand filter is visible */
#brand-filter {
    display: block !important;
    visibility: visible !important;
}



/* .reset-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 0.8rem;
    z-index: 10;
    background: white;
    padding: 0 5px;
} */


/* Reset buttons styling */
.reset-text {
    position: absolute;
    right: 8px;
    top: 5%;
    transform: translateY(-50%);
    background: #ff3015;
    color: white !important;
    border: none;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 9px !important;
    cursor: pointer;
    display: none;
    z-index: 5;
    line-height: 1;
}

.reset-text:hover {
    background: #ff0000;
    color: #ffffff;
}

.position-relative {
    position: relative
}

/* Reset button styling */
.filter-section .position-relative .btn {
  background: none;
  border: none;
  color: #6c757d;
  padding: 0 8px;
  z-index: 10;
}

.filter-section .position-relative .btn:hover {
  color: #dc3545;
}


/* Ensure form controls with reset buttons have proper padding */
.form-control, .form-select {
    padding-right: 50px !important;
    min-width: 120px !important;
}

/* Specific styling for price range inputs */
.d-flex.gap-2 .form-control {
    padding-right: 12px !important;
}

.d-flex.gap-2 .position-relative {
    flex: 1;
}

.d-flex.gap-2 .reset-text {
    right: 4px;
}

/* Loading states */
#loading-indicator {
    display: none;
}

/* Results count */
#results-count {
    font-size: 0.9rem;
    color: #6b6c6d;
}

/* Filter panel improvements */
.filter-toggle-box {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
}





/* ********************************** */

/* Add padding to inputs with reset buttons */
.filter-section .position-relative input,
.filter-section .position-relative select {
  padding-right: 35px !important;
}

/* Filter Styles */
.chip {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ff2600 !important;
  border-radius: 20px;
  font-size: 10px;
  margin: 4px 6px 0 0;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.chip:hover {
  background-color: #f8f9fa;
}

.chip.active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

/* Form controls */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 8px 8px;
  font-size: 11px;
  color: black;
}


.form-control, .form-select .left-category-filter{
color: black !important;
}

.form-control:focus, .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
font-size: 14px;
}

.btn-primary:hover {
  background-color: #0249b3;
  border-color: #0a58ca;
  color: #ddd;
}

.btn-light {
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

.btn-light:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

#category-filter {
  min-width: 160px;
  border-radius: 6px;
}

#filter-panel .card {
  border-radius: 12px;
  border: 1px solid #ddd;
}


.filter-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  padding: 20px;
  height: fit-content;
}

.filter-section + .filter-section {
  border-top: 1px solid #eee;
  margin-top: 15px;
  padding-top: 15px;
}

.filter-title {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #333;
  margin-bottom: 10px;
}

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  padding: 15px 20px;
  margin-bottom: 20px;
}

#product-data.grid-view .col-item {
  width: 100%;
}

@media (min-width: 576px) {
  #product-data.grid-view .col-item {
    width: 50%;
  }
}

@media (min-width: 768px) {
  #product-data.grid-view .col-item {
    width: 33.333%;
  }
}

@media (min-width: 992px) {
  #product-data.grid-view .col-item {
    width: 25%;
  }
}

@media (min-width: 1200px) {
  #product-data.grid-view .col-item {
    width: 20%;
  }
}

#product-data.list-view .col-item {
  width: 100%;
}

#product-data {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#loading-indicator .spinner-border {
  width: 2rem;
  height: 2rem;
}

#no-results {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}


  /* Layout */
  .shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
  @media (max-width: 991px){ .shop-layout { grid-template-columns: 1fr; } }
  
  /* Sidebar */
  .filter-sidebar {
    position: sticky; top: 120px; align-self: start;
    background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.06);
    padding: 20px;
    height: fit-content;
  }
  .filter-section + .filter-section { border-top: 1px solid #eee; margin-top: 15px; padding-top: 15px; }
  .filter-title { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: #333; margin-bottom: 10px; }
  .chip { display:inline-block; padding:6px 12px; border:1px solid #e9ecef; border-radius: 20px; font-size: 12px; margin: 4px 6px 0 0; cursor: pointer; user-select:none; transition: all 0.2s; }
  .chip:hover { background-color: #f8f9fa; }
  .chip.active { background:#0d6efd; color:#fff; border-color:#0d6efd; }
  
  /* Top bar */
  .results-bar {
    display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
    background:#fff; border-radius:16px; box-shadow:0 8px 24px rgba(0,0,0,.06); padding:15px 20px; margin-bottom:20px;
  }
  
  /* Grid & list */
  #product-data.grid-view .col-item { width:100%; }
  @media (min-width: 576px){ #product-data.grid-view .col-item{ width:80%; } }
  @media (min-width: 768px){ #product-data.grid-view .col-item{ width:33.333%; } }
  @media (min-width: 992px){ #product-data.grid-view .col-item{ width:25%; } }
  @media (min-width: 1200px){ #product-data.grid-view .col-item{ width:20%; } }
  
  #product-data.list-view .col-item{ width:100%; }
  #product-data { display:flex; flex-wrap:wrap; gap:20px; }
  
  /* Card */
  .p-card {
    background:#fff; border-radius:16px; overflow:hidden; display:flex; flex-direction:column;
    box-shadow:0 10px 30px rgba(0,0,0,.08); transition:all 0.3s ease;
    height:100%;
  }
  .p-card:hover { transform: translateY(-5px); box-shadow:0 15px 35px rgba(0,0,0,.15); }
  .p-media { position:relative; aspect-ratio: 1; background:#f8f9fa; overflow:hidden; }
  .p-media img { width:100%; height:100%; object-fit:cover; display:block; transition: opacity 0.3s ease; }
  .p-media img.hover { position:absolute; inset:0; opacity:0; }
  .p-card:hover .p-media img.hover { opacity:1; }
  .p-body { padding:15px; display:flex; flex-direction:column; flex-grow:1; }
  .p-name { font-size:14px; font-weight:600; line-height:1.4; min-height:40px; margin-bottom:8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .p-meta { font-size:12px; color:#6c757d; margin-bottom:10px; }
  .p-price { font-size:18px; font-weight:700; margin-bottom:15px; color:#0d6efd; }
  .p-actions { display:flex; gap:8px; margin-top:auto; }
  .btn-soft { border-radius:8px; border:1px solid #e9ecef; background:#fff; padding:8px 12px; font-size:12px; transition: all 0.2s; }
  .btn-soft:hover { background:#f8f9fa; border-color:#dee2e6; }
  .btn-primary { border-radius:8px; padding:8px 12px; font-size:12px; }
  /*.badge-cat { position:absolute; top:10px; left:10px; background:rgb(0 109 205 / 93%); color:#fff; padding:2px 5px; border-radius:12px; font-size:11px; z-index:1; }*/
  .badge-cat {
    position: absolute;
    top: 3px;
    left: 2px;
    background: rgb(0 109 205 / 93%);
    color: #fff !important;
    padding: 5px 8px;
    border-radius: 9px;
    font-size: 10px;
    z-index: 1;
}
  /* List view tweaks */
  #product-data.list-view .p-card{ flex-direction:row; }
  #product-data.list-view .p-media{ width:400px; flex:0 0 200px; aspect-ratio:auto; height: 200px; }
  #product-data.list-view .p-body{ padding:20px; flex:1; }
  
  /* Loading */
  #loading-indicator .spinner-border{ width: 2rem; height: 2rem; }
  
  /* Form controls */
  .form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 12px;
    font-size: 12px;
  }
  
  .form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  }
  
  /* Buttons */
  .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
  }
  
  .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
  }
  
  .btn-light {
    background-color: #f8f9fa;
    border-color: #dee2e6;
  }
  
  .btn-light:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
  }
  
  /* No results */
  #no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
  }

/* Fix search & filter bar hidden behind header */
.shop-header {
  position: relative;
  z-index: 1050; /* higher than navbar */
  background: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eee;
}

/* Search bar styling */
.shop-search-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}

.shop-search-bar input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.shop-search-bar .search-btn {
  background: #febd69;
  border: none;
  color: #111;
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 600;
}

.category-select {
  color: black !important;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Filter button */
.filter-btn {
  white-space: nowrap;
}

/* Remove or adjust this line */
/* This was causing the carousel to be pushed up behind the header */
/* The carousel will now start directly below the fixed header */
body {
background: transparent !important;
    /* padding-top: 70px !important; */ 
    /* The header itself should handle its own height/positioning. */
    /* If your header is fixed, then add padding-top to the *first* content element 
       that is NOT the carousel, or to the body/html but *after* the carousel's offset. */
    /* For this setup, we'll manage the space with `main-content-above-carousel` margin-top */
}

/* left filter compact toggle box */
.filter-toggle-box {
  cursor: pointer;
  background: #a2d9fd;
  border: 1px solid #eee;
}


/* keep main product grid full width when collapsed */
@media (min-width: 992px) {
  .col-lg-2 { max-width: 250px; flex: 0 0 200px; } /* approx 2-col width */
  .col-lg-10 { flex: 1 0 auto; }
}


/* Custom CSS for Background Carousel */
.background-carousel-wrapper {
    position: fixed;; 
    top: 0; 
    left: 0;
    width: 100%;
    height: 400px; /* This height must match the image height */
    z-index: -1; /* Send it behind other content */
    overflow: hidden; /* Hide any overflow if images are slightly larger */
    
    /* This margin-top is CRUCIAL. It moves the carousel *below* your fixed header. */
    /* You NEED to replace '60px' with the ACTUAL height of your fixed header. */
    /* Use developer tools to measure your header's height if uncertain. */
    margin-top: 70px !important; /* Example: If your header is 60px tall */
}

/* Ensure images fill the wrapper */
.background-carousel-wrapper .carousel-item img {
    height: 400px; /* Match wrapper height */
    object-fit: cover;
    width: 100%; /* Ensure it spans full width */
}

/* Optional: Dimming overlay for better text contrast if content overlaps the image */
.carousel-dim-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Adjust dimming as needed (0.3 for 30% black overlay) */
    z-index: 1; /* Above image, below indicators/controls */
}

/* 
This is the CRUCIAL change to pull the main content upwards, 
making it overlay the carousel, starting right below the header.
*/
.main-content-above-carousel {
    /* This margin-top should offset the carousel's height, adjusted by header height. */
    /* Calculation: -(carousel_height + header_height - desired_overlap) */
    /* Example: -(400px + 60px - 20px overlap) = -440px */
    /* If you want the content to start at header_height + 20px down from top of page */
    margin-top: 340px; /* Adjust this value. Starts content 20px into carousel */
                        /* If carousel is 400px, header is 60px. Total 460px.
                           -440px means content starts 20px down from where the carousel *begins* (after the header).
                           This means content starts at (60px header + 20px offset) = 80px from top of page. */

    position: relative; /* Give it a higher z-index than carousel */
    z-index: 1; /* Make sure this is above the carousel */
    /* Remove background-color here if you want content cards to have their own background */
}

/* Apply background and shadow directly to the aside and main elements for clear visibility */
.main-content-above-carousel aside.col-12.col-lg-2,
.main-content-above-carousel main.col-12.col-lg-10 {
    /* background-color: #fff; */
    background-color: transparent;
    border-radius: 8px; /* Optional: adds rounded corners */
    padding-top: 20px; /* Add some top padding inside the content for aesthetics */
    padding-bottom: 20px; /* Ensure space at the bottom */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Optional: subtle shadow */
    margin-bottom: 20px; /* Space below if content is short */
}

/* Adjust margins if needed for the top content within the main content */
.main-content-above-carousel main.col-12.col-lg-10 .results-bar {
    margin-top: 0; /* Reset margin top if it was added for spacing before */
  /* background: transparent !important; */
/* background-color: rgba(46, 93, 248, 0.993) !important; */
/* color: white !important; */
}

.bg-success {
    color: white !important;
    font-size: 10px !important;
}

#quickViewContent  {color: white !important;}






/* Mobile Filter Toggle Button - Smaller Size */
@media (max-width: 991px) {
    #filterToggleBtn {
        padding: 8px 12px;
        font-size: 12px;
        min-height: auto;
    }
    
    #filterToggleBtn i {
        font-size: 12px;
        margin-right: 5px;
    }
}

/* Even smaller for very small screens */
@media (max-width: 576px) {
    #filterToggleBtn {
        padding: 6px 6px;
        font-size: 10px;
    }
    
    #filterToggleBtn i {
        font-size: 10px;
        margin-right: 4px;
    }
}




/* ===================================
   MINIMAL FIXES FOR SPECIFIC ISSUES
   =================================== */

/* 1. Fix header alignment - category and search on same line */
@media (max-width: 576px) {
    #global-search-container {
        flex-direction: column;
        gap: 8px;
    }
    
    #global-search-container .input-group {
        width: 70%;
    }
}
/* 1. Fix header alignment - category and search on same line */
@media (max-width: 768px) {
    #global-search-container {
        flex-direction: column;
        gap: 10px;
    }
    
    #global-search-container .input-group {
        width: 100%;
    }
}




/* Mobile List View - Center Buttons in Middle */
@media (max-width: 768px) {
    #product-data.list-view .p-card {
        flex-direction: column !important;
    }
    
    #product-data.list-view .p-media {
        width: 100% !important;
        height: 200px !important;
        flex: none !important;
        aspect-ratio: 1 !important;
    }
    
    #product-data.list-view .p-body {
        padding: 15px 0 0 0 !important;
        width: 100% !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    #product-data.list-view .p-actions {
        display: flex;
        justify-content: center;
        margin-top: auto;
        margin-bottom: auto;
    }
    
    #product-data.list-view .btn-soft,
    #product-data.list-view .btn-primary {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
}

/* Keep your desktop styles as they are */
@media (min-width: 769px) {
    #product-data.list-view .p-media {
        width: 365px;
        flex: 0 0 140px;
        aspect-ratio: auto;
        height: 140px;
    }
}



