/* Yume Craft v2 — Open Unboxed PAF Shop / Catalog & 3-Column PDP */
.product-catalog {
  width: 100%;
  max-width: 1720px;
  padding: 0 var(--v2-page-gutter) 120px;
  margin: 16px auto 0;
  color: var(--ink);
  background: #fff;
  scroll-margin-top: calc(var(--v2-header-height) + 16px);
  overflow-anchor: none;
}

.catalog-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 18px;
  padding: 4px 0;
}

.catalog-title-group,
.catalog-controls-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-heading-row h2 {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.catalog-results-count {
  color: #86868b;
  font-size: var(--v2-text-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-catalog .catalog-heading-mask {
  position: relative;
  display: inline-grid;
  max-width: 100%;
  height: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.2;
}
.product-catalog .catalog-heading-label {
  display: block;
  grid-area: 1 / 1;
  line-height: 1.2;
  white-space: nowrap;
  will-change: transform;
}
.product-catalog .catalog-heading-outgoing {
  pointer-events: none;
}

.catalog-columns-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}
.catalog-col-btn[aria-pressed="true"] {
  background: #141416;
  color: #fff;
  border-color: #141416;
}

.catalog-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.catalog-sort span {
  color: #666;
  font-size: var(--v2-text-small);
}
.catalog-sort select {
  border: 0;
  background: transparent;
  padding: 0 2px;
  font: inherit;
  font-size: var(--v2-text-small);
  text-transform: uppercase;
  cursor: pointer;
}

/* Open Horizontal Floating Filter Pills (No Sidebar Box) */
.catalog-layout {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.catalog-sidebar {
  position: sticky;
  top: var(--v2-header-height);
  z-index: 15;
  padding: 6px 0;
  pointer-events: none;
}

.catalog-filters {
  pointer-events: auto;
  background: transparent;
  border: 0;
  padding: 0;
}
.catalog-filters > .catalog-mobile-filter-toggle {
  display: none;
}

.catalog-filter-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.catalog-filter-group {
  margin: 0;
}

.catalog-filter-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.catalog-filter-option[aria-pressed="true"] {
  background: #141416;
  color: #fff;
  border-color: #141416;
}

.catalog-clear[hidden] {
  display: none !important;
}

.catalog-results {
  min-width: 0;
}

/* Pure PAF Unboxed Grid with Generous Breathing Room */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 40px;
  border: 0;
}
.catalog-grid.is-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 24px;
}

.catalog-item {
  min-width: 0;
  margin: 0;
  border: 0;
  background: transparent;
}
.catalog-item[hidden] {
  display: none !important;
}

.product-catalog .catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  height: 100%;
  background: transparent;
  padding: 0;
  color: inherit;
  text-decoration: none !important;
}

.product-catalog .catalog-card > .card-media {
  position: relative;
  inset: auto;
  transform: none;
  order: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 6%;
  background: transparent;
  overflow: hidden;
}

.product-catalog .catalog-card .supplied-photo {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain !important;
  object-position: center;
  background: transparent;
  mix-blend-mode: multiply;
  transition: transform 500ms cubic-bezier(.22, 1, .36, 1);
}

.product-catalog .catalog-card:hover .supplied-photo {
  transform: scale(1.04);
}

.product-catalog .catalog-card > .card-info {
  position: relative;
  order: 1;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  font-size: var(--v2-text-size);
  line-height: 1.35;
  text-align: left;
}

.product-catalog .catalog-card .card-info > p:first-child {
  width: auto;
  flex: 1;
  min-width: 0;
}

.card-vendor-tag {
  color: #86868b;
  font-weight: 400;
  text-transform: none;
}

.product-catalog .catalog-card .card-price {
  font-size: inherit;
  line-height: 1.35;
  white-space: nowrap;
  color: #141416;
}

.catalog-empty {
  min-height: 240px;
  padding: 60px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Product Detail Page (PDP) — Open Unboxed 3-Column PAF Architecture */
.product-layout {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: calc(var(--v2-header-height) + 28px) var(--v2-page-gutter) 96px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(340px, 420px);
  gap: 48px;
  align-items: start;
}

.product-thumbs-rail {
  position: sticky;
  top: calc(var(--v2-header-height) + 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100svh - var(--v2-header-height) - 56px);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 0;
  background: transparent;
  border: 0;
}
.product-thumbs-rail::-webkit-scrollbar { display: none; }

.product-thumb-btn {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid transparent;
  padding: 0 0 4px;
  opacity: 0.45;
  transition: opacity 180ms ease, border-color 180ms ease;
}
.product-thumb-btn:hover,
.product-thumb-btn.is-active {
  opacity: 1;
  border-color: #141416;
}
.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0;
}
.product-gallery > .gallery-media {
  background: transparent;
}

.product-content {
  position: sticky;
  top: calc(var(--v2-header-height) + 28px);
  min-height: 0;
  padding: 0;
  display: block;
}
.product-content-inner {
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.product-back-pill {
  min-height: 28px;
  padding: 4px 12px;
  font-size: var(--v2-text-small);
}
.product-vendor-badge {
  font-size: var(--v2-text-small);
  letter-spacing: 0.08em;
  color: #76767b;
  text-transform: uppercase;
}

.product-title-row h1 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.product-favorite {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
}

.product-price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-content .product-price {
  font-size: 17px;
  line-height: 1.2;
}
.product-tax-note {
  font-size: 12px;
  color: #86868b;
  text-transform: none;
}

.product-description {
  padding-top: 8px;
  color: #3a3a3c;
  line-height: 1.55;
  text-transform: none;
}

.variant-pill > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--glass-tint, rgba(236, 236, 240, 0.5));
  backdrop-filter: var(--glass-blur, blur(10px));
  -webkit-backdrop-filter: var(--glass-blur, blur(10px));
  transition: background-color 160ms ease, color 160ms ease;
}
.variant-pill input:checked + span {
  background: #141416;
  color: #fff;
}

.product-form .add-to-bag {
  height: 50px;
  border-radius: 9999px;
  background: #141416;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 180ms ease, transform 150ms ease;
}
.product-form .add-to-bag:hover:not(:disabled) {
  background: #2a2a2e;
}

.product-more-links {
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.product-disclosure {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px 0;
}
.product-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-decoration: none !important;
  text-transform: uppercase;
  font-size: var(--v2-text-small);
  letter-spacing: 0.05em;
}
.disclosure-chevron {
  display: inline-block;
  transition: transform 220ms ease;
}
.product-disclosure[open] .disclosure-chevron {
  transform: rotate(180deg);
}
.product-disclosure .product-details {
  padding-top: 12px;
  padding-bottom: 4px;
  font-size: var(--v2-text-small);
  line-height: 1.55;
  text-transform: none;
}

/* Glassmorphic Cart & Overlay Drawers */
.drawer-overlay:not(.is-search) .drawer {
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  border-radius: 24px;
  padding: 24px;
  background-color: rgba(238, 238, 243, 0.78);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14);
}
.drawer-overlay:not(.is-search) .checkout {
  height: 48px;
  border-radius: 999px;
  background: #141416;
  color: #fff;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .catalog-grid.is-cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 32px;
  }
  .product-thumbs-rail { display: none; }
}

@media (max-width: 809px) {
  .product-catalog {
    padding: 0 var(--v2-page-gutter) 64px;
  }
  .catalog-columns-toggle { display: none; }
  .catalog-sidebar { position: static; }
  .catalog-filters > .catalog-mobile-filter-toggle {
    display: inline-flex;
    margin-bottom: 10px;
  }
  .catalog-grid,
  .catalog-grid.is-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }
  .product-catalog .catalog-card > .card-info {
    flex-direction: column;
    gap: 4px;
  }
  .product-layout {
    display: flex;
    flex-direction: column;
    padding: calc(var(--v2-header-height) + 12px) var(--v2-page-gutter) 48px;
    gap: 24px;
  }
  .product-content { position: static; width: 100%; }
  .product-gallery { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .product-catalog .catalog-card .supplied-photo { transition: none; }
  .product-catalog .catalog-card:hover .supplied-photo { transform: none; }
}
