:root {
  --primary-color: #028e65;
  --primary-hover: #027a56;
  --secondary-color: #f8f9fa;
  --text-dark: #333;
  --text-muted: #6c757d;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body,
input,
button,
select,
textarea {
  font-family: 'Raleway', 'Inter', 'Roboto', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: #f8fafc;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  background-color: #fff;
}

.navbar-brand img {
  max-height: 50px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 600;
  color: #444;
  font-size: 0.95rem;
  padding: 10px 15px !important;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-link i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover i {
  transform: translateY(-2px);
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.btn-primary-custom {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 5px;
  padding: 8px 16px;
  transition: background 0.3s;
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  color: #fff;
}

/* Footer */
footer {
  background-color: #fff;
  border-top: 1px solid #eaeaea;
}

.footer-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  background-color: #fafafa;
  padding: 15px 0;
  border-top: 1px solid #eaeaea;
  font-size: 0.9rem;
  color: #888;
}

/* Utilities */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

/* Custom Premium Select */
.custom-premium-select:focus {
  outline: none;
  box-shadow: none;
}

.custom-premium-select {
  transition: all 0.3s ease;
}

.custom-premium-select:hover {
  background-color: #f8f9fa;
}

/* Hero Search Bar Refinements */
.border-end-custom {
  border-right: 1px solid #dee2e6;
}

.hero-search-form .search-btn-main {
  border-radius: 0 50px 50px 0;
  border: none;
}

@media (max-width: 991.98px) {
  .hero-search-form {
    border-radius: 15px !important;
    overflow: hidden !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .hero-search-form .row {
    gap: 10px;
  }

  .hero-search-form>.row>div:not(:last-child) {
    background-color: #fff;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .hero-search-form>.row>div:last-child {
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .border-end-custom {
    border-right: none !important;
    border-bottom: none !important;
  }

  .hero-search-form .form-control {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .search-container-main {
    max-width: 95% !important;
  }

  .hero-search-form .search-btn-main {
    border-radius: 12px !important;
    margin-top: 5px;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
}

.hero-search-form .form-control:focus {
  background-color: #fcfcfc;
}

.hero-search-form .dropdown-toggle::after {
  display: none;
}


/* Category Dropdown Refinements */
.category-dropdown-wrapper .dropdown-menu {
  min-width: 320px;
  max-height: 480px !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  padding: 0 !important;
  margin-top: 2px !important;
  /* Move closer to align with text */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid #eee !important;
  left: 0 !important;
  transform: none !important;
}

@media (max-width: 991.98px) {
  .category-dropdown-wrapper .dropdown-menu {
    min-width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    left: 20px !important;
    right: 20px !important;
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
  }
}

.category-list-scrollable {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

.category-menu-main .dropdown-item {
  padding: 10px 15px;
  transition: all 0.2s ease;
  border-radius: 8px !important;
  margin-bottom: 2px;
}

.category-menu-main .dropdown-item:hover,
.category-menu-main .dropdown-item.active {
  background-color: rgba(2, 142, 101, 0.08) !important;
  color: var(--primary-color) !important;
}

.sub-category-list {
  display: none;
  background-color: #fcfcfc;
  border-left: 2px solid var(--primary-color);
  margin-top: 2px;
  margin-bottom: 8px;
}

.category-parent:hover .sub-category-list {
  display: block;
}

.category-parent:hover>.dropdown-item {
  background-color: rgba(2, 142, 101, 0.05);
  color: var(--primary-color);
}

.category-search-input:focus {
  box-shadow: none;
  background-color: #fff !important;
  border: 1px solid rgba(2, 142, 101, 0.3) !important;
}

/* Custom Scrollbar for Dropdown */
.category-list-scrollable::-webkit-scrollbar {
  width: 5px;
}

.category-list-scrollable::-webkit-scrollbar-track {
  background: transparent;
}

.category-list-scrollable::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

.category-list-scrollable::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.hero-search-form .btn-primary-custom:hover {
  background-color: var(--primary-hover);
  opacity: 0.9;
}

/* Additional Dropdown & Selection Reset Styles */
html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  height: 100% !important;
  position: relative !important;
}

/* Product Detail Page Enhancements */
.img-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.img-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.img-thumb.active {
  border-color: var(--primary-color);
  opacity: 1;
}

.table-pricing th {
  background: #f8f9fa;
  font-weight: 700;
  color: #444;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-pricing td {
  padding: 15px !important;
  font-size: 1.1rem;
}

.tracking-wide {
  letter-spacing: 1px;
}

.hover-primary:hover {
  color: var(--primary-color) !important;
}

.transition-hover {
  transition: all 0.3s ease;
}

.transition-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Product Detail Refinements */
.anchor-nav {
  border-bottom: 1px solid #eee;
  background: white;
  z-index: 1020;
}

.anchor-nav .nav-link {
  color: #666;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.anchor-nav .nav-link:hover,
.anchor-nav .nav-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white !important;
  border: none;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.region-tag {
  background: #f8f9fa;
  border: 1px solid #eee;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-block;
}

/* --- Shop & Product Listing Modernization --- */

.shadow-sm-inset {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ls-1 {
  letter-spacing: 1px;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-shadow-lg:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

/* Filter Groups */
.filter-group .cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-radius: 100px;
  text-decoration: none;
  color: #4a5568;
  font-size: 0.88rem;
  margin-bottom: 4px;
  transition: all 0.2s;
}

.filter-group .cat-item:hover:not(.active) {
  background: #edf2f7;
  transform: translateX(3px);
  color: var(--primary-color);
}

.filter-group .cat-item.active {
  background: var(--primary-color);
  color: white !important;
  box-shadow: 0 4px 12px rgba(2, 142, 101, 0.2);
}

.filter-group .cat-item.active .badge {
  background: white !important;
  color: var(--primary-color) !important;
}

/* Custom Checkbox & Range */
.custom-checkbox .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.custom-range::-webkit-slider-thumb {
  background: var(--primary-color);
}

.custom-range::-moz-range-thumb {
  background: var(--primary-color);
}

.custom-range::-webkit-slider-runnable-track {
  background-color: #e2e8f0;
}

/* Modern Product Card */
.modern-product-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #fff;
  z-index: 1;
}

.modern-product-card .card-head {
  background: #fdfdfd;
}

.modern-product-card .img-container img {
  object-fit: contain;
  padding: 15px;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-product-card:hover .main-img {
  opacity: 0;
  transform: scale(1.1);
}

.modern-product-card:hover .hover-img {
  opacity: 1 !important;
  transform: scale(1.05);
}

.modern-product-card:hover .quick-actions-bar {
  transform: translateY(0);
  opacity: 1 !important;
}

.modern-product-card .fav-btn:hover {
  background-color: #fff !important;
  color: #e53e3e !important;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.modern-product-card .fav-btn i {
  transition: color 0.3s;
}

.modern-product-card .vendor-link:hover {
  background-color: #f1f5f9 !important;
}

/* Toolbar & Chips */
.filter-chip {
  transition: all 0.2s;
}

.filter-chip i:hover {
  color: #dc3545 !important;
}

/* Pagination */
.modern-pagination .page-link {
  border: 1px solid #e2e8f0;
  color: #4a5568;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.modern-pagination .page-item.active .page-link {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(2, 142, 101, 0.25) !important;
}

.modern-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
  background-color: #f8fafc;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Mobile Filter Drawer */
.offcanvas {
  border: none !important;
}

.active-text-primary {
  color: var(--primary-color) !important;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .modern-product-card .card-content {
    padding: 10px !important;
  }

  .modern-product-card .product-name {
    font-size: 0.75rem !important;
  }

  .modern-product-card .new-price {
    font-size: 0.95rem !important;
  }
}

.hover-scale {
  transition: transform 0.2s;
}

.hover-scale:hover {
  transform: scale(1.1);
}

.active-scale:active {
  transform: scale(0.95);
}

/* Pulse dot animation */
.pulse-dot {
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}
/* Testimonials Section */
.testimonials-section {
    background-color: #f8fafc !important;
}

.testimonial-card {
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

.testimonial-content p {
    font-style: italic;
    color: #4a5568;
}
