:root {
  --cc-bg: #f6f2ec;
  --cc-fg: #111111;
  --cc-muted: rgba(17, 17, 17, 0.6);
  --cc-border: rgba(17, 17, 17, 0.09);
  --cc-card-bg: #ffffff;
  --cc-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
  --cc-paper: #fffaf3;
  --cc-input-bg: #fbf3e8;
  --cc-primary: #072c1b;
  --cc-primary-hover: #093824;
}

.cc-storefront {
  background: var(--cc-bg);
  color: var(--cc-fg);
}

.cc-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.cc-page {
  padding: 28px 0 64px;
}

@media (min-width: 768px) {
  .cc-container {
    padding: 0 20px;
  }
}

/* Page transitions (non-SPA smooth navigation) */
.cc-js #cc-page-root {
  opacity: 1;
  transition: opacity 320ms ease;
  will-change: opacity;
  animation: ccFadeIn 420ms ease both;
}

body.cc-page-leaving #cc-page-root {
  opacity: 0;
  pointer-events: none;
  animation: none !important;
}

@keyframes ccFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-js #cc-page-root,
  body.cc-page-leaving #cc-page-root {
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
  }

  .cc-drawer-backdrop,
  .cc-drawer-sheet {
    transition: none !important;
  }
}

/* Horizontal card groups */
.cc-hscroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* Buttons */
.cc-storefront button[class*="bg-"]:not(.bg-transparent):not(.size-btn),
.cc-storefront input[type="submit"][class*="bg-"],
.cc-storefront input[type="button"][class*="bg-"],
.cc-storefront input[type="reset"][class*="bg-"],
.cc-storefront a.bg-black,
.cc-storefront a.bg-gray-900,
.cc-storefront a.bg-gray-800 {
  background-color: var(--cc-primary) !important;
  border-color: var(--cc-primary) !important;
  color: #ffffff !important;
}

.cc-storefront button[class*="bg-"]:not(.bg-transparent):not(.size-btn):hover,
.cc-storefront input[type="submit"][class*="bg-"]:hover,
.cc-storefront input[type="button"][class*="bg-"]:hover,
.cc-storefront input[type="reset"][class*="bg-"]:hover,
.cc-storefront a.bg-black:hover,
.cc-storefront a.bg-gray-900:hover,
.cc-storefront a.bg-gray-800:hover {
  background-color: var(--cc-primary-hover) !important;
  border-color: var(--cc-primary-hover) !important;
}

.cc-storefront button:disabled,
.cc-storefront input[type="submit"]:disabled,
.cc-storefront input[type="button"]:disabled,
.cc-storefront input[type="reset"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cc-storefront .size-btn {
  background: var(--cc-paper) !important;
  border-color: var(--cc-border) !important;
  color: rgba(17, 17, 17, 0.9) !important;
  box-shadow: none !important;
}

.cc-storefront .size-btn.cc-size-selected {
  background: var(--cc-primary) !important;
  border-color: var(--cc-primary) !important;
  color: #ffffff !important;
}

.cc-storefront .size-btn.cc-size-selected * {
  color: #ffffff !important;
}

.cc-storefront .size-btn:disabled,
.cc-storefront .size-btn[disabled] {
  background: rgba(17, 17, 17, 0.06) !important;
  border-color: rgba(17, 17, 17, 0.14) !important;
  color: rgba(17, 17, 17, 0.35) !important;
}

.cc-btn-outline {
  background: transparent !important;
  border: 1px solid var(--cc-primary) !important;
  color: var(--cc-primary) !important;
}

.cc-btn-outline:hover {
  background: var(--cc-primary) !important;
  border-color: var(--cc-primary) !important;
  color: #ffffff !important;
}

/* Header */
.cc-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 236, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cc-border);
}

/* Header drawer */
.cc-drawer {
  position: fixed;
  inset: 0;
  z-index: 1001;
  pointer-events: none;
  visibility: hidden;
}

.cc-drawer-backdrop {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 76px;
  background: rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 200ms ease;
}

.cc-drawer-sheet {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  background: rgba(246, 242, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cc-border);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  transform: translateY(-14px);
  opacity: 0;
  transition: transform 240ms ease, opacity 240ms ease;
}

.cc-drawer.cc-open {
  pointer-events: auto;
  visibility: visible;
}

.cc-drawer.cc-open .cc-drawer-backdrop {
  opacity: 1;
}

.cc-drawer.cc-open .cc-drawer-sheet {
  transform: translateY(0);
  opacity: 1;
}

.cc-no-scroll {
  overflow: hidden !important;
}

.cc-drawer-tabs {
  display: flex;
  width: 100%;
  border: 1px solid var(--cc-border);
}

.cc-drawer-tab {
  flex: 1;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: #111;
  border: 0;
}

.cc-drawer-tab.cc-tab-active {
  background: var(--cc-primary);
  color: #fff;
}

.cc-drawer-card {
  border: 1px solid var(--cc-border);
  background: var(--cc-paper);
  border-radius: 0;
}

.cc-cat-item {
  background: transparent;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.cc-cat-item:hover {
  background: rgba(7, 44, 27, 0.06);
}

.cc-cat-item.cc-cat-active {
  background: rgba(7, 44, 27, 0.12);
}

.cc-subcat-link:hover {
  background: rgba(7, 44, 27, 0.06);
  color: #111;
}

/* Drawer sliders (menu) */
.cc-menu-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.cc-menu-card {
  flex: 0 0 auto;
  min-width: 160px;
  padding: 14px 14px;
  border: 1px solid var(--cc-border);
  background: var(--cc-paper);
  border-radius: 0;
  text-decoration: none;
  scroll-snap-align: start;
}

.cc-menu-card-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  line-height: 1.2;
}

/* Footer */
.cc-site-footer {
  background: rgba(246, 242, 236, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--cc-border);
}

/* CTA */
.cc-cta-signup {
  background: rgba(246, 242, 236, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 0;
  border-bottom: 0;
}

.cc-brand {
  letter-spacing: 0.18em;
}

/* Forms */
.cc-auth-card {
  background: var(--cc-paper);
  border: 1px solid var(--cc-border);
  border-radius: 24px;
  box-shadow: none;
}

.cc-auth-card a,
.cc-auth-card a:visited {
  color: var(--cc-primary) !important;
}

.cc-auth-card a:hover {
  color: var(--cc-primary-hover) !important;
}

/* Fit advisor overlay (injected by assets/js/fit-advisor.js) */
#fitadvisor-snap-overlay input[type="text"],
#fitadvisor-snap-overlay input[type="email"],
#fitadvisor-snap-overlay input[type="password"],
#fitadvisor-snap-overlay input[type="number"],
#fitadvisor-snap-overlay input[type="tel"],
#fitadvisor-snap-overlay input[type="search"],
#fitadvisor-snap-overlay input[type="url"],
#fitadvisor-snap-overlay input[type="date"],
#fitadvisor-snap-overlay input[type="datetime-local"],
#fitadvisor-snap-overlay select,
#fitadvisor-snap-overlay textarea {
  background-color: #ffffff !important;
  border-color: var(--cc-border) !important;
}

.cc-storefront input[type="text"],
.cc-storefront input[type="email"],
.cc-storefront input[type="password"],
.cc-storefront input[type="number"],
.cc-storefront input[type="tel"],
.cc-storefront input[type="search"],
.cc-storefront input[type="url"],
.cc-storefront input[type="date"],
.cc-storefront input[type="datetime-local"],
.cc-storefront select,
.cc-storefront textarea {
  background-color: var(--cc-input-bg) !important;
  border-color: var(--cc-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.cc-storefront input::placeholder,
.cc-storefront textarea::placeholder {
  color: rgba(17, 17, 17, 0.45);
}

.cc-storefront input:focus,
.cc-storefront select:focus,
.cc-storefront textarea:focus {
  outline: none;
  border-color: rgba(17, 17, 17, 0.35) !important;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08) !important;
}

.cc-storefront input[readonly],
.cc-storefront input[disabled],
.cc-storefront select[disabled],
.cc-storefront textarea[disabled] {
  opacity: 0.9;
}

/* Banner / hero */
.cc-hero,
#banner-slider {
  width: 100%;
  margin: 0;
}

/* Voucher cards */
.cc-voucher-actions {
  border-left: 1px dotted rgba(17, 17, 17, 0.35);
}

/* Event cards (minimal, neutral) */
.cc-event-card {
  background: var(--cc-paper);
  border: 1px solid var(--cc-border);
}

.cc-event-badge {
  border: 1px solid var(--cc-border);
  background: transparent;
  color: rgba(17, 17, 17, 0.68);
}

.cc-event-badge[data-status="active"] {
  color: var(--cc-primary);
}

.cc-event-discount {
  border: 1px solid var(--cc-border);
  background: transparent;
  color: var(--cc-primary);
}

.cc-event-chevron {
  border: 1px solid var(--cc-border);
  background: transparent;
  color: var(--cc-primary);
}

/* Cards */
.cc-card {
  border: 1px solid var(--cc-border);
  border-radius: 20px;
  background: var(--cc-card-bg);
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.cc-panel {
  background-color: var(--cc-paper) !important;
  border-color: var(--cc-border) !important;
}

.cc-product-card {
  border-radius: 0;
}

.cc-product-card .cc-card-img {
  border-radius: 0;
}

.cc-bundle-card {
  border-radius: 0;
}

.cc-bundle-card .cc-card-img {
  border-radius: 0;
}

.cc-card:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.cc-anim {
  opacity: 1;
  transform: none;
}

.cc-js .cc-anim {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}

.cc-js .cc-anim.cc-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .cc-anim {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cc-product-card .cc-meta-title,
  .cc-product-card .cc-meta-price,
  .cc-product-card .cc-meta-price-old,
  .cc-bundle-card .cc-meta-title,
  .cc-bundle-card .cc-meta-price,
  .cc-bundle-card .cc-meta-price-old {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.cc-card-img {
  aspect-ratio: 2 / 3;
  background: #f3f3f3;
}

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

/* Product detail hero image */
.cc-product-detail-media {
  border: 1px solid var(--cc-border);
}

.cc-product-detail-slider {
  aspect-ratio: 3 / 4;
  background: #f3f3f3;
  position: relative;
  overflow: hidden;
}

.cc-product-detail-slider .product-image-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  object-fit: cover;
  object-position: center;
}

.cc-product-detail-slider .product-image-slide.hidden {
  display: none;
}

@media (min-width: 768px) {
  .cc-product-detail-slider {
    aspect-ratio: 4 / 5;
  }
}

/* Bundle detail hero image */
.cc-bundle-detail-media {
  border: 1px solid var(--cc-border);
}

.cc-bundle-detail-slider {
  aspect-ratio: 3 / 4;
  background: #f3f3f3;
  position: relative;
  overflow: hidden;
}

.cc-bundle-detail-slider .bundle-image-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  object-fit: cover;
  object-position: center;
}

.cc-bundle-detail-slider .bundle-image-slide.hidden {
  display: none;
}

@media (min-width: 768px) {
  .cc-bundle-detail-slider {
    aspect-ratio: 4 / 5;
  }
}

/* Bundle card slider: force slides fill the aspect box */
.cc-bundle-card .cc-bundle-card-track {
  width: 100%;
  height: 100%;
}

.cc-bundle-card .cc-bundle-card-track img {
  height: 100%;
}

/* Product card meta (floating over image) */
.cc-card-media {
  position: relative;
}

.cc-card-meta {
  position: absolute !important;
  left: 10px !important;
  right: 10px !important;
  bottom: 10px !important;
  z-index: 20;
  padding: 12px 12px;
  background: rgba(255, 250, 243, 0.88);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Product cards: transparent meta + reveal animation */
.cc-product-card .cc-card-meta {
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.cc-bundle-card .cc-card-meta {
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.cc-js .cc-product-card .cc-meta-title,
.cc-js .cc-product-card .cc-meta-price,
.cc-js .cc-product-card .cc-meta-price-old {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease, transform 420ms ease;
  will-change: opacity, transform;
}

.cc-js .cc-bundle-card .cc-meta-title,
.cc-js .cc-bundle-card .cc-meta-price,
.cc-js .cc-bundle-card .cc-meta-price-old {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease, transform 420ms ease;
  will-change: opacity, transform;
}

.cc-js .cc-product-card.cc-reveal .cc-meta-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms;
}

.cc-js .cc-product-card.cc-reveal .cc-meta-price {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 90ms;
}

.cc-js .cc-product-card.cc-reveal .cc-meta-price-old {
  opacity: 0.65;
  transform: translateY(0);
  transition-delay: 180ms;
}

.cc-js .cc-bundle-card.cc-reveal .cc-meta-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms;
}

.cc-js .cc-bundle-card.cc-reveal .cc-meta-price {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 90ms;
}

.cc-js .cc-bundle-card.cc-reveal .cc-meta-price-old {
  opacity: 0.65;
  transform: translateY(0);
  transition-delay: 180ms;
}

.cc-product-card .cc-card-meta,
.cc-product-card .cc-card-meta * {
  color: rgba(255, 255, 255, 0.98) !important;
}

.cc-bundle-card .cc-card-meta,
.cc-bundle-card .cc-card-meta * {
  color: rgba(255, 255, 255, 0.98) !important;
}

/* Product grids (bigger cards, fewer columns) */
.cc-grid-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
}

@media (max-width: 380px) {
  .cc-grid-products {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .cc-grid-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
  }
}

@media (min-width: 1024px) {
  .cc-grid-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
}

/* Tight gaps for horizontal card sliders (match product grid gaps) */
.cc-gap-cards {
  gap: 1px !important;
}

@media (min-width: 768px) {
  .cc-gap-cards {
    gap: 2px !important;
  }
}

@media (min-width: 1024px) {
  .cc-gap-cards {
    gap: 4px !important;
  }
}

/* Sliders card sizing */
.cc-collection-card {
  flex: 0 0 20rem;
  width: 20rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .cc-collection-card {
    flex-basis: 25rem;
    width: 25rem;
  }
}

.cc-home-event-card {
  flex: 0 0 22rem;
  width: 22rem;
  box-sizing: border-box;
}

/* Utility: full-bleed on wide screens when needed */
.cc-fullbleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
