:root {
  --cc-joy-gold: #e4bd63;
  --cc-joy-leaf: #2f8a4b;
  --cc-joy-cream: #fffaf0;
  --cc-joy-ink: #153f27;
}

.cc-floating-checkout {
  position: fixed;
  z-index: 92;
  right: 22px;
  bottom: 22px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .72rem .85rem .72rem 1rem;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 999px;
  background: #174c2b;
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(14,50,27,.28);
  font: 900 .96rem/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-decoration: none !important;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.cc-floating-checkout.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cc-floating-checkout:hover,
.cc-floating-checkout:focus-visible { background: #0e3d21; transform: translateY(-2px); box-shadow: 0 17px 38px rgba(14,50,27,.34); }
.cc-floating-checkout:focus-visible { outline: 3px solid var(--cc-joy-gold); outline-offset: 3px; }
.cc-floating-checkout-count { min-width: 30px; height: 30px; display:inline-flex; align-items:center; justify-content:center; padding:0 .42rem; border-radius:999px; background:#fff; color:#174c2b; font-size:.82rem; }

.cc-reading-progress {
  position: fixed;
  z-index: 20010;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}
.cc-reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg,#2f8a4b 0%,#e4bd63 58%,#fff1ad 100%);
}

body.carolina-page.cc-experience-ready main > .hero,
body.carolina-page.cc-experience-ready main > .page-banner,
body.carolina-page.cc-experience-ready main > section:first-of-type {
  animation: cc-gentle-arrival .48s cubic-bezier(.22,.72,.2,1) both;
}
body.carolina-page.cc-experience-ready main > section:first-of-type { animation-delay: .07s; }

body.carolina-page :is(.button,button:not(.newsletter-close):not(.coupon-success-close),[role="button"]) {
  transform-origin: center;
  transition: transform .16s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
body.carolina-page :is(.button,button:not(.newsletter-close):not(.coupon-success-close),[role="button"]):active {
  transform: translateY(1px) scale(.985);
}
body.carolina-page :is(.card,.menu-strain-card,.home-value-point,.terpene-deep-card) {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (hover:hover) {
  body.carolina-page :is(.card,.menu-strain-card,.home-value-point,.terpene-deep-card):hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(20,64,37,.12);
    border-color: rgba(47,138,75,.28);
  }
}

.cc-feedback-success {
  animation: cc-success-halo .68s cubic-bezier(.2,.8,.2,1) both !important;
}
.cc-order-success.cc-feedback-success { border-color: rgba(47,138,75,.48) !important; }

body.carolina-page:not(.page-checkout):not(.page-cart):not(.page-account) main {
  background-image:
    radial-gradient(circle at 8% 8%,rgba(228,189,99,.075),transparent 23rem),
    radial-gradient(circle at 92% 22%,rgba(47,138,75,.055),transparent 26rem);
  background-repeat: no-repeat;
}

/* The legacy page router hides every direct section with !important. This
   explicit state restores the requested detail instead of leaving a blank
   main region after a customer chooses View details. */
body.carolina-page.product-detail-active main > #product-detail-page,
body.carolina-page.product-detail-active main > .product-detail-page:not([hidden]) {
  display: block !important;
}

body.carolina-page .meta { color: #66551e !important; }
body.carolina-page main > section h1 {
  margin: 0;
  color: var(--green-dark,#173f25);
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(2.05rem,5vw,4.15rem);
  line-height: 1.02;
  letter-spacing: -.025em;
}
body.page-entourage .entourage-title-block h1 { max-width: 18ch; }
body.carolina-page :is(input,select,textarea) { font-size: max(1rem,16px); }
body.carolina-page :is(.fine-print,.small,.account-helper-text,.shipping-help) { font-size: max(.875rem,14px); }
body.carolina-page .topbar::after { animation: none !important; transform: none !important; opacity: .35; }

@keyframes cc-gentle-arrival {
  from { opacity: .01; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cc-success-halo {
  0% { box-shadow: 0 0 0 0 rgba(47,138,75,.42); }
  42% { box-shadow: 0 0 0 9px rgba(47,138,75,.12); }
  100% { box-shadow: 0 0 0 14px rgba(47,138,75,0); }
}

@media (max-width: 760px) {
  .cc-floating-checkout {
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    min-height: 48px;
    padding: .62rem .72rem .62rem .9rem;
    box-shadow: 0 10px 28px rgba(14,50,27,.3);
  }
  body.cc-preorder-notice-visible .cc-floating-checkout {
    bottom: calc(218px + env(safe-area-inset-bottom,0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-floating-checkout,
  body.carolina-page :is(.button,button,[role="button"],.card,.menu-strain-card,.home-value-point,.terpene-deep-card) { transition: none !important; }
  body.carolina-page.cc-experience-ready main > .hero,
  body.carolina-page.cc-experience-ready main > .page-banner,
  body.carolina-page.cc-experience-ready main > section:first-of-type,
  .cc-feedback-success { animation: none !important; }
}

@media (forced-colors: active) {
  .cc-floating-checkout { border: 2px solid ButtonText; }
  .cc-reading-progress span { background: Highlight; }
}
