/* Editorial theme — minimalist, high-contrast, teal accent */
:root {
  --editorial-white: #FFFFFF;
  --editorial-black: #000000;
  --editorial-gray: #E0E0E0;
  --editorial-teal: #76D2C1;
  --editorial-text: #000000;
  --editorial-text-muted: #666666;
  --editorial-font: "Outfit", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  /* Header bar height. The logo, cart and menu blocks all derive from this so the
     teal blocks stay flush with the bar at every viewport. */
  --editorial-header-h: clamp(64px, 5.5vw, 76px);
}

/* Editorial header: left gray bar + right teal menu */
.editorial-header {
  display: flex;
  align-items: stretch;
  min-height: var(--editorial-header-h);
  background: var(--editorial-white);
}

.editorial-header__left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-left: 1rem;
  background: var(--editorial-gray);
}

.editorial-header__nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .editorial-header__nav {
    display: flex;
  }
}

.editorial-header__nav-link {
  font-family: var(--editorial-font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--editorial-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.editorial-header__nav-link:hover,
.editorial-header__nav-link--active {
  color: var(--editorial-black);
}

.editorial-header__cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: var(--editorial-header-h);
  height: var(--editorial-header-h);
  padding: 0 1rem;
  background: var(--editorial-teal);
  color: var(--editorial-black);
  text-decoration: none;
  position: relative;
  transition: background 0.2s;
}

.editorial-header__cart:hover {
  background: #5fc4b0;
}

.editorial-header__cart-label {
  display: none;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 480px) {
  .editorial-header__cart-label {
    display: inline;
  }
}

.editorial-header__cart-icon {
  flex-shrink: 0;
}

.editorial-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--editorial-black);
  text-decoration: none;
}

.editorial-header__logo-icon {
  width: 20px;
  height: 20px;
  background: var(--editorial-black);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Same logo as homepage. The PNG carries ~22% transparent padding on the vertical
   axis, so the visible mark reads much smaller than its box — size the box off the
   bar height rather than a fixed cap so it stays legible on mobile too. */
.editorial-header .logo__img {
  height: calc(var(--editorial-header-h) - 12px);
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.editorial-header__right {
  flex-shrink: 0;
}

.editorial-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--editorial-header-h);
  height: var(--editorial-header-h);
  background: var(--editorial-teal);
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--editorial-black);
}

.editorial-header__menu-icon {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.editorial-header__menu-icon span {
  display: block;
  height: 2px;
  background: var(--editorial-black);
  border-radius: 1px;
}

.editorial-header__menu.nav-cart-link {
  position: relative;
}

.editorial-header__cart-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  background: var(--editorial-black);
  color: var(--editorial-teal);
  border-radius: 9999px;
}

/* Item page flipper — numerical pagination + progress */
.flipper {
  padding: 1.5rem 1.25rem 1rem;
  background: var(--editorial-white);
}

.flipper__pagination {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.flipper__numbers {
  display: flex;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--editorial-font);
}

.flipper__number {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  color: var(--editorial-black);
  opacity: 0.4;
  transition: opacity 0.2s;
}

.flipper__number:hover {
  opacity: 0.7;
}

.flipper__number[aria-current="true"] {
  color: var(--editorial-gray);
  opacity: 1;
}

.flipper__state {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.flipper__current,
.flipper__total {
  font-size: inherit;
  font-weight: 700;
  font-family: var(--editorial-font);
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.flipper__current {
  font-size: 2rem;
  color: var(--editorial-gray);
}

.flipper__current:hover,
.flipper__total:hover {
  opacity: 0.8;
}

.flipper__total {
  font-size: 1.25rem;
  color: var(--editorial-black);
}

.flipper__progress {
  display: flex;
  align-items: center;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--editorial-gray) 0,
    var(--editorial-gray) 6px,
    transparent 6px,
    transparent 12px
  );
  border-radius: 2px;
  overflow: hidden;
}

.flipper__progress-fill {
  height: 100%;
  background: var(--editorial-black);
  border-radius: 2px;
  transition: width 0.25s ease;
}

/* Flipper content slides */
.flipper__track {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.flipper__slide {
  display: none;
  padding: 1.5rem 1.25rem 2rem;
  animation: flipperFadeIn 0.3s ease;
}

.flipper__slide[data-active="true"] {
  display: block;
}

@keyframes flipperFadeIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.flipper__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--editorial-black);
  font-family: var(--editorial-font);
}

.flipper__body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--editorial-text);
  text-align: left;
  margin: 0;
}

.flipper__body--justify {
  text-align: justify;
}

/* Editorial footer — black bar with actions */
.editorial-footer {
  background: var(--editorial-black);
  color: var(--editorial-white);
  padding: 1rem 1.25rem 1.5rem;
  margin-top: auto;
}

.editorial-footer__progress-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.editorial-footer__playback {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
}

.editorial-footer__playback-fill {
  height: 100%;
  width: 30%;
  background: var(--editorial-white);
  border-radius: 2px;
}

.editorial-footer__icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--editorial-white);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.editorial-footer__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.editorial-footer__action {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--editorial-white);
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.editorial-footer__action:hover {
  opacity: 0.8;
}

.editorial-footer__action svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.editorial-footer__home-indicator {
  margin-top: 0.75rem;
  height: 4px;
  width: 120px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
}

/* Editorial product CTA */
.editorial-cta {
  padding: 1.5rem 1.25rem;
}

.editorial-cta .btn--primary {
  background: var(--editorial-teal);
  color: var(--editorial-black);
  border-color: var(--editorial-teal);
  width: 100%;
  padding: 1rem 1.5rem;
  font-weight: 700;
}

.editorial-cta .btn--primary:hover {
  background: #5fc4b3;
  border-color: #5fc4b3;
  box-shadow: 0 4px 14px rgba(118, 210, 193, 0.4);
}

/* Page layout for editorial product */
.page-product-editorial {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--editorial-white);
}

.page-product-editorial main {
  flex: 1;
}
