/* ==========================================================================
   Growcery — theme built on Bootstrap 5
   ========================================================================== */

:root {
  --gc-green: #1b815c;
  --gc-green-dark: #146449;
  --gc-orange: #ee7d1a;
  --gc-orange-dark: #d76c0f;
  --gc-sage: #8ec5b0;
  --gc-cream: #f3f5f4;
  --gc-ink: #23282a;
  --gc-muted: #6c7573;
  --gc-star: #ffb400;
  --gc-radius: 6px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gc-ink);
  background-color: #fff;
}

h1, h2, h3, h4, h5, .brand-font {
  font-family: "Poppins", "Inter", sans-serif;
}

a {
  text-decoration: none;
}

/* Buttons ---------------------------------------------------------------- */
.btn-gc-orange {
  background-color: var(--gc-orange);
  border-color: var(--gc-orange);
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
}
.btn-gc-orange:hover, .btn-gc-orange:focus {
  background-color: var(--gc-orange-dark);
  border-color: var(--gc-orange-dark);
  color: #fff;
}
.btn-gc-green {
  background-color: var(--gc-green);
  border-color: var(--gc-green);
  color: #fff;
  font-weight: 600;
}
.btn-gc-green:hover, .btn-gc-green:focus {
  background-color: var(--gc-green-dark);
  border-color: var(--gc-green-dark);
  color: #fff;
}
.btn-view-all {
  white-space: nowrap;
  padding: .5rem 1.25rem;
  font-size: .85rem;
}

/* Topbar ------------------------------------------------------------------ */
.gc-topbar {
  background-color: var(--gc-green);
}
.gc-logo {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: .01em;
}
.gc-logo .gc-logo-accent {
  color: var(--gc-orange);
}
.gc-search-form .form-select,
.gc-search-form .form-control {
  border-radius: 0;
  border: none;
}
.gc-search-form {
  border-radius: var(--gc-radius);
  overflow: hidden;
}
.gc-icon-link {
  color: #fff;
  font-size: 1.2rem;
  position: relative;
}
.gc-icon-link:hover { color: #eafff5; }
.gc-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--gc-orange);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nav row ------------------------------------------------------------------ */
.gc-nav {
  background-color: var(--gc-green-dark);
}
.gc-nav .nav-link {
  color: #eafff2;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .85rem 1.1rem;
}
.gc-nav .nav-link:hover {
  color: #fff;
  background-color: rgba(255,255,255,.06);
}
.gc-nav .nav-link.active {
  background-color: var(--gc-orange);
  color: #fff;
}

/* Hero ---------------------------------------------------------------------- */
.gc-hero {
  position: relative;
}
.gc-hero .carousel-item {
  min-height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.gc-hero-slide-1 { background-color: #8ec5b0; }
.gc-hero-slide-2 { background-color: #f1a72d; }
.gc-hero-caption {
  max-width: 560px;
  padding: 2.5rem 4rem;
  color: #fff;
}
.gc-hero-caption .eyebrow {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: .25rem;
  display: block;
}
.gc-hero-caption h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.gc-hero .carousel-control-prev,
.gc-hero .carousel-control-next {
  width: 56px;
  height: 56px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,.85);
  border-radius: 50%;
  opacity: 1;
}
.gc-hero .carousel-control-prev { left: 24px; }
.gc-hero .carousel-control-next { right: 24px; }
.gc-hero .carousel-control-prev-icon,
.gc-hero .carousel-control-next-icon {
  filter: invert(1) grayscale(100);
  width: 1.1rem;
  height: 1.1rem;
}

/* Features strip -------------------------------------------------------------- */
.gc-features {
  background-color: var(--gc-cream);
}
.gc-feature-item h6 {
  color: var(--gc-green);
  font-weight: 700;
  margin-bottom: .35rem;
}
.gc-feature-item p {
  color: var(--gc-muted);
  font-size: .85rem;
  margin-bottom: 0;
}

/* Section heading --------------------------------------------------------------- */
.gc-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
}

/* Product cards ------------------------------------------------------------------- */
.gc-product-card {
  border: 1px solid #eee;
  border-radius: var(--gc-radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
  background: #fff;
  height: 100%;
}
.gc-product-card:hover {
  box-shadow: 0 10px 24px rgba(20, 40, 30, .1);
  transform: translateY(-3px);
}
.gc-product-thumb {
  position: relative;
  background-color: #f6f7f6;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gc-product-thumb img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}
.gc-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gc-green);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 3px;
}
.gc-wish-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gc-muted);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.gc-wish-btn:hover { color: var(--gc-orange); }
.gc-product-body {
  padding: .9rem 1rem 1.1rem;
}
.gc-product-name {
  font-size: .92rem;
  font-weight: 600;
  color: var(--gc-ink);
  display: block;
  margin-bottom: .3rem;
}
.gc-product-price .old {
  color: #a7aeac;
  text-decoration: line-through;
  font-size: .82rem;
  margin-right: .35rem;
}
.gc-product-price .new {
  color: var(--gc-ink);
  font-weight: 700;
}
.gc-rating {
  color: var(--gc-star);
  font-size: .75rem;
  margin-top: .3rem;
}
.gc-rating .count {
  color: var(--gc-muted);
  margin-left: .25rem;
}
.gc-add-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gc-green);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
.gc-product-thumb:hover .gc-add-btn {
  opacity: 1;
  transform: translateY(0);
}
.gc-add-btn:hover { background: var(--gc-orange); }

/* Promo banners ---------------------------------------------------------------- */
.gc-promo-banner {
  border-radius: var(--gc-radius);
  overflow: hidden;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.gc-promo-banner .gc-promo-text {
  padding: 1.75rem 2rem;
  position: relative;
  z-index: 2;
}
.gc-promo-banner .gc-promo-text h5 {
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: .35rem;
}
.gc-promo-banner .gc-promo-text p {
  font-size: .85rem;
  margin-bottom: 0;
  max-width: 220px;
}
.gc-promo-a { background-color: #f4dfe0; color: #2b2b2b; }
.gc-promo-b { background-color: #f1a72d; }

/* Article cards ------------------------------------------------------------------ */
.gc-article-card {
  border: 1px solid #eee;
  border-radius: var(--gc-radius);
  overflow: hidden;
  height: 100%;
}
.gc-article-card img {
  height: 160px;
  width: 100%;
  object-fit: cover;
}
.gc-article-meta {
  font-size: .75rem;
  color: var(--gc-muted);
  display: flex;
  gap: 1rem;
  margin-bottom: .5rem;
}
.gc-article-title {
  font-size: .92rem;
  font-weight: 600;
  color: var(--gc-ink);
  margin-bottom: 0;
}

/* Newsletter CTA ------------------------------------------------------------------ */
.gc-newsletter {
  background-color: var(--gc-cream);
  border-radius: var(--gc-radius);
  overflow: hidden;
}
.gc-newsletter img {
  max-height: 260px;
  object-fit: contain;
}
.gc-newsletter h3 {
  font-weight: 700;
  font-size: 1.7rem;
}
.gc-newsletter-form .form-control {
  border-radius: var(--gc-radius) 0 0 var(--gc-radius);
  border: 1px solid #ddd;
}
.gc-newsletter-form .btn {
  border-radius: 0 var(--gc-radius) var(--gc-radius) 0;
}

/* Tag pills ------------------------------------------------------------------------ */
.gc-tag {
  display: inline-block;
  background: var(--gc-cream);
  color: var(--gc-ink);
  font-size: .8rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  margin: 0 .4rem .5rem 0;
  border: 1px solid #e7e9e8;
}
.gc-tag:hover {
  background: var(--gc-green);
  color: #fff;
  border-color: var(--gc-green);
}

/* Footer -------------------------------------------------------------------------- */
.gc-footer {
  background-color: var(--gc-cream);
  padding-top: 3rem;
}
.gc-footer h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: .95rem;
}
.gc-footer ul { list-style: none; padding: 0; margin: 0; }
.gc-footer ul li { margin-bottom: .55rem; }
.gc-footer ul li a {
  color: var(--gc-muted);
  font-size: .9rem;
}
.gc-footer ul li a:hover { color: var(--gc-green); }
.gc-social {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e2e5e3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gc-ink);
  margin-right: .5rem;
}
.gc-social:hover { background: var(--gc-green); color: #fff; border-color: var(--gc-green); }
.gc-footer-bottom {
  border-top: 1px solid #e2e5e3;
  margin-top: 2rem;
  padding: 1.25rem 0;
  font-size: .82rem;
  color: var(--gc-muted);
}

/* Mobile tweaks --------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .gc-hero-caption { padding: 1.75rem; }
  .gc-hero-caption h2 { font-size: 2rem; }
  .gc-hero .carousel-item { min-height: 320px; }
}
