:root {
  --primary-green: #2d7a2d;
  --light-green: #4a9a4a;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}
::-webkit-scrollbar {
  display: none;
}
.carousel-control-prev,
.carousel-control-next {
  top: 50%;               
  transform: translateY(-50%);
  height: auto;   
  filter: invert(0) brightness(0);
}


.navbar-custom {
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  border-radius: 50px;
  margin: 0 20px;
  padding: 10px 30px;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  padding: 10px 20px !important;
  margin: 0 5px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 50%;
  background-color: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.medical-symbol {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
}

.search-container {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.search-input {
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  padding: 10px 20px 10px 45px;
  width: 100%;
  font-size: 14px;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.order-online {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #333;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 24px;
  color: #333;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section {
  text-align: center;
  padding: 60px 0 20px 0;
  background: white;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
}

.products-section {
  padding: 20px 0;
  background: white;
  margin-bottom: 0;
}

.product-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 10px;
}

.product-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.1rem;
  color: var(--primary-green);
  font-weight: bold;
  margin-bottom: 15px;
}

.add-to-cart-btn {
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  background: var(--light-green);
  transform: scale(1.05);
}

.view-more-btn {
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 40px;
}

.view-more-btn:hover {
  background: var(--light-green);
  transform: scale(1.05);
}

.footer-section {
  background: #e9ecef;
  padding: 50px 0 30px 0;
  margin-top: 0;
}

.footer-column h5 {
  color: #333;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-column p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-result-item {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-item:last-child {
  border-bottom: none;
}

/* Enhanced search filtering styles for better user experience */
.search-filter-header {
  padding: 8px 15px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  font-size: 12px;
}

.search-result-item-enhanced {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s;
}

.search-result-item-enhanced:hover {
  background-color: #f8f9fa;
}

.search-result-item-enhanced:last-child {
  border-bottom: none;
}

.medicine-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.medicine-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #eee;
}

.medicine-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.medicine-price {
  color: var(--primary-green);
  font-weight: 600;
  font-size: 14px;
}

.medicine-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.medicine-actions .btn {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.medicine-actions .btn i {
  font-size: 11px;
}

/* Responsive adjustments for enhanced search */
@media (max-width: 576px) {
  .search-result-item-enhanced {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
  }

  .medicine-info {
    width: 100%;
  }

  .medicine-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .medicine-actions .btn {
    font-size: 11px;
    padding: 6px 10px;
  }
}

/* About Us Page Styles */
.about-hero {
  background: #f8f9fa;
  padding: 80px 0;
}

.about-content {
  background: white;
  padding: 60px 0;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.store-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Contact Us Page Styles */
.contact-hero {
  background: #f8f9fa;
  padding: 80px 0;
  text-align: center;
}

.contact-content {
  background: white;
  padding: 60px 0;
}

.contact-info {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 15px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 18px;
}

.contact-form {
  background: #e9ecef;
  padding: 40px;
  border-radius: 15px;
}

.contact-form .form-control {
  border: none;
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 20px;
  font-size: 14px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--light-green);
  transform: scale(1.05);
}

/* Enhanced responsive design for all devices */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .navbar-custom {
    margin: 0 15px;
    padding: 8px 25px;
  }

  .search-container {
    max-width: 350px;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .order-online {
    gap: 12px;
  }

  .order-online span {
    font-size: 14px;
  }

  .navbar-nav .nav-link {
    padding: 8px 15px !important;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .navbar-custom {
    margin: 0 10px;
    padding: 10px 20px;
  }

  .order-online {
    flex-direction: column;
    gap: 10px;
  }

  .about-content .row {
    flex-direction: column-reverse;
  }

  .store-image {
    height: 250px;
    margin-bottom: 30px;
  }

  .contact-content .row {
    flex-direction: column;
  }

  .contact-info {
    margin-bottom: 30px;
  }

  /* Better mobile navigation */
  .navbar-nav {
    flex-direction: column;
    gap: 5px;
  }

  .navbar-nav .nav-link {
    text-align: center;
    margin: 2px 0;
  }

  .logo-section h4 {
    font-size: 1.1rem;
  }

  .search-container {
    margin: 15px 0;
  }
}

/* Additional responsive breakpoints for better mobile experience */
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
    padding: 0 15px;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 15px;
  }

  .navbar-custom {
    margin: 0 5px;
    padding: 8px 15px;
  }

  .logo-section {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .logo-image {
    width: 35px;
    height: 35px;
  }

  .search-input {
    font-size: 14px;
    padding: 8px 15px 8px 35px;
  }

  .order-online {
    justify-content: center;
    gap: 8px;
  }

  .product-card {
    padding: 15px;
  }

  .product-image {
    height: 150px;
  }

  .footer-section {
    padding: 30px 0 20px 0;
  }

  .footer-column {
    margin-bottom: 25px;
    text-align: center;
  }
}

/* Large screens and monitors */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .product-card {
    padding: 25px;
  }

  .product-image {
    height: 220px;
  }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
  .hero-title {
    font-size: 4rem;
  }

  .navbar-custom {
    max-width: 1200px;
    margin: 0 auto;
  }

  .products-section .container {
    max-width: 1400px;
  }
}

/* Added mobile navigation styles for burger menu */
.mobile-menu-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  margin: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu-container .navbar-nav {
  gap: 0;
}

.mobile-menu-container .nav-link {
  color: #333 !important;
  padding: 12px 15px !important;
  border-radius: 8px;
  margin: 3px 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.mobile-menu-container .nav-link:hover {
  background: rgba(76, 175, 80, 0.1);
  color: var(--primary-green) !important;
  transform: translateX(5px);
}

.mobile-menu-container .nav-link.active {
  background: var(--primary-green);
  color: white !important;
}

.mobile-menu-container .nav-link i {
  font-size: 16px;
  width: 20px;
}

.navbar-toggler {
  border: none;
  padding: 4px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Ensure mobile menu works properly */
.navbar-collapse {
  border: none;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }
}

/* Hide mobile menu container on desktop to prevent collision */
@media (min-width: 992px) {
  .mobile-menu-container {
    display: none !important;
  }
}

/* Ensure burger menu button only shows on mobile */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}

/* Added category card styles for medicine categories */
.category-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  height: 200px;
  position: relative;
  margin-bottom: 30px;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
  padding: 20px;
  color: white;
}

.category-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Added medicine modal styles for category details */
.medicine-modal-card {
  background: white;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  margin-bottom: 20px;
}

.medicine-modal-card:hover {
  transform: translateY(-2px);
}

.medicine-modal-image {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 8px;
}

.medicine-modal-name {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.medicine-modal-price {
  font-size: 1rem;
  color: var(--primary-green);
  font-weight: bold;
  margin-bottom: 10px;
}

.medicine-modal-btn {
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 6px 15px;
  border-radius: 15px;
  font-size: 12px;
  transition: all 0.3s ease;
  width: 100%;
}

.medicine-modal-btn:hover {
  background: var(--light-green);
  transform: scale(1.05);
}

/* Responsive adjustments for category cards */
@media (max-width: 768px) {
  .category-card {
    height: 150px;
  }

  .category-name {
    font-size: 1rem;
  }

  .category-overlay {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .category-card {
    height: 120px;
  }

  .category-name {
    font-size: 0.9rem;
  }

  .category-overlay {
    padding: 10px;
  }
}

.rx-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #3580dc; /* red */
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.product-card {
    position: relative;
    border-radius: 12px;
    padding: 10px;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


