:root {
  --primary-green: #106922;
  --primary-dark: #0b4516;
  --accent-orange: #ff6b00;
  --surface-light: #f8f9fa;
  --text-dark: #1e1e1e;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.08);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 35px rgba(16, 105, 34, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: #f4f6f9;
  color: var(--text-dark);
  overflow-x: hidden;
}

.top-announcement-bar {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-green)
  );
  color: white;
  font-size: 0.8rem;
  padding: 8px 0;
  letter-spacing: 0.5px;
}

.navbar-main {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.brand-logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  text-decoration: none;
}

.brand-logo span {
  color: var(--primary-green);
}

.search-bar-group {
  border: 2px solid var(--primary-green);
  border-radius: 50rem;
  overflow: hidden;
  background: white;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-bar-group input {
  border: none;
  box-shadow: none;
  padding-left: 20px;
  font-size: 0.9rem;
}

.search-bar-group button {
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 0 25px;
  font-weight: 600;
  transition: 0.3s;
}

.search-bar-group button:hover {
  background: var(--primary-dark);
  color: white;
}

.header-action-btn {
  position: relative;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--text-dark);
  padding: 6px 12px;
  border-radius: 50rem;
  transition: 0.2s ease;
}

.header-action-btn:hover {
  background: rgba(16, 105, 34, 0.08);
  color: var(--primary-green);
}

.sub-navbar {
  background: white;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  font-weight: 600;
}

.sub-navbar .nav-link {
  color: #495057;
  padding: 10px 16px;
  transition: 0.2s;
}

.sub-navbar .nav-link:hover,
.sub-navbar .nav-link.active {
  color: var(--primary-green);
  background: #fdfdfd;
  background-color: whitesmoke;
}

.hero-section {
  padding: 25px 0;
}

.hero-carousel-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  height: 100%;
  min-height: 380px;
}

.hero-slide-1 {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), #0b4516;
}

.hero-slide-2 {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), #106922;
}

.hero-slide-3 {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), #1e1e1e;
}

.hero-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
  color: white;
}

.promo-banner-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--glass-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-bubble {
  background: white;
  border-radius: 16px;
  padding: 20px 10px;
  text-align: center;
  border: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-subtle);
}

.category-bubble:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-green);
}

.category-bubble i {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 10px;
  display: block;
  transition: transform 0.3s;
}

.category-bubble:hover i {
  transform: scale(1.1);
}

.product-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-subtle);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(16, 105, 34, 0.3);
}

.product-img-container {
  position: relative;
  aspect-ratio: 1/1;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img-container i.placeholder-icon {
  font-size: 3.5rem;
  color: #adb5bd;
  transition: transform 0.6s;
}

.product-card:hover .product-img-container i.placeholder-icon {
  transform: scale(1.1);
}

.badge-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-orange);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 5;
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  color: #6c757d;
  transition: 0.2s;
  z-index: 5;
  cursor: pointer;
}

.wishlist-btn:hover,
.wishlist-btn.active {
  color: #dc3545;
  transform: scale(1.1);
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}

.product-old-price {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: #adb5bd;
  margin-left: 6px;
}

.btn-add-cart {
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 50rem;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: 0.2s;
  width: 100%;
  margin-top: 12px;
}

.btn-add-cart:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
}

.trust-feature-box {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-subtle);
}

.trust-feature-box i {
  font-size: 2rem;
  color: var(--primary-green);
}

.footer-main {
  background: #111827;
  color: white;
  padding: 70px 0 30px;
  /* margin-top: 5rem; */
  font-size: 0.9rem;
}

.footer-main h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-main ul li {
  margin-bottom: 10px;
}

.footer-main a {
  color: white;
  text-decoration: none;
  transition: 0.2s;
}

.footer-main a:hover {
  color: white;
  padding-left: 4px;
}

.newsletter-input-group {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  padding: 4px;
}

.newsletter-input-group input {
  background: transparent;
  border: none;
  color: white;
  padding-left: 15px;
  box-shadow: none;
  font-size: 0.9rem;
}

.newsletter-input-group input:focus {
  background: transparent;
  color: white;
  border: none;
  box-shadow: none;
}

.newsletter-input-group input::placeholder {
  color: #6b7280;
}

.newsletter-input-group button {
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 50rem;
  padding: 8px 20px;
  font-weight: 600;
}

/* Popups & Toasts */
.live-sale-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: white;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--primary-green);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateX(-150%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.live-sale-popup.show {
  transform: translateX(0);
}

.live-sale-popup img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.custom-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1e293b;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-toast.show {
  transform: translateY(0);
}

.custom-toast i {
  color: #22c55e;
  font-size: 1.25rem;
}
