/* styles.css (Bootstrap-friendly brand layer) */

:root {
  /* Brand palette pulled from your logo / flyer vibe */
  --cc-cream: #f6f3e7;
  --cc-cream-2: #fbf8ef;
  --cc-green: #1e5b38;
  --cc-green-2: #2f7a4d;
  --cc-ink: #183024;
  --cc-muted: #5b6a60;
  --cc-border: rgba(30, 91, 56, 0.18);
  --cc-shadow: 0 14px 30px rgba(24, 48, 36, 0.1);
  --cc-radius: 18px;
}

/* Base */
.cc-body {
  background:
    radial-gradient(
      1200px 800px at 20% 0%,
      rgba(47, 122, 77, 0.11),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at 90% 10%,
      rgba(30, 91, 56, 0.08),
      transparent 55%
    ),
    var(--cc-cream);
  color: var(--cc-ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  min-height: 100vh;
}

.cc-body2 {
  background:
    radial-gradient(
      1200px 800px at 20% 0%,
      rgba(47, 122, 77, 0.11),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at 90% 10%,
      rgba(30, 91, 56, 0.08),
      transparent 55%
    ),
    var(--cc-cream);
  color: var(--cc-ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  min-height: 100vh;
}

body main {
  background:
    radial-gradient(
      1200px 800px at 20% 0%,
      rgba(47, 122, 77, 0.11),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at 90% 10%,
      rgba(30, 91, 56, 0.08),
      transparent 55%
    ),
    var(--cc-cream);
  color: var(--cc-ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
}

/* Tiny top strip */
.cc-top-strip {
  background: linear-gradient(90deg, var(--cc-green), var(--cc-green-2));
  color: #fff;
}
.cc-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 650;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-size: 12px;
}
.cc-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-link:hover {
  opacity: 0.9;
}

.cc-muted {
  color: rgba(255, 255, 255, 0.82);
}
body .cc-muted {
  color: var(--cc-muted);
}

/* Navbar */
.cc-navbar {
  background: var(--cc-green-2);
  border-bottom: 1px solid var(--cc-border);
  backdrop-filter: blur(10px);
}
.navbar-brand span {
  color: var(--cc-cream-2);
}
.cc-navbar .nav-link {
  color: var(--cc-cream-2);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
}
.cc-navbar .nav-link:hover {
  background: var(--cc-green);
}
.cc-navbar .nav-link.active {
  background: var(--cc-green);
  font-weight: 700;
  color: var(--cc-cream-2);
}
.cc-navbar .navbar-toggler {
  border-color: rgba(30, 91, 56, 0.25);
}
.cc-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(30, 91, 56, 0.15);
}

/* Brand mark */
.cc-mark {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.35),
      transparent 55%
    ),
    linear-gradient(135deg, var(--cc-cream-2), var(--cc-green));
  box-shadow: 0 10px 22px rgba(30, 91, 56, 0.18);
}

/* Cards */
.cc-card {
  background: rgba(251, 248, 239);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  padding: 18px;
  max-height: fit-content;
}

.cc-card-ns {
  background: rgba(251, 248, 239);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 18px;
  position: relative;
  left: 30%;
  max-width: fit-content;
  min-width: 40%;
}

.cc-card-ns-log {
  background: rgba(251, 248, 239);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 18px;
  position:relative;
  text-align: center;
  max-width: 50%;
  min-width: 40%;
}

.cc-card-ns-farm-reg {
  background: rgba(251, 248, 239);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 18px;
  left: 30%;
  position:relative;
  text-align: center;
  max-width: 50%;
  min-width: 40%;
}

.remember-check {
  text-align: start;
  position: relative;
  display: block;
}

.cc-hr {
  border: none;
  height: 1px;
  background: rgba(30, 91, 56, 0.14);
  margin: 14px 0;
}

/* Type */
.cc-h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
  font-weight: 850;
}
.cc-h2 {
  font-size: 22px;
  font-weight: 800;
}
.cc-sub {
  color: var(--cc-muted);
  font-size: 16px;
}
.cc-label {
  color: var(--cc-muted);
  font-weight: 650;
}

/* Inputs */
.cc-input {
  border-radius: 14px !important;
  border-color: rgba(30, 91, 56, 0.22) !important;
  background: rgba(255, 255, 255, 0.7) !important;
}
.cc-input:focus {
  border-color: rgba(30, 91, 56, 0.45) !important;
  box-shadow: 0 0 0 0.2rem rgba(30, 91, 56, 0.13) !important;
}

/* Buttons */
.cc-btn {
  border-radius: 14px;
  border: 1px solid rgba(30, 91, 56, 0.3);
  background: linear-gradient(135deg, var(--cc-green), var(--cc-green-2));
  color: #fff;
  font-weight: 750;
}
.cc-btn:hover {
  opacity: 0.95;
  color: #fff;
}

.cc-btn-outline {
  border-radius: 14px;
  border: 1px solid rgba(30, 91, 56, 0.35);
  background: rgba(255, 255, 255, 0.65);
  color: var(--cc-ink);
  font-weight: 750;
}
.cc-btn-outline:hover {
  background: rgba(30, 91, 56, 0.08);
}

/* Badges */
.cc-badge {
  border: 1px solid rgba(30, 91, 56, 0.18) !important;
  color: var(--cc-ink) !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

/* Mini pick list */
.cc-mini {
  border-radius: 16px;
  border: 1px solid rgba(30, 91, 56, 0.14);
  background: rgba(255, 255, 255, 0.62);
  padding: 12px;
}
.cc-mini-title {
  font-weight: 800;
}

/* Product grid */
.cc-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cc-product-card {
  border-radius: 18px;
  border: 1px solid rgba(30, 91, 56, 0.16);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 20px rgba(24, 48, 36, 0.06);
  overflow: hidden;
  height: 100%;
  cursor: default;
}

.cc-product-meta {
  color: var(--cc-muted);
  font-size: 13px;
}
.cc-price {
  font-weight: 900;
  color: var(--cc-ink);
}

/* Footer */
.cc-footer {
  border-top: 1px solid var(--cc-border);
  background: rgba(251, 248, 239, 0.75);
}
.cc-logo-thumb {
  width: 60px;
  height: 70px;
}

/* Improve Bootstrap “card” spacing inside our card shell */
#products .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.cc-select {
  border-radius: 12px;
  border: 2px solid var(--cc-primary);
  padding: 10px 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: none;
}

.cc-select:focus {
  border-color: var(--cc-accent);
  box-shadow: 0 0 0 3px rgba(0, 150, 80, 0.2);
}

.cc-select-wrapper label {
  color: var(--cc-dark);
}

.cc-select option {
  padding: 10px;
  font-weight: 500;
}
.cc-select optgroup {
  font-weight: 700;
}

.favorite-farm-btn {
  position: relative;

  background: transparent;
  border: none;

  font-size: 1.4rem;
  color: #000; /* black outline */

  cursor: pointer;
  padding: 0;
  z-index: 999;
  transition:
    transform 0.15s ease,
    color 0.15s ease;
}

.favorite-farm-btn:hover {
  transform: scale(1.15);
}

/* Filled state */
.favorite-farm-btn.active i {
  color: #f5b301; /* gold */
}

.favorite-farm-btn-2 {
  position: relative;
  right: 45px;

  background: transparent;
  border: none;

  font-size: 1.4rem;
  color: #000; /* black outline */

  cursor: pointer;
  padding: 0;

  transition:
    transform 0.15s ease,
    color 0.15s ease;
}

.favorite-farm-btn-2:hover {
  transform: scale(1.15);
}

/* Filled state */
.favorite-farm-btn-2.active i {
  color: #f5b301; /* gold */
}

/* Product image support (photo_url) */
.cc-product-img {
  position: relative;
  background:
    radial-gradient(
      600px 250px at 20% 10%,
      rgba(47, 122, 77, 0.18),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(30, 91, 56, 0.09), rgba(47, 122, 77, 0.06)),
    var(--cc-cream-2);
  z-index: 0;
  padding: 0;
  margin: 0;
  max-width: 100%;
  overflow: clip;
  max-height: 250px;
}

.cc-product-photo {
  width: 100%;
  height: 250px;
  display: flex;
  object-fit: cover;
  cursor: pointer;
  overflow: clip;
  z-index: 0;
}

.cc-product-initial {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.cc-product-img--fallback {
  height: 250px;
  width: 100%;
  background:
    radial-gradient(
      600px 250px at 20% 10%,
      rgba(47, 122, 77, 0.18),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(30, 91, 56, 0.09), rgba(47, 122, 77, 0.06)),
    var(--cc-cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 
  ==========================
  Favorite Farms Scroll Area
  ========================== 
*/

#favoriteFarmsHost {
  max-height: 260px; /* Adjust as desired */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px; /* Prevent content from hiding under scrollbar */
}

/* Optional: nicer scrollbar (Chrome/Edge) */
#favoriteFarmsHost::-webkit-scrollbar {
  width: 6px;
}

#favoriteFarmsHost::-webkit-scrollbar-track {
  background: transparent;
}

#favoriteFarmsHost::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

/* Firefox Case Handler*/
#favoriteFarmsHost {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

#FavoriteCard {
  max-height: 260px; /* Adjust as desired */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px; /* Prevent content from hiding under scrollbar */
}

/* Optional: nicer scrollbar (Chrome/Edge) */
#FavoriteCard::-webkit-scrollbar {
  width: 6px;
}

#FavoriteCard::-webkit-scrollbar-track {
  background: transparent;
}

#FavoriteCard::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

/* Firefox Case Handler*/
#FavoriteCard {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.null-btn {
  position: relative;
  background-color: transparent;
  border-color: transparent;
  cursor: default;
  padding: 0;
  margin: 0;
  z-index: 999;
}
.top-btn {
  z-index: 999;
}

.cc-scroll-card {
  max-height: 225px; /* Adjust as desired */
  overflow-y: auto;
  overflow-x: hidden;
}

.cc-scroll-card-lg {
  max-height: 500px; /* Adjust as desired */
  overflow-y: auto;
  overflow-x: hidden;
}

/* Optional: nicer scrollbar (Chrome/Edge) */
.cc-scroll-card::-webkit-scrollbar {
  width: 6px;
}

.cc-scroll-card::-webkit-scrollbar-track {
  background: transparent;
}

.cc-scroll-card::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

/* Firefox Case Handler*/
.cc-scroll-card {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.cc-order-details-card {
  height: fit-content;
}

/* -------------------------------------------------------------------------- */
/* Layout helpers (no inline styles)                                           */
/* -------------------------------------------------------------------------- */

.cc-maxw-460 {
  max-width: 460px;
}

.cover {
  z-index: 50;
  position: relative;
}

.open-image {
  max-height: fit-content;
  z-index: 0;
  padding: 0;
  margin: 0;
  transition: transform 0.25s ease;
}

.open-image:hover {
  transform: scale(1.03);
  z-index: 0;
  max-height: fit-content;
  z-index: 0;
  padding: 0;
  margin: 0;
}

.cc-maxw-520 {
  max-width: 520px;
}

.cc-maxw-720 {
  max-width: 720px;
}

.cc-maxw-900 {
  max-width: 900px;
}

/* Table column sizing helpers */
.cc-col-qty {
  width: 160px;
}

/* Farmer portal inventory search input */
.cc-inv-search {
  max-width: 240px;
}

/* Ensure <pre> blocks in dynamic error UI wrap nicely (no inline styles) */
.cc-prewrap {
  white-space: pre-wrap;
}

.cc-maxw-720 {
  max-width: 720px;
}

.cc-maxw-520 {
  max-width: 520px;
}

/* -------------------------------------------------------------------------- */
/* Account page — provider info                                                */
/* -------------------------------------------------------------------------- */

.cc-provider-meta {
  font-size: medium;
}

/* -------------------------------------------------------------------------- */
/* Store product modal image (no inline styles)                                */
/* -------------------------------------------------------------------------- */

.cc-product-modal-grid {
  align-items: stretch;
}

/* Make left and right cards feel consistent */
.cc-product-modal-left,
.cc-product-modal-right {
  height: 100%;
}

/* Keep the image area visually balanced */
.cc-product-modal-left {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.65);
}

/* Price/Desc row spacing */
.cc-product-modal-pdrow #productModalPrice {
  font-weight: 900;
  color: var(--cc-ink);
}

/* CTA alignment: unify heights */
.cc-product-modal-cta input.form-control {
  border-radius: 14px;
  border-color: rgba(30, 91, 56, 0.22);
  background: rgba(255, 255, 255, 0.7);
  min-height: 44px;
}

.cc-product-modal-cta #productModalAddBtn {
  min-height: 44px;
}

/* Category + Stock below the CTA */
.cc-product-modal-badges {
  padding-top: 10px;
  border-top: 1px solid rgba(30, 91, 56, 0.12);
}

/* Make the provider row breathe a bit on narrow widths */
.cc-product-modal-provider {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.cc-product-modal-img {
  max-height: 520px;
  object-fit: contain;
}

.cc-product-modal-fallback {
  height: 320px;
}

/* Store filters dropdown sizing */
.cc-filter-dropdown {
  min-width: 320px;
  max-width: 92vw;
}

.cc-filter-badge {
  background-color: #1e5b38;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cc-filter-badge:hover {
  transform: translateY(-1px);
  opacity: 0.85;
}
/* -------------------------------------------------------------------------- */
/* Guest cart (rendered by cart.js)                                            */
/* -------------------------------------------------------------------------- */

.cc-guest-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.cc-guest-thumb-fallback {
  width: 56px;
  height: 56px;
}

.cc-guest-qty-input {
  width: 70px;
}

.cc-guest-line-total {
  width: 110px;
}

/* ==========================================================================
   Delivery Radius Page
   ========================================================================== */

.cc-delivery-map {
  width: 100%;
  min-height: 620px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--cc-border);
  box-shadow: var(--cc-shadow);
  background: rgba(255, 255, 255, 0.65);
}

.cc-map-popup {
  min-width: 180px;
  color: var(--cc-ink);
}

.cc-map-pin-wrap,
.cc-customer-pin-wrap {
  background: transparent !important;
  border: none !important;
}

.cc-map-pin {
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(30, 91, 56, 0.28);
  box-shadow: 0 8px 20px rgba(24, 48, 36, 0.2);
  background: #fff;
}

.cc-map-pin img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 999px;
}

.cc-map-pin--hq .cc-map-pin {
  border-color: rgba(47, 122, 77, 0.7);
}

.cc-map-pin--farm .cc-map-pin {
  border-color: rgba(30, 91, 56, 0.35);
}

.cc-customer-pin {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e58c2a, #f0ae4c);
  color: #fff;
  box-shadow: 0 8px 18px rgba(24, 48, 36, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.95);
  font-size: 18px;
}

/*Farmer page*/
.cc-farm-logo-upload {
  width: 96px;
  height: 96px;
  border: 2px dashed var(--cc-primary);
  border-radius: 18px;
  background: var(--cc-cream-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  flex-shrink: 0;
}

.cc-farm-logo-upload:hover {
  transform: translateY(-1px);
  border-color: var(--cc-accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.cc-farm-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-farm-logo-placeholder {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cc-primary);
  padding: 8px;
}

/* -------------------------------------------------------------------------- */
/* Farm logo UI                                                                */
/* -------------------------------------------------------------------------- */

.cc-farm-logo-thumb,
.cc-product-modal-farm-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(30, 91, 56, 0.16);
  background: #fff;
  box-shadow: 0 6px 14px rgba(24, 48, 36, 0.08);
  flex-shrink: 0;
}

.cc-farm-logo-fallback,
.cc-product-modal-farm-logo-fallback {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      600px 250px at 20% 10%,
      rgba(47, 122, 77, 0.18),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(30, 91, 56, 0.09), rgba(47, 122, 77, 0.06)),
    var(--cc-cream-2);
  border: 1px solid rgba(30, 91, 56, 0.16);
  color: var(--cc-green);
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(24, 48, 36, 0.08);
  flex-shrink: 0;
}

.cc-favorite-farm-card,
.cc-account-favorite-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cc-favorite-farm-card__main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 56px;
}

.cc-favorite-farm-card__media,
.cc-account-favorite-card__media {
  flex-shrink: 0;
}

.cc-favorite-farm-card__content,
.cc-account-favorite-card__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc-favorite-farm-card__star {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.cc-favorite-farm-card {
  position: relative;
}

.cc-product-modal-farm-head {
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(30, 91, 56, 0.12);
}

.cc-product-modal-farm-logo-wrap {
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* Provider ownership card                                                     */
/* -------------------------------------------------------------------------- */

.cc-provider-farm-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 6px 2px;
}

.cc-provider-farm-card__media {
  flex-shrink: 0;
}

.cc-provider-farm-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.cc-provider-farm-card__content {
  min-width: 0;
  flex: 1 1 auto;
}

.cc-provider-farm-card__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cc-muted);
  margin-bottom: 4px;
}

.cc-provider-farm-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cc-ink);
  line-height: 1.2;
}
