:root {
  --market-green: #285430;
  --market-green-2: #3a6f3d;
  --market-gold: #d79a2b;
  --market-orange: #c96f2d;
  --market-cream: #fff7e8;
  --market-soft: #f6f0df;
  --market-earth: #6f4e37;
  --market-dark: #18251c;
  --market-muted: #687164;
  --market-border: rgba(40, 84, 48, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--market-dark);
  background: #fffdf8;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
.section-heading,
.navbar-brand {
  font-family: "Playfair Display", Georgia, serif;
}

a {
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
}

.market-navbar {
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--market-border);
}

.market-brand,
.navbar-brand {
  color: var(--market-green) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--market-green);
  color: #fff;
  margin-right: 0.45rem;
  font-size: 1rem;
}

.nav-link {
  color: var(--market-dark);
  font-weight: 600;
  border-radius: 999px;
  padding-left: 0.9rem !important;
  padding-right: 0.9rem !important;
}

.nav-link:hover,
.nav-link.active,
.text-market {
  color: var(--market-green) !important;
}

.nav-link.active {
  background: rgba(215, 154, 43, 0.13);
}

.bg-market {
  background: var(--market-orange) !important;
}

.bg-soft-light,
.bg-cream {
  background: var(--market-cream) !important;
}

.border-soft {
  border: 1px solid var(--market-border) !important;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.btn-accent,
.btn-dark-custom {
  color: #fff !important;
  background: linear-gradient(135deg, var(--market-green), var(--market-green-2));
  border: 0;
  box-shadow: 0 14px 30px rgba(40, 84, 48, 0.22);
}

.btn-accent:hover,
.btn-dark-custom:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(40, 84, 48, 0.28);
}

.btn-outline-custom {
  border: 1px solid var(--market-green);
  color: var(--market-green);
  background: transparent;
}

.btn-outline-custom:hover {
  background: var(--market-green);
  color: #fff;
}

.hero-section {
  position: relative;
  padding: 6rem 0 5rem;
  background:
    radial-gradient(circle at top left, rgba(215, 154, 43, 0.22), transparent 34%),
    linear-gradient(135deg, #fffaf0 0%, #f4ead0 55%, #fffdf8 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  right: -12rem;
  top: -10rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: rgba(58, 111, 61, 0.11);
}

.hero-badge,
.section-kicker,
.product-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: rgba(215, 154, 43, 0.16);
  color: var(--market-green);
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 5.6rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.055em;
  color: var(--market-dark);
}

.hero-text,
.hero-subtext {
  color: var(--market-muted);
  font-size: 1.15rem;
  max-width: 35rem;
}

.hero-stats strong {
  display: block;
  color: var(--market-green);
  font-size: 1.35rem;
  line-height: 1.1;
}

.hero-stats span {
  color: var(--market-muted);
  font-size: 0.85rem;
}

.hero-image-card {
  position: relative;
  border-radius: 2rem;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 28px 80px rgba(40, 84, 48, 0.18);
}

.hero-img,
.product-detail-image img {
  width: 100%;
  border-radius: 1.6rem;
  object-fit: cover;
  min-height: 430px;
  max-height: 560px;
}

.floating-card {
  position: absolute;
  left: 1.7rem;
  bottom: 1.7rem;
  max-width: 260px;
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.93);
}

.floating-card strong {
  display: block;
  line-height: 1.3;
}

.section-padding {
  padding: 5rem 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.section-heading h2,
.section-padding h2,
.cta-band h2 {
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.section-heading p {
  color: var(--market-muted);
  margin-top: 0.75rem;
}

.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 320px;
  border-radius: 1.6rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 20px 55px rgba(24, 37, 28, 0.11);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(24, 37, 28, 0.76), rgba(24, 37, 28, 0.08));
}

.category-overlay span {
  color: rgba(255, 255, 255, 0.77);
  font-size: 0.9rem;
}

.category-overlay h3 {
  margin: 0.35rem 0 0;
  font-weight: 800;
}

.product-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--market-border);
  border-radius: 1.45rem;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(24, 37, 28, 0.07);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 65px rgba(24, 37, 28, 0.12);
}

.product-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--market-soft);
}

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

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

.product-category {
  padding: 0.25rem 0.6rem;
  font-size: 0.67rem;
  background: rgba(40, 84, 48, 0.08);
}

.price {
  color: var(--market-orange);
  font-weight: 800;
}

.old-price {
  color: #9aa29a;
  text-decoration: line-through;
  font-weight: 500;
  margin-left: 0.4rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 1rem;
  align-items: end;
}

.story-img {
  width: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 22px 55px rgba(24, 37, 28, 0.12);
}

.story-img-large {
  min-height: 430px;
}

.story-img-small {
  min-height: 290px;
}

.benefit-box {
  height: 100%;
  padding: 1.1rem;
  border: 1px solid var(--market-border);
  border-radius: 1.2rem;
  background: #fff;
}

.benefit-box i {
  color: var(--market-gold);
  font-size: 1.45rem;
}

.benefit-box strong,
.benefit-box span {
  display: block;
}

.benefit-box span {
  color: var(--market-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--market-green), #17361f);
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 0;
}

.page-hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--market-cream), #ffffff);
  border-bottom: 1px solid var(--market-border);
}

.search-pill .form-control,
.form-control {
  border-color: var(--market-border);
  min-height: 46px;
}

.search-pill .form-control:focus,
.form-control:focus {
  border-color: var(--market-green);
  box-shadow: 0 0 0 0.18rem rgba(40, 84, 48, 0.12);
}

.market-filter-card {
  border: 1px solid var(--market-border);
  border-radius: 1.35rem;
  padding: 1.4rem;
  background: #fff;
  box-shadow: 0 16px 40px rgba(24, 37, 28, 0.06);
}

.product-detail-image {
  padding: 0.65rem;
  border-radius: 1.85rem;
  background: var(--market-cream);
  border: 1px solid var(--market-border);
}

.market-note {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(215, 154, 43, 0.13);
  color: var(--market-earth);
  font-size: 0.94rem;
}

.footer-section {
  background: #132217;
  color: #fff;
}

.footer-brand {
  color: #fff;
  font-weight: 800;
}

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

.footer-links a,
.social-link {
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
}

.footer-links a:hover,
.social-link:hover {
  color: #fff;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar {
  min-height: calc(100vh - 57px);
  background: #fff;
  border-right: 1px solid var(--market-border);
}

.admin-sidebar a {
  display: block;
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.25rem;
  border-radius: 0.9rem;
  color: var(--market-muted);
  text-decoration: none;
  font-weight: 600;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: var(--market-green);
  background: rgba(215, 154, 43, 0.14);
}

.table,
.card {
  color: var(--market-dark);
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 4rem;
  }

  .hero-img,
  .product-detail-image img {
    min-height: 320px;
  }

  .admin-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--market-border);
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 3.25rem 0;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: static;
    margin: 0.75rem 0 0;
  }
}
