:root {
  --pastel-green: #f0f9eb;
  --brand-success: #6AAE2D;
  --brand-dark: #4A8A18;
}

body {
  margin-bottom: 0;
  color: #333;
}

.bg-pastel-green {
  background-color: var(--pastel-green) !important;
}

.text-success {
  color: var(--brand-success) !important;
}

.btn-success {
  background-color: var(--brand-success);
  border-color: var(--brand-success);
}

.btn-success:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.navbar-brand {
  font-family: 'Quicksand', sans-serif;
}

.nav-link:hover {
  color: var(--brand-success) !important;
}

/* Custom transitions */
.transition {
  transition: all 0.3s ease;
}

/* Card styles */
.card {
  border-radius: 12px;
  overflow: hidden;
}

.hover-green:hover {
  color: var(--brand-success) !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-success);
}

/* Buy Now Button Redesign */
.btn-buy-now {
  background: linear-gradient(45deg, #2fa95b 0%, #55c06f 100%);
  border: none;
  color: #fff !important;
  width: 180px;
  height: 44px;
  padding: 0;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(47, 169, 91, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin: 15px auto 5px;
}

/* Dropdown Menu Enhancements */
.nav-item.dropdown:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Dropdown Menu Enhancements */
.dropdown-menu {
    display: none;
}

.dropdown-menu.show {
    display: block !important;
}

/* Chỉ áp dụng hiệu ứng hover cho menu Sản phẩm */
.nav-item.dropdown:hover > #navbarDropdownProducts + .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#navbarDropdownProducts + .dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(5px);
    margin-top: 0 !important;
    border-top: 5px solid transparent !important;
    background-clip: padding-box;
    border: none !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0 !important;
  left: 100% !important;
  margin-left: 0 !important;
  border-top: 0 !important;
  border-left: 5px solid transparent !important;
  transform: translateX(5px);
  display: none !important;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block !important;
}.dropdown-item {
  transition: all 0.2s ease;
  padding: 10px 20px !important; 
}

.dropdown-item:hover {
  background-color: var(--pastel-green) !important;
  color: var(--brand-success) !important;
  padding-left: 20px !important;
}

.btn-buy-now::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-buy-now:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(47, 169, 91, 0.4);
  color: #fff !important;
}

.btn-buy-now:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-buy-now i {
  margin-right: 10px;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn-buy-now:hover i {
  transform: translateX(3px) scale(1.2);
}

/* Bestseller Banner Shimmer Effect */
.bestseller-banner-container {
  position: relative;
  overflow: hidden;
}

.bestseller-banner-container::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -150%;
  width: 60%;
  height: 200%;
  background: linear-gradient(to right, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    rgba(255, 255, 255, 0) 100%);
  transform: rotate(30deg);
  animation: shimmer 2s infinite cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}

@keyframes shimmer {
  0% { left: -150%; }
  100% { left: 150%; }
}

/* Product Detail Page Enhancements */
.product-detail-img-wrap {
  background: linear-gradient(180deg, #f9fff5 0%, #ffffff 100%);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
}

.product-detail-img-wrap:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.product-main-img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-detail-img-wrap:hover .product-main-img {
  transform: scale(1.08);
}

.price-box-detail {
  background: linear-gradient(135deg, #f0f9eb 0%, #ffffff 100%);
  border-left: 5px solid var(--brand-success);
  border-radius: 12px;
}

.quantity-picker-detail {
  display: inline-flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 50px;
  padding: 6px;
  border: 1px solid #eee;
}

.quantity-picker-detail .btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: #fff;
  border: 1px solid #eee;
  color: var(--brand-success);
  transition: all 0.2s ease;
}

.quantity-picker-detail .btn:hover {
  background: var(--brand-success);
  color: #fff;
}

.quantity-picker-detail input {
  width: 50px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
}

.quantity-picker-detail input:focus {
  box-shadow: none;
  outline: none;
}

.product-benefit-icon {
  width: 45px;
  height: 45px;
  background: #f0f9eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-success);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-info-tabs .nav-link {
  border: none;
  color: #666;
  font-weight: 600;
  padding: 12px 25px;
  border-bottom: 3px solid transparent;
}

.product-info-tabs .nav-link.active {
  color: var(--brand-success);
  background: transparent;
  border-bottom-color: var(--brand-success);
}

/* Force Rating to be on one row */
.product-rating, .rating-stars {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
}

.rating-stars i, .star {
  display: inline-block !important;
  margin: 0 1px !important;
  font-style: normal !important;
}

.rating-text {
  display: inline-block !important;
  margin-left: 6px !important;
  white-space: nowrap !important;
}
