/* NAV */
nav#page-nav { margin-bottom: 1.5rem; }
.navbar { min-height: 5rem; }
.navbar-item, .navbar-burger { height: 5rem; }
.navbar-item svg { max-height: 4rem; }
.navbar-dropdown {
  padding-top: .25rem;
  padding-bottom: .25rem;
}
.navbar-dropdown .navbar-item {
  height: auto;
  min-height: auto;
  padding: .36rem .7rem;
  line-height: 1.1;
  font-size: .92rem;
}
.navbar-dropdown .navbar-divider {
  margin: .1rem 0;
}

.navbar .nav-search-input {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: inherit;
}
@media (prefers-color-scheme: light) {
  .navbar .nav-search-input {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
  }
}
.navbar .field.has-addons .nav-search-input { border-right: none; }
.navbar .field.has-addons .button { border-left: none; }

/* Contrast fixes for light controls on the dark Chamber theme */
.button.is-light,
a.button.is-light,
button.button.is-light {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #111827 !important;
  font-weight: 700;
}
.button.is-light:hover,
a.button.is-light:hover,
button.button.is-light:hover {
  background-color: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #020617 !important;
}
.button.is-light:focus-visible,
a.button.is-light:focus-visible,
button.button.is-light:focus-visible {
  outline: 3px solid rgba(20, 184, 166, .45);
  outline-offset: 2px;
}
.button.is-light[disabled],
.button.is-light[aria-disabled="true"],
button.button.is-light:disabled {
  background-color: #e5e7eb !important;
  border-color: #cbd5e1 !important;
  color: #374151 !important;
  opacity: 1;
}
.tag.is-light,
a.tag.is-light,
span.tag.is-light {
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1;
  color: #0f172a !important;
  font-weight: 700;
}
a.tag.is-light:hover {
  background-color: #dbeafe !important;
  border-color: #93c5fd;
  color: #0f172a !important;
}

/* Home featured vendor banner */
.featured-vendor-hero {
  position: relative;
  overflow: hidden;
  background-color: #10231f !important;
  background-image:
    linear-gradient(90deg, rgba(5, 12, 18, .84), rgba(5, 12, 18, .52) 48%, rgba(5, 12, 18, .2)),
    var(--featured-vendor-bg) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
.featured-vendor-hero .hero-body {
  align-items: flex-end;
  display: flex;
  min-height: clamp(280px, 34vw, 420px);
}
.featured-vendor-hero .container {
  max-width: 1120px;
}
.featured-vendor-hero .title,
.featured-vendor-hero .subtitle {
  color: #fff;
  max-width: 42rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}
.featured-vendor-hero .button {
  background-color: #f8fafc;
  border-color: rgba(255, 255, 255, .76);
  color: #0f172a;
  font-weight: 800;
}
@media (max-width: 768px) {
  .featured-vendor-hero {
    background-position: center center !important;
  }
  .featured-vendor-hero .hero-body {
    min-height: 300px;
  }
}

/* PRODUCT CARDS */
.card {
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
}
.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Vendor branding fallbacks */
.vendor-card {
  overflow: hidden;
  height: 100%;
}
.vendor-card-brand {
  min-height: 110px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 214, 102, .34), transparent 34%),
    linear-gradient(135deg, #173f35, #2f6f57 48%, #c47d2c);
  color: #fff;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: .08em;
}
.vendor-card-brand img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: center center;
}
.vendor-card-brand-fallback::before {
  content: "Local";
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  opacity: .82;
}
.vendor-hero {
  background-color: #111827;
  height: clamp(220px, 32vw, 340px);
  margin-bottom: 1rem;
  min-height: 220px;
  overflow: hidden;
  padding: 0;
}
.vendor-hero img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}
.vendor-hero-fallback {
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.22), transparent 32%),
    radial-gradient(circle at 78% 26%, rgba(255, 214, 102, .2), transparent 28%),
    linear-gradient(135deg, #173f35, #28644e 52%, #c47d2c);
}
.vendor-hero-fallback .heading,
.vendor-hero-fallback .title {
  color: #fff;
}
.vendor-hero-fallback .title {
  font-size: clamp(3rem, 12vw, 7rem);
  letter-spacing: .08em;
  margin-bottom: 0;
}

/* Utility */
.is-flex-grow-1 { flex-grow: 1; }

/* Cart control */
.cartctl { display: inline-flex; }
.cartctl .field { margin-bottom: 0; }

/* Make stepper input & buttons same height */
.cartctl .button,
.cartctl .input {
  height: 2.75em; /* choose 2.5em if you want Bulma default */
}
.cartctl .input {
  padding-top: 0;
  padding-bottom: 0;
  line-height: calc(2.75em - 2px);
}

/* Product card CTA: keep BOTH buttons and stepper aligned */
.product-card-cta .button,
.product-card-cta .input {
  height: 2.75em;
}

.product-card-cta .button {
  line-height: calc(2.75em - 2px);
}

.product-card-cta .input {
  padding-top: 0;
  padding-bottom: 0;
  line-height: calc(2.75em - 2px);
}

.navbar .cart-badge{
  position:absolute;
  top:.75rem;
  right:.5rem;
  min-width:1.5rem;
  height:1.5rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 .4rem;
}
.navbar .icon.is-large svg { width: 32px; height: 32px; }


/* Skeleton base */
.skeleton-block, .skeleton-line, .skeleton-button {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.skeleton-line { height: 12px; margin-bottom: 10px; }
.skeleton-button { height: 36px; border-radius: 10px; margin-top: 14px; }
.skeleton-block { width: 100%; height: 100%; }

/* Shimmer */
.skeleton-block::after, .skeleton-line::after, .skeleton-button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: skeleton-shimmer 1.1s infinite;
}
@keyframes skeleton-shimmer { 100% { transform: translateX(100%); } }

/* Light-mode tweak */
@media (prefers-color-scheme: light) {
  .skeleton-block, .skeleton-line, .skeleton-button { background: rgba(0, 0, 0, 0.06); }
  .skeleton-block::after, .skeleton-line::after, .skeleton-button::after {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
  }
}
