:root {
  --brand-900: #123524;
  --brand-700: #1f6e43;
  --brand-600: #278a55;
  --brand-500: #33a465;
  --accent-500: #e8a317;
  --bg-soft: #f4f8f4;
  --bg-card: #ffffff;
  --text-900: #1c2b24;
  --text-700: #4f5f57;
  --border-soft: #e4ece7;
  --shadow-soft: 0 10px 30px rgba(16, 41, 28, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background: radial-gradient(circle at top right, #eaf6ed 0%, #f7faf7 38%, #f3f7f3 100%);
  color: var(--text-900);
}

.site-main {
  min-height: calc(100vh - 330px);
  padding-top: 94px;
}

.site-navbar {
  background: linear-gradient(90deg, var(--brand-900), var(--brand-700));
  box-shadow: 0 8px 24px rgba(16, 41, 28, 0.22);
}

.navbar-brand {
  letter-spacing: 0.3px;
  max-width: 280px;
}

.site-brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px;
  flex-shrink: 0;
}

.site-brand-text {
  display: inline-block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-popup-image {
  max-height: 260px;
  width: 100%;
  object-fit: cover;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: #ffffff !important;
}

.profile-img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 8px;
}

.hero-panel {
  background: linear-gradient(130deg, #eaf8ee 0%, #d9f0e0 100%);
  border: 1px solid #d5e9dc;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.hero-panel h1 {
  font-size: clamp(1.8rem, 2.7vw, 3rem);
  line-height: 1.15;
}

.hero-carousel {
  border-radius: 24px;
}

.hero-carousel-inner {
  border-radius: 24px;
}

.hero-carousel .carousel-item {
  transition: transform 0.8s ease-in-out;
}

.hero-banner-image {
  height: 320px;
  object-fit: cover;
}

.hero-carousel-control {
  width: 8%;
}

.hero-carousel-control .carousel-control-prev-icon,
.hero-carousel-control .carousel-control-next-icon {
  background-color: rgba(18, 53, 36, 0.55);
  border-radius: 50%;
  background-size: 58% 58%;
  width: 2.1rem;
  height: 2.1rem;
}

.hero-carousel-indicators {
  margin-bottom: 0.4rem;
}

.hero-carousel-indicators [data-bs-target] {
  background-color: var(--brand-700);
}

.hero-carousel-tools {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 5;
}

.hero-carousel-tools .btn {
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(18, 53, 36, 0.22);
  font-size: 0.82rem;
}

.badge-soft {
  background: #e1f4e8;
  color: #1f6e43;
  border: 1px solid #c8e9d4;
  font-weight: 600;
}

.section-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 1.1rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 41, 28, 0.05);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-info {
  padding: 14px 15px 16px;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
}

.product-price {
  color: var(--brand-700);
  font-weight: 700;
  font-size: 1.15rem;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
}

.btn-primary,
.btn-success {
  background: linear-gradient(90deg, var(--brand-700), var(--brand-500));
  border: none;
}

.btn-primary:hover,
.btn-success:hover {
  background: linear-gradient(90deg, #1a6f40, #29995c);
}

.btn-warning {
  border: none;
  background: linear-gradient(90deg, #ecab24, #d59210);
}

.card,
.table,
.list-group-item,
.form-control,
.form-select,
.alert {
  border-radius: 12px;
}

.card,
.table {
  border-color: var(--border-soft);
}

.table > :not(caption) > * > * {
  padding: 0.9rem 0.85rem;
}

.table thead.table-dark th {
  background: #1d2a24 !important;
}

.form-control,
.form-select {
  border: 1px solid #d4e4dc;
  padding: 0.62rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #8ac7a4;
  box-shadow: 0 0 0 0.2rem rgba(66, 164, 105, 0.15);
}

.site-footer {
  background: linear-gradient(180deg, #132a20 0%, #0f2018 100%);
  color: #ecf4ef;
}

.text-footer-muted {
  color: #b8cbbf;
}

.footer-link {
  color: #d9e8df;
  text-decoration: none;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-divider {
  border-color: rgba(201, 220, 209, 0.28);
}

.info-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(16, 41, 28, 0.05);
}

@media (max-width: 991px) {
  .site-main {
    padding-top: 86px;
  }

  .site-brand-text {
    max-width: 140px;
  }

  .product-card img {
    height: 210px;
  }
}

@media (max-width: 767px) {
  .site-main {
    padding-top: 82px;
  }

  .hero-panel {
    border-radius: 16px;
  }

  .hero-carousel,
  .hero-carousel-inner {
    border-radius: 16px;
  }

  .hero-banner-image {
    height: 220px;
  }

  .hero-carousel-control {
    width: 12%;
  }

  .hero-carousel-tools {
    right: 10px;
    bottom: 8px;
  }

  .table-responsive {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: #fff;
  }
}
