html {
  scrollbar-gutter: stable;
}

main {
  overflow-x: hidden;
}

main > .container,
main > .container-fluid {
  padding: 86px 15px 24px;
}

.footer {
  background-color: var(--color-surface, #fff);
  font-size: var(--font-size-base);
  height: auto;
}

.footer > .container,
.footer > .container-fluid {
  padding-right: 15px;
  padding-left: 15px;
}

.not-set {
  color: #c55;
  font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after,
a.desc:after {
  content: "";
  left: 3px;
  display: inline-block;
  width: 0;
  height: 0;
  border: solid 5px transparent;
  margin: 4px 4px 2px 4px;
  background: transparent;
}

a.asc:after {
  border-bottom: solid 7px #212529;
  border-top-width: 0;
}

a.desc:after {
  border-top: solid 7px #212529;
  border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
  white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
  min-width: 50px;
}

.hint-block {
  display: block;
  margin-top: 5px;
  color: #999;
}

.error-summary {
  color: #a94442;
  background: #fdf7f7;
  border-left: 3px solid #eed3d7;
  padding: 10px 20px;
  margin: 0 0 15px 0;
}

/* Hero section */
.hero-section {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  min-height: 70vh;
  margin-top: -70px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
}

.home-hero {
  position: relative;
  width: 100vw;
  max-width: none;
  z-index: 2;
  margin-left: calc(-50vw + 50%);
  min-height: 620px;
  margin-top: -14px;
  display: flex;
  align-items: center;
  overflow: visible;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.67),
    rgba(0, 0, 0, 0.05) 72%
  );
}

.home-hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 400px);
  align-items: center;
  gap: clamp(24px, 5vw, 90px);
  width: min(100% - 64px, 1280px);
  margin: 0 auto;
  padding: 64px 0;
}

.home-hero-intro {
  max-width: 520px;
}

.home-hero-intro h1 {
  font-size: clamp(2.5rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: var(--line-height-heading);
}

.home-hero-intro p {
  max-width: 410px;
  margin: 22px 0 0;
  font-size: var(--font-size-lead);
  line-height: var(--line-height-base);
}

.home-calendar {
  padding: 22px 20px 28px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
}

.home-calendar-header,
.home-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  text-align: center;
}

.home-calendar-header {
  grid-template-columns: 36px 1fr 36px;
  margin-bottom: 14px;
}

.home-calendar-header h2 {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: 600;
}

.home-calendar-arrow {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 2rem;
  line-height: 1;
}

.home-calendar-arrow:hover,
.home-calendar-arrow:focus-visible {
  color: var(--color-primary);
}

.home-calendar-grid {
  row-gap: 8px;
}

.home-calendar-weekday,
.home-calendar-day {
  display: grid;
  place-items: center;
  min-height: 38px;
  font-size: var(--font-size-small);
}

.home-calendar-weekday {
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.home-calendar-day.is-outside {
  color: var(--color-text-muted);
}

.home-calendar-day.is-today {
  justify-self: center;
  width: 36px;
  min-height: 36px;
  border-radius: 50%;
  color: var(--color-surface);
  background: var(--color-primary);
}

.home-calendar-day {
  position: relative;
}

.home-calendar-date {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.home-calendar-day.has-events:not(.is-today):hover .home-calendar-date,
.home-calendar-day.has-events:not(.is-today):focus-within .home-calendar-date {
  background: var(--color-green-soft);
  color: var(--color-primary-hover);
}

.home-calendar-day.has-events::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  pointer-events: none;
}

.home-calendar-day.has-events.is-today::after {
  background: var(--color-surface);
}

/* Calendar event preview */
.home-calendar-popup {
  display: none;
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 50%;
  width: min(290px, 82vw);
  max-height: 290px;
  overflow-y: auto;
  transform: translateX(-50%);
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.home-calendar-day.has-events:hover,
.home-calendar-day.has-events:focus-within,
.home-calendar-day.has-events.is-open {
  z-index: 6;
}

.home-calendar-day.has-events:hover .home-calendar-popup,
.home-calendar-day.has-events:focus-within .home-calendar-popup,
.home-calendar-day.has-events.is-open .home-calendar-popup {
  display: block;
}

.home-calendar-popup-date {
  color: var(--color-text);
}

.home-calendar-event + .home-calendar-event {
  border-top: 1px solid var(--color-border);
}

.home-calendar-event a {
  color: var(--color-text);
  text-decoration: none;
}

.home-calendar-event a:hover,
.home-calendar-event a:focus-visible {
  color: var(--color-primary);
}

.home-calendar-event-info {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.home-calendar-day:nth-child(7n + 8) .home-calendar-popup,
.home-calendar-day:nth-child(7n + 9) .home-calendar-popup {
  left: 0;
  transform: none;
}

.home-calendar-day:nth-child(7n + 6) .home-calendar-popup,
.home-calendar-day:nth-child(7n + 7) .home-calendar-popup {
  right: 0;
  left: auto;
  transform: none;
}

.home-calendar-day:nth-last-child(-n + 7) .home-calendar-popup {
  top: auto;
  bottom: 100%;
}

.home-calendar[aria-busy="true"] .home-calendar-grid {
  opacity: 0.7;
}

.home-events {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.home-categories {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 48px 0;
  position: relative;
  z-index: 1;
}

.home-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-text);
  text-align: center;
}

.home-category-image {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  background: var(--color-green-soft);
}

.home-category-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
}

.home-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

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

.home-category-name {
  z-index: 1;
  width: 100%;
  padding: 12px 8px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--color-surface);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

.home-category-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  font-size: 1.5rem;
  z-index: 1;
}

.home-category-description {
  max-width: 270px;
  margin-top: 12px;
  line-height: var(--line-height-base);
}

@media (max-width: 767.98px) {
  .home-hero {
    margin-top: -14px;
    min-height: 0;
  }

  .home-hero-overlay {
    background: rgba(0, 0, 0, 0.48);
  }

  .home-hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: min(100% - 32px, 520px);
    padding: 48px 0;
  }

  .home-hero-intro h1 {
    font-size: clamp(2rem, 7vw, 2.75rem);
  }

  .home-calendar {
    padding: 18px 12px 22px;
  }
}

/* Breadcrumbs for nested public pages */
.breadcrumb {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 1.5rem;
  font-size: var(--font-size-small);
}

.breadcrumb-item > a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb-item > a:hover,
.breadcrumb-item > a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--color-text);
}

.language-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.promo-layout .language-dropdown {
  position: absolute;
  right: 0;
  left: auto;
}

/* Shared brand, used by both layouts */
.navbar-brand:has(.promo-logo-icon) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.promo-logo-icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.promo-logo-text {
  color: var(--color-text);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1;
}

.promo-logo-tm {
  font-size: 0.62em;
  font-weight: 600;
  vertical-align: super;
  margin-left: 2px;
  line-height: 0;
}

.site-footer .promo-logo-tm {
  font-size: 0.75em;
}

.btn-primary {
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-primary-hover);
  --bs-btn-hover-border-color: var(--color-primary-hover);
  --bs-btn-active-bg: var(--color-primary-hover);
  --bs-btn-active-border-color: var(--color-primary-hover);
  --bs-btn-disabled-bg: var(--color-primary);
  --bs-btn-disabled-border-color: var(--color-primary);
  --bs-btn-disabled-color: var(--color-surface);
}

/* Reusable soft-green background for cards and sections */
.surface-soft {
  background-color: var(--color-green-soft);
}

/* Embed sizing cannot be handled with Bootstrap utilities alone */
.google-form-embed {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
}

.site-offer .text-primary {
  color: var(--color-primary) !important;
}

/* Shared header and footer */
.navbar {
  min-height: 72px;
  background-color: var(--color-surface);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.site-footer a:hover {
  color: var(--color-primary);
}

.site-footer {
  color: var(--color-text-muted);
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-privacy-link {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  text-decoration: none;
}

.footer-privacy-link:hover,
.footer-privacy-link:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 400;
  line-height: var(--line-height-base);
  white-space: nowrap;
}

.footer-heart {
  width: 12px;
  height: 12px;
  fill: #facc15;
  flex-shrink: 0;
}

.footer-babekora {
  font-size: 0.8125rem; /* 13 px — only for the Babekora signature */
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-letter-yellow {
  color: #facc15;
}

.footer-letter-dark {
  color: #212529;
}

.promo-layout {
  background: var(--color-background);
}

.promo-layout main > .container {
  max-width: var(--content-max-width);
}

/* Keep the privacy breadcrumbs and page aligned with the promo header. */
.promo-layout main > .container:has(.privacy-page) {
  max-width: 1320px;
}

.site-offer h1 {
  letter-spacing: -0.025em;
  font-size: var(--font-size-title);
  font-weight: 700;
  line-height: var(--line-height-heading);
}

.site-offer .lead {
  font-size: var(--font-size-lead);
}

.site-offer .card {
  border-color: var(--color-border);
}

/* Cookie banner is shared across both layouts */
#cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.48);
}

#cookie-notice {
  position: fixed;
  z-index: 1051;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  max-width: none;
  max-height: 85vh;
  overflow-y: auto;
}

.cookie-settings-content {
  max-height: 42vh;
  overflow-y: auto;
}

@media (max-width: 767.98px) {
  .promo-logo-icon {
    width: 34px;
    height: 34px;
  }
  .promo-logo-text {
    font-size: 1.5rem;
  }
  .footer-tagline {
    display: none;
  }
}

/* Main navigation and compact mobile header */
.main-navigation .nav-link {
  color: var(--color-text);
  border-bottom: 2px solid transparent;
  padding: 1rem 0.75rem;
}

.main-navigation .nav-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.header-icon {
  display: block;
  width: 21px;
  height: 21px;
}

.search-dropdown {
  min-width: min(340px, 90vw);
}

.site-header-actions .nav-link {
  padding: 0.4rem;
}

/* Keep header dropdowns floating on small screens */
.site-header-actions .dropdown-menu {
  position: absolute;
}

@media (min-width: 1200px) {
  #siteNavigation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 1199.98px) {
  #siteNavigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.07);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }

  #siteNavigation .main-navigation {
    padding: 0.5rem 1rem 1rem;
  }

  #siteNavigation .nav-link {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .site-header-actions {
    gap: 0 !important;
  }
  .site-header-actions .nav-link {
    padding: 0.25rem;
  }
  .navbar-toggler {
    padding: 0.25rem 0.4rem;
  }
}

/* Product pages: pagination in the E-placis palette. */
.product-pagination {
  gap: 5px;
  flex-wrap: wrap;
}
.product-pagination .page-link {
  color: var(--color-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 9px;
  min-width: 38px;
  text-align: center;
  box-shadow: none;
}
.product-pagination .page-link:hover,
.product-pagination .page-link:focus {
  color: var(--color-primary-hover);
  background: var(--color-green-soft);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(65, 136, 71, 0.12);
}
.product-pagination .active .page-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.product-pagination .disabled .page-link {
  color: var(--color-text-muted);
  background: var(--color-background);
  opacity: 0.65;
}
.product-pagination .disabled > span {
  display: block;
  padding: 0.375rem 0.75rem;
  min-width: 38px;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 9px;
  opacity: 0.55;
  cursor: default;
}

/* The existing ResultModal supports both general messages and cart confirmation. */
.result-modal {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 65px rgba(13, 35, 20, 0.2);
}
.result-modal-close {
  position: absolute;
  top: 16px;
  right: 17px;
  z-index: 2;
}
.result-modal-message {
  padding: 45px 30px 35px;
  text-align: center;
}
.result-modal-check {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: var(--color-green-soft);
  font-size: 1.45rem;
}
.result-modal-cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}
.result-modal-cart.d-none {
  display: none;
}
.result-modal-photo {
  aspect-ratio: 1;
  background: var(--color-green-soft);
  border-radius: 18px;
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--color-primary);
  font-size: 4.2rem;
}
.result-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.result-modal-photo img[hidden],
.result-modal-photo i[hidden] {
  display: none;
}
.result-modal-details {
  padding: 22px 4px 2px 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.result-modal-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: 30px;
}
.result-modal-product {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 1.05rem;
}
.result-modal-product strong {
  overflow-wrap: anywhere;
}
.result-modal-product strong:last-child {
  white-space: nowrap;
}
.result-modal-warning {
  margin: 14px 0 0;
  color: #856313;
  font-size: 0.85rem;
}
.result-modal-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.result-modal-totals > div {
  padding: 14px;
  border-radius: 12px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  display: grid;
  gap: 5px;
}
.result-modal-totals small {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}
.result-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}
.result-modal-actions .btn {
  white-space: normal;
  font-size: 0.875rem;
}
@media (max-width: 767.98px) {
  .result-modal-cart {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .result-modal-photo {
    aspect-ratio: 2.5;
    font-size: 2.7rem;
  }
  .result-modal-details {
    padding: 0;
  }
  .result-modal-product {
    margin-top: 16px;
  }
  .result-modal-actions {
    padding-top: 20px;
  }
}

@media (max-width: 399.98px) {
  .navbar-brand:has(.promo-logo-icon) {
    gap: 5px;
  }
  .navbar-brand .promo-logo-icon {
    width: 28px;
    height: 28px;
  }
  .navbar-brand .promo-logo-text {
    font-size: 1.25rem;
  }
  .site-header-actions .header-icon {
    width: 19px;
    height: 19px;
  }
}

/* Error page */
.site-error {
  min-height: calc(100dvh - 190px);
  padding: 5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-error-number {
  display: flex;
  align-items: baseline;
  gap: 0.04em;
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--color-text);
}

.site-error-zero {
  display: inline-block;
  color: var(--color-primary);
  animation: error-bounce 1.8s ease-in-out infinite;
}

.site-error h1 {
  margin-top: 1.5rem;
  font-weight: 700;
}

.site-error p {
  max-width: 30rem;
  margin: 0.75rem 0 0;
  color: var(--color-text-muted);
}

@keyframes error-bounce {
  0%,
  35%,
  100% {
    transform: translateY(0);
  }
  16% {
    transform: translateY(-24px);
  }
  25% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-error-zero {
    animation: none;
  }
}

.signup-photo {
  min-height: 560px;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08)),
    url("/img/e-placis.jpg") center / cover no-repeat;
}

/* User dropdown */
.user-menu .dropdown-menu {
  text-align: left;
  min-width: 260px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}

.user-menu .dropdown-item {
  text-align: left;
  white-space: normal;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.user-menu .dropdown-item:hover,
.user-menu .dropdown-item:focus-visible,
.user-menu .dropdown-item:active {
  background-color: var(--color-green-soft);
  color: var(--color-primary-hover);
}

.user-menu .dropdown-item .bi {
  display: inline-block;
  width: 1.35em;
  text-align: center;
}

.user-menu-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.user-menu-email {
  max-width: 220px;
}

.user-menu-name {
  font-size: 0.85rem;
  line-height: 1.1;
}

.user-menu-sub {
  font-size: 0.72rem;
  line-height: 1.1;
}

@media (max-width: 767.98px) {
  .user-menu .dropdown-menu {
    position: fixed !important;
    top: 64px !important;
    right: 12px !important;
    left: auto !important;
    width: min(300px, calc(100vw - 24px));
    min-width: 0;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    z-index: 1100;
  }
}

/* Profile avatar */
.profile-avatar {
  width: 80px;
  height: 80px;
}

.profile-avatar > span {
  color: var(--color-primary);
  font-size: 2rem;
}

.profile-view .min-w-0 {
  min-width: 0;
}

.profile-country-options {
  max-height: 220px;
}
/* Merchant listing and public profile */
.merchant-cover {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--color-green-soft);
}
.merchant-cover-empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-green-soft);
}
.merchant-cover-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.4;
}
.merchant-profile-body {
  position: relative;
  padding-top: 0;
}
.merchant-identity {
  margin-top: -42px;
  position: relative;
}
.merchant-identity-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border: 4px solid var(--color-surface);
  border-radius: 18px;
  background: var(--color-green-soft);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}
.merchant-identity-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.merchant-identity-initial {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--color-primary);
}
.merchant-identity-text {
  padding-top: 43px;
}
.merchant-description {
  white-space: normal;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.merchant-info-grid > div {
  min-width: 0;
}
.merchant-info-card {
  height: 100%;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-background);
}
.merchant-info-card ul {
  margin-bottom: 0;
}
.merchant-info-grid ul li {
  overflow-wrap: anywhere;
}
.merchant-view a:not(.btn) {
  color: var(--color-primary);
  text-underline-offset: 3px;
}
.merchant-view .list-group-item {
  background: transparent;
  gap: 12px;
  padding: 13px 0;
}
.merchant-view .list-group-item > span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
}
.merchant-product {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.merchant-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}
.merchant-product-image {
  display: grid;
  place-items: center;
  height: 150px;
  overflow: hidden;
  background: var(--color-green-soft);
  color: var(--color-primary);
  font-size: 2rem;
}
.merchant-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.merchant-product-image:hover {
  color: var(--color-primary-hover);
}
.merchant-product .card-body {
  display: flex;
  flex-direction: column;
}
.merchant-product-cart {
  margin-top: auto !important;
  padding-top: 9px;
}
.merchant-product-cart .btn {
  font-size: 0.78rem;
}

.privacy-page {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}
.privacy-page-eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.82rem;
}
.privacy-page-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: clamp(24px, 5vw, 44px);
  box-shadow: var(--shadow-card);
}
.privacy-content {
  color: var(--color-text);
  line-height: 1.7;
}
.privacy-content section + section {
  margin-top: 27px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.privacy-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.privacy-content p {
  color: var(--color-text-muted);
  margin: 0 0 12px;
}
.privacy-content p:last-child {
  margin-bottom: 0;
}
.privacy-content a {
  color: var(--color-primary);
  overflow-wrap: anywhere;
}
#cookie-privacy .cookie-privacy-text {
  max-height: 46vh;
  overflow-y: auto;
  padding: 4px 10px 12px 0;
}
#cookie-privacy .privacy-content h2 {
  font-size: 1rem;
}
#cookie-privacy .privacy-content section + section {
  margin-top: 16px;
  padding-top: 16px;
}
#cookie-privacy .privacy-content p {
  font-size: 0.9rem;
}
#cookie-privacy .cookie-privacy-actions {
  background: white;
}
.merchant-list-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.merchant-list-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08) !important;
}
.merchant-list-card-cover {
  height: 108px;
  overflow: hidden;
  background: linear-gradient(135deg, #e6f3e9, #f2f7f3);
}
.merchant-list-card-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  margin: -37px 0 0 23px;
  overflow: hidden;
  border: 4px solid white;
  border-radius: 17px;
  background: #f1f9f3;
  color: #198754;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.merchant-list-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.merchant-list {
  display: grid;
  gap: 12px;
}
.merchant-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 17px 20px;
  border: 1px solid #e7eee9;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.merchant-row:hover {
  border-color: #b7d9c3;
  box-shadow: 0 7px 22px rgba(25, 70, 43, 0.08) !important;
}
.merchant-row-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}
.merchant-row .merchant-list-card-logo {
  position: static;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  margin: 0;
  border: 1px solid #d7eadc;
  border-radius: 13px;
  box-shadow: none;
}
.merchant-row-details {
  min-width: 0;
}
.merchant-row-details h2 {
  overflow-wrap: anywhere;
}
.merchant-row-open {
  flex: 0 0 auto;
  padding: 10px;
  font-size: 1.2rem;
}
.merchant-row-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.merchant-row-category {
  padding: 4px 9px;
  border: 1px solid #d7eadc;
  border-radius: 8px;
  background: #f1f8f3;
  color: #247247;
  font-size: 0.78rem;
}
@media (max-width: 575.98px) {
  .merchant-row {
    padding: 14px;
    gap: 4px;
  }
  .merchant-row-main {
    gap: 11px;
  }
  .merchant-row .merchant-list-card-logo {
    width: 55px;
    height: 55px;
    flex-basis: 55px;
    font-size: 1.4rem;
  }
  .merchant-row-details h2 {
    font-size: 1rem;
  }
  .merchant-row-open {
    padding: 4px;
  }
}
.merchant-search {
  display: flex;
  gap: 10px;
}
.merchant-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.merchant-sidebar {
  position: sticky;
  top: 100px;
  min-width: 0;
}
.merchant-sidebar-panel {
  padding: 12px;
  border: 1px solid #e1ebe4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 49, 30, 0.05);
}
.merchant-sidebar summary {
  list-style: none;
  cursor: pointer;
}
.merchant-sidebar summary::-webkit-details-marker {
  display: none;
}
.merchant-sidebar-panel > summary {
  display: flex;
  align-items: center;
  padding: 8px 10px 12px;
  font-weight: 650;
  color: #192c20;
}
.merchant-sidebar-panel > summary > .bi-chevron-down {
  font-size: 0.75rem;
}
.merchant-sidebar-panel[open] > summary > .bi-chevron-down {
  transform: rotate(180deg);
}
.merchant-side-links {
  display: grid;
  gap: 4px;
}
.merchant-side-link,
.merchant-side-group > summary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 41px;
  padding: 9px 11px;
  border-radius: 10px;
  text-decoration: none;
  color: #284635;
  font-size: 0.92rem;
}
.merchant-side-link > .bi,
.merchant-side-root > .bi {
  flex: 0 0 20px;
  color: #198754;
  font-size: 1.12rem;
  text-align: center;
}
.merchant-side-root {
  display: inline-flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}
.merchant-side-root:hover {
  color: #126e45;
}
.merchant-side-root.is-active {
  color: #117247;
  font-weight: 650;
}
.merchant-side-link:hover,
.merchant-side-group > summary:hover {
  background: #f0f8f2;
  color: #126e45;
}
.merchant-side-link.is-active {
  background: #e8f5ec;
  color: #117247;
  font-weight: 650;
}
.merchant-side-group > summary > .bi-chevron-down {
  font-size: 0.72rem;
  color: #789484;
}
.merchant-side-group[open] > summary > .bi-chevron-down {
  transform: rotate(180deg);
}
.merchant-side-children {
  display: grid;
  gap: 2px;
  margin: 2px 0 7px 20px;
  padding-left: 10px;
  border-left: 1px solid #dcebe1;
}
.merchant-side-children .merchant-side-link {
  min-height: 35px;
  padding: 7px 10px;
  font-size: 0.86rem;
}
.merchant-results {
  min-width: 0;
}
.merchant-results .merchant-search .form-control {
  min-width: 0;
}
.merchant-results .merchant-search .btn {
  white-space: nowrap;
}
.product-search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.product-search-field .form-control {
  width: 100%;
  padding-right: 70px;
}
.product-search-clear,
.product-search-loading {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #768b7c;
}
.product-search-clear {
  right: 37px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.product-search-clear:hover {
  background: #eef6f0;
  color: #198754;
}
.product-search-loading {
  right: 12px;
  pointer-events: none;
}
.product-search-clear[hidden],
.product-search-loading[hidden] {
  display: none;
}
.product-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid #e1ebe4;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.product-row:hover {
  border-color: #b6d9c3;
  transform: translateY(-1px);
}
.product-row-image {
  display: grid;
  flex: 0 0 104px;
  place-items: center;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border: 1px solid #e0eae2;
  border-radius: 12px;
  background: #f1f8f3;
  color: #83b896;
  font-size: 1.9rem;
}
.product-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-row-info {
  flex: 1;
  min-width: 0;
}
.product-row-info h2 {
  overflow-wrap: anywhere;
}
.product-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  color: #687a70;
  font-size: 0.84rem;
}
.product-row-category {
  border-radius: 7px;
  padding: 2px 8px;
  background: #edf7ef;
  color: #247247;
}
.product-row-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.92rem;
}
.product-row-buy {
  display: flex;
  flex: 0 0 158px;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}
.product-row-price {
  color: #192c20;
  font-size: 1.15rem;
  white-space: nowrap;
}
.product-row-availability {
  font-size: 0.78rem;
}
.product-row-open {
  padding: 0 7px;
  color: #198754;
}
@media (max-width: 575.98px) {
  .product-row {
    flex-wrap: wrap;
    gap: 12px;
    padding: 13px;
  }
  .product-row-image {
    flex-basis: 76px;
    width: 76px;
    height: 76px;
  }
  .product-row-info {
    flex-basis: calc(100% - 90px);
  }
  .product-row-buy {
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid #edf2ed;
    padding-top: 10px;
  }
  .product-row-price {
    font-size: 1.05rem;
  }
}
@media (max-width: 991.98px) {
  .merchant-layout {
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 16px;
  }
}
@media (max-width: 767.98px) {
  .merchant-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .merchant-sidebar {
    position: static;
  }
  .merchant-sidebar-panel {
    padding: 8px 12px;
  }
  .merchant-sidebar-panel > summary {
    padding: 9px 10px;
  }
  .merchant-side-links {
    padding-top: 6px;
  }
}
@media (max-width: 575.98px) {
  .merchant-cover {
    height: 160px;
  }
  .merchant-identity-logo {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }
  .merchant-identity {
    margin-top: -38px;
  }
  .merchant-identity-text {
    padding-top: 0;
  }
  .merchant-view h1 {
    font-size: 1.55rem;
  }
}
/* Merchant dashboard: one connected heading + merchant identity */
.shop-banner {
  position: relative;
  overflow: visible;
  background: #fff;
  color: #18241e;
}
.shop-head {
  padding: 30px 32px 28px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(120deg, #f0f8f2, #e4f3e9);
}
.shop-label {
  color: #198754;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.shop-subtitle {
  color: #617368;
  line-height: 1.5;
}
.shop-add {
  background: #198754;
  border: 1px solid #198754;
  color: #fff;
  font-weight: 600;
}
.shop-add:hover {
  background: #157347;
  color: #fff;
  border-color: #146c43;
}
.shop-profile {
  padding: 19px 32px;
  background: #fff;
  color: #18241e;
  border-radius: 0 0 16px 16px;
}
.shop-logo {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5e9da;
  border-radius: 17px;
  background: #edf7ee;
  color: #198754;
  font-size: 1.9rem;
  font-weight: 700;
  overflow: hidden;
}
.shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shop-description {
  color: #6b796f;
  font-size: 0.9rem;
  max-width: 55ch;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.shop-banner a.btn,
.shop-banner a.btn:hover,
.shop-banner a.btn:focus {
  text-decoration: none !important;
}
.shop-stat {
  position: relative;
  border: 1px solid rgba(25, 135, 84, 0.07);
  transition: transform 0.2s ease;
}
.shop-stat:hover {
  transform: translateY(-3px);
}
.shop-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #e8f5ec;
  color: #198754;
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.shop-stat-number {
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.05em;
  margin-bottom: 7px;
  color: #18241e;
}
.shop-stat-muted {
  color: #a2aaa5;
}
.shop-list .list-group-item {
  padding: 15px 2px;
  background: transparent;
  border-color: #edf0ec;
}
.shop-list .list-group-item:hover {
  background: #f5faf6;
}
.shop-public {
  color: #157347;
  border: 1px solid #c7e4d0;
  background: #f3faf5;
  font-weight: 500;
}
.shop-public:hover {
  color: #0c6037;
  background: #e5f4e9;
  border-color: #9bd4ae;
}
.shop-product-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.shop-product-counts > div {
  padding: 12px 15px;
  border-radius: 12px;
  background: #f3f8f4;
}
.shop-product-counts strong {
  display: block;
  font-size: 1.35rem;
  color: #182c20;
}
.shop-product-counts span {
  color: #637a6d;
  font-size: 0.82rem;
}
.shop-product-item {
  min-width: 0;
}
.shop-product-image {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #edf6ef;
  color: #198754;
}
.shop-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-items {
  padding: 6px 16px;
  border: 1px solid #d8eadc;
  border-radius: 15px;
  background: #f1f8f3;
}
.shop-items .list-group-item {
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #dbe9df;
  background: transparent;
}
.shop-items .list-group-item:last-child {
  border-bottom: 0;
}
.shop-items .list-group-item:hover {
  background: #e6f3e9;
}
@media (max-width: 575.98px) {
  .merchant-search {
    gap: 6px;
  }
  .shop-product-counts > div {
    padding: 10px;
  }
}
.shop-tools {
  position: relative;
  z-index: 3;
  justify-content: flex-end;
}
.shop-menu {
  position: relative;
  min-width: 160px;
}
@media (hover: hover) and (pointer: fine) {
  .shop-menu[open]::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
  }
}
.shop-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 12px 16px;
  border: 1px solid #d7e6dc;
  border-radius: 12px;
  background: #fff;
  color: #1d3326;
  font-weight: 600;
  user-select: none;
}
.shop-menu summary::-webkit-details-marker {
  display: none;
}
.shop-menu summary:hover,
.shop-menu[open] summary {
  border-color: #7ebe96;
  background: #f2faf5;
}
.shop-menu summary .bi-chevron-down {
  color: #5b826a;
  font-size: 0.8rem;
  transition: transform 0.2s;
}
.shop-menu[open] summary .bi-chevron-down {
  transform: rotate(180deg);
}
.shop-menu summary:focus-visible,
.shop-menu-list a:focus-visible {
  outline: 3px solid #83cba1;
  outline-offset: 2px;
}
.shop-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10;
  min-width: 245px;
  padding: 7px;
  background: #fff;
  border: 1px solid #e0ebe3;
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(20, 55, 35, 0.12);
}
.shop-menu-list a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 9px;
  color: #24362a;
  font-weight: 500;
  text-decoration: none !important;
}
.shop-menu-list a:hover {
  color: #126d46;
  background: #ecf7ef;
  text-decoration: none !important;
}
.shop-menu-list a i {
  width: 20px;
  color: #198754;
  text-align: center;
}
.shop-menu-list .shop-logout,
.shop-menu-list .shop-logout i {
  color: #c64646;
}
.shop-menu-list .shop-logout:hover {
  color: #b53232;
  background: #fff1f1;
}
.shop-empty {
  background: #f5faf6;
  border: 1px dashed #cbe4d3;
}
.shop-empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 19px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #e1f2e7;
  color: #198754;
  font-size: 1.75rem;
}
@media (max-width: 767.98px) {
  .shop-head {
    padding: 24px 20px;
  }
  .shop-profile {
    padding: 18px 20px;
  }
  .shop-add {
    align-self: flex-start;
  }
  .shop-stat-icon {
    margin-bottom: 10px;
  }
  .shop-tools {
    justify-content: flex-start;
    width: 100%;
  }
  .shop-menu {
    flex: 1 1 145px;
  }
  .shop-menu-list {
    min-width: 100%;
  }
  .shop-view {
    flex: 1 1 100%;
  }
}

.merchant-wait {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.merchant-wait-head {
  padding: 38px 42px;
  background: var(--color-green-soft);
}
.merchant-wait-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 1.6rem;
}
.merchant-wait h1 {
  max-width: 760px;
  margin-inline: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}
.merchant-wait-text {
  max-width: 640px;
  margin-inline: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}
.merchant-wait-body {
  padding: 26px 42px 34px;
}
.merchant-wait-shop {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-background);
}
.merchant-wait-logo {
  display: flex;
  flex: 0 0 66px;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  background: var(--color-green-soft);
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
}
.merchant-wait-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 575.98px) {
  .merchant-wait-head {
    padding: 28px 20px;
  }
  .merchant-wait-body {
    padding: 22px 20px 28px;
  }
}

/* Product detail page */
.product-detail-media {
  display: grid;
  place-items: center;
  min-height: 460px;
  overflow: hidden;
  background: var(--color-green-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
.product-detail-main-image {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}
.product-detail-placeholder {
  display: grid;
  place-items: center;
  min-height: 460px;
  color: var(--color-primary);
  font-size: 5rem;
}
.product-detail-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.product-detail-thumbnail {
  width: 78px;
  height: 78px;
  overflow: hidden;
  padding: 5px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  cursor: pointer;
}
.product-detail-thumbnail:hover,
.product-detail-thumbnail[aria-pressed="true"] {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-green-soft);
}
.product-detail-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.product-detail-card {
  position: sticky;
  top: 100px;
  padding: clamp(20px, 3vw, 34px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.product-detail-card h1 {
  overflow-wrap: anywhere;
  line-height: 1.22;
}
.product-detail-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--color-green-soft);
  border-radius: 8px;
  color: var(--color-primary);
  font-size: 0.83rem;
  font-weight: 600;
}
.product-detail-pill:hover {
  color: var(--color-primary-hover);
}
.product-detail-price {
  color: var(--color-primary);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 700;
}
.product-detail-description {
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.product-detail-stock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 991.98px) {
  .product-detail-card {
    position: static;
  }
  .product-detail-media,
  .product-detail-placeholder {
    min-height: 320px;
  }
  .product-detail-main-image {
    max-height: 400px;
  }
}
@media (max-width: 575.98px) {
  .product-detail-media,
  .product-detail-placeholder {
    min-height: 260px;
  }
  .product-detail-thumbnail {
    width: 64px;
    height: 64px;
  }
}

/* More products from the same merchant */
.product-more {
  min-width: 0;
}
.product-more-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
}
.product-more-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
}
.product-more-controls {
  display: flex;
  gap: 8px;
}
.product-more-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
}
.product-more-arrow:hover:not(:disabled) {
  background: var(--color-green-soft);
  border-color: var(--color-primary);
}
.product-more-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}
.product-more-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(205px, 24%);
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.product-more-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  scroll-snap-align: start;
}
.product-more-image {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-green-soft);
  color: var(--color-primary);
}
.product-more-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-more-placeholder {
  font-size: 2.5rem;
}
.product-more-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}
.product-more-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.product-more-title a {
  color: var(--color-text);
  text-decoration: none;
}
.product-more-title a:hover {
  color: var(--color-primary);
}
.product-more-price {
  color: var(--color-primary);
}
@media (max-width: 991.98px) {
  .product-more-track {
    grid-auto-columns: minmax(210px, 37%);
  }
}
@media (max-width: 575.98px) {
  .product-more-track {
    grid-auto-columns: minmax(190px, 72%);
  }
}

/* Product editing uses the same surface and colors as the public pages. */
.product-edit-card {
  padding: clamp(20px, 3vw, 30px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.product-edit-card-error {
  border-color: var(--bs-danger);
}
.product-edit-card .has-error .help-block,
.product-edit-card .is-invalid + .invalid-feedback {
  color: var(--bs-danger);
}
.product-edit-card .has-error .form-select,
.product-edit-card .has-error .form-control {
  border-color: var(--bs-danger);
}

/* Category detail reuses the product list; only its introduction and links differ. */
.category-intro {
  border: 1px solid var(--color-border);
}
.category-intro-copy {
  padding: clamp(24px, 4vw, 42px);
}
.category-intro-images {
  display: flex;
  max-height: 220px;
  overflow: hidden;
}
.category-intro-images img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}
.category-intro-images.is-collage img {
  width: 25%;
  flex: 1;
}
.category-subcategory {
  padding: 10px 16px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-decoration: none;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.category-subcategory:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.category-merchant-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  text-decoration: none;
}
.category-merchant-card:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.category-merchant-logo {
  display: grid;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-green-soft);
  color: var(--color-primary);
}
.category-merchant-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-edit-card .form-control,
.product-edit-card .form-select {
  min-height: 44px;
  border-color: var(--color-border);
  border-radius: 10px;
}
.product-edit-card textarea.form-control {
  min-height: 130px;
}
.product-edit-editor-ui {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
}
.product-edit-editor-ui[hidden] {
  display: none;
}
.product-edit-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 7px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background);
}
.product-edit-card .product-edit-editor-toolbar select {
  width: auto;
  max-width: 150px;
  min-height: 34px;
  margin-right: 6px;
  border-color: var(--color-border);
  background-color: var(--color-surface);
  font-size: 0.83rem;
}
.product-edit-editor-toolbar button {
  min-width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--color-text);
}
.product-edit-editor-toolbar button:hover,
.product-edit-editor-toolbar button:focus-visible {
  background: var(--color-green-soft);
  color: var(--color-primary);
}
.product-edit-editor-content {
  min-height: 140px;
  padding: 12px 14px;
  outline: none;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.product-edit-editor-content:focus {
  box-shadow: inset 0 0 0 2px var(--color-green-soft);
}
.product-edit-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 17px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 700;
  color: var(--color-text);
}
.product-edit-heading:not(:first-child) {
  margin-top: 24px;
}
.product-edit-heading .bi {
  color: var(--color-primary);
}
.product-edit-hint {
  margin: 2px 0 15px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.product-edit-category .form-group {
  margin: 0;
}
.product-edit-native-select {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.product-edit-picker {
  position: relative;
}
.product-edit-picker-toggle {
  width: 100%;
  text-align: left;
  background-color: var(--color-surface);
}
.product-edit-picker-toggle:hover {
  border-color: var(--color-primary);
}
.product-edit-picker-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: 9px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 14px 30px #0000001a;
  overflow-y: auto;
}
.product-edit-picker-menu[hidden],
.product-edit-picker[hidden] {
  display: none;
}
.product-edit-search {
  position: relative;
  margin-bottom: 7px;
}
.product-edit-search .bi {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}
.product-edit-search input {
  padding-left: 39px;
}
.product-edit-options {
  max-height: 265px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.product-edit-option {
  display: block;
  width: 100%;
  padding: 9px 9px 9px calc(12px + var(--category-depth) * 26px);
  text-align: left;
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}
.product-edit-option:hover,
.product-edit-option:focus-visible {
  background: var(--color-green-soft);
  outline: none;
}
.product-edit-option[aria-selected="true"] {
  color: var(--color-primary);
  background: var(--color-green-soft);
  font-weight: 700;
}
.product-edit-empty {
  padding: 12px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.product-edit-select {
  cursor: pointer;
  padding-right: 43px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}
.product-edit-select:focus,
.product-edit-picker-toggle:focus,
.product-edit-search input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-green-soft);
}
.product-edit-status {
  padding: 0;
}
.product-edit-status .form-group {
  margin-bottom: 4px;
}
.product-edit-status .product-edit-hint {
  margin-bottom: 0;
}
.product-edit-upload-panel {
  margin-top: 15px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
.product-edit-upload-panel summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  list-style: none;
  color: var(--color-primary);
  font-weight: 700;
  cursor: pointer;
}
.product-edit-upload-panel summary::-webkit-details-marker {
  display: none;
}
.product-edit-upload-panel summary .bi:last-child {
  margin-left: auto;
  transition: transform 0.2s;
}
.product-edit-upload-panel[open] summary .bi:last-child {
  transform: rotate(180deg);
}
.product-edit-upload-panel form {
  padding: 3px 15px 17px;
}
.product-edit-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 12px;
  margin-bottom: 10px;
  text-align: center;
  color: var(--color-text);
  background: var(--color-green-soft);
  border: 1px dashed var(--color-primary);
  border-radius: 10px;
  cursor: pointer;
}
.product-edit-dropzone:hover,
.product-edit-dropzone.is-dragging {
  background: var(--color-surface);
  border-style: solid;
}
.product-edit-dropzone > .bi {
  font-size: 1.7rem;
  color: var(--color-primary);
}
.product-edit-dropzone small {
  color: var(--color-text-muted);
}
.product-edit-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.product-edit-preview:not(:empty) {
  margin: 12px 0;
}
.product-edit-preview > div {
  min-width: 0;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}
.product-edit-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.product-edit-preview span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-edit-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.product-edit-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  background: var(--color-green-soft);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-primary);
  font-size: 1.6rem;
}
.product-edit-image.is-main {
  border: 2px solid var(--color-primary);
}
.product-edit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-edit-delete {
  position: absolute;
  right: 6px;
  top: 6px;
}
.product-edit-delete .btn {
  background: var(--color-surface);
}
.product-edit-main {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  padding: 6px 4px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 0.68rem;
  line-height: 1.3;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.product-edit-main:not(:disabled):hover {
  background: var(--color-green-soft);
}
.product-edit-main:disabled {
  background: var(--color-primary);
  color: var(--color-surface);
  cursor: default;
}
.product-edit-main .bi {
  margin-right: 3px;
}
@media (max-width: 575.98px) {
  .product-edit-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.event-eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--color-primary, #378448);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}
.event-list {
  display: grid;
  gap: 0.85rem;
}
.event-list-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.2rem;
  border: 1px solid #e1ebe4;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.event-list-row:hover {
  border-color: #b6d9c3;
  transform: translateY(-1px);
}
.event-list-date {
  display: flex;
  flex: 0 0 78px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  border-radius: 0.85rem;
  background: #edf5ef;
  color: #287b46;
  text-transform: uppercase;
}
.event-list-date strong {
  font-size: 2rem;
  line-height: 1;
}
.event-list-date span {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.event-list-image {
  display: block;
  flex: 0 0 108px;
  height: 90px;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #edf5ef;
}
.event-list-image img,
.event-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-list-info {
  flex: 1;
  min-width: 0;
}
.event-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-bottom: 0.4rem;
}
.event-list-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.5;
  font-size: 0.9rem;
}
.event-list-action {
  flex-shrink: 0;
  white-space: nowrap;
}
.event-list-side {
  display: flex;
  flex: 0 0 160px;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}
.event-list-fee {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.35;
}
.event-list-fee small {
  color: #728075;
  font-size: 0.72rem;
}
.event-list-fee strong {
  color: #287b46;
  font-size: 1.05rem;
}
.event-hero {
  height: clamp(220px, 30vw, 350px);
  background: #edf5ef;
}
.event-participation-fee {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem;
  border: 1px solid #cce4d2;
  background: #edf6ef;
  color: #275c39;
}
.event-participation-fee strong {
  font-size: 1.8rem;
  line-height: 1.15;
}
.event-detail-pill {
  padding: 0.55rem 0.85rem;
  border: 1px solid #dfebe2;
  border-radius: 0.8rem;
  background: #f0f7f2;
  color: #2d6540;
  font-size: 0.88rem;
}
.event-description {
  line-height: 1.7;
}
.event-view a:not(.btn):not(.badge) {
  color: var(--color-primary);
}
.event-view a:not(.btn):not(.badge):hover {
  color: var(--color-primary-hover);
}
@media (max-width: 991.98px) {
  .event-list-side {
    flex-basis: 124px;
  }
}
@media (max-width: 575.98px) {
  .event-list-row {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  .event-list-date {
    flex-basis: 60px;
    min-height: 72px;
  }
  .event-list-date strong {
    font-size: 1.6rem;
  }
  .event-list-image {
    flex-basis: 80px;
    height: 72px;
  }
  .event-list-info {
    flex-basis: calc(100% - 145px);
  }
  .event-list-side {
    flex: 1 0 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .event-list-fee {
    align-items: flex-start;
  }
  .event-list-action {
    margin-left: auto;
  }
  .event-hero {
    height: 230px;
  }
}

/* Shared date and time picker */
.e-date-picker {
  position: relative;
  width: 100%;
}
.e-date-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.e-date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
  text-align: left;
}
.e-date-trigger:hover {
  border-color: var(--color-primary);
}
.e-date-trigger:focus-visible,
.e-date-popup button:focus-visible,
.e-date-popup select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.e-date-trigger .bi {
  color: var(--color-primary);
}
.e-date-placeholder,
.e-date-weekday {
  color: var(--color-text-muted);
}
.e-date-popup {
  position: absolute;
  z-index: 1060;
  top: calc(100% + 6px);
  left: 0;
  width: min(320px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}
.e-date-popup[hidden],
.e-date-popup [hidden] {
  display: none !important;
}
.e-date-heading,
.e-date-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.e-date-heading {
  margin-bottom: 10px;
}
.e-date-heading button {
  padding: 7px 10px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-primary);
}
.e-date-heading button:hover {
  background: var(--color-green-soft);
}
.e-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.e-date-weekday,
.e-date-day {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 36px;
  font-size: var(--font-size-small);
}
.e-date-weekday {
  font-size: var(--font-size-xs);
}
.e-date-day {
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-text);
}
.e-date-day:hover:not(:disabled),
.e-date-day.today:not(.selected) {
  background: var(--color-green-soft);
  color: var(--color-primary);
}
.e-date-day.selected {
  background: var(--color-primary);
  color: white;
}
.e-date-day:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.e-date-time {
  justify-content: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}
.e-date-time:only-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.e-date-time select {
  width: 75px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
}
@media (max-width: 767.98px) {
  .e-date-popup {
    max-width: calc(100vw - 28px);
  }
}

/* Event calendar */
.event-calendar-layout {
  position: relative;
}
.event-calendar-main {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}
.event-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.event-calendar-eyebrow {
  margin-bottom: 5px;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.event-calendar-month {
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  font-weight: 750;
  text-transform: capitalize;
  letter-spacing: -0.025em;
}
.event-calendar-arrow,
.event-calendar-today {
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: white;
  color: var(--color-text);
}
.event-calendar-arrow {
  display: inline-grid;
  place-items: center;
  width: 38px;
}
.event-calendar-today {
  padding: 0 13px;
  font-size: 0.85rem;
  font-weight: 600;
}
.event-calendar-arrow:hover,
.event-calendar-today:hover {
  background: var(--color-green-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.event-calendar-weekdays,
.event-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.event-calendar-weekdays {
  margin-bottom: 10px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 650;
}
.event-calendar-weekdays > div {
  padding: 8px 0;
  text-transform: capitalize;
}
.event-calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  min-height: 158px;
  padding: 13px;
  text-align: left;
  border: 1px solid #ebf0eb;
  border-radius: 13px;
  background: #fafbf9;
  color: var(--color-text);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.event-calendar-day:hover,
.event-calendar-day[aria-expanded="true"] {
  background: var(--color-green-soft);
  border-color: #a7d0b1;
}
.event-calendar-day.is-outside {
  opacity: 0.38;
}
.event-calendar-day.is-today {
  border-color: #9bcaa7;
}
.event-calendar-day-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 700;
}
.event-calendar-day.is-today .event-calendar-day-number {
  background: var(--color-primary);
  color: white;
}
.event-calendar-day-count {
  position: absolute;
  top: 13px;
  right: 12px;
  min-width: 21px;
  height: 21px;
  padding: 2px 5px;
  border-radius: 7px;
  background: #d5ebdb;
  color: #276d40;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
}
/* Compact event rows; each multi-day range stays aligned across the week. */
/* Every date shows its own events; the tooltip contains the complete list. */
.event-calendar-day-events {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-width: 0;
  margin-top: 3px;
  pointer-events: none;
}
.event-calendar-day-event {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 26px;
  padding: 5px 7px;
  overflow: hidden;
  border-radius: 6px;
  color: #236d3c;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-calendar-day-event.is-single {
  background: #eef6f0;
  border: 1px solid #dbe9de;
}
.event-calendar-day-event.is-single::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--color-primary);
}
.event-calendar-day-event.is-range {
  background: #d5ebdc;
  border: 1px solid #a6cdb0;
  border-left: 3px solid var(--color-primary);
  font-weight: 700;
}
.event-calendar-day-event.is-range.ends-here {
  border-right: 3px solid var(--color-primary);
}
.event-calendar-day-event.is-range.continues-before {
  border-left-color: transparent;
  border-radius: 0 6px 6px 0;
}
.event-calendar-day-event.is-range.continues-after {
  border-right-color: transparent;
  border-radius: 6px 0 0 6px;
}
.event-calendar-day-event.is-range.continues-before.continues-after {
  border-radius: 0;
}
.event-calendar-day-more {
  display: block;
  margin-top: 2px;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.event-calendar-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}
.event-calendar-legend span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
}
.event-calendar-popover {
  position: fixed;
  z-index: 1080;
  width: min(350px, calc(100vw - 24px));
  max-height: min(480px, calc(100dvh - 24px));
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: 0 16px 44px rgba(20, 52, 29, 0.18);
}
.event-calendar-popover[hidden],
.event-calendar-backdrop[hidden] {
  display: none;
}
.event-calendar-popover-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.event-calendar-popover-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: var(--color-green-soft);
  color: var(--color-primary);
}
.event-calendar-popover-close:hover {
  background: #d9ebde;
}
.event-calendar-agenda-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.event-calendar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fbfcfa;
  color: var(--color-text);
  text-decoration: none;
}
.event-calendar-item:hover {
  border-color: #a7d0b1;
  background: var(--color-green-soft);
  color: var(--color-text);
}
.event-calendar-item-time {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--color-green-soft);
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 700;
}
.event-calendar-item-title {
  font-size: 0.92rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.event-calendar-item-location {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.event-calendar-item-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
}
.event-calendar-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px 10px;
  text-align: center;
  color: var(--color-text-muted);
}
.event-calendar-empty i {
  font-size: 1.6rem;
  color: #92b79b;
}
.event-calendar-day:focus-visible,
.event-calendar-arrow:focus-visible,
.event-calendar-today:focus-visible,
.event-calendar-popover-close:focus-visible,
.event-calendar-item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.event-calendar-backdrop {
  display: none;
}
@media (max-width: 767.98px) {
  .event-calendar-main {
    padding: 15px;
    border-radius: 16px;
  }
  .event-calendar-toolbar {
    margin-bottom: 16px;
  }
  .event-calendar-month {
    font-size: 1.35rem;
  }
  .event-calendar-weekdays,
  .event-calendar-days {
    gap: 4px;
  }
  .event-calendar-day {
    min-height: 65px;
    padding: 5px;
    gap: 3px;
    border-radius: 9px;
  }
  .event-calendar-day-number {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }
  .event-calendar-day-count {
    top: 5px;
    right: 4px;
    min-width: 15px;
    height: 16px;
    padding: 1px 3px;
    font-size: 0.6rem;
  }
  .event-calendar-day-events {
    display: flex;
    flex-direction: row;
    gap: 3px;
    align-items: center;
    min-height: 9px;
    margin-top: 0;
  }
  .event-calendar-day-event {
    display: none;
  }
  .event-calendar-day-more {
    display: none;
  }
  .event-calendar-day:has(.event-calendar-day-count)
    .event-calendar-day-events::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
  }
  .event-calendar-today {
    padding: 0 10px;
  }
  .event-calendar-arrow {
    width: 34px;
  }
  .event-calendar-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1079;
    border: 0;
    background: rgba(15, 35, 20, 0.32);
  }
  .event-calendar-popover {
    left: 0 !important;
    right: 0;
    top: auto !important;
    bottom: 0;
    width: 100%;
    max-height: 75dvh;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-shadow: 0 -12px 38px rgba(20, 52, 29, 0.18);
  }
}

/* Cart page */
.cart-index .cart-item {
  display: grid;
  grid-template-columns: 24px 76px minmax(0, 1fr) 80px 110px 85px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--color-border);
}
.cart-index .cart-item:last-of-type {
  border-bottom: 0;
}
.cart-index .cart-item-image {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-green-soft);
  color: var(--color-primary);
  font-size: 1.75rem;
}
.cart-index .cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-index .cart-item-content {
  min-width: 0;
}
.cart-index .cart-item-description {
  overflow-wrap: anywhere;
}
.cart-index .cart-item-unit-price,
.cart-index .cart-item-price {
  font-size: 0.875rem;
  white-space: nowrap;
}
.cart-index .cart-item-quantity {
  min-width: 0;
}
.cart-index .cart-quantity {
  width: 110px;
}
.cart-index .cart-quantity .btn {
  width: 32px;
  border-color: var(--color-border);
}
.cart-index .cart-quantity .form-control {
  padding: 4px 0;
  background: white;
  border-color: var(--color-border);
}
.cart-index .cart-merchant-note {
  background: var(--color-green-soft);
  color: var(--color-primary-hover);
}
.cart-index .cart-remove {
  display: grid;
  place-items: center;
  width: 24px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bs-danger, #dc3545);
  cursor: pointer;
}
.cart-index .cart-remove:hover {
  color: #a61e2a;
}
.cart-index .cart-remove:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.cart-index .cart-remove:disabled {
  opacity: 0.5;
  cursor: wait;
}
.cart-index .cart-summary {
  position: sticky;
  top: 95px;
}
.cart-index .cart-empty-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--color-green-soft);
  color: var(--color-primary);
  font-size: 2rem;
}
@media (max-width: 1199.98px) and (min-width: 992px) {
  .cart-index .cart-item {
    grid-template-columns: 24px 65px minmax(0, 1fr) 70px 100px 75px;
    gap: 8px;
  }
  .cart-index .cart-item-image {
    width: 65px;
    height: 65px;
  }
  .cart-index .cart-quantity {
    width: 100px;
  }
  .cart-index .cart-quantity .btn {
    width: 29px;
  }
}
@media (max-width: 991.98px) {
  .cart-index .cart-summary {
    position: static;
  }
}
@media (max-width: 767.98px) {
  .cart-index .cart-item {
    grid-template-columns: 24px 72px minmax(0, 1fr);
    gap: 10px;
  }
  .cart-index .cart-item-image {
    width: 72px;
    height: 72px;
  }
  .cart-index .cart-item-unit-price {
    grid-column: 2;
  }
  .cart-index .cart-item-quantity {
    grid-column: 3;
  }
  .cart-index .cart-item-price {
    grid-column: 3;
    text-align: left !important;
  }
}

body:has(.yellow-friday) main > .container {
  max-width: 1300px;
}
.yf-header-launch-item {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}
.yf-header-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--color-primary-hover);
  color: #ffca08;
  font-size: 0.78rem;
  line-height: 1.1;
  font-weight: 800;
  box-shadow: 0 2px 7px rgba(23, 57, 41, 0.12);
}
.yf-header-launch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffca08;
  box-shadow: 0 0 0 3px rgba(255, 202, 8, 0.16);
}
.yellow-friday {
  color: var(--color-text);
  padding: 42px 0 62px;
  font-family: var(--font-family-base);
}
.yellow-friday h1,
.yellow-friday h2,
.yellow-friday h3 {
  color: var(--color-text);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 0;
}
.yf-hero {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(32px, 6vw, 94px);
  align-items: center;
  margin-bottom: 54px;
}
.yf-eyebrow,
.yf-pass-kicker,
.yf-form-kicker {
  margin: 0 0 19px;
  color: var(--color-primary);
  font-size: 0.8rem;
  letter-spacing: 0.115em;
  font-weight: 800;
}
.yf-hero h1 {
  font-size: clamp(2.65rem, 4.5vw, 4.6rem);
  max-width: 680px;
  margin-bottom: 24px;
}
.yf-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 0 25px;
}
.yf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.yellow-friday .yf-button,
.yellow-friday .yf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--color-primary-hover);
  color: #ffca08;
  font-weight: 800;
  padding: 14px 23px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  box-shadow: none;
}
.yellow-friday .yf-button:hover,
.yellow-friday .yf-submit:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-2px);
}
.yf-muted {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}
.yf-video-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.yf-video {
  position: relative;
  aspect-ratio: 9/16;
  width: min(100%, 460px);
  overflow: hidden;
  background: var(--color-primary-hover);
  border-radius: var(--radius-card);
  box-shadow: 0 15px 40px rgba(23, 57, 41, 0.2);
}
.yf-video iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  border: 0;
}
.yf-video-placeholder {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 22px;
  color: white;
  gap: 11px;
}
.yf-video-placeholder i {
  color: #ffca08;
  font-size: 3.4rem;
}
.yf-video-placeholder strong {
  font-size: 1.25rem;
}
.yf-video-placeholder span {
  color: #d4e3d8;
  font-size: 0.85rem;
}
.yf-video-caption {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
}
.yf-pass {
  background: #ffca08;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 46px);
  display: grid;
  grid-template-columns: 1fr 0.96fr;
  gap: clamp(26px, 4vw, 60px);
  align-items: center;
  margin-bottom: 62px;
}
.yf-pass-kicker {
  color: var(--color-text);
  font-size: 0.76rem;
  display: block;
  margin-bottom: 15px;
}
.yf-pass h2 {
  font-size: clamp(2rem, 3vw, 2.85rem);
  margin-bottom: 13px;
}
.yf-pass-copy > p {
  font-size: 1rem;
  margin: 0 0 21px;
  max-width: 500px;
}
.yf-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 19px;
}
.yf-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.yf-benefits li > i {
  margin-top: 3px;
  font-size: 1.15rem;
}
.yf-benefits strong,
.yf-benefits small {
  display: block;
}
.yf-benefits strong {
  font-size: 1rem;
  margin-bottom: 3px;
}
.yf-benefits small {
  font-size: 0.9rem;
  line-height: 1.5;
}
.yf-form-card {
  background: var(--color-surface);
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.yf-form-kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 0.77rem;
}
.yf-form-card h3 {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  margin-bottom: 12px;
}
.yf-form-card > .yf-muted {
  margin-bottom: 18px;
}
.yf-form {
  display: grid;
  gap: 10px;
}
.yf-form .form-label {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0;
}
.yf-form .form-control {
  min-height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
}
.yf-form .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.22rem rgba(65, 136, 71, 0.14);
}
.yf-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.yf-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.79rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 4px 0 5px;
}
.yf-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--color-primary);
}
.yf-consent a {
  color: var(--color-primary-hover);
  text-decoration: underline;
}
.yellow-friday .yf-submit {
  width: 100%;
}
.yf-form-footnote {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 13px 0 0;
}
.yf-form-footnote i {
  color: var(--color-primary);
}
.yf-how {
  margin-bottom: 26px;
}
.yf-section-heading .yf-eyebrow {
  margin-bottom: 7px;
}
.yf-how h2 {
  font-size: clamp(1.95rem, 3vw, 2.7rem);
  margin-bottom: 25px;
}
.yf-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.yf-step {
  position: relative;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}
.yf-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -19px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-green-soft);
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.yf-step-number {
  position: absolute;
  top: 27px;
  right: 25px;
  padding: 5px 11px;
  border-radius: 50px;
  background: #ffeb9c;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 800;
}
.yf-step > i {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--color-green-soft);
  color: var(--color-primary);
  font-size: 1.9rem;
}
.yf-step h3 {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
}
.yf-step p {
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
  color: var(--color-text-muted);
}
.yf-faq {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 28px 18px;
  background: #fff4d3;
  border-radius: var(--radius-card);
}
.yf-faq > div {
  min-width: 0;
  padding: 0 18px;
}
.yf-faq > div + div {
  border-left: 1px solid #f3dda0;
}
.yf-faq h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.yf-faq h3 i {
  color: #c48c00;
  font-size: 1.3rem;
}
.yf-faq p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 1199.98px) {
  .yf-header-launch-item {
    margin-right: 0;
  }
}
@media (max-width: 991.98px) {
  .yf-hero {
    gap: 30px;
  }
  .yf-pass {
    gap: 25px;
  }
}
@media (max-width: 767.98px) {
  .yellow-friday {
    padding: 28px 0 45px;
  }
  .yf-hero,
  .yf-pass {
    grid-template-columns: 1fr;
  }
  .yf-hero {
    gap: 30px;
    margin-bottom: 42px;
  }
  .yf-video {
    width: min(100%, 340px);
  }
  .yf-pass {
    margin-bottom: 45px;
  }
  .yf-steps,
  .yf-faq {
    grid-template-columns: 1fr;
  }
  .yf-steps {
    gap: 20px;
  }
  .yf-step:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: 50%;
    bottom: -19px;
    transform: translateX(50%);
  }
  .yf-faq {
    padding: 22px;
  }
  .yf-faq > div {
    padding: 0;
  }
  .yf-faq > div + div {
    margin-top: 18px;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid #f3dda0;
  }
  .yf-header-launch {
    font-size: 0.68rem;
    padding: 7px 10px;
  }
  .yf-header-launch-dot {
    display: none;
  }
}
@media (max-width: 390px) {
  .yf-header-launch {
    font-size: 0.61rem;
    padding: 7px;
  }
  .yf-hero h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 575.98px) {
  .yf-header-launch {
    font-size: 0.67rem;
    padding: 8px 9px;
  }
  .yf-header-launch-item {
    margin: 0 4px 0 0;
  }
}
.yf-survey {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin: 0 0 62px;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 100px;
}
.yf-survey-intro {
  position: sticky;
  top: 105px;
  padding: 20px 0;
}
.yf-survey-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 25px;
  border-radius: var(--radius-control);
  background: var(--color-green-soft);
  color: var(--color-primary);
  font-size: 1.5rem;
}
.yf-survey-intro .yf-eyebrow {
  margin-bottom: 12px;
}
.yf-survey-intro h2 {
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  margin-bottom: 17px;
}
.yf-survey-intro > p:not(.yf-eyebrow) {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 33ch;
}
.yf-survey-open,
.yf-survey-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}
.yf-survey-open {
  margin-top: 13px;
}
.yf-survey-link {
  margin-top: 19px;
  font-size: 0.9rem;
}
.yf-survey-open:hover,
.yf-survey-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.yf-survey-form {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-background);
}
.yf-survey-form .google-form-embed {
  display: block;
  width: 100%;
  height: 780px;
  border: 0;
}
@media (max-width: 767.98px) {
  .yf-survey {
    grid-template-columns: 1fr;
    margin-bottom: 44px;
    gap: 16px;
  }
  .yf-survey-intro {
    position: static;
    padding: 0;
  }
  .yf-survey-form .google-form-embed {
    height: 740px;
  }
}
