/* Global styling (kept low-specificity to play nicely with Blocksy) */

:root {
  --ceb-max: 1100px;
  --ceb-radius: 14px;
  --ceb-radius-sm: 10px;
  --ceb-space-1: 0.375rem;
  --ceb-space-2: 0.625rem;
  --ceb-space-3: 1rem;
  --ceb-space-4: 1.5rem;
  --ceb-space-5: 2.25rem;
  --ceb-line: color-mix(in oklab, currentColor 18%, transparent);
  --ceb-line-strong: color-mix(in oklab, currentColor 28%, transparent);
  --ceb-shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.12);
  --ceb-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);

  /* Brand palette */
  --ceb-bg: #0b0e14;
  --ceb-surface: #121724;
  --ceb-surface-2: #1a2030;
  --ceb-text: #e9edf5;
  --ceb-text-muted: #b6c0d4;
  --ceb-primary: #5fe0c8;
  --ceb-primary-strong: #3bc4aa;
  --ceb-accent: #ffd166;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(1200px 800px at 15% 10%, rgba(95, 224, 200, 0.14), transparent 60%), radial-gradient(1000px 820px at 90% 5%, rgba(255, 209, 102, 0.12), transparent 62%), var(--ceb-bg);
  color: var(--ceb-text);
  font-family: "Manrope", "Inter", "Helvetica Neue", Arial, sans-serif;
}

:where(img, video, svg, canvas, iframe) {
  max-width: 100%;
  height: auto;
}

:where(p, ul, ol, dl, figure, blockquote) {
  margin-block: 0 var(--ceb-space-4);
  color: var(--ceb-text);
}

:where(h1, h2, h3, h4, h5, h6) {
  margin-block: 0 var(--ceb-space-3);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ceb-text);
}

:where(a) {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  color: var(--ceb-primary);
}

:where(a:hover) {
  text-decoration-thickness: 2px;
  color: var(--ceb-primary-strong);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 8px;
}

:where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
  background-color: transparent;
}

:where(pre, code, kbd, samp) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

:where(hr) {
  border: 0;
  border-top: 1px solid var(--ceb-line);
  margin-block: var(--ceb-space-5);
}

/* Simple container utility (optional use) */
.ceb-wrap {
  width: min(var(--ceb-max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Page template wrapper */
.ceb-page__header {
  padding: clamp(2rem, 4vw, 3.5rem) 0 1.25rem;
}

.ceb-page__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.1;
}

.ceb-page__intro {
  margin: 0;
  max-width: 70ch;
  opacity: 0.85;
}

.ceb-page__content {
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.ceb-page__shortcode {
  margin-top: var(--ceb-space-5);
}

/* Polite button styling (applies to WP/Woo default buttons without fighting theme too hard) */
:where(.wp-element-button, .wp-block-button__link, .button, button, input[type="button"], input[type="submit"], input[type="reset"]) {
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--ceb-primary) 70%, white 30%);
  background: linear-gradient(160deg, color-mix(in oklab, var(--ceb-primary) 70%, #0b0e14 30%), color-mix(in oklab, var(--ceb-primary) 55%, #0b0e14 45%));
  color: #0b0e14;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--ceb-shadow-sm);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

:where(.wp-element-button, .wp-block-button__link, .button, button, input[type="button"], input[type="submit"], input[type="reset"]):hover {
  transform: translateY(-1px);
  box-shadow: var(--ceb-shadow);
  border-color: var(--ceb-primary-strong);
}

:where(.wp-element-button.is-style-outline, .wp-block-button__link.is-style-outline, .button.is-style-outline) {
  background: transparent;
  color: var(--ceb-text);
  border-color: var(--ceb-line-strong);
  box-shadow: none;
}

:where(.wp-element-button.is-style-outline, .wp-block-button__link.is-style-outline, .button.is-style-outline):hover {
  border-color: var(--ceb-primary);
  color: var(--ceb-primary);
}

:where(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="password"], textarea, select) {
  border: 1px solid var(--ceb-line-strong);
  border-radius: var(--ceb-radius-sm);
  padding: 0.6rem 0.75rem;
}

/* Homepage bits (still global file, but scoped to the homepage markup) */
.ceb-home__wrap {
  width: min(var(--ceb-max), calc(100% - 2rem));
  margin-inline: auto;
}

.ceb-home__hero {
  padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.ceb-home__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
}

.ceb-home__subtitle {
  margin: 0 0 1.25rem;
  max-width: 65ch;
  opacity: 0.85;
}

.ceb-home__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ceb-home__section {
  padding: 2.25rem 0;
}

.ceb-home__section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}

.ceb-home__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.ceb-home__links a {
  display: block;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--ceb-line);
  border-radius: var(--ceb-radius);
  text-decoration: none;
}

.ceb-home__links a:hover,
.ceb-home__links a:focus-visible {
  border-color: var(--ceb-line-strong);
}

/* Shop page */
.ceb-page__custom {
  display: flex;
  flex-direction: column;
  gap: var(--ceb-space-4);
}

.ceb-shop {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--ceb-line);
  border-radius: calc(var(--ceb-radius) * 1.2);
  background: radial-gradient(900px 720px at 12% 0%, rgba(95, 224, 200, 0.2), transparent 65%), radial-gradient(800px 620px at 90% 10%, rgba(255, 209, 102, 0.12), transparent 60%), var(--ceb-surface);
  box-shadow: var(--ceb-shadow-sm);
}

.ceb-shop__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--ceb-line);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ceb-text-muted);
}

.ceb-shop__title {
  margin: var(--ceb-space-3) 0 var(--ceb-space-2);
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.ceb-shop__lede {
  margin: 0 0 var(--ceb-space-3);
  max-width: 52ch;
  color: var(--ceb-text-muted);
}

.ceb-shop__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: var(--ceb-space-3);
}

.ceb-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--ceb-line);
  background: var(--ceb-surface-2);
  color: var(--ceb-text-muted);
  font-size: 0.92rem;
}

.ceb-shop__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ceb-shop__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--ceb-space-3);
}

.ceb-shop__highlight-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--ceb-line);
  border-radius: var(--ceb-radius);
  background: var(--ceb-surface-2);
}

.ceb-shop__icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in oklab, var(--ceb-primary) 16%, #0b0e14 84%);
  color: var(--ceb-primary);
  font-weight: 700;
}

.ceb-shop__muted {
  color: var(--ceb-text-muted);
  margin: 0;
}

.ceb-shop__section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ceb-space-3);
  flex-wrap: wrap;
  margin-bottom: var(--ceb-space-3);
}

.ceb-shop__categories {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--ceb-line);
  border-radius: var(--ceb-radius);
  background: var(--ceb-surface);
}

.ceb-shop__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--ceb-space-2);
}

.ceb-shop__category-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ceb-line);
  border-radius: var(--ceb-radius-sm);
  background: linear-gradient(145deg, var(--ceb-surface-2), var(--ceb-surface));
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.ceb-shop__category-card:hover,
.ceb-shop__category-card:focus-visible {
  border-color: var(--ceb-primary);
  box-shadow: var(--ceb-shadow-sm);
  transform: translateY(-2px);
}

.ceb-shop__category-card.is-placeholder {
  opacity: 0.65;
  cursor: not-allowed;
}

.ceb-shop__category-name {
  font-weight: 700;
}

.ceb-shop__category-count {
  color: var(--ceb-text-muted);
  font-size: 0.95rem;
}

.ceb-shop__products {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--ceb-line);
  border-radius: var(--ceb-radius);
  background: var(--ceb-surface);
}

.ceb-shop__products + .ceb-shop__products {
  margin-top: var(--ceb-space-3);
}

.ceb-shop__products-grid {
  width: 100%;
}

.ceb-shop__products .products {
  margin-top: var(--ceb-space-2);
}

.ceb-shop__products .products li.product {
  background: var(--ceb-surface-2);
  border: 1px solid var(--ceb-line);
  border-radius: var(--ceb-radius-sm);
  padding: 0.75rem;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.ceb-shop__products .products li.product:hover,
.ceb-shop__products .products li.product:focus-within {
  border-color: var(--ceb-primary);
  transform: translateY(-2px);
  box-shadow: var(--ceb-shadow-sm);
}

.ceb-shop__products .woocommerce-loop-product__title {
  font-size: 1rem;
  line-height: 1.3;
}

.ceb-shop__products .price {
  color: var(--ceb-primary);
  font-weight: 700;
}

.ceb-shop__band {
  border-radius: calc(var(--ceb-radius) * 1.2);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(120deg, color-mix(in oklab, var(--ceb-primary) 24%, #0b0e14 76%), color-mix(in oklab, var(--ceb-accent) 18%, #0b0e14 82%));
  border: 1px solid color-mix(in oklab, var(--ceb-primary) 40%, white 10%);
  color: #0b0e14;
}

.ceb-shop__band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ceb-space-3);
  flex-wrap: wrap;
}

.ceb-shop__band h3 {
  margin: 0 0 0.35rem;
  color: #0b0e14;
}

.ceb-shop__band .ceb-shop__muted {
  color: color-mix(in oklab, #0b0e14 82%, white 18%);
}

.ceb-shop-ticker {
  overflow: hidden;
  border: 1px solid var(--ceb-line);
  border-radius: var(--ceb-radius-sm);
  background: linear-gradient(90deg, rgba(3, 247, 196, 0.08), rgba(11, 14, 20, 0.6), rgba(249, 177, 44, 0.08));
  margin-bottom: var(--ceb-space-3);
}

.ceb-shop-ticker__inner {
  display: grid;
  grid-auto-flow: column;
  gap: 2rem;
  padding: 0.7rem 1.1rem;
  animation: ceb-ticker 28s linear infinite;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ceb-text-muted);
  white-space: nowrap;
}

@keyframes ceb-ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ceb-shop__bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--ceb-space-3);
  margin: var(--ceb-space-4) 0;
}

.ceb-prod-card {
  border: 1px solid var(--ceb-line);
  border-radius: var(--ceb-radius);
  background: linear-gradient(145deg, rgba(3, 247, 196, 0.12), rgba(12, 16, 24, 0.92));
  box-shadow: var(--ceb-shadow-sm);
  display: grid;
  grid-template-rows: 200px 1fr;
  overflow: hidden;
  position: relative;
}

.ceb-prod-card.is-placeholder {
  opacity: 0.7;
}

.ceb-prod-card__media {
  background: radial-gradient(circle at 30% 30%, rgba(3, 247, 196, 0.16), transparent 55%), radial-gradient(circle at 70% 70%, rgba(249, 177, 44, 0.12), transparent 55%), var(--ceb-surface-2);
  background-size: cover;
  background-position: center;
  position: relative;
}

.ceb-prod-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 16, 24, 0) 10%, rgba(12, 16, 24, 0.35) 70%, rgba(12, 16, 24, 0.6) 100%);
}

.ceb-prod-card__body {
  padding: 1.05rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.ceb-prod-card__eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ceb-text-muted);
}

.ceb-prod-card__title {
  margin: 0;
  font-size: 1.2rem;
}

.ceb-prod-card__title a {
  text-decoration: none;
  color: inherit;
}

.ceb-prod-card__title a:hover,
.ceb-prod-card__title a:focus-visible {
  color: var(--ceb-primary);
}

.ceb-prod-card__meta {
  color: var(--ceb-text-muted);
  margin: 0;
}

.ceb-prod-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.ceb-prod-card__price {
  color: var(--ceb-primary);
  font-weight: 800;
}

.ceb-shop__bento .button {
  padding-inline: 1rem;
}

.ceb-shop__bento .button.is-style-outline {
  border-color: var(--ceb-line-strong);
}

.ceb-animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 280ms ease, transform 280ms ease;
}

.ceb-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
