/* Main CSS for the entire site */
:root {
  --primary-color: #0d9488;
  --primary-dark: #115e59;
  --primary-light: #ccfbf1;
  --primary-very-light: #f0fdfa;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Color utility classes */
.bg-teal {
  background-color: var(--primary-color);
}

.bg-teal-light {
  background-color: var(--primary-light);
}

.bg-teal-very-light {
  background-color: var(--primary-very-light);
}

.text-teal {
  color: var(--primary-color);
}

.text-teal-dark {
  color: var(--primary-dark);
}

/* Button styles */
.btn-teal {
  background-color: var(--primary-color);
  color: white;
}

.btn-teal:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-outline-teal {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-teal:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Navbar styles */
.navbar {
  padding: 0.75rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .nav-link {
  font-size: 1.15rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem !important;
  margin: 0 0.15rem;
  color: #333;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(13, 148, 136, 0.05);
  transform: translateY(-1px);
}

.navbar .nav-link.active {
  color: var(--primary-color);
  background-color: rgba(13, 148, 136, 0.1);
}

/* Dropdown styling */
.navbar .dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
  margin-top: 0.5rem;
}

.navbar .dropdown-item {
  padding: 0.6rem 1.5rem;
  color: #444;
  font-weight: 400;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.navbar .dropdown-item:hover {
  color: var(--primary-color);
  background-color: rgba(13, 148, 136, 0.05);
}

.navbar .dropdown-item:active {
  background-color: rgba(13, 148, 136, 0.1);
}

.navbar .dropdown-item.active {
  color: var(--primary-color);
  background-color: rgba(13, 148, 136, 0.1);
  font-weight: 500;
}

.dropdown-toggle::after {
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Cart Icon Styling */
#cartIcon, #cartIconMobile {
  transition: transform 0.3s, color 0.3s;
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(13, 148, 136, 0.1);
  width: 42px;
  height: 42px;
}

#cartIcon:hover, #cartIconMobile:hover {
  transform: scale(1.05);
  background-color: rgba(13, 148, 136, 0.15);
}

/* Cart badge positioning */
.cart-count {
  font-size: 0.7rem;
  margin-top: -5px;
  margin-left: -5px;
}

/* Hero section */
.hero-section {
  background: linear-gradient(to right, #f0fdfa, #ccfbf1);
  padding: 80px 0;
}

/* Feature icons */
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* Product card */
.product-card {
  transition: transform 0.3s ease;
  height: 100%;
}

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

.product-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-img-wrapper:hover .product-img {
  transform: scale(1.05);
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #dc3545;
  color: white;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
  z-index: 2;
}

/* Stock Status Badges */
.stock-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: white;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  z-index: 2;
}

.stock-in {
  background-color: #198754;  /* Bootstrap success color */
}

.stock-low {
  background-color: #ffc107;  /* Bootstrap warning color */
  color: #212529;
}

.stock-out {
  background-color: #dc3545;  /* Bootstrap danger color */
}

/* Rating */
.rating {
  color: #ffc107;
}

/* Footer */
.footer {
  background: linear-gradient(to right, var(--primary-very-light), var(--primary-light));
  color: var(--primary-dark);
  padding: 50px 0 20px;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  margin-top: 30px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(13, 148, 136, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

.social-icon i {
  color: var(--primary-dark);
}

.social-icon:hover {
  background-color: rgba(13, 148, 136, 0.2);
}

.social-icon:hover i {
  color: var(--primary-color);
}

/* Mobile responsive */
@media (max-width: 991px) {
  .navbar .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 0;
    border-left: 3px solid transparent;
  }

  .navbar .nav-link:hover,
  .navbar .nav-link.active {
    border-left-color: var(--primary-color);
    background-color: rgba(13, 148, 136, 0.05);
    transform: none;
  }

  .navbar-collapse {
    padding: 1rem 0;
  }
}