:root {
  --primary-color: #10b981;
  --primary-lighter-color: #10b9811a;
  --secondary-color: #3b82f6;
  --secondary-lighter-color: #3b82f61a;
  --tertiary-color: #ef4444;
  --tertiary-lighter-color: #ef44441a;
  --border-color: #e5e7eb;
  --border-focus-color: var(--primary-color);
  --border-hover-color: var(--primary-color);
  --text-muted-color: #c0c0c0;
  --text-faded-color: #f0f0f0;
  --green-color: #10b981;
  --teal-color: #0d9488;
  --primary-lighter-border-color: #10b98140;
  --secondary-lighter-border-color: #3b82f640;
}

body {
  font-family: "Poppins", Roboto, sans-serif;
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.text-success {
  color: var(--green-color)!important;
}
.bg-success {
  background-color: var(--green-color)!important;
}
.btn-success {
  background-color: var(--green-color)!important;
  border-color: var(--green-color)!important;
}
.border-success {
  border-color: var(--green-color)!important;
}
.text-primary {
  color: var(--primary-color)!important;
}
.text-secondary {
  color: var(--secondary-color)!important;
}
.text-tertiary {
  color: var(--tertiary-color)!important;
}
.text-gradient {
  background: linear-gradient(to right, var(--primary-color) 40%, var(--secondary-color) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bg-theme-light,
.bg-primary-light {
  background: var(--primary-lighter-color);
}
.bg-secondary-light {
  background: var(--secondary-lighter-color);
}
.bg-tertiary-light {
  background: var(--tertiary-lighter-color);
}
.border-theme-light {
  border-color: var(--primary-lighter-border-color);
}
.bg-theme-gradient-light {
  background: linear-gradient(to right, var(--primary-lighter-color), var(--secondary-lighter-color));
}

main .search-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12vh;
  text-align: center;
}

h1 {
  font-weight: 400;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.tagline {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.home-search-form {
  position: absolute;
  left: 0;
  right: 0;
  display: block;
  margin-top: 10rem;
}
.quick-trend {
  margin-top: 6.5rem;
}
.search-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  box-shadow: 0 4px 10px #eaeaea;
  padding: 0 14px;
  background: #fff;
  margin-bottom: 3rem;
  z-index: 10;
}

.search-container:focus-within {
  border: none;
  box-shadow: 0 2px 10px #51504f75;
}
.search-icon {
  position: absolute;
  top: 27px;
  left: 22px;
  transform: translateY(-50%);
  color: #aaa;
}

.search-input {
  padding-left: 36px;
  border: none;
  outline: none;
  width: 100%;
  height: 55px;
  border-radius: 50px;
  font-size: 1.25rem;
  background: transparent;
}
.search-input:hover,
.search-input:focus,
.search-input:focus-within,
.search-input:focus-visible {
  outline: 0!important;
  box-shadow: none!important;
}

/* Suggestions Dropdown */
.suggestions-box {
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 15px 15px;
  text-align: left;
  z-index: 10;
  overflow: hidden;
  display: none;
  margin-bottom: 10px;
  padding-bottom: 5px;
  position: sticky;
  top: 20px;
  max-height: 70vh;
}

.suggestion-item {
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease;
  position: relative;
  justify-content: flex-start; /* ✅ align all content to the left */
}

.suggestion-item:hover,
.suggestion-item.active {
  background-color: #f8f9fa;
}

.delete-recent {
  margin-left: auto;
  font-size: 14px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
  background: transparent;
  width: 20px;
  height: 20px;
  text-align: center;
}


.delete-recent:hover {
  color: #d9534f;
}
.suggestion-item i {
  color: #888;
  font-size: 12px;
  flex-shrink: 0; /* Prevent icons from shrinking */
}

.suggestion-section-title{
  font-size:.8rem;
  font-weight:600;
  color:#70757a;
  padding:6px 15px;
}

.suggestion-item strong {
  font-weight: 700;
  color: #202124; /* Slightly darker for contrast */
}

.btn-group-custom .btn {
  border-radius: 6px;
  margin: 0 5px;
  font-weight: 500;
  color: #555;
  background: #f8f9fa;
  border: 1px solid #ddd;
  transition: background 0.2s ease;
}

.btn-group-custom .btn:hover {
  background: #f1f1f1;
}

.categories {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.categories a {
  color: #666;
  text-decoration: none;
  margin: 0 10px;
}

.categories a:hover {
  text-decoration: underline;
}

footer {
  background-color: #f2f2f2;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0;
}

footer .footer-top {
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid #ddd;
}

footer .footer-bottom {
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

footer a {
  color: #555;
  text-decoration: none;
  margin-right: 15px;
}

footer a:hover {
  text-decoration: underline;
}






/*********** SEARCH RESULTS PAGE **********/

.search-results-page {
  background-color: #f8f9fa;
}

.product-card {
  transition: all 0.15s ease;
}

/*.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}*/

.product-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.product-title {
  font-size: 1.2rem;
}

.product-title a:hover {
  text-decoration: underline;
}

.product-desc {
  font-size: 0.95rem;
}

.store-comparison {
  flex-wrap: wrap;
}

.store-card {
  min-width: 140px;
  max-width: 180px;
  transition: all 0.15s ease;
}

.store-card:hover {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
}

.store-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.badge {
  font-size: 0.75rem;
  padding: 0.25em 0.4em;
}

.bi {
  font-size: 0.85rem;
}

[data-bs-toggle="tooltip"] {
  cursor: pointer;
}

.pagination {
  justify-content: flex-start;
}
.btn-trending-pill {
  background: #fff;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 300;
  transition: all .25s ease;
}
.btn-trending-pill:hover {
  border: 1px solid var(--border-hover-color);
  box-shadow: 0 2px 5px #c0c0c0;
  color: var(--primary-color);
}

.btn-trending-pill:hover {
  background-color: var(--primary-lighter-color);
  border-color: var(--border-hover-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}
.search-btn {
  position: absolute;
  top: 3px;
  right: 6px;
  padding: 10px 28px;
  font-weight: 600;
  color: var(--primary-color);
  background: #fff;
  border: 2px solid transparent;
  border-radius: 50rem; /* Perfect pill shape */
  background-image: linear-gradient(#fff, #fff),
                    linear-gradient(to right, var(--primary-color), var(--secondary-color));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all 0.35s ease-in-out;
  z-index: 9;
}

.search-btn:hover,
.search-btn:focus {
  color: #fff !important;
  background-image: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  box-shadow: 0 0 5px var(--primary-color),
              0 0 5px var(--secondary-color);
  /*transform: translateY(-2px);*/
  z-index: 9;
}
.search-section .card-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  border-radius: 100px;
}
.search-section .card {
  width: 33%;
  border: none;
  box-shadow: 0 2px 6px #bfbfbfb2;
  border-radius: 25px;
}

.gradient-highlight {
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media screen and (max-width: 767px) {
  .search-section .home-cards {
    display: block!important;
    width: 100%;
    padding: 4px 0;
  }
  .search-section .card {
    display: inline-block;
    width: 100%;
    margin: .65rem auto!important;
  }
}
.offcanvas {
  top: -24px!important;
}
.offcanvas-backdrop {
  top: -24px !important;
}
header.search-results {
  background: #fff;
  position: sticky;
  top: 0;
  left: 0;
  right: auto;
  width: 100%;
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
  /*box-shadow: 0 0 3px #d9d9d9;*/
  padding: 10px 0;
}

/* Responsive container fix */
.search-results-form {
  max-width: 800px;
  width: 100%;
  display: block;
  margin: 0 10px;
  position: relative; /* ensure dropdown stays anchored */
}

input.search-box-input {
  background: transparent;
  padding-left: 34px;
  border: none;
  width: 100%; /* ✅ make input scale correctly on small screens */
  box-sizing: border-box;
}

.searchbox-icon {
  color: var(--text-muted-color);
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
}

.search-box-input:hover,
.search-box-input:focus,
.search-box-input:focus-visible,
.search-box-input:focus-within {
  background: transparent !important;
  outline: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.searchbox-container {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  position: relative; /* ✅ changed from absolute to relative */
  width: 100%;
  max-width: 100%; /* ✅ allow it to shrink within screen width */
  top: 0; /* ✅ remove fixed offset */
  padding: 0 10px;
  display: flex;
  align-items: center;
}

.searchbox-container:hover,
.searchbox-container:focus-within,
.searchbox-container:focus-visible {
  border-color: transparent;
  outline: 0;
  box-shadow: 0 3px 8px #53515157;
}

form.suggestion-dropdown-open .searchbox-container {
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px; 
  border-bottom-color: transparent;
}

/* Suggestions Dropdown */
.search-suggestions-box {
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 25px 25px;
  text-align: left;
  z-index: 9999;
  overflow: hidden;
  display: none;
  margin-top: 0px;
  padding-bottom: 5px;
  position: absolute; /* ✅ restored correct dropdown behavior */
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 3px 8px #00000017;
  max-height: 70vh;
  padding-left: 10px;
  padding-right: 10px;
}

/* Suggestion items */
.results-suggestion-item {
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease;
  position: relative;
  justify-content: flex-start;
}

.results-suggestion-item:hover,
.results-suggestion-item.active {
  background-color: #f8f9fa;
}

.delete-recent {
  margin-left: auto;
  font-size: 14px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
  background: transparent;
  width: 20px;
  height: 20px;
  text-align: center;
}

.delete-recent:hover {
  color: #d9534f;
}

.results-suggestion-item i {
  color: #888;
  font-size: 12px;
  flex-shrink: 0;
}

.results-suggestion-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #70757a;
  padding: 6px 15px;
}

.results-suggestion-item strong {
  font-weight: 700;
  color: #202124;
}

/* ✅ Responsive fixes */
@media (max-width: 768px) {
  .search-results-form {
    max-width: 100%;
    margin: 0 5px;
  }

  .searchbox-container {
    max-width: 100%;
    border-radius: 20px;
  }

  input.search-box-input {
    font-size: 14px;
    padding-left: 30px;
  }
}

@media (max-width: 576px) {
  header.search-results {
    padding: 8px 0;
  }

  .search-results-form {
    margin: 0 5px;
  }

  input.search-box-input {
    font-size: 13px;
    padding-left: 28px;
  }
}



/*********** PRODUCT DETAILS PAGE **********/

.prices-card {
  background: linear-gradient(to bottom right, var(--green-color), var(--teal-color));
  border: none;
  padding: 2rem;
  border-radius: 1rem;
}

.backdrop-blur {
  --tw-backdrop-blur: blur(8px);
}
.rounded-xl {
  border-radius: 0.75rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.prices-card h1,
.prices-card h2,
.prices-card h3,
.prices-card h4,
.prices-card h5,
.prices-card h6,
.prices-card p {
  margin: 0!important;
}
@media screen and (max-width: 575px) {
  .mobile-full-width {
    display: block!important;
    width: 100%;
  }
  .mobile-full-width .sd-width {
    display: block!important;
    width: 100%;
  }
}
.shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.text-emerald-100 {
  --tw-text-opacity: 1;
  color: rgb(209 250 229 / var(--tw-text-opacity, 1));
}
.text-emerald-200 {
  --tw-text-opacity: 1;
  color: rgb(167 243 208 / var(--tw-text-opacity, 1));
}
.text-red-200 {
  --tw-text-opacity: 1;
  color: rgb(254 202 202 / var(--tw-text-opacity, 1));
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.p-4 {
  padding: 1rem;
}
.bg-white\/10 {
  background-color: rgb(255 255 255 / 0.1);
}
.border-white\/20 {
  border-color: rgb(255 255 255 / 0.2)!important;
}
.border {
  border-width: 1px;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.mt-6 {
  margin-top: 1.5rem;
}

.bg-white\/20 {
  background-color: rgb(255 255 255 / 0.2);
}


.text-yellow-900 {
  --tw-text-opacity: 1;
  color: rgb(113 63 18 / var(--tw-text-opacity, 1));
}
.p-2 {
  padding: 0.5rem;
}
.bg-yellow-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(250 204 21 / var(--tw-bg-opacity, 1));
}
.rounded-lg {
  border-radius: 0.5rem;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.fill-current {
  fill: currentColor;
}

.market-coverage-card {
  background: #fff;
  padding: 1.75rem;
  border-radius: 0.75rem;
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)!important;
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)!important;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)!important;
}
.insight-vendors {
  background: var(--primary-lighter-color);
  border: 1px solid var(--primary-lighter-border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  color: var(--primary-color);
}
.insight-stocks {
  background: var(--secondary-lighter-color);
  border: 1px solid var(--secondary-lighter-border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  color: var(--secondary-color);
}
.price-comparison-card {
  background: #fff;
  padding: 1.75rem;
  border-radius: .75rem;
}
.search-results-page .actions {
  display: inline-flex !important;
  position: absolute;
  right: 0;
  top: 17px;
  gap: 8px; /* spacing between action buttons */
}

/* Small devices */
@media screen and (max-width: 767px) {
  .search-results-page .actions {
    position: static; /* remove absolute positioning */
    display: flex !important;
    flex-direction: column; /* stack buttons vertically */
    gap: 6px;
    margin-top: 8px; /* spacing from product info */
  }
}

}
.product-image-wrapper {
  border: 3px solid #e7ebf5;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.product-image {
  transition: all 0.4s ease;
}
.product-image-wrapper:hover .product-image {
  transform: scale(1.05);
}
.product-info-card {
  transition: box-shadow 0.3s ease;
}
.accordion-button {
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
}
@media (max-width: 576px) {
  .product-info-card {
    border-radius: 1.5rem !important;
  }
  .accordion-button {
    font-size: 0.9rem;
  }
}
.quick-specs .spec-item {
  flex: 1 1 calc(33.333% - 0.5rem);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.quick-specs .spec-item h6 {
  font-size: 0.95rem;
}

.quick-specs .spec-item small {
  font-size: 0.8rem;
}

/* Responsive grid adjustments */
@media (max-width: 992px) {
  .quick-specs .spec-item {
    flex: 1 1 calc(50% - 0.5rem);
  }
}
@media (max-width: 576px) {
  .quick-specs .spec-item {
    flex: 1 1 calc(100% - 0.5rem);
  }
}

.accordion-button:focus {
  box-shadow: none!important;
}







