/* vtw-editorial-lookbook.css */
/* VendTheWeb Section Library — vendtheweb.com */
/* Version: 1.0.0 */

/* ── Variable resolution ─────────────────────────────── */
.vtw-editorial-lookbook {
  --_bg:           var(--vtw-section-bg,     var(--vtw-brand-bg,     #faf9f7));
  --_text:         var(--vtw-section-text,   var(--vtw-brand-text,   #1a1a1a));
  --_accent:       var(--vtw-section-accent, var(--vtw-brand-accent, #5c6b3a));
  --_accent-text:  var(--vtw-section-accent-text, var(--vtw-brand-accent-text, #ffffff));
  --_heading-font: var(--vtw-section-heading-font,
                   var(--vtw-brand-heading-font, Georgia, serif));
  --_body-font:    var(--vtw-section-body-font,
                   var(--vtw-brand-body-font, 'Assistant', Georgia, serif));
  --_padding:      var(--vtw-section-padding,
                   var(--vtw-brand-section-padding, 80px));
  --_max-width:    var(--vtw-brand-container-width, 1280px);
  --_speed:        var(--vtw-brand-speed, 250ms);
  --_border:       var(--vtw-brand-border, #e8e3dc);
  --_surface:      var(--vtw-brand-surface, #f0ede8);
  --_text-muted:   var(--vtw-section-text-muted, var(--vtw-brand-text-muted, #6b675f));
  --_focus:        var(--vtw-section-focus, var(--vtw-brand-focus, var(--_accent)));
  --_heading-scale: var(--vtw-brand-heading-scale, 1);
  --_body-size:    var(--vtw-brand-body-size, 16px);
  --_body-line-height: var(--vtw-brand-body-line-height, 1.6);
  --_focus-width:  var(--vtw-brand-focus-width, 2px);
  --_media-radius: var(--vtw-brand-media-radius, 4px);
  --_image-radius: 4px;
  --_aspect:       4 / 5;
  --_frame:        color-mix(in srgb, #c4a265 28%, var(--_border) 72%);
  --_active-bg:    color-mix(in srgb, var(--_accent) 8%, var(--_bg));
  --_overlay:      color-mix(in srgb, var(--_text) 72%, var(--_bg) 28%);
}

/* ── Base ────────────────────────────────────────────── */
.vtw-editorial-lookbook {
  background-color: var(--_bg);
  color: var(--_text);
  padding-top: var(--_padding);
  padding-bottom: var(--_padding);
  font-family: var(--_body-font);
}

.vtw-editorial-lookbook__inner {
  max-width: var(--_max-width);
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 48px);
}

.vtw-editorial-lookbook[data-width="full"] .vtw-editorial-lookbook__inner {
  max-width: none;
  padding-inline: clamp(24px, 6vw, 80px);
}

.vtw-editorial-lookbook__empty {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--_text-muted);
}

/* ── Header ──────────────────────────────────────────── */
.vtw-editorial-lookbook__header {
  margin-bottom: 40px;
  max-width: 42ch;
}

.vtw-editorial-lookbook[data-text-align="center"] .vtw-editorial-lookbook__header {
  margin-inline: auto;
  text-align: center;
}

.vtw-editorial-lookbook__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--_accent);
  margin: 0 0 12px;
}

.vtw-editorial-lookbook__heading {
  font-family: var(--_heading-font);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.vtw-editorial-lookbook__body {
  font-size: var(--_body-size);
  line-height: var(--_body-line-height);
  color: var(--_text-muted);
  margin: 16px 0 0;
}

/* ── Looks ───────────────────────────────────────────── */
.vtw-editorial-lookbook__looks {
  display: grid;
  gap: 64px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vtw-editorial-lookbook__look {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.vtw-editorial-lookbook__media {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--_frame);
  border-radius: var(--_image-radius, var(--_media-radius));
  overflow: hidden;
  background: var(--_surface);
  aspect-ratio: var(--_aspect);
}

.vtw-editorial-lookbook__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vtw-editorial-lookbook__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  max-width: none;
  padding: 48px 16px 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #f7f3ec;
  text-shadow: 0 1px 8px rgb(26 26 26 / 0.45);
  background: linear-gradient(to top, rgb(26 26 26 / 0.55), transparent);
}

.vtw-editorial-lookbook__pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vtw-editorial-lookbook__pin {
  pointer-events: auto;
  position: absolute;
  left: var(--_pin-x);
  top: var(--_pin-y);
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  color: var(--_accent-text);
}

.vtw-editorial-lookbook__pin-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 8px auto;
  border-radius: 50%;
  background: var(--_accent);
  font-family: var(--_heading-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.vtw-editorial-lookbook__pin:focus-visible {
  outline: var(--_focus-width) solid var(--_focus);
  outline-offset: 2px;
}

.vtw-editorial-lookbook__look[data-active="1"] [data-look-pin="1"] .vtw-editorial-lookbook__pin-mark,
.vtw-editorial-lookbook__look[data-active="2"] [data-look-pin="2"] .vtw-editorial-lookbook__pin-mark,
.vtw-editorial-lookbook__look[data-active="3"] [data-look-pin="3"] .vtw-editorial-lookbook__pin-mark,
.vtw-editorial-lookbook__look[data-active="4"] [data-look-pin="4"] .vtw-editorial-lookbook__pin-mark,
.vtw-editorial-lookbook__look[data-active="5"] [data-look-pin="5"] .vtw-editorial-lookbook__pin-mark,
.vtw-editorial-lookbook__look[data-active="6"] [data-look-pin="6"] .vtw-editorial-lookbook__pin-mark,
.vtw-editorial-lookbook__look[data-active="7"] [data-look-pin="7"] .vtw-editorial-lookbook__pin-mark,
.vtw-editorial-lookbook__look[data-active="8"] [data-look-pin="8"] .vtw-editorial-lookbook__pin-mark {
  box-shadow: 0 0 0 2px var(--_bg), 0 0 0 3px var(--_accent);
}

/* ── Rail ────────────────────────────────────────────── */
.vtw-editorial-lookbook__rail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vtw-editorial-lookbook__look-title {
  font-family: var(--_heading-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}

.vtw-editorial-lookbook__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--_border);
}

.vtw-editorial-lookbook__item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 16px 12px 16px 16px;
  border-bottom: 1px solid var(--_border);
  border-left: 3px solid transparent;
  color: inherit;
  text-decoration: none;
}

.vtw-editorial-lookbook__item:focus-visible {
  outline: var(--_focus-width) solid var(--_focus);
  outline-offset: -2px;
}

.vtw-editorial-lookbook__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--_accent);
}

.vtw-editorial-lookbook__name {
  font-family: var(--_heading-font);
  font-size: 16px;
  line-height: 1.35;
}

.vtw-editorial-lookbook__price {
  font-size: 15px;
  color: var(--_text-muted);
}

.vtw-editorial-lookbook__look[data-active="1"] [data-look-item="1"],
.vtw-editorial-lookbook__look[data-active="2"] [data-look-item="2"],
.vtw-editorial-lookbook__look[data-active="3"] [data-look-item="3"],
.vtw-editorial-lookbook__look[data-active="4"] [data-look-item="4"],
.vtw-editorial-lookbook__look[data-active="5"] [data-look-item="5"],
.vtw-editorial-lookbook__look[data-active="6"] [data-look-item="6"],
.vtw-editorial-lookbook__look[data-active="7"] [data-look-item="7"],
.vtw-editorial-lookbook__look[data-active="8"] [data-look-item="8"] {
  border-left-color: var(--_accent);
  background: var(--_active-bg);
}

.vtw-editorial-lookbook__look:not([data-active]) .vtw-editorial-lookbook__item:first-child {
  border-left-color: var(--_accent);
  background: var(--_active-bg);
}

/* ── Layout ──────────────────────────────────────────── */
@media (min-width: 768px) {
  .vtw-editorial-lookbook[data-layout="split"] .vtw-editorial-lookbook__look {
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 40px;
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .vtw-editorial-lookbook[data-text-align-mobile="center"] .vtw-editorial-lookbook__header {
    margin-inline: auto;
    text-align: center;
  }

  .vtw-editorial-lookbook[data-text-align-mobile="left"] .vtw-editorial-lookbook__header {
    margin-inline: 0;
    text-align: left;
  }
}

/* ── Motion ──────────────────────────────────────────── */
.vtw-editorial-lookbook[data-animate="true"].vtw-animate-ready .vtw-editorial-lookbook__look {
  opacity: 0;
  transform: translateY(16px);
}

.vtw-editorial-lookbook[data-animate="true"].vtw-is-visible .vtw-editorial-lookbook__look,
.vtw-editorial-lookbook[data-animate="true"]:not(.vtw-animate-ready) .vtw-editorial-lookbook__look {
  opacity: 1;
  transform: none;
  transition: opacity 560ms cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 560ms cubic-bezier(0.25, 0.1, 0.25, 1);
  transition-delay: var(--_anim-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .vtw-editorial-lookbook *,
  .vtw-editorial-lookbook[data-animate="true"].vtw-animate-ready .vtw-editorial-lookbook__look {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    opacity: 1;
    transform: none;
  }
}

/* ── Optional pin product card ───────────────────────── */
.vtw-editorial-lookbook__card {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: var(--_overlay);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--_speed) ease, visibility var(--_speed) ease;
}

.vtw-editorial-lookbook__card[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vtw-editorial-lookbook__card-frame {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background-color: var(--_bg);
  border: 1px solid var(--_frame);
  border-radius: var(--_image-radius);
  overflow: hidden;
}

@media (min-width: 768px) {
  .vtw-editorial-lookbook__card-frame {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }
}

.vtw-editorial-lookbook__card-stage {
  min-width: 0;
  background-color: var(--_surface);
}

.vtw-editorial-lookbook__card-stage img,
.vtw-editorial-lookbook__card-stage .vtw-editorial-lookbook__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vh, 420px);
  object-fit: contain;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .vtw-editorial-lookbook__card-stage img,
  .vtw-editorial-lookbook__card-stage .vtw-editorial-lookbook__img {
    height: 100%;
    max-height: min(80vh, 680px);
    object-fit: cover;
    margin: 0;
  }
}

.vtw-editorial-lookbook__card-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  overflow: auto;
}

.vtw-editorial-lookbook__card-title {
  font-family: var(--_heading-font);
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}

.vtw-editorial-lookbook__card-title:empty,
.vtw-editorial-lookbook__card-desc:empty {
  display: none;
}

.vtw-editorial-lookbook__card-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.vtw-editorial-lookbook__card-price[hidden],
.vtw-editorial-lookbook__card-price s[hidden],
.vtw-editorial-lookbook__card-form[hidden],
.vtw-editorial-lookbook__card-option[hidden],
.vtw-editorial-lookbook__card-view[hidden] {
  display: none !important;
}

.vtw-editorial-lookbook__card-price s {
  font-size: 15px;
  font-weight: 500;
  color: var(--_text-muted);
}

.vtw-editorial-lookbook__card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--_text-muted);
  margin: 0;
}

.vtw-editorial-lookbook__card-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.vtw-editorial-lookbook__card-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.vtw-editorial-lookbook__card-option-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--_text-muted);
}

.vtw-editorial-lookbook__card-select {
  width: 100%;
  min-height: 44px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--_frame);
  border-radius: 8px;
  background-color: var(--_bg);
  color: var(--_text);
  font-family: inherit;
  font-size: 15px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--_text) 50%),
    linear-gradient(135deg, var(--_text) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.vtw-editorial-lookbook__card-atc {
  width: 100%;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background-color: var(--_accent);
  color: var(--_accent-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.vtw-editorial-lookbook__card-atc:hover:not(:disabled) {
  opacity: 0.9;
}

.vtw-editorial-lookbook__card-atc:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vtw-editorial-lookbook__card-view {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--_accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vtw-editorial-lookbook__card-hint {
  margin: auto 0 0;
  padding-top: 12px;
  font-size: 12px;
  color: var(--_text-muted);
}

.vtw-editorial-lookbook__card-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--_frame);
  background-color: var(--_bg);
  color: var(--_text);
  cursor: pointer;
}

.vtw-editorial-lookbook__card-close:focus-visible,
.vtw-editorial-lookbook__card-select:focus-visible,
.vtw-editorial-lookbook__card-atc:focus-visible,
.vtw-editorial-lookbook__card-view:focus-visible {
  outline: var(--_focus-width) solid var(--_focus);
  outline-offset: 3px;
}

body.vtw-editorial-lookbook-card-open {
  overflow: hidden;
}
