/**
 * Opticore — category scene styles.
 *
 * Extends the frosted-glass vocabulary already established in oc-shop-cro.css
 * (18–20px radii, translucent white, soft shadow) with a warm sun palette.
 * Everything is scoped to .oc-cs-scene / .oc-cs-* so no other archive is touched.
 */

.oc-cs-scene {
  --ocs-ink: #111;
  --ocs-ink-soft: rgba(17, 17, 17, 0.66);
  --ocs-ink-faint: rgba(17, 17, 17, 0.46);
  --ocs-line: rgba(17, 17, 17, 0.1);
  --ocs-sun: #f2a30f;
  --ocs-sun-soft: rgba(242, 163, 15, 0.14);
  --ocs-sky: #2f7fd1;
  --ocs-sky-soft: rgba(47, 127, 209, 0.12);
  --ocs-glass: rgba(255, 255, 255, 0.62);
  --ocs-glass-edge: rgba(255, 255, 255, 0.74);
  --ocs-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  --ocs-shadow-lift: 0 12px 30px rgba(0, 0, 0, 0.12);
  --ocs-radius: 18px;
}

/* Pull the theme's own H1 tight against the hero so they read as one unit. */
.oc-cs-scene .nectar-shop-header {
  padding-bottom: 0;
}

.oc-cs-scene .nectar-shop-header .page-title {
  margin-bottom: 0.35rem;
}

.oc-cs-scene .nectar-shop-header .woocommerce-breadcrumb {
  margin-bottom: 0.9rem;
}

/* ---------------------------------------------------------------- 1. Hero */

.oc-cs-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.75rem;
  padding: 1.6rem 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--ocs-glass-edge);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--ocs-sun-soft) 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(110% 130% at 0% 100%, var(--ocs-sky-soft) 0%, rgba(255, 255, 255, 0) 55%),
    var(--ocs-glass);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    var(--ocs-shadow);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.oc-cs-hero.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--oc-cs-hero-img);
  background-size: cover;
  background-position: center 30%;
  opacity: 0.16;
  pointer-events: none;
}

.oc-cs-hero.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.5) 62%, rgba(255, 255, 255, 0.22) 100%);
  pointer-events: none;
}

.oc-cs-hero__body {
  position: relative;
  z-index: 1;
}

.oc-cs-hero__lede {
  max-width: 46rem;
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #232323;
}

.oc-cs-hero__lede p {
  margin: 0 0 0.6rem;
}

.oc-cs-hero__lede p:last-child {
  margin-bottom: 0;
}

.oc-cs-hero__lede strong {
  color: var(--ocs-ink);
}

.oc-cs-hero__lede a {
  color: var(--ocs-ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Stat chips — every value comes from WooCommerce at render time. */
.oc-cs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.oc-cs-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.09);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 650;
  color: #1d1d1d;
  line-height: 1.3;
}

.oc-cs-chip .oc-cs-ic {
  color: var(--ocs-sun);
  flex: 0 0 auto;
}

.oc-cs-chip .bdi,
.oc-cs-chip bdi {
  font-weight: 750;
}

.oc-cs-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oc-cs-jump a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ocs-ink);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.oc-cs-jump a:first-child {
  border-color: transparent;
  background: var(--ocs-ink);
  color: #fff;
}

.oc-cs-jump a:hover,
.oc-cs-jump a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(17, 17, 17, 0.32);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ocs-ink);
  text-decoration: none;
}

.oc-cs-jump a:first-child:hover,
.oc-cs-jump a:first-child:focus-visible {
  background: #2c2c2c;
  color: #fff;
}

/* ------------------------------------------------------- Shared type bits */

.oc-cs-h {
  margin: 0 0 0.4rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.22;
  color: var(--ocs-ink);
}

.oc-cs-h--sm {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.oc-cs-sub {
  max-width: 46rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ocs-ink-soft);
}

.oc-cs-ic {
  width: 17px;
  height: 17px;
  display: block;
}

.oc-cs-anchor {
  position: relative;
  top: -90px;
  height: 0;
}

/* ------------------------------------------------------- 2. Age guide tabs */

.oc-cs-ages {
  margin: 0 0 1.5rem;
}

.oc-cs-tabs__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.oc-cs-tab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.6);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.oc-cs-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 17, 17, 0.24);
}

.oc-cs-tab.is-active {
  border-color: var(--ocs-sun);
  background: var(--ocs-sun-soft);
}

.oc-cs-tab__age {
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ocs-ink);
}

.oc-cs-tab__note {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ocs-ink-faint);
}

.oc-cs-panel {
  padding: 1.05rem 1.15rem;
  border-radius: var(--ocs-radius);
  border: 1px solid var(--ocs-line);
  background: rgba(255, 255, 255, 0.55);
}

.oc-cs-panel[hidden] {
  display: none;
}

.oc-cs-panel__title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 750;
  color: var(--ocs-ink);
}

.oc-cs-panel p {
  margin: 0 0 0.7rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #2c2c2c;
}

.oc-cs-tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 !important;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ocs-sky-soft);
  font-size: 0.88rem !important;
  color: #1b3a5c;
}

.oc-cs-tip .oc-cs-ic {
  margin-top: 2px;
  color: var(--ocs-sky);
  flex: 0 0 auto;
}

.oc-cs-tip a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------- 6. Brand strip */

.oc-cs-brands {
  margin: 0 0 1.35rem;
}

.oc-cs-brands__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oc-cs-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 15px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.oc-cs-brand:hover,
.oc-cs-brand:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--ocs-shadow);
  text-decoration: none;
}

.oc-cs-brand__name {
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: var(--ocs-ink);
}

.oc-cs-brand__count {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ocs-ink-faint);
}

/* --------------------------------------------------- Below-the-grid block */

.oc-cs-below {
  margin: 2.25rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ocs-line);
}

.oc-cs-below > section {
  margin: 0 0 2rem;
}

.oc-cs-below > section:last-child {
  margin-bottom: 0.5rem;
}

/* -------------------------------------------- Card + table sections */

.oc-cs-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0.9rem;
}

.oc-cs-card {
  position: relative;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: var(--ocs-radius);
  border: 1px solid var(--ocs-glass-edge);
  background: var(--ocs-glass);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    var(--ocs-shadow);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
}

.oc-cs-card__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.7rem;
  border-radius: 12px;
  background: var(--ocs-sun-soft);
  color: var(--ocs-sun);
}

.oc-cs-card__ic .oc-cs-ic {
  width: 20px;
  height: 20px;
}

.oc-cs-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.3;
  color: var(--ocs-ink);
}

.oc-cs-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
}

/* --------------------------------------------------------- 4. Size table */

.oc-cs-sizes__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  align-items: start;
}

.oc-cs-table-wrap {
  overflow-x: auto;
  border-radius: var(--ocs-radius);
  border: 1px solid var(--ocs-line);
  background: rgba(255, 255, 255, 0.6);
}

.oc-cs-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.oc-cs-table th,
.oc-cs-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--ocs-line);
  vertical-align: top;
}

.oc-cs-table thead th {
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ocs-ink-faint);
  white-space: nowrap;
}

.oc-cs-table tbody th {
  font-weight: 750;
  color: var(--ocs-ink);
  white-space: nowrap;
}

.oc-cs-table tbody td {
  color: #333;
  font-variant-numeric: tabular-nums;
}

.oc-cs-table tbody tr:last-child th,
.oc-cs-table tbody tr:last-child td {
  border-bottom: 0;
}

.oc-cs-diagram {
  margin: 0;
  padding: 1rem 1rem 0.75rem;
  border-radius: var(--ocs-radius);
  border: 1px solid var(--ocs-line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ocs-ink);
  text-align: center;
}

.oc-cs-diagram svg {
  width: 100%;
  height: auto;
  max-width: 220px;
}

.oc-cs-diagram figcaption {
  margin-top: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ocs-ink-faint);
}

.oc-cs-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ocs-sun-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4a3405;
}

.oc-cs-check .oc-cs-ic {
  margin-top: 3px;
  color: var(--ocs-sun);
  flex: 0 0 auto;
}

/* ------------------------------------------------------------ 5. Safety */

.oc-cs-safety__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 0.9rem;
  align-items: start;
}

.oc-cs-safety__main h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 750;
  color: var(--ocs-ink);
}

.oc-cs-safety__main h3 + p {
  margin-bottom: 1.1rem;
}

.oc-cs-safety__main p {
  margin: 0 0 0.6rem;
  font-size: 0.94rem;
  line-height: 1.68;
  color: #2c2c2c;
}

.oc-cs-safety__main p:last-child {
  margin-bottom: 0;
}

.oc-cs-flags {
  padding: 1.1rem 1.2rem;
  border-radius: var(--ocs-radius);
  border: 1px solid rgba(185, 28, 28, 0.16);
  background: rgba(185, 28, 28, 0.05);
}

.oc-cs-flags h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 750;
  color: #8f1d1d;
}

.oc-cs-flags h3 .oc-cs-ic {
  color: #b91c1c;
  flex: 0 0 auto;
}

.oc-cs-flags ul {
  margin: 0;
  padding-left: 1.05rem;
}

.oc-cs-flags li {
  margin-bottom: 0.4rem;
  font-size: 0.89rem;
  line-height: 1.55;
  color: #3a2323;
}

.oc-cs-flags li:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------- Available now row */

.oc-cs-picks__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.oc-cs-picks__row a {
  display: block;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--ocs-line);
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.oc-cs-picks__row a:hover,
.oc-cs-picks__row a:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--ocs-shadow-lift);
  text-decoration: none;
}

.oc-cs-picks__row img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 8px;
  border-radius: 10px;
}

.oc-cs-picks__name {
  display: block;
  margin-bottom: 3px;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ocs-ink);
}

.oc-cs-picks__price {
  display: block;
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--ocs-ink);
}

.oc-cs-picks__price del {
  opacity: 0.5;
  font-weight: 500;
  margin-right: 4px;
}

/* --------------------------------------------------------- 7. Fit check */

.oc-cs-fit {
  padding: 1.3rem 1.4rem;
  border-radius: 22px;
  border: 1px solid var(--ocs-glass-edge);
  background:
    radial-gradient(90% 160% at 0% 0%, var(--ocs-sky-soft) 0%, rgba(255, 255, 255, 0) 60%),
    var(--ocs-glass);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    var(--ocs-shadow);
}

.oc-cs-fit__inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.oc-cs-fit__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ocs-sky-soft);
  color: var(--ocs-sky);
}

.oc-cs-fit__ic .oc-cs-ic {
  width: 22px;
  height: 22px;
}

.oc-cs-fit p {
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #2c2c2c;
}

.oc-cs-fit__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
}

.oc-cs-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ocs-ink);
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.oc-cs-btn:hover,
.oc-cs-btn:focus-visible {
  transform: translateY(-1px);
  background: #2c2c2c;
  color: #fff;
  text-decoration: none;
}

.oc-cs-btn--ghost {
  background: transparent;
  border-color: rgba(17, 17, 17, 0.2);
  color: var(--ocs-ink);
}

.oc-cs-btn--ghost:hover,
.oc-cs-btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ocs-ink);
}

/* ------------------------------------------------------- 9a. Long-form */

.oc-cs-longform {
  max-width: 52rem;
}

.oc-cs-longform h2 {
  margin: 1.6rem 0 0.55rem;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--ocs-ink);
}

.oc-cs-longform > :first-child {
  margin-top: 0;
}

.oc-cs-longform h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 750;
  color: var(--ocs-ink);
}

.oc-cs-longform p,
.oc-cs-longform li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2c2c2c;
}

.oc-cs-longform p {
  margin: 0 0 0.85rem;
}

.oc-cs-longform ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.oc-cs-longform li {
  margin-bottom: 0.35rem;
}

.oc-cs-longform a {
  color: var(--ocs-ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ------------------------------------------------------------- 9b. FAQ */

.oc-cs-faq__list {
  margin-top: 0.9rem;
  max-width: 52rem;
  border-radius: var(--ocs-radius);
  border: 1px solid var(--ocs-line);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.oc-cs-q {
  border-bottom: 1px solid var(--ocs-line);
}

.oc-cs-q:last-child {
  border-bottom: 0;
}

.oc-cs-q > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  transition: background 0.16s ease;
}

.oc-cs-q > summary::-webkit-details-marker {
  display: none;
}

.oc-cs-q > summary:hover {
  background: rgba(255, 255, 255, 0.7);
}

.oc-cs-q > summary h3 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ocs-ink);
}

.oc-cs-q__mark {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ocs-sun-soft);
}

.oc-cs-q__mark::before,
.oc-cs-q__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ocs-sun);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.oc-cs-q__mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.oc-cs-q[open] .oc-cs-q__mark::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.oc-cs-q__a {
  padding: 0 16px 15px;
}

.oc-cs-q__a p {
  margin: 0 0 0.6rem;
  font-size: 0.93rem;
  line-height: 1.68;
  color: #333;
}

.oc-cs-q__a p:last-child {
  margin-bottom: 0;
}

.oc-cs-q__a a {
  color: var(--ocs-ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* -------------------------------------------------------- 10. Guide cards */

.oc-cs-guides__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0.9rem;
}

.oc-cs-guide {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 15px;
  border-radius: var(--ocs-radius);
  border: 1px solid var(--ocs-line);
  background: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.oc-cs-guide:hover,
.oc-cs-guide:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 17, 0.2);
  box-shadow: var(--ocs-shadow);
  text-decoration: none;
}

.oc-cs-guide__title {
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--ocs-ink);
}

.oc-cs-guide__sub {
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.4;
  color: var(--ocs-ink-faint);
}

/* ------------------------------------------------------------ Focus ring */

.oc-cs-scene :is(.oc-cs-tab, .oc-cs-jump a, .oc-cs-brand, .oc-cs-btn, .oc-cs-guide, .oc-cs-q > summary):focus-visible {
  outline: 2px solid var(--ocs-sky);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 999px) {
  .oc-cs-cards,
  .oc-cs-guides__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oc-cs-sizes__grid,
  .oc-cs-safety__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .oc-cs-diagram svg {
    max-width: 200px;
  }
}

@media (max-width: 690px) {
  .oc-cs-hero {
    padding: 1.25rem 1.15rem;
    border-radius: 20px;
  }

  .oc-cs-hero__lede {
    font-size: 0.96rem;
  }

  .oc-cs-tabs__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .oc-cs-tab {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .oc-cs-cards,
  .oc-cs-guides__row,
  .oc-cs-picks__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oc-cs-fit__inner {
    flex-direction: column;
    gap: 10px;
  }

  .oc-cs-below {
    margin-top: 1.75rem;
  }
}

@media (max-width: 420px) {
  .oc-cs-cards,
  .oc-cs-guides__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------- Accessibility fallbacks */

@media (prefers-reduced-transparency: reduce) {
  .oc-cs-hero,
  .oc-cs-card,
  .oc-cs-fit {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #fbfbfb;
  }

  .oc-cs-hero.has-image::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oc-cs-scene * {
    transition: none !important;
  }

  .oc-cs-tab:hover,
  .oc-cs-brand:hover,
  .oc-cs-guide:hover,
  .oc-cs-btn:hover,
  .oc-cs-jump a:hover,
  .oc-cs-picks__row a:hover {
    transform: none;
  }
}

@media print {
  .oc-cs-hero::before,
  .oc-cs-hero::after {
    display: none;
  }

  .oc-cs-panel[hidden] {
    display: block !important;
  }
}

/* ==========================================================================
   Blocks added with the engine refactor
   ========================================================================== */

/* Generic card / table sections reuse the UV + size vocabulary. */
.oc-cs-cardsec,
.oc-cs-tablesec {
  margin: 0 0 2rem;
}

.oc-cs-tablesec .oc-cs-table-wrap {
  max-width: 52rem;
}

/* --------------------------------------------------- Face-shape matcher */

.oc-cs-face__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0.9rem 0 12px;
}

.oc-cs-face__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ocs-ink-soft);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.oc-cs-face__btn:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 17, 0.24);
  color: var(--ocs-ink);
}

.oc-cs-face__btn.is-active {
  border-color: var(--ocs-sun);
  background: var(--ocs-sun-soft);
  color: #7a5405;
}

.oc-cs-face__svg {
  width: 38px;
  height: 35px;
  display: block;
}

.oc-cs-face__btn span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  color: var(--ocs-ink);
}

.oc-cs-face__panel {
  padding: 1.05rem 1.15rem;
  border-radius: var(--ocs-radius);
  border: 1px solid var(--ocs-line);
  background: rgba(255, 255, 255, 0.55);
}

.oc-cs-face__panel[hidden] {
  display: none;
}

.oc-cs-face__panel p {
  margin: 0 0 0.55rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #2c2c2c;
}

.oc-cs-face__pick strong {
  color: #0b6b4a;
}

.oc-cs-face__avoid strong {
  color: #8f1d1d;
}

.oc-cs-face__best {
  margin: 0.7rem 0 0 !important;
}

.oc-cs-face__best span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ocs-sky-soft);
  font-size: 0.8rem;
  font-weight: 700;
  color: #1b3a5c;
}

/* ------------------------------------------------- Alternate fit/CTA band */

.oc-cs-fit--alt {
  background:
    radial-gradient(90% 160% at 0% 0%, var(--ocs-sun-soft) 0%, rgba(255, 255, 255, 0) 60%),
    var(--ocs-glass);
}

.oc-cs-fit--alt .oc-cs-fit__ic {
  background: var(--ocs-sun-soft);
  color: var(--ocs-sun);
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 999px) {
  .oc-cs-face__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .oc-cs-face__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .oc-cs-face__btn:hover {
    transform: none;
  }
}

@media print {
  .oc-cs-face__panel[hidden] {
    display: block !important;
  }
}

/* ------------------------------------------------- Child-category tiles */

.oc-cs-kids {
  margin: 0 0 1.35rem;
}

.oc-cs-kids__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.oc-cs-kid {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  min-height: 92px;
  padding: 14px 16px;
  border-radius: var(--ocs-radius);
  border: 1px solid var(--ocs-glass-edge);
  background: var(--ocs-glass);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    var(--ocs-shadow);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.oc-cs-kid.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--oc-cs-kid-img);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  pointer-events: none;
}

.oc-cs-kid.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.82) 70%);
  pointer-events: none;
}

.oc-cs-kid:hover,
.oc-cs-kid:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--ocs-shadow-lift);
  text-decoration: none;
}

.oc-cs-kid__label,
.oc-cs-kid__sub {
  position: relative;
  z-index: 1;
}

.oc-cs-kid__label {
  font-size: 0.94rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ocs-ink);
}

.oc-cs-kid__sub {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ocs-ink-faint);
}

@media (max-width: 690px) {
  .oc-cs-kids__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-transparency: reduce) {
  .oc-cs-kid {
    background: #fafafa;
  }
  .oc-cs-kid.has-image::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oc-cs-kid:hover {
    transform: none;
  }
}

/* ==========================================================================
   Store page (/optika-rethymno/)
   ========================================================================== */

.oc-store-page .oc-cs-hero {
  margin-bottom: 1.5rem;
}

.oc-store-page .oc-cs-longform,
.oc-store-page .oc-cs-faq__list {
  max-width: none;
}

/* Live open/closed pill */
.oc-store-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 600;
  color: #6b3a0b;
  line-height: 1.3;
}

.oc-store-status.is-open {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.12);
  color: #0b6b4a;
}

.oc-store-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b45309;
  flex: 0 0 auto;
}

.oc-store-status.is-open .oc-store-status__dot {
  background: #10b981;
  animation: oc-store-live 1.8s ease-out infinite;
}

@keyframes oc-store-live {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.oc-store-status__detail {
  font-weight: 500;
  opacity: 0.8;
}

/* Hours table */
.oc-store-hours .oc-cs-table {
  min-width: 0;
}

.oc-store-hours tr.is-today th,
.oc-store-hours tr.is-today td {
  background: var(--ocs-sun-soft);
}

.oc-store-hours td.is-closed {
  color: var(--ocs-ink-faint);
}

.oc-store-today {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--ocs-sun);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  vertical-align: middle;
}

/* Contact card + hours side by side */
.oc-store-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0 0 2rem;
}

.oc-store-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--ocs-radius);
  border: 1px solid var(--ocs-glass-edge);
  background: var(--ocs-glass);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, var(--ocs-shadow);
}

.oc-store-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ocs-ink);
}

.oc-store-lines {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.oc-store-lines li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ocs-line);
  font-size: 0.93rem;
  color: #2c2c2c;
}

.oc-store-lines li:last-child {
  border-bottom: 0;
}

.oc-store-lines b {
  flex: 0 0 88px;
  font-weight: 650;
  color: var(--ocs-ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.oc-store-lines a {
  color: var(--ocs-ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Map */
.oc-store-map {
  margin: 0 0 2rem;
  border-radius: var(--ocs-radius);
  overflow: hidden;
  border: 1px solid var(--ocs-line);
  line-height: 0;
}

.oc-store-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* Areas served */
.oc-store-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.oc-store-areas li {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--ocs-line);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.83rem;
  font-weight: 600;
  color: #2c2c2c;
}

@media (max-width: 780px) {
  .oc-store-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .oc-store-map iframe {
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oc-store-status.is-open .oc-store-status__dot {
    animation: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .oc-store-card {
    background: #fafafa;
  }
}
