:root {
  --navy: #071c4d;
  --navy-2: #0e3376;
  --ink: #14213d;
  --muted: #66738d;
  --line: rgba(68, 99, 157, 0.13);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --shadow:
    0 20px 60px rgba(47, 83, 154, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-soft:
    0 10px 30px rgba(53, 84, 145, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --radius: 28px;
  --accent: #9ecbff;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #e8f0ff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background-color: #f3f6ff;
  background-image:
    radial-gradient(at 8% 4%, rgba(255, 188, 224, 0.5), transparent 38rem),
    radial-gradient(at 92% 6%, rgba(167, 210, 255, 0.55), transparent 40rem),
    radial-gradient(at 50% 102%, rgba(208, 187, 255, 0.45), transparent 36rem),
    radial-gradient(at 14% 88%, rgba(196, 232, 232, 0.4), transparent 32rem),
    linear-gradient(180deg, #f7f9ff 0%, #ecf2ff 55%, #f5eeff 100%);
  background-attachment: fixed;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain noise + dot grid for depth on every page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at center, rgba(20, 57, 112, 0.18) 0 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 55%);
  opacity: 0.18;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.1 0 0 0 0 0.3 0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.06;
  mix-blend-mode: multiply;
}

/* App container — light glass halo behind every page */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  isolation: isolate;
}
#app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(700px 480px at 18% 12%, rgba(255, 195, 228, 0.32), transparent 70%),
    radial-gradient(820px 540px at 84% 18%, rgba(178, 218, 255, 0.34), transparent 70%),
    radial-gradient(640px 480px at 60% 92%, rgba(220, 195, 255, 0.28), transparent 70%);
  filter: blur(40px) saturate(120%);
  opacity: 0.95;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  color: inherit;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
}
.skip-link:focus {
  top: 16px;
}
.icon {
  flex: 0 0 auto;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 20px;
  color: var(--navy);
}
.boot-mark {
  font:
    700 42px/1 Georgia,
    serif;
  letter-spacing: -0.06em;
}
.boot-mark sup {
  color: #7a82ff;
  font: 700 16px/1 sans-serif;
}
.boot-line {
  width: 92px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #6f88ff, transparent);
  animation: load 1s infinite;
}
@keyframes load {
  50% {
    transform: scaleX(0.45);
    opacity: 0.45;
  }
}

.app-shell {
  --page-pad: clamp(22px, 5vw, 68px);
  position: relative;
  isolation: isolate;
  width: min(1220px, calc(100% - 34px));
  min-height: calc(100vh - 34px);
  margin: 17px auto;
  padding-bottom: 118px;
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 38px;
  background:
    radial-gradient(
      circle at 84% 0%,
      color-mix(in srgb, var(--accent) 26%, transparent),
      transparent 28rem
    ),
    linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.78),
      rgba(241, 247, 255, 0.61)
    );
  box-shadow:
    0 32px 100px rgba(45, 70, 136, 0.18),
    inset 0 1px 0 #fff;
  backdrop-filter: blur(30px) saturate(125%);
}
.app-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  top: 20%;
  left: -190px;
  border-radius: 50%;
  background: rgba(160, 210, 255, 0.22);
  filter: blur(22px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px var(--page-pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(
    180deg,
    rgba(249, 252, 255, 0.92),
    rgba(247, 250, 255, 0.72)
  );
  backdrop-filter: blur(24px) saturate(140%);
}
.home-topbar {
  grid-template-columns: 1fr 1fr;
}
.ray-wordmark {
  justify-self: start;
  display: flex;
  flex-direction: column;
  color: var(--navy);
}
.ray-wordmark strong {
  font:
    700 31px/0.8 Georgia,
    serif;
  letter-spacing: -0.07em;
}
.ray-wordmark sup {
  color: #707cff;
  font: 800 12px/1 sans-serif;
}
.ray-wordmark span {
  margin-top: 8px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.21em;
}
.system-time {
  justify-self: end;
  text-align: right;
  display: flex;
  flex-direction: column;
}
.system-time strong {
  color: var(--navy);
  font:
    700 18px/1.1 Georgia,
    serif;
}
.system-time span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.screen-title {
  color: var(--navy);
  font:
    700 clamp(17px, 2.2vw, 23px)/1 Georgia,
    serif;
  text-align: center;
  letter-spacing: -0.025em;
}
.round-button {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: 0.22s ease;
}
.round-button:hover {
  transform: translateY(-2px);
  background: #fff;
}
.round-button.is-favorite {
  color: #eb5592;
  background: #fff0f7;
}
.round-button.is-favorite svg {
  fill: currentColor;
}
.round-button.copied {
  color: #299b7f;
}
.top-actions {
  justify-self: end;
  display: flex;
  gap: 9px;
}

.screen {
  min-height: 70vh;
}
.bottom-nav {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(430px, calc(100% - 42px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  background: rgba(250, 252, 255, 0.76);
  box-shadow:
    0 22px 55px rgba(35, 65, 128, 0.2),
    inset 0 1px 0 #fff;
  backdrop-filter: blur(28px) saturate(160%);
}
.bottom-nav a {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 18px;
  color: #74809a;
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}
.bottom-nav a.active {
  color: var(--navy-2);
  background: linear-gradient(
    135deg,
    rgba(189, 228, 255, 0.82),
    rgba(240, 223, 255, 0.74)
  );
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 20px rgba(81, 125, 195, 0.12);
}

.home-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 76px var(--page-pad) 62px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(
      circle at 78% 53%,
      rgba(185, 216, 255, 0.72),
      transparent 19rem
    ),
    radial-gradient(
      circle at 68% 45%,
      rgba(253, 196, 231, 0.62),
      transparent 14rem
    ),
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.48),
      rgba(225, 238, 255, 0.52)
    );
}
.hero-copy {
  position: relative;
  z-index: 8;
  width: 55%;
}
.hero-kicker,
.section-kicker {
  color: #5171aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
}
.hero-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f18cba;
  box-shadow: 0 0 0 6px rgba(241, 140, 186, 0.13);
}
.home-hero h1 {
  margin: 0;
  color: var(--navy);
  font:
    500 clamp(56px, 7.3vw, 101px)/0.83 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.065em;
}
.home-hero h1 span,
.home-hero h1 em {
  display: block;
}
.home-hero h1 em {
  color: #de5f9a;
  font-style: normal;
}
.home-hero p {
  margin: 28px 0 0;
  color: #33496f;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.35;
}
.hero-visual-stack {
  position: absolute;
  inset: 30px 0 65px 48%;
  z-index: 4;
}
.float-card {
  position: absolute;
  margin: 0;
  width: clamp(240px, 34vw, 430px);
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  box-shadow:
    0 25px 70px rgba(66, 91, 152, 0.22),
    inset 0 1px 0 #fff;
  transform-origin: center;
}
.float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.88;
}
.float-card-1 {
  z-index: 3;
  top: 21%;
  left: 12%;
  transform: rotate(-5deg);
}
.float-card-2 {
  z-index: 2;
  top: 7%;
  right: -5%;
  transform: rotate(8deg) scale(0.78);
  opacity: 0.62;
}
.float-card-3 {
  z-index: 1;
  bottom: -1%;
  right: -3%;
  transform: rotate(-8deg) scale(0.72);
  opacity: 0.52;
}
.hero-orb {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    inset -18px -20px 35px rgba(98, 145, 235, 0.15),
    inset 12px 12px 25px rgba(255, 255, 255, 0.85),
    0 18px 40px rgba(80, 112, 181, 0.13);
  backdrop-filter: blur(8px);
}
.orb-one {
  width: 130px;
  height: 130px;
  right: 8%;
  bottom: 15%;
  background: radial-gradient(
    circle at 30% 25%,
    #fff,
    rgba(165, 215, 255, 0.48) 45%,
    rgba(224, 167, 255, 0.28)
  );
}
.orb-two {
  width: 72px;
  height: 72px;
  right: 41%;
  top: 16%;
  background: radial-gradient(
    circle at 30% 25%,
    #fff,
    rgba(255, 174, 220, 0.46) 50%,
    rgba(147, 189, 255, 0.2)
  );
}
.hero-ring {
  position: absolute;
  width: 470px;
  height: 470px;
  right: 4%;
  top: 10%;
  border: 1px solid rgba(121, 163, 230, 0.2);
  border-radius: 50%;
  transform: rotate(-20deg);
}
.hero-search {
  position: relative;
  z-index: 10;
  width: min(720px, 84%);
  min-height: 70px;
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 45px rgba(58, 88, 154, 0.16),
    inset 0 1px 0 #fff;
  backdrop-filter: blur(20px);
}
.hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}
.hero-search input::placeholder {
  color: #8792a9;
}
.hero-search button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  cursor: pointer;
}
.hero-stats {
  position: relative;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
  color: #66748f;
  font-size: 11px;
}
.hero-stats strong {
  color: var(--navy);
}

.home-brands,
.catalog-section,
.product-catalog,
.tab-section {
  padding: 60px var(--page-pad);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.section-heading h2,
.tab-heading h1,
.brand-overview h2,
.ingredient-detail-hero h1 {
  margin: 7px 0 0;
  color: var(--navy);
  font:
    600 clamp(34px, 4vw, 57px)/1 Georgia,
    serif;
  letter-spacing: -0.04em;
}
.section-heading > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 750;
}
.section-lede {
  max-width: 670px;
  margin: 12px 0 28px;
  color: var(--muted);
  line-height: 1.65;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.brand-tile {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}
.brand-tile:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 50px rgba(54, 82, 144, 0.18),
    inset 0 1px 0 #fff;
}
.brand-tile img {
  width: 100%;
  height: 100%;
  min-height: 205px;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.45s ease;
}
.brand-tile:hover img {
  transform: scale(1.035);
}
.brand-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 25%,
    rgba(250, 252, 255, 0.95) 100%
  );
}
.brand-tile-shine {
  position: absolute;
  z-index: 2;
  top: -90px;
  left: -45px;
  width: 170px;
  height: 260px;
  transform: rotate(25deg);
  background: rgba(255, 255, 255, 0.35);
  filter: blur(9px);
}
.brand-tile-copy {
  position: absolute;
  z-index: 4;
  left: 19px;
  right: 52px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.brand-tile-copy strong {
  color: var(--navy);
  font:
    600 20px/1.1 Georgia,
    serif;
}
.brand-tile-copy small {
  color: #687792;
  font-size: 10px;
  line-height: 1.3;
}
.brand-tile-index {
  position: absolute;
  z-index: 4;
  top: 15px;
  left: 15px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.65);
  color: #536c99;
  font-size: 9px;
  font-weight: 800;
}
.tile-arrow {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy);
}
.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}
.source-note {
  margin: 10px var(--page-pad) 48px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #596984;
}
.source-note > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--navy-2);
  background: #e7f2ff;
}
.source-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}
.source-note strong {
  color: var(--navy);
}

.page-intro {
  padding: 78px var(--page-pad) 25px;
}
.page-intro h1,
.search-page-head h1 {
  max-width: 780px;
  margin: 15px 0;
  color: var(--navy);
  font:
    500 clamp(46px, 6.5vw, 78px)/0.97 Georgia,
    serif;
  letter-spacing: -0.06em;
}
.page-intro h1 em,
.search-page-head h1 em {
  color: #c45d9a;
  font-style: normal;
}
.page-intro > p {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.65;
}
.inline-search,
.search-page-field {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
}
.inline-search {
  width: min(620px, 100%);
}
.inline-search input,
.search-page-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.brand-hero {
  position: relative;
  min-height: 400px;
  margin: 28px var(--page-pad) 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.brand-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(248, 251, 255, 0.94) 0%,
      rgba(247, 250, 255, 0.76) 43%,
      rgba(250, 248, 255, 0.15) 75%
    ),
    linear-gradient(0deg, rgba(222, 234, 255, 0.25), transparent);
}
.brand-hero-copy {
  position: relative;
  z-index: 2;
  width: 56%;
  padding: 74px 60px;
}
.brand-hero-copy > span {
  color: #5a73a2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.brand-hero-copy h1 {
  margin: 12px 0;
  color: var(--navy);
  font:
    600 clamp(45px, 6vw, 78px)/0.95 Georgia,
    serif;
  letter-spacing: -0.055em;
}
.brand-hero-copy p {
  max-width: 520px;
  color: #50617e;
  font-size: 16px;
  line-height: 1.55;
}
.brand-hero-count {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 28px;
  width: 92px;
  height: 92px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.brand-hero-count strong {
  color: var(--navy);
  font:
    600 28px/1 Georgia,
    serif;
}
.brand-hero-count span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.brand-overview {
  margin: 0;
  padding: clamp(28px, 4vw, 50px);
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 48px;
}
.brand-overview p {
  color: #586883;
  line-height: 1.75;
}
.fact-stack {
  display: grid;
  gap: 10px;
}
.fact-stack article {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 17px;
  background: rgba(246, 250, 255, 0.65);
}
.fact-stack span {
  color: #77849d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.fact-stack p {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.45;
}
.select-pill {
  position: relative;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}
.select-pill select {
  min-width: 165px;
  padding: 13px 20px 13px 5px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.product-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.69);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 45px rgba(60, 87, 151, 0.17),
    inset 0 1px 0 #fff;
}
.product-card-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-media.has-image {
  background: transparent;
}
.product-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: transform 0.4s ease;
  z-index: 1;
}
.product-card:hover img {
  transform: scale(1.04);
}
.product-media-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
}
.product-card-media.has-image .product-media-inner {
  display: none;
}
.product-media-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.product-media-initial {
  font: 700 26px/1 Georgia, serif;
  letter-spacing: -0.04em;
}
.product-media-brand {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.product-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(255, 255, 255, 0.7)
  );
}
.visual-label,
.product-number {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.73);
  color: #607194;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.visual-label {
  left: 12px;
}
.product-number {
  right: 12px;
}
.product-card-copy {
  padding: 17px 45px 20px 18px;
}
.product-card-copy > span {
  color: #7182a3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.product-card-copy h3 {
  margin: 7px 0 6px;
  color: var(--navy);
  font:
    600 20px/1.1 Georgia,
    serif;
}
.product-card-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #6c7890;
  font-size: 11px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-arrow {
  position: absolute;
  right: 16px;
  bottom: 20px;
  color: var(--navy);
}
.empty-state {
  padding: 42px;
  border: 1px dashed rgba(72, 103, 159, 0.24);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.42);
}
.validation-note {
  margin: 0 var(--page-pad) 30px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  color: #5e6c84;
}
.validation-note summary {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.validation-note li {
  margin: 9px 0;
  font-size: 11px;
  line-height: 1.5;
}

.product-tabs {
  position: sticky;
  z-index: 40;
  top: 88px;
  display: grid;
  grid-template-columns: repeat(var(--product-tabs-count, 4), minmax(0, 1fr));
  gap: 12px;
  padding: 16px var(--page-pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(245, 249, 255, 0.78);
  backdrop-filter: blur(24px);
}
.product-tabs button {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  color: #6c7890;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.22s ease;
}
@media (max-width: 720px) {
  .product-tabs,
  .brand-tabs {
    grid-template-columns: repeat(var(--product-tabs-count, 4), 1fr);
    padding: 12px 12px;
    gap: 8px;
  }
  .product-tabs button,
  .brand-tabs button {
    min-height: 64px;
    font-size: 10px;
    padding: 6px;
  }
}
.product-tabs button.active {
  color: var(--navy-2);
  border-color: rgba(144, 205, 255, 0.74);
  background: linear-gradient(
    145deg,
    rgba(201, 236, 255, 0.88),
    rgba(242, 230, 255, 0.75)
  );
  box-shadow:
    0 12px 28px rgba(70, 118, 185, 0.15),
    inset 0 1px 0 #fff;
}
.product-info-layout {
  display: flex;
  flex-direction: column;
  margin: 28px var(--page-pad) 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}
.detail-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #eef5ff;
}
.detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(240, 247, 255, 0.8), transparent 45%);
}
.product-info-copy {
  padding: clamp(34px, 5vw, 70px);
}
.product-info-copy h1 {
  margin: 10px 0 8px;
  color: var(--navy);
  font:
    600 clamp(42px, 5vw, 69px)/0.95 Georgia,
    serif;
  letter-spacing: -0.055em;
}
.product-tagline {
  margin: 0 0 18px;
  color: #536786;
  font-size: 18px;
  line-height: 1.4;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.chip-row span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 99px;
  background: rgba(231, 239, 252, 0.72);
  color: #61708c;
  font-size: 9px;
  font-weight: 700;
}
.product-info-copy > p {
  color: #5d6c85;
  font-size: 13px;
  line-height: 1.7;
}
.usp-card {
  margin: 21px 0;
  padding: 17px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: rgba(238, 246, 255, 0.7);
}
.usp-card span {
  color: #6380af;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.usp-card p {
  margin: 7px 0 0;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.55;
}
.benefit-block h2 {
  margin: 28px 0 13px;
  color: var(--navy);
  font:
    600 25px/1 Georgia,
    serif;
}
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #4f607d;
  font-size: 12px;
  line-height: 1.45;
}
.check-list svg {
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  color: #2c917b;
  background: #e4f8f1;
}

.tab-heading {
  margin-bottom: 30px;
}
.tab-heading p {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ingredient-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}
.ingredient-card:hover {
  transform: translateY(-5px);
}
.ingredient-art {
  position: relative;
  height: 200px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--navy-2);
  background: radial-gradient(
    circle at 40% 40%,
    rgba(255, 255, 255, 0.95),
    rgba(186, 225, 255, 0.62) 42%,
    rgba(226, 201, 255, 0.48)
  );
}
.ingredient-art.art-1 {
  background: radial-gradient(
    circle at 55% 35%,
    #fff,
    rgba(254, 218, 184, 0.72) 45%,
    rgba(255, 234, 216, 0.6)
  );
}
.ingredient-art.art-2 {
  background: radial-gradient(
    circle at 50% 45%,
    #fff,
    rgba(188, 238, 224, 0.66) 45%,
    rgba(201, 223, 255, 0.55)
  );
}
.ingredient-art > span {
  z-index: 2;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 14px 34px rgba(75, 105, 168, 0.13),
    inset 0 1px 0 #fff;
  backdrop-filter: blur(10px);
}
.ingredient-art i {
  position: absolute;
  width: 125px;
  height: 125px;
  border: 1px solid rgba(82, 127, 193, 0.2);
  border-radius: 50%;
}
.ingredient-card > div:last-child {
  padding: 21px;
}
.ingredient-no {
  color: #8793aa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.ingredient-card h2 {
  margin: 7px 0;
  color: var(--navy);
  font:
    600 25px/1.05 Georgia,
    serif;
}
.ingredient-card p {
  min-height: 48px;
  margin: 0 0 16px;
  color: #69758c;
  font-size: 11px;
  line-height: 1.5;
}
.learn-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--navy-2);
  font-size: 11px;
  font-weight: 750;
}
.step-list {
  display: grid;
  gap: 14px;
}
.step-list article {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
}
.step-list article > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--navy-2);
  font:
    600 21px/1 Georgia,
    serif;
  background: linear-gradient(
    145deg,
    rgba(199, 230, 255, 0.84),
    rgba(242, 218, 255, 0.78)
  );
}
.step-list h2 {
  margin: 4px 0 7px;
  color: var(--navy);
  font:
    600 22px/1 Georgia,
    serif;
}
.step-list p {
  margin: 0;
  color: #5e6d85;
  font-size: 13px;
  line-height: 1.6;
}
.audience-card,
.source-caution {
  margin-top: 18px;
  padding: 18px 21px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background: rgba(235, 244, 255, 0.65);
  color: #60708a;
}
.audience-card strong {
  color: var(--navy);
  font-size: 12px;
}
.audience-card p,
.source-caution p {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.55;
}
.related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}
.accordion {
  display: grid;
  gap: 12px;
}
.accordion details {
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease;
}
.accordion details[open] {
  background: rgba(255, 255, 255, 0.78);
}
.accordion summary {
  padding: 20px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary span {
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.accordion details[open] summary span {
  transform: rotate(45deg);
  color: var(--navy-2);
}
.accordion details p {
  margin: 0;
  padding: 0 23px 22px;
  color: #4d5d78;
  font-size: 13px;
  line-height: 1.75;
}
.accordion details p strong { color: var(--navy); }
.accordion details p em { color: var(--navy-2); font-style: normal; font-weight: 600; }
.panel-empty {
  margin-top: 20px;
}

.ingredient-detail-hero {
  margin: 36px var(--page-pad) 0;
  padding: clamp(30px, 5vw, 65px);
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 55px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.61);
  box-shadow: var(--shadow);
}
.ingredient-detail-hero > div:last-child > p {
  color: #5d6c85;
  line-height: 1.75;
}
.ingredient-hero-art {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: var(--navy-2);
  background: radial-gradient(
    circle at 35% 25%,
    #fff,
    rgba(180, 225, 255, 0.6) 48%,
    rgba(242, 197, 255, 0.5)
  );
  box-shadow:
    inset -20px -20px 45px rgba(74, 116, 201, 0.12),
    0 20px 55px rgba(65, 98, 170, 0.16);
}
.ingredient-hero-art i,
.ingredient-hero-art b {
  position: absolute;
  border: 1px solid rgba(70, 109, 183, 0.2);
  border-radius: 50%;
}
.ingredient-hero-art i {
  width: 72%;
  height: 72%;
}
.ingredient-hero-art b {
  width: 42%;
  height: 42%;
}

.search-page-head {
  padding: 74px var(--page-pad) 34px;
}
.search-page-field {
  width: min(760px, 100%);
  margin-top: 32px;
  border-radius: 99px;
  padding-left: 23px;
}
.search-page-field input {
  font-size: 15px;
}
.search-page-field button {
  border: 0;
  background: transparent;
  color: #71809b;
  font-size: 24px;
  cursor: pointer;
}
.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 15px 7px;
  color: #7b879d;
  font-size: 10px;
}
.search-suggestions button {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
  color: #536785;
  font-size: 10px;
  cursor: pointer;
}
.search-results {
  padding: 10px var(--page-pad) 45px;
}
.search-idle {
  min-height: 330px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  color: #70809a;
}
.search-idle > span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 25px;
  color: var(--navy-2);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
}
.search-idle h2,
.search-idle h1 {
  margin: 18px 0 7px;
  color: var(--navy);
  font:
    600 32px/1 Georgia,
    serif;
}
.search-idle p {
  max-width: 460px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}
.result-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 25px;
  color: #70809a;
}
.result-summary span {
  color: var(--navy);
  font:
    600 28px/1 Georgia,
    serif;
}
.result-summary p {
  margin: 0;
  font-size: 12px;
}
.result-group {
  margin-bottom: 45px;
}
.result-group > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--navy);
  font:
    600 25px/1 Georgia,
    serif;
}
.result-group > h2 span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  color: #6d7d99;
  font: 700 10px/1 sans-serif;
}
.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.compact-grid .brand-tile {
  min-height: 170px;
}
.compact-grid .brand-tile img {
  min-height: 170px;
}
.ingredient-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ingredient-chip-grid a {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
}
.ingredient-chip-grid > a > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e8f3ff;
  color: var(--navy-2);
}
.ingredient-chip-grid strong,
.ingredient-chip-grid small {
  display: block;
}
.ingredient-chip-grid strong {
  color: var(--navy);
  font-size: 12px;
}
.ingredient-chip-grid small {
  margin-top: 3px;
  color: #75829a;
  font-size: 9px;
}
.primary-button {
  margin-top: 20px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 99px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 18px, 900px);
    margin: 9px auto;
    border-radius: 30px;
  }
  .brand-grid {
    gap: 13px;
  }
  .brand-tile {
    min-height: 175px;
  }
  .brand-tile img {
    min-height: 175px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-info-layout {
    grid-template-columns: 1fr;
  }
  .detail-visual,
  .detail-visual img {
    min-height: 430px;
  }
  .ingredient-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ingredient-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --radius: 22px;
  }
  body {
    background: #edf3ff;
  }
  .app-shell {
    --page-pad: 17px;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .topbar {
    min-height: 72px;
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .round-button {
    width: 43px;
    height: 43px;
  }
  .screen-title {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .top-actions {
    gap: 5px;
  }
  .home-hero {
    min-height: 610px;
    padding-top: 56px;
    justify-content: flex-start;
  }
  .hero-copy {
    width: 100%;
  }
  .home-hero h1 {
    font-size: clamp(51px, 16vw, 76px);
  }
  .home-hero p {
    font-size: 17px;
  }
  .hero-visual-stack {
    inset: 245px -85px 80px 40%;
    opacity: 0.72;
  }
  .float-card {
    width: 275px;
    border-radius: 26px;
  }
  .orb-one {
    right: -20px;
    bottom: 20%;
    width: 95px;
    height: 95px;
  }
  .orb-two {
    right: 23%;
    top: 40%;
    width: 55px;
    height: 55px;
  }
  .hero-ring {
    width: 330px;
    height: 330px;
    right: -150px;
    top: 36%;
  }
  .hero-search {
    width: 100%;
    min-height: 62px;
    margin-top: auto;
  }
  .hero-stats {
    gap: 13px;
  }
  .home-brands,
  .catalog-section,
  .product-catalog,
  .tab-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .section-heading {
    align-items: start;
  }
  .section-heading h2 {
    font-size: 38px;
  }
  .section-heading > a {
    white-space: nowrap;
    margin-top: 12px;
    font-size: 10px;
  }
  .brand-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .brand-tile,
  .compact-grid .brand-tile {
    min-height: 150px;
    border-radius: 19px;
  }
  .brand-tile img,
  .compact-grid .brand-tile img {
    min-height: 150px;
  }
  .brand-tile-copy {
    left: 13px;
    right: 37px;
    bottom: 13px;
  }
  .brand-tile-copy strong {
    font-size: 15px;
  }
  .brand-tile-copy small {
    font-size: 8px;
  }
  .brand-tile-index {
    top: 10px;
    left: 10px;
  }
  .tile-arrow {
    width: 28px;
    height: 28px;
    right: 10px;
    bottom: 10px;
  }
  .source-note {
    align-items: flex-start;
  }
  .page-intro {
    padding-top: 48px;
  }
  .page-intro h1,
  .search-page-head h1 {
    font-size: 47px;
  }
  .brand-hero {
    min-height: 380px;
    margin-top: 17px;
    border-radius: 25px;
  }
  .brand-hero-wash {
    background: linear-gradient(
      0deg,
      rgba(248, 251, 255, 0.95),
      rgba(248, 251, 255, 0.25)
    );
  }
  .brand-hero-copy {
    width: 100%;
    padding: 205px 24px 32px;
  }
  .brand-hero-copy h1 {
    font-size: 43px;
  }
  .brand-hero-copy p {
    margin-bottom: 0;
    font-size: 13px;
  }
  .brand-hero-count {
    width: 72px;
    height: 72px;
    right: 16px;
    top: 16px;
    bottom: auto;
  }
  .brand-overview {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .select-pill select {
    min-width: 125px;
  }
  .product-grid,
  .related-grid {
    gap: 10px;
  }
  .product-card {
    border-radius: 18px;
  }
  .product-card-copy {
    padding: 13px 28px 16px 13px;
  }
  .product-card-copy h3 {
    font-size: 16px;
  }
  .product-card-copy p {
    font-size: 9px;
  }
  .product-arrow {
    right: 10px;
    bottom: 17px;
  }
  .product-tabs {
    top: 72px;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
    overflow-x: auto;
  }
  .product-tabs button {
    min-width: 76px;
    min-height: 74px;
    padding: 6px;
    font-size: 8px;
  }
  .product-info-layout {
    margin-top: 16px;
    border-radius: 24px;
  }
  .detail-visual,
  .detail-visual img {
    min-height: 0;
  }
  .product-info-copy {
    padding: 28px 24px;
  }
  .product-info-copy h1 {
    font-size: 43px;
  }
  .product-tagline {
    font-size: 16px;
  }
  .ingredient-grid {
    grid-template-columns: 1fr;
  }
  .ingredient-art {
    height: 180px;
  }
  .step-list article {
    grid-template-columns: 53px 1fr;
    gap: 14px;
    padding: 18px;
  }
  .step-list article > span {
    width: 49px;
    height: 49px;
    border-radius: 15px;
  }
  .ingredient-detail-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ingredient-hero-art {
    width: min(280px, 100%);
    margin: 0 auto;
  }
  .ingredient-chip-grid {
    grid-template-columns: 1fr;
  }
  .bottom-nav {
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }
  .brand-tile,
  .brand-tile img {
    min-height: 175px;
  }
  .product-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    display: none;
  }
  .section-heading {
    display: block;
  }
  .section-heading > a,
  .select-pill {
    display: inline-flex;
    margin-top: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* === RAY visual polish (post-clone overrides) === */
/* ============================================================
   RAY Knowledge — Visual polish overrides (post-clone)
   Light glassmorphism modern futuristic — purple/pink accents
   ============================================================ */

/* === Token overrides — light theme + soft purple-pink accent === */
:root {
  --bg-base: #f3f7ff;
  --ink: #1a1f4e;
  --ink-soft: #2a2f5e;
  --text: #1a1f4e;
  --text-2: #4a5180;
  --text-3: #6a6e8c;
  --accent: #8b5cf6;
  --accent-2: #e8408f;
  --line: rgba(120, 100, 200, 0.16);
  --line-2: rgba(120, 100, 200, 0.28);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-2: rgba(255, 255, 255, 0.85);
  --shadow:
    0 20px 60px rgba(168, 130, 220, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-soft: 0 10px 30px rgba(168, 130, 220, 0.1);
  --shadow-md: 0 14px 40px rgba(168, 130, 220, 0.14);
}

* {
  font-family:
    "Inter",
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
h1,
h2,
h3,
h4,
h5,
.display,
[class*="display"] {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* === Body — light bg + soft orbs === */
body {
  background:
    radial-gradient(
      circle at 12% -6%,
      rgba(255, 180, 220, 0.55),
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 8%,
      rgba(190, 200, 255, 0.55),
      transparent 42%
    ),
    radial-gradient(
      circle at 50% 95%,
      rgba(220, 195, 255, 0.45),
      transparent 50%
    ),
    linear-gradient(160deg, #f3f7ff 0%, #f9f0ff 60%, #fdf0f6 100%);
  background-attachment: fixed;
}

/* === App shell === */
.app-shell {
  background:
    radial-gradient(
      circle at 88% -2%,
      rgba(232, 64, 143, 0.16),
      transparent 32rem
    ),
    radial-gradient(
      circle at -8% 0%,
      rgba(139, 92, 246, 0.14),
      transparent 30rem
    ),
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.92),
      rgba(248, 240, 255, 0.65)
    );
  box-shadow:
    0 32px 100px rgba(120, 80, 200, 0.15),
    inset 0 1px 0 #fff;
  border-color: rgba(255, 255, 255, 0.9);
}

/* === Topbar === */
.topbar {
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(120, 100, 200, 0.16);
  backdrop-filter: blur(20px) saturate(180%);
}
.home-topbar {
  background: transparent;
  border: 0;
}

/* === Round button === */
.round-button {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(120, 100, 200, 0.15);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(120, 100, 200, 0.08);
  transition: all 0.25s;
}
.round-button:hover {
  background: #fff;
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.18);
  transform: translateY(-1px);
}

/* === Hero — purple pink gradient === */
.home-hero {
  position: relative;
  border-radius: 32px;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 180, 220, 0.55),
      transparent 55%
    ),
    radial-gradient(
      circle at 10% 95%,
      rgba(180, 160, 255, 0.55),
      transparent 55%
    ),
    linear-gradient(135deg, #d8c8ff 0%, #e6c8f7 35%, #f5c8e8 70%, #ffd0c8 100%);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 24px 60px -16px rgba(168, 130, 220, 0.35),
    0 6px 18px rgba(120, 100, 200, 0.1);
  overflow: hidden;
  isolation: isolate;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='.7' opacity='.55'%3E%3Ccircle cx='40' cy='50' r='12'/%3E%3Ccircle cx='80' cy='30' r='8'/%3E%3Ccircle cx='150' cy='60' r='14'/%3E%3Ccircle cx='170' cy='110' r='10'/%3E%3Ccircle cx='60' cy='130' r='9'/%3E%3Cline x1='40' y1='50' x2='80' y2='30'/%3E%3Cline x1='80' y1='30' x2='150' y2='60'/%3E%3Cline x1='150' y1='60' x2='170' y2='110'/%3E%3Cline x1='170' y1='110' x2='60' y2='130'/%3E%3Cline x1='60' y1='130' x2='40' y2='50'/%3E%3Cpath d='M30 165c5-8 14-8 19 0s14 8 19 0'/%3E%3Ccircle cx='105' cy='170' r='4'/%3E%3Ccircle cx='120' cy='180' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 360px;
  background-position: right 10px top 10px;
  background-repeat: no-repeat;
  opacity: 0.85;
  pointer-events: none;
}
.hero-copy h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}
.hero-copy h1 span {
  color: var(--ink);
}
.hero-copy h1 em {
  color: var(--accent-2);
  font-style: normal;
}
.hero-copy p {
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-kicker {
  background: rgba(255, 255, 255, 0.55) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(10px) !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
}

/* === Hero search bar === */
.hero-search {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 6px 22px rgba(120, 100, 200, 0.12) !important;
  border-radius: 18px !important;
}
.hero-search input {
  color: var(--ink) !important;
}
.hero-search button {
  background: linear-gradient(135deg, #8b5cf6, #e8408f) !important;
  color: #fff !important;
  border-radius: 14px !important;
}

/* === Hero stats === */
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stats > span {
  color: var(--ink) !important;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.hero-stats strong {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--ink);
  display: block;
}

/* === Section heading === */
.section-heading h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.section-heading .section-kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
}
.section-heading a {
  color: var(--ink);
  font-weight: 600;
}

/* === Brand tile === */
.brand-tile {
  position: relative;
  aspect-ratio: 4 / 5 !important;
  border-radius: 22px !important;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px !important;
  background: var(--glass) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 14px rgba(120, 100, 200, 0.08);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand-tile:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 40px -8px rgba(120, 100, 200, 0.25);
  border-color: rgba(255, 255, 255, 0.8) !important;
}
.brand-tile img {
  position: absolute !important;
  inset: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  opacity: 0.35;
  z-index: -1;
  transition: opacity 0.35s;
}
.brand-tile:hover img {
  opacity: 0.55;
}
.brand-tile::after {
  content: "" !important;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(255, 255, 255, 0.88) 100%
  );
}
.brand-tile-index {
  position: absolute !important;
  top: 14px !important;
  right: 16px !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  color: rgba(26, 31, 78, 0.65) !important;
  background: rgba(255, 255, 255, 0.55);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.brand-tile-copy {
  position: relative;
  z-index: 1;
  text-align: left;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-tile-copy strong {
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 700;
  font-size: 15px !important;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-tile-copy small {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.tile-arrow {
  position: absolute !important;
  top: 14px !important;
  left: 16px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.6) !important;
  color: var(--ink) !important;
  display: grid !important;
  place-items: center !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: rotate(180deg);
}
.brand-tile-shine {
  display: none;
}

/* === Bottom nav === */
.bottom-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(120, 100, 200, 0.15);
  box-shadow: 0 12px 32px rgba(120, 100, 200, 0.14);
}
.bottom-nav a {
  color: var(--ink-soft);
}
.bottom-nav a:hover {
  color: var(--ink);
  background: rgba(139, 92, 246, 0.08);
}
.bottom-nav a.active {
  background: linear-gradient(135deg, #8b5cf6, #e8408f);
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

/* === Inputs === */
input,
select,
textarea {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(120, 100, 200, 0.18);
  color: var(--ink);
  border-radius: 14px;
}
input::placeholder {
  color: var(--text-3);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
  background: #fff;
}

/* === Footer === */
.app-shell footer,
.screen > footer,
.screen-foot {
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
}
.app-shell footer strong,
.screen > footer strong {
  color: var(--ink);
}

/* === Misc === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.25);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.45);
}
::selection {
  background: rgba(232, 64, 143, 0.25);
  color: var(--ink);
}

.section-card,
.screen-card,
.card {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(120, 100, 200, 0.15) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(120, 100, 200, 0.08);
  border-radius: 20px;
}

/* === Polish: home shortcut button + hide bottom-nav === */
.round-button.home-shortcut {
  background: linear-gradient(135deg, #8b5cf6, #e8408f) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}
.round-button.home-shortcut:hover {
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}
.bottom-nav {
  display: none !important;
}

/* === Brand tile landscape 16:9 — like mockup reference === */
.brand-tile {
  position: relative !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 18px !important;
  overflow: hidden;
  display: block !important;
  padding: 0 !important;
  background: linear-gradient(135deg, #e8e0ff, #ffe0f0) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 14px rgba(120, 100, 200, 0.08) !important;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  isolation: isolate;
}
.brand-tile:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 32px -6px rgba(120, 100, 200, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}
.brand-tile img {
  position: absolute !important;
  inset: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  z-index: -2;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand-tile:hover img {
  transform: scale(1.06);
}
.brand-tile::after {
  content: "" !important;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(5, 8, 30, 0.78) 100%
  );
}
.brand-tile-index {
  position: absolute !important;
  top: 12px !important;
  left: 14px !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  color: rgba(26, 31, 78, 0.65) !important;
  background: rgba(255, 255, 255, 0.85) !important;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  z-index: 2;
}
.brand-tile-copy {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 16px 18px !important;
  z-index: 1;
  text-align: left;
  color: #fff;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px;
  background: transparent !important;
}
.brand-tile-copy strong {
  font-family: "Inter", sans-serif !important;
  font-weight: 800 !important;
  font-size: 17px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.brand-tile-copy small {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.35 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile-arrow {
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.85) !important;
  color: var(--ink) !important;
  display: grid !important;
  place-items: center !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: rotate(180deg) !important;
  z-index: 2;
  transition: all 0.35s;
}
.brand-tile:hover .tile-arrow {
  background: linear-gradient(135deg, #8b5cf6, #e8408f);
  color: #fff;
  transform: rotate(180deg) scale(1.05) !important;
}
.brand-tile-shine {
  display: none !important;
}

/* Brand-tile grid responsive — 3 columns desktop, 2 mobile */
.home-brands-tiles,
[class*="brands-grid"],
.brand-tiles-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}
@media (max-width: 900px) {
  .home-brands-tiles,
  [class*="brands-grid"],
  .brand-tiles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 520px) {
  .home-brands-tiles,
  [class*="brands-grid"],
  .brand-tiles-grid {
    grid-template-columns: 1fr !important;
  }
}

/* === Hero with user uploaded hero image === */
.home-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(232, 64, 143, 0.22),
      transparent 35%
    ),
    radial-gradient(
      circle at 8% 95%,
      rgba(139, 92, 246, 0.22),
      transparent 40%
    ),
    linear-gradient(135deg, #f3e7ff 0%, #ffe0ee 60%, #fce5cf 100%);
}
.hero-bg-image {
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background-image: url("/assets/brands/img/hero%20Science%20Behind%20Beauty.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  opacity: 0.35;
  filter: saturate(1.05);
}
.home-hero::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  pointer-events: none;
}
.hero-copy {
  max-width: 100%;
  padding-right: 0;
}
.hero-visual-stack {
  display: none !important;
}
.float-card {
  display: none !important;
}

/* Hero copy h1 with strong color split per word */
.hero-copy h1 span {
  color: #1a1f4e;
}
.hero-copy h1 em {
  color: #e8408f;
  font-style: normal;
}

/* Layout: hero-copy on left, optional visual area right */
@media (min-width: 900px) {
  .home-hero {
    display: grid !important;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 32px;
    padding: 56px var(--page-pad) !important;
  }
  .hero-copy {
    grid-column: 1;
  }
  .hero-search {
    grid-column: 1 / -1;
    max-width: 560px;
  }
  .hero-stats {
    grid-column: 1 / -1;
  }
}

/* === Our Brands grid 2-column (per user request) === */
.brand-grid,
[class*="brands-grid"],
.home-brands-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}
@media (max-width: 720px) {
  .brand-grid,
  [class*="brands-grid"],
  .home-brands-tiles {
    grid-template-columns: 1fr !important;
  }
}

/* === Brand tile cleanup: NO back arrow, NO top white pill === */
.tile-arrow {
  display: none !important;
}
.brand-tile-index {
  display: none !important;
}

/* Tile visual: bigger image, simpler overlay */
.brand-tile {
  aspect-ratio: 16 / 9 !important;
  border-radius: 18px !important;
  position: relative !important;
  overflow: hidden;
  display: block !important;
  padding: 0 !important;
  background: linear-gradient(135deg, #e8e0ff, #ffe0f0) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 14px rgba(120, 100, 200, 0.08) !important;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  isolation: isolate;
}
.brand-tile:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 32px -6px rgba(120, 100, 200, 0.25) !important;
}
.brand-tile img {
  position: absolute !important;
  inset: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  z-index: -2;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand-tile:hover img {
  transform: scale(1.06);
}
.brand-tile::after {
  content: "" !important;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(5, 8, 30, 0.82) 100%
  );
}
.brand-tile-copy {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 16px 20px !important;
  z-index: 1;
  text-align: left;
  color: #fff;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px;
}
.brand-tile-copy strong {
  font:
    800 17px/1.2 Inter,
    sans-serif !important;
  text-transform: uppercase;
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  letter-spacing: 0.02em;
}
.brand-tile-copy small {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brand-tile-shine {
  display: none !important;
}

/* === Admin Panel — clean professional layout === */
.admin-mode {
  --accent: #8b5cf6;
  --accent-2: #e8408f;
  --adm-bg: #f7f4ff;
  --adm-card: #ffffff;
  --adm-border: rgba(120, 100, 200, 0.15);
  --adm-shadow: 0 2px 12px rgba(120, 100, 200, 0.08);
  --adm-shadow-md: 0 4px 20px rgba(120, 100, 200, 0.12);
}

.adm-shell {
  padding: 32px var(--page-pad) 48px;
}

/* Header */
.adm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--adm-border);
}
.adm-header h2 {
  font:
    700 24px/1 "Playfair Display",
    Georgia,
    serif;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.adm-header-actions {
  display: flex;
  gap: 10px;
}

/* Tabs */
.adm-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 16px;
  margin-bottom: 28px;
  width: max-content;
  max-width: 100%;
  flex-wrap: wrap;
  box-shadow: var(--adm-shadow);
}
.adm-tab {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
  transition: all 0.25s;
  border: none;
  background: transparent;
  cursor: pointer;
}
.adm-tab:hover {
  color: var(--ink);
  background: rgba(139, 92, 246, 0.08);
}
.adm-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}
.adm-body {
  padding: 0;
}

/* Stats */
.adm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.adm-stat {
  padding: 24px;
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--adm-shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.adm-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--adm-shadow-md);
}
.adm-stat .num {
  font:
    800 32px/1 "Playfair Display",
    Georgia,
    serif;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.adm-stat .lbl {
  font: 600 12px/1 sans-serif;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
  display: block;
}

/* Cards */
.adm-card {
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--adm-shadow);
}
.adm-card h3 {
  font:
    700 22px/1.2 "Playfair Display",
    Georgia,
    serif;
  color: var(--ink);
  margin-bottom: 20px;
}
.adm-card p {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 14px;
}

/* Overview list */
.adm-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.adm-list li {
  padding: 16px 20px;
  background: rgba(139, 92, 246, 0.04);
  border-radius: 14px;
  font-size: 14px;
  color: var(--ink);
  border-left: 4px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.adm-list li strong {
  color: var(--accent);
  min-width: 90px;
}
.adm-list li span {
  color: var(--text-2);
}

/* Deploy mode */
.adm-deploy-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.adm-mode-card {
  padding: 24px;
  background: rgba(139, 92, 246, 0.03);
  border: 1px solid var(--adm-border);
  border-radius: 18px;
}
.adm-mode-card h4 {
  font:
    700 16px/1.3 "Playfair Display",
    Georgia,
    serif;
  margin-bottom: 10px;
  color: var(--ink);
}
.adm-mode-card p {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
}
.adm-mode-card p.adm-hint {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 8px;
  margin-bottom: 0;
}
.adm-mode-card code {
  padding: 2px 8px;
  background: rgba(139, 92, 246, 0.08);
  border-radius: 6px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

/* Login */
.adm-login {
  min-height: 70vh;
  display: grid;
  place-items: center;
}
.adm-login-card {
  width: min(440px, 100%);
  padding: 44px 40px;
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 28px;
  text-align: center;
  box-shadow: var(--adm-shadow-md);
}
.adm-login-card h2 {
  font:
    700 28px/1.2 "Playfair Display",
    Georgia,
    serif;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.adm-login-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.adm-login-card input {
  padding: 14px 18px;
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  text-align: center;
}
.adm-login-card input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.adm-hint {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-3);
}
.adm-hint code {
  padding: 3px 10px;
  background: rgba(139, 92, 246, 0.08);
  border-radius: 6px;
  font-weight: 600;
  color: var(--accent);
}

/* Buttons */
.adm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}
.adm-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--adm-shadow-md);
}
.adm-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
  padding: 13px 28px;
  font-size: 15px;
}
.adm-btn.primary:hover {
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}
.adm-btn.danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.2);
}
.adm-btn.danger:hover {
  background: #fee;
}
.adm-btn.ghost {
  background: transparent;
  border-color: var(--adm-border);
}
.adm-btn.small {
  padding: 8px 16px;
  font-size: 13px;
}

/* Status */
.adm-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-2);
  background: rgba(139, 92, 246, 0.04);
  border: 1px solid var(--adm-border);
}
.adm-status.ok {
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.2);
}

/* Export preview */
.adm-pre {
  margin-top: 16px;
  padding: 18px;
  background: #f8f7ff;
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  font: 12px/1.5 monospace;
  color: var(--ink);
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ===== Admin: Editor layout ===== */

/* Selector row (brand/product picker) */
.adm-selector-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px;
  background: rgba(139, 92, 246, 0.03);
  border-radius: 20px;
  border: 1px solid var(--adm-border);
}
.adm-selector-left,
.adm-selector-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adm-selector-row label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 600 12px/1 sans-serif;
  color: var(--text-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.adm-selector-row select {
  padding: 13px 16px;
  border: 1px solid var(--adm-border);
  background: var(--adm-card);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  width: 100%;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
}
.adm-selector-row select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Product list select */
#adm-product-select {
  min-height: 320px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  padding: 8px 12px !important;
}

/* Flat card */
.adm-card-flat {
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 24px;
  box-shadow: var(--adm-shadow);
  overflow: hidden;
}
.adm-card-flat > h3 {
  padding: 28px 32px 0;
  font:
    700 22px/1.2 "Playfair Display",
    Georgia,
    serif;
  color: var(--ink);
  margin-bottom: 0;
}

/* Panel grid */
.adm-panel-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  margin-top: 24px;
}
.adm-panel-col {
  padding: 0 32px 32px;
}
.adm-panel-col + .adm-panel-col {
  border-left: 1px solid var(--adm-border);
  background: rgba(139, 92, 246, 0.015);
}
.adm-panel-image {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Section head */
.adm-section-head {
  padding: 24px 32px;
  border-bottom: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(139, 92, 246, 0.02);
}
.adm-section-head h3 {
  font:
    700 20px/1.2 "Playfair Display",
    Georgia,
    serif;
  color: var(--ink);
  margin: 0;
}
.adm-section-head h3 span {
  color: var(--accent);
  margin-left: 8px;
}
.adm-section-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Field groups */
.adm-field-group {
  margin-top: 28px;
}
.adm-field-group:first-child {
  margin-top: 0;
}
.adm-field-group h4 {
  font: 700 14px/1 sans-serif;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}
.adm-field-group h4::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}
.adm-sub-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--adm-border);
}

/* Labels & inputs */
.adm-field-group label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font: 500 13px/1.4 sans-serif;
  color: var(--text-2);
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
}
.adm-field-group label .adm-label-sub {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
  margin-top: -2px;
}
.adm-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.adm-field-group input[type="text"],
.adm-field-group input[type="number"],
.adm-field-group input[type="email"],
.adm-field-group input[type="url"],
.adm-field-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--adm-border);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  width: 100%;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  line-height: 1.5;
}
.adm-field-group input[type="text"]:focus,
.adm-field-group input[type="number"]:focus,
.adm-field-group input[type="email"]:focus,
.adm-field-group input[type="url"]:focus,
.adm-field-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
  background: #fff;
}
.adm-field-group input::placeholder,
.adm-field-group textarea::placeholder {
  color: #a0a4c0;
}
.adm-field-group textarea {
  resize: vertical;
  min-height: 80px;
}
.req {
  color: var(--accent-2);
  font-size: 14px;
}

/* Dropzone */
.adm-dz {
  border: 2px dashed var(--adm-border);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
  background: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
  position: relative;
}
.adm-dz:hover,
.adm-dz.drag-over {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.05);
  border-style: solid;
}
.adm-dz-input {
  display: none;
}
.adm-dz-preview {
  width: 100%;
  min-height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adm-dz-preview img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: none;
}
.adm-dz-preview img.is-loaded {
  display: block;
}
.adm-dz-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 24px;
  color: var(--text-3);
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}
.adm-dz-placeholder .adm-dz-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
}
.adm-dz small {
  font-size: 12px;
  color: var(--text-3);
}

/* FAQ cards */
.adm-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.adm-faq-item {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 12px;
  align-items: start;
  padding: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid var(--adm-border);
  border-radius: 16px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.adm-faq-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.06);
}
.adm-faq-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.adm-faq-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.adm-faq-fields input,
.adm-faq-fields textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--adm-border);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  width: 100%;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  line-height: 1.5;
}
.adm-faq-fields input:focus,
.adm-faq-fields textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}
.adm-faq-del {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(220, 38, 38, 0.25);
  background: rgba(254, 238, 238, 0.8);
  color: #b91c1c;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.adm-faq-del:hover {
  background: #fee;
  border-color: #dc2626;
  transform: scale(1.05);
}

/* Collaboration admin items */
.adm-collab-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.adm-collab-item {
  display: grid;
  grid-template-columns: 100px 1fr 36px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid var(--adm-border);
  border-radius: 14px;
}
.adm-collab-photo-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.adm-collab-thumb {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--adm-border);
  background: linear-gradient(135deg, #e8e0ff, #ffe0f0);
}
.adm-collab-thumb[src=""] {
  display: block;
}
.adm-collab-upload {
  width: 100%;
}
.adm-collab-upload .adm-btn {
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
}
.adm-collab-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.adm-collab-fields input {
  padding: 11px 14px;
  border: 1.5px solid var(--adm-border);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  width: 100%;
}
.adm-collab-fields input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Tile preview */
.adm-tile-preview {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--adm-border);
  margin-top: 12px;
}
.adm-tile-inner {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: #eef4ff;
  position: relative;
}
.adm-tile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.adm-tile-overlay strong {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.adm-tile-overlay small {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

/* === Cover image upload area — positioned at top of admin form, full-width === */
.adm-cover-top {
  display: block;
  margin-bottom: 24px;
  padding: 24px 24px 26px;
  background: linear-gradient(135deg, rgba(238, 246, 255, 0.8), rgba(248, 235, 255, 0.7));
  border: 1px solid rgba(155, 140, 240, 0.28);
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(70, 110, 180, 0.12);
}
.adm-cover-top h4 {
  margin: 0 0 6px;
}
.adm-cover-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  margin-top: 16px;
  align-items: stretch;
}
.adm-cover-image {
  display: flex;
  flex-direction: column;
}
.adm-cover-image .adm-dz {
  flex: 1;
  min-height: 280px;
}
.adm-cover-grid .adm-tile-preview {
  margin-top: 0;
  border-radius: 18px;
  flex: 1;
}
.adm-cover-grid .adm-tile-inner {
  height: 100%;
  min-height: 280px;
}
@media (max-width: 720px) {
  .adm-cover-grid {
    grid-template-columns: 1fr;
  }
  .adm-cover-image .adm-dz,
  .adm-cover-grid .adm-tile-inner {
    min-height: 200px;
  }
}

/* Empty state */
.adm-empty-state {
  padding: 60px 32px;
  text-align: center;
  color: var(--text-3);
  font-size: 15px;
}

/* Img row (legacy) */
.adm-img-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.adm-img-preview {
  width: 90px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--adm-border);
}

/* Responsive */
@media (max-width: 1100px) {
  .adm-panel-grid {
    grid-template-columns: 1fr;
  }
  .adm-panel-col + .adm-panel-col {
    border-left: none;
    border-top: 1px solid var(--adm-border);
    padding-top: 28px;
  }
}
@media (max-width: 900px) {
  .adm-selector-row {
    grid-template-columns: 1fr;
  }
  .adm-field-row {
    grid-template-columns: 1fr;
  }
  .adm-deploy-mode {
    grid-template-columns: 1fr;
  }
  .adm-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .adm-shell {
    padding: 20px var(--page-pad) 40px;
  }
  .adm-section-head {
    padding: 18px 20px;
  }
  .adm-panel-col {
    padding: 0 20px 24px;
  }
  .adm-card-flat > h3 {
    padding: 20px 20px 0;
  }
  .adm-section-actions {
    flex-direction: column;
  }
  .adm-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* === Brand Tabs (Overview / Kolaborasi / FAQ) — same UI as product-tabs === */
.brand-tabs {
  position: sticky;
  z-index: 30;
  top: 88px;
  display: grid;
  grid-template-columns: repeat(var(--brand-tabs-count, 3), minmax(0, 1fr));
  gap: 12px;
  padding: 16px var(--page-pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(245, 249, 255, 0.78);
  backdrop-filter: blur(24px);
}
.brand-tabs button {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  color: #6c7890;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.22s ease;
}
.brand-tabs button:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}
.brand-tabs button.active {
  color: var(--navy-2);
  border-color: rgba(144, 205, 255, 0.74);
  background: linear-gradient(
    145deg,
    rgba(201, 236, 255, 0.88),
    rgba(242, 230, 255, 0.75)
  );
  box-shadow:
    0 12px 28px rgba(70, 118, 185, 0.15),
    inset 0 1px 0 #fff;
}
.brand-tabs button svg {
  flex-shrink: 0;
}
.brand-tab-content {
  padding: 28px 0 60px;
}
.brand-tab-pane {
  display: none;
  flex-direction: column;
  gap: 22px;
  padding: 0 var(--page-pad);
}

/* Tab panes — show only the active one */
.brand-tab-pane.is-active {
  display: flex;
}

/* Signature Ingredient (inside Overview) */
.brand-signature {
  margin: 0;
  padding: clamp(28px, 4vw, 50px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
}
.sig-art {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 25%,
    #fff,
    rgba(180, 225, 255, 0.6) 48%,
    rgba(242, 197, 255, 0.5)
  );
  color: var(--accent);
  box-shadow:
    inset -16px -18px 36px rgba(74, 116, 201, 0.1),
    0 16px 40px rgba(65, 98, 170, 0.14);
}
.sig-art i {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 1px solid rgba(70, 109, 183, 0.2);
  border-radius: 50%;
}
.sig-body h2 {
  margin: 10px 0 8px;
  color: var(--navy);
  font:
    600 clamp(26px, 3vw, 40px)/1 Georgia,
    serif;
  letter-spacing: -0.03em;
}
.sig-body p {
  margin: 0;
  color: #4a5975;
  font-size: 14px;
  line-height: 1.65;
  max-width: 720px;
}

/* Collaboration section */
.collab-head {
  margin: 8px 0 4px;
}
.collab-head h2 {
  margin: 8px 0 6px;
  color: var(--navy);
  font:
    600 clamp(32px, 4vw, 50px)/1 Georgia,
    serif;
  letter-spacing: -0.035em;
}
.collab-head p {
  margin: 0;
  color: #5d6e8a;
  font-size: 14px;
  line-height: 1.6;
  max-width: 640px;
}
.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 8px 0 0;
}
.collab-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 14px 36px rgba(70, 110, 180, 0.12),
    inset 0 1px 0 #fff;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.collab-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 48px rgba(70, 110, 180, 0.18),
    inset 0 1px 0 #fff;
}
.collab-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e0ff, #ffe0f0);
}
.collab-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.collab-meta {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.collab-meta strong {
  color: var(--navy);
  font:
    600 16px/1.3 Inter,
    sans-serif;
  letter-spacing: -0.01em;
}
.collab-meta small {
  color: #75829a;
  font-size: 12px;
  line-height: 1.4;
}

/* Brand FAQ section */
.brand-faq-head {
  margin: 8px 0 4px;
}
.brand-faq-head h2 {
  margin: 8px 0 0;
  color: var(--navy);
  font:
    600 clamp(28px, 3.5vw, 42px)/1 Georgia,
    serif;
  letter-spacing: -0.03em;
}

/* === Product 16:9 vertical layout === */
.product-info-layout .detail-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 100%;
}
.product-info-layout .detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info-layout .product-info-copy {
  padding: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 64px);
}

/* Responsive */
@media (max-width: 720px) {
  .brand-tabs {
    top: 72px;
    margin: 16px var(--page-pad) 0;
    padding: 6px;
  }
  .brand-tabs button {
    min-height: 38px;
    padding: 0 16px;
    font-size: 12px;
  }
  .brand-signature {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }
  .sig-art {
    width: 96px;
    height: 96px;
  }
  .collab-grid {
    grid-template-columns: 1fr;
  }
}
