/* Brand landing (/brands/*): zzan.bio theme CSS, copied verbatim from zzan-next-cloudflare-pages/src/app/globals.css. BioCube additions at the end. */
:root {
  --color-background: #ffffff;
  --color-foreground: #121212;
  --color-foreground-75: rgb(18 18 18 / 75%);
  --color-foreground-60: rgb(18 18 18 / 60%);
  --color-foreground-35: rgb(18 18 18 / 35%);
  --color-border: rgb(18 18 18 / 12%);
  --color-surface: #f7f7f7;
  --page-width: 1200px;
  --page-gutter: 40px;
  --announcement-height: 40px;
  --header-height: 64px;
  --header-total-height: calc(var(--announcement-height) + var(--header-height));
  --section-spacing: 56px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: "Avenir Next", "Apple SD Gothic Neo", "Noto Sans KR", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.2;
}

.announcement-bar {
  align-items: center;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-foreground);
  display: flex;
  gap: clamp(28px, 9vw, 120px);
  height: var(--announcement-height);
  justify-content: center;
  overflow: hidden;
  padding-inline: 20px;
  position: relative;
  z-index: 40;
}

.announcement-bar span {
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}

.theme-header {
  align-items: center;
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr auto;
  height: var(--header-height);
  padding-inline: max(var(--page-gutter), calc((100vw - var(--page-width)) / 2 + var(--page-gutter)));
  position: sticky;
  top: 0;
  z-index: 35;
}

.theme-header__left,
.theme-header__right,
.theme-nav {
  align-items: center;
  display: flex;
}

.theme-header__left {
  gap: 34px;
  min-width: 0;
}

.theme-header__right {
  gap: 8px;
  justify-content: flex-end;
}

.theme-logo {
  align-items: center;
  color: var(--color-foreground);
  display: inline-flex;
  line-height: 0;
  white-space: nowrap;
}

.theme-logo img {
  height: auto;
  width: 88px;
}

.theme-nav {
  gap: 26px;
}

.theme-nav a,
.theme-language,
.theme-link {
  border-bottom: 1px solid transparent;
  color: var(--color-foreground);
  font-size: 0.88rem;
  line-height: 1.2;
}

.theme-nav a:hover,
.theme-language:hover,
.theme-link:hover,
.theme-product-card h3 a:hover {
  border-color: currentColor;
}

.theme-language {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
  padding-inline: 10px;
}

.theme-icon-button,
.theme-header__mobile-icon {
  align-items: center;
  color: var(--color-foreground);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.theme-icon-button svg,
.theme-header__mobile-icon svg {
  height: 21px;
  width: 21px;
}

.theme-header__mobile-icon {
  display: none;
}

.theme-slideshow {
  background: #f5f2ef;
  height: calc(100svh - var(--header-total-height));
  min-height: 640px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.theme-slide {
  animation: theme-slide-fade 25s infinite;
  inset: 0;
  opacity: 0;
  position: absolute;
}

.theme-slide:nth-child(1) {
  opacity: 1;
}

.theme-slide img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.theme-slide__content {
  color: var(--color-foreground);
  inset-block-start: 50%;
  inset-inline-start: 48px;
  max-width: 620px;
  position: absolute;
  transform: translateY(-50%);
  z-index: 1;
}

.theme-slide__content p {
  font-size: 0.9rem;
  margin-block-end: 14px;
}

.theme-slide__content h2 {
  font-size: clamp(2.7rem, 5.2vw, 5.3rem);
  margin-block-end: 20px;
}

.theme-slide__content div {
  display: grid;
  gap: 8px;
  margin-block-end: 28px;
}

.theme-slide__content em {
  font-size: 1.35rem;
  font-style: normal;
}

.theme-slide__content span {
  color: var(--color-foreground);
}

.theme-button {
  align-items: center;
  border: 1px solid currentColor;
  color: var(--color-foreground);
  display: inline-flex;
  font-size: 0.9rem;
  justify-content: center;
  min-height: 46px;
  min-width: 124px;
  padding-inline: 22px;
}

.theme-slideshow__dots {
  align-items: center;
  bottom: 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
}

.theme-slideshow__dots span {
  animation: theme-dot-fill 25s infinite;
  background: rgb(255 255 255 / 45%);
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

.theme-slide,
.theme-slideshow__dots span {
  animation-delay: calc(var(--slide-index, var(--dot-index, 0)) * 5s);
}

@keyframes theme-slide-fade {
  0%,
  18% {
    opacity: 1;
    z-index: 1;
  }

  22%,
  96% {
    opacity: 0;
    z-index: 0;
  }

  100% {
    opacity: 1;
    z-index: 1;
  }
}

@keyframes theme-dot-fill {
  0%,
  18% {
    background: #ffffff;
  }

  22%,
  100% {
    background: rgb(255 255 255 / 45%);
  }
}

.theme-section {
  margin-inline: auto;
  max-width: calc(var(--page-width) + var(--page-gutter) * 2);
  padding: var(--section-spacing) var(--page-gutter);
}

.theme-section__header {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-block-end: 22px;
}

.theme-section__header h2 {
  font-size: 1.45rem;
  margin-block-end: 0;
}

.theme-product-list--compact {
  padding-block-start: 24px;
}

.theme-product-grid {
  display: grid;
  gap: 24px 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.theme-product-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.theme-product-card {
  min-width: 0;
}

.theme-product-card__image {
  background: var(--color-surface);
  display: block;
  overflow: hidden;
}

.theme-product-card__image img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.theme-product-card h3 {
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 10px 0 0;
}

.theme-product-card h3 a {
  border-bottom: 1px solid transparent;
}

.theme-quote {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: 310px;
  text-align: center;
}

.theme-quote h2 {
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  margin-block-end: 24px;
  max-width: 980px;
}

.theme-split-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 560px;
}

.theme-showcase-card {
  background: #e8e8e8;
  color: #ffffff;
  display: block;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.theme-showcase-card img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.theme-showcase-card::after {
  background: linear-gradient(180deg, rgb(0 0 0 / 0%) 46%, rgb(0 0 0 / 44%) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.theme-showcase-card h3 {
  bottom: 40px;
  font-size: 2rem;
  left: 40px;
  margin: 0;
  position: absolute;
  z-index: 1;
}

.theme-video-section {
  max-width: none;
  padding-inline: 0;
}

.theme-video-frame {
  background: #f4f4f4;
  height: 620px;
  overflow: hidden;
  position: relative;
}

.theme-video-frame::after {
  background: rgb(0 0 0 / 12%);
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 999px;
  content: "";
  height: 72px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
}

.theme-video-frame img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.theme-hero-end {
  height: 620px;
  overflow: hidden;
}

.theme-hero-end a {
  display: block;
  height: 100%;
}

.theme-hero-end img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.theme-footer {
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr);
  margin-inline: auto;
  max-width: calc(var(--page-width) + var(--page-gutter) * 2);
  padding: 48px var(--page-gutter);
}

.theme-footer__content {
  color: var(--color-foreground-75);
  display: grid;
  font-size: 0.86rem;
  gap: 4px;
}

.theme-footer__content p {
  margin: 0;
}

.skip-link {
  background: var(--color-foreground);
  color: var(--color-background);
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  transform: translateY(-160%);
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

.theme-product-information {
  margin-inline: auto;
  max-width: calc(var(--page-width) + var(--page-gutter) * 2);
  padding: 0 var(--page-gutter) var(--section-spacing);
}

.theme-product-information__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.theme-product-information__media {
  min-width: 0;
}

.product-description-top {
  display: grid;
  gap: 0;
  scroll-margin-top: calc(var(--header-total-height) + 20px);
}

.product-description-top img {
  height: auto;
  width: 100%;
}

.theme-product-details {
  min-width: 0;
}

.theme-product-details__inner {
  padding-block: 32px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.theme-product-details h1 {
  font-size: 2rem;
  margin: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

.theme-recommendations {
  border-top: 1px solid var(--color-border);
}

.theme-template {
  min-height: 60svh;
}

.theme-page-heading {
  display: grid;
  gap: 12px;
  margin-inline: auto;
  max-width: calc(var(--page-width) + var(--page-gutter) * 2);
  padding: 48px var(--page-gutter);
}

.theme-page-heading h1,
.theme-main-page h1,
.theme-blog h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin: 0;
  word-break: keep-all;
}

.theme-page-heading p {
  color: var(--color-foreground-75);
  margin: 0;
  max-width: 680px;
}

.theme-main-collection {
  margin-inline: auto;
  max-width: calc(var(--page-width) + var(--page-gutter) * 2);
  padding: 0 var(--page-gutter) 32px;
}

.theme-collection-toolbar {
  align-items: center;
  border-block: 1px solid var(--color-border);
  color: var(--color-foreground-75);
  display: flex;
  font-size: 0.88rem;
  gap: 20px;
  justify-content: space-between;
  margin-block-end: 24px;
  min-height: 48px;
}

.theme-collection-grid {
  display: grid;
  gap: 24px 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.theme-product-card__image--adapt img {
  aspect-ratio: auto;
}

.theme-main-page {
  display: grid;
  gap: 32px;
  margin-inline: auto;
  max-width: calc(var(--page-width) + var(--page-gutter) * 2);
  padding: 40px var(--page-gutter) 80px;
}

.theme-page-content {
  display: grid;
  gap: 32px;
}

.theme-page-content img {
  height: auto;
  width: 100%;
}

.theme-page-copy {
  color: var(--color-foreground-75);
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.theme-page-copy p {
  margin: 0;
}

.theme-blog {
  margin-inline: auto;
  max-width: calc(var(--page-width) + var(--page-gutter) * 2);
  padding: 0 var(--page-gutter) 48px;
}

.theme-blog h1 {
  padding-block: 48px;
}

.theme-blog-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-blog-card {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.theme-blog-card__image {
  background: var(--color-surface);
  display: block;
  overflow: hidden;
}

.theme-blog-card__image img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.theme-blog-card__copy {
  display: grid;
  gap: 10px;
}

.theme-blog-card h2 {
  font-size: 1.45rem;
  margin: 0;
}

.theme-blog-card__date,
.theme-blog-card p {
  color: var(--color-foreground-75);
  margin: 0;
}

.theme-blog-card__date {
  font-size: 0.86rem;
}

.desktop-only {
  display: inline-flex;
}

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

  .theme-slide,
  .theme-slideshow__dots span {
    animation: none;
  }

  .theme-slide:first-child {
    opacity: 1;
    z-index: 1;
  }
}

@media (max-width: 989px) {
  :root {
    --page-gutter: 28px;
  }

  .theme-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-product-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-product-information__grid {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-product-details__inner {
    padding-block-start: 0;
    position: static;
  }
}

@media (max-width: 749px) {
  :root {
    --page-gutter: 16px;
    --announcement-height: 34px;
    --header-height: 56px;
    --section-spacing: 40px;
  }

  .announcement-bar {
    gap: 34px;
    justify-content: flex-start;
  }

  .announcement-bar span {
    font-size: 0.72rem;
  }

  .theme-header {
    grid-template-areas: "leftA leftB center rightA rightB";
    grid-template-columns: 44px 44px 1fr 44px 44px;
    padding-inline: 0;
  }

  .theme-header__mobile-icon {
    display: inline-flex;
  }

  .theme-header__menu {
    grid-area: leftA;
  }

  .theme-header__mobile-search {
    grid-area: leftB;
  }

  .theme-header__left {
    display: contents;
  }

  .theme-logo {
    align-items: center;
    grid-area: center;
    justify-content: center;
    min-width: 0;
  }

  .theme-logo img {
    width: 76px;
  }

  .theme-nav,
  .desktop-only {
    display: none;
  }

  .theme-header__right {
    display: contents;
  }

  .theme-account {
    grid-area: rightA;
  }

  .theme-cart {
    grid-area: rightB;
  }

  .theme-slideshow {
    height: calc(100svh - var(--header-total-height));
    min-height: 560px;
  }

  .theme-slide::after,
  .theme-slide__content {
    display: none;
  }

  .theme-slide img {
    object-position: center top;
  }

  .theme-slideshow__dots {
    bottom: 18px;
  }

  .theme-section {
    padding-block: 36px;
  }

  .theme-section__header {
    align-items: center;
    margin-block-end: 18px;
  }

  .theme-section__header h2 {
    font-size: 1.25rem;
  }

  .theme-product-grid,
  .theme-product-grid--four {
    gap: 22px 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-product-card h3 {
    font-size: 0.86rem;
  }

  .theme-quote {
    min-height: 250px;
  }

  .theme-quote h2 {
    font-size: 2.55rem;
  }

  .theme-split-showcase {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .theme-showcase-card {
    min-height: 430px;
  }

  .theme-showcase-card h3 {
    bottom: 28px;
    font-size: 1.55rem;
    left: 20px;
  }

  .theme-video-frame,
  .theme-hero-end {
    height: 430px;
  }

  .theme-page-heading {
    padding-block: 36px;
  }

  .theme-main-collection {
    padding-bottom: 24px;
  }

  .theme-collection-toolbar {
    gap: 12px;
    margin-block-end: 22px;
  }

  .theme-collection-grid {
    gap: 22px 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-main-page {
    gap: 24px;
    padding-block: 36px 56px;
  }

  .theme-blog {
    padding-bottom: 36px;
  }

  .theme-blog h1 {
    padding-block: 36px;
  }

  .theme-blog-grid {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .theme-footer {
    grid-template-columns: 1fr;
    padding-block: 38px;
  }

  .theme-product-information {
    padding-inline: 0;
  }

  .theme-product-information__grid {
    gap: 22px;
  }

  .theme-product-details {
    padding-inline: var(--page-gutter);
  }

  .theme-product-details h1 {
    font-size: 1.55rem;
  }

  .theme-recommendations {
    padding-top: 36px;
  }
}

/* ---- BioCube additions (no shopping: product details open in an in-page dialog) ---- */
.visually-hidden {
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.theme-slide--light .theme-slide__content,
.theme-slide--light .theme-slide__content span,
.theme-slide--light .theme-button {
  color: #ffffff;
}

.theme-slide--light::after {
  background: linear-gradient(90deg, rgb(0 0 0 / 35%), rgb(0 0 0 / 0%) 60%);
  content: "";
  inset: 0;
  position: absolute;
}

.theme-section[id],
.theme-main-page[id] {
  scroll-margin-top: var(--header-height);
}

.theme-main-page h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin: 0;
  word-break: keep-all;
}

.theme-page-copy {
  word-break: keep-all;
}

.theme-page-copy ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.1em;
}

.theme-footer__content a {
  border-bottom: 1px solid currentColor;
}

.brand-modal {
  border: 0;
  max-height: calc(100svh - 48px);
  max-width: min(980px, calc(100vw - 32px));
  padding: 0;
  width: 100%;
}

.brand-modal::backdrop {
  background: rgb(0 0 0 / 45%);
}

.brand-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.brand-modal__grid > img {
  aspect-ratio: 4 / 5;
  background: var(--color-surface);
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.brand-modal__body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 40px 36px 36px;
  word-break: keep-all;
}

.brand-modal__body > * {
  margin: 0;
}

.brand-modal__body h2 {
  font-size: 1.7rem;
  padding-right: 32px;
}

.brand-modal__body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 8px;
}

.brand-modal__body p,
.brand-modal__body li,
.brand-modal__body dd {
  color: var(--color-foreground-75);
  font-size: 0.92rem;
}

.brand-modal__body em {
  color: var(--color-foreground);
  font-size: 1.1rem;
  font-style: normal;
}

.brand-modal__body ul,
.brand-modal__body ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 1.2em;
}

.brand-modal__body dl {
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 0 16px;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 0;
}

.brand-modal__body dt,
.brand-modal__body dd {
  border-bottom: 1px solid var(--color-border);
  margin: 0;
  padding: 8px 0;
}

.brand-modal__body dt {
  font-size: 0.86rem;
}

.brand-modal__close {
  background: none;
  border: 0;
  color: var(--color-foreground);
  cursor: pointer;
  font-size: 1.8rem;
  height: 44px;
  line-height: 1;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
}

.brand-modal__note {
  font-size: 0.8rem !important;
}

@media (max-width: 749px) {
  .theme-slide img {
    object-position: var(--m-pos, center top);
  }

  .brand-modal__grid {
    grid-template-columns: 1fr;
  }

  .brand-modal__grid > img {
    aspect-ratio: 4 / 3;
  }

  .brand-modal__body {
    padding: 24px 20px 28px;
  }
}
