:root {
  --brand: #4f7942;
  --brand-alt: #a0522d;
  --brand-soft: #ecfdf3;
  --taupe: #d1d5db;
  --text-main: #1f2937;
  --bg-soft: #f9fafb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
}

/* NAVBAR */

.navbar {
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.navbar-scrolled {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  background-color: #ffffff;
}

.brand-logo {
  letter-spacing: 0.25em;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--brand) !important;
}

.nav-link {
  font-weight: 500;
  color: #6b7280;
  font-size: 0.9rem;
}

.nav-link:hover,
.nav-link:focus {
  color: #111827;
}

.btn-brand {
  background-color: var(--brand);
  color: #ffffff;
  border-radius: 999px;
  padding-inline: 1.25rem;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-brand:hover,
.btn-brand:focus {
  background-color: #3b5c33;
  color: #ffffff;
}

.btn-outline-brand {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  color: #374151;
  font-weight: 500;
  background-color: #ffffff;
  font-size: 0.9rem;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background-color: #f3f4f6;
  color: #111827;
}

.cart-icon {
  font-size: 1.1rem;
}

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

/* HERO */

.hero-section {
  position: relative;
}

.hero-image {
  height: 70vh;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.7),
    rgba(15, 23, 42, 0.25)
  );
}

.hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #bbf7d0;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 800;
  color: #f9fafb;
  margin-bottom: 0.5rem;
}

.hero-text {
  font-size: 0.95rem;
  color: #e5e7eb;
  max-width: 35rem;
  margin-bottom: 1.25rem;
}

/* SECTIONS */

.section-padding {
  padding-block: 4rem;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-text {
  font-size: 0.95rem;
  color: #6b7280;
}

.bg-soft {
  background-color: var(--bg-soft);
}

/* ABOUT */

.about-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand);
}

/* FEATURE CARDS */

.feature-card {
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-color: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 20px;
  height: 20px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.feature-text {
  font-size: 0.9rem;
  color: #6b7280;
}

/* CATEGORY CARDS */

.category-card {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  background-color: #ffffff;
}

.category-image-wrapper {
  position: relative;
  overflow: hidden;
}

.category-image {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-image {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.65),
    rgba(15, 23, 42, 0.05)
  );
}

.category-caption {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  right: 1rem;
}

.category-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
}

/* PRODUCT CARDS */

.product-card {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  transform: translateY(-3px);
}

.product-image-wrapper {
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-body {
  padding: 1.1rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.product-text {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.7rem;
}

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

.product-stars {
  font-size: 0.85rem;
  color: #fbbf24;
}

.spec-field {
  padding: 6px 8px;
  border-radius: 8px;
}

.form-label.small {
  font-size: 0.85rem;
}

.product-thumbs {
  white-space: nowrap;
}

.thumb-img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.thumb-img:hover {
  opacity: 1;
}

.active-thumb {
  opacity: 1;
  border-color: #4f7942; /* deep sage brand color */
}

/* TESTIMONIAL */

.testimonial {
  max-width: 620px;
}

.testimonial-stars {
  font-size: 1.1rem;
  color: #fbbf24;
}

.testimonial-text {
  font-size: 1.05rem;
  color: #374151;
  margin-bottom: 0.5rem;
}

.testimonial-author {
  font-size: 0.9rem;
  color: #6b7280;
}

/* NEWSLETTER */

.newsletter-section {
  background-color: var(--brand);
  color: #ecfeff;
}

.newsletter-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.newsletter-text {
  font-size: 0.95rem;
  color: #d1fae5;
}

.newsletter-input {
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  background-color: rgba(255, 255, 255, 0.95);
}

.newsletter-input:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4);
  border-color: transparent;
}

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

/* FOOTER */

.footer-section {
  background-color: #111827;
  color: #9ca3af;
}

.footer-logo {
  letter-spacing: 0.25em;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin-bottom: 0.75rem;
}

.footer-text {
  font-size: 0.85rem;
  max-width: 16rem;
}

.footer-meta {
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 1rem;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #e5e7eb;
  margin-bottom: 0.75rem;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #e5e7eb;
}

.social-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: #111827;
  border: 1px solid #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #e5e7eb;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.social-circle:hover {
  background-color: #1f2937;
  transform: translateY(-1px);
}

/* OFFCANVAS CART */

.offcanvas {
  border-left: 1px solid #e5e7eb;
}

#cart-items {
  max-height: 400px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid #e5e7eb;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 64px;
  height: 64px;
  border-radius: 0.75rem;
  object-fit: cover;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--brand);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.cart-qty-input {
  width: 52px;
  padding: 0.1rem 0.25rem;
  font-size: 0.8rem;
}

.cart-remove-btn {
  font-size: 0.75rem;
}

/* SHOP PAGE CONTROLS */

.shop-controls {
  align-items: center;
}

.price-range-wrapper {
  background-color: #f3f4f6;
  border-radius: 0.75rem;
  padding: 0.4rem 0.6rem;
}

.price-range-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.price-range-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
}

.price-range {
  height: 0.2rem;
}

.cart-qty-input {
  width: 60px !important;
  text-align: center;
  padding: 4px;
}
.cart-remove-btn i {
  font-size: 1rem;
}

.spec-error {
    border-color: #dc3545 !important;
    background-color: #ffe6e6 !important;
}

/* UTILITIES & RESPONSIVE */

@media (max-width: 991.98px) {
  .hero-image {
    height: 60vh;
  }

  .hero-caption {
    padding-inline: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding-block: 3rem;
  }

  .product-image {
    height: 210px;
  }
}