/**
 * Yarden Jewelry Case Study Styles
 * Scoped layout extensions, 5-column metadata matrix, 4-palette exploration grid,
 * logo presentation showcase, storefront implementation grid, and editorial placeholders.
 * Uses only existing design tokens from css/tokens.css.
 * Loaded only by work/yarden-jewelry.html.
 */

/* Back navigation button */
.cs-back-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-mono-tag);
  font-weight: var(--weight-medium);
  color: var(--color-ink-secondary);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  width: fit-content;
}

.cs-back-button:hover {
  color: var(--color-ink-primary);
  border-color: var(--color-border-strong);
  background-color: var(--color-surface-subtle);
  transform: translateX(-2px);
}

.cs-back-button svg {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.cs-back-button:hover svg {
  transform: translateX(-2px);
}

/* Hero media button */
.cs-hero-action {
  margin-top: var(--space-5);
  display: flex;
  justify-content: center;
}

.cs-external-visit-btn {
  text-decoration: none;
}

/* ==========================================================================
   Wide-figure support inside the Case Study prose column
   Allows structured showcase grids (like the 4-palette exploration and
   implementation screens) to utilize the wider column while narrative prose
   stays comfortably constrained at var(--prose-max).
   ========================================================================== */

.cs-prose-column--yarden {
  max-width: none;
  container-type: inline-size;
}

.cs-prose-column--yarden > .cs-section,
.cs-prose-column--yarden > .cs-pagination {
  max-width: var(--prose-max);
}

/* Allow specific sections to expand for structured visual grids while keeping
   their narrative text constrained to reading measure */
.cs-prose-column--yarden > .cs-section--wide {
  max-width: min(100cqw, 980px);
}

.cs-section--wide > p,
.cs-section--wide > .cs-section-heading,
.cs-section--wide > .cs-section-index,
.cs-section--wide > .cs-yarden-prose,
.cs-section--wide > .cs-attribution-split {
  max-width: var(--prose-max);
}

/* Documentary WhatsApp Evidence Grid */
.yarden-chat-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0 var(--space-3);
  align-items: start;
}

.yarden-chat-frame {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.yarden-chat-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Hero Eyebrow & 5-Item Metadata Matrix
   ========================================================================== */

.cs-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-mono-tag);
  font-weight: var(--weight-semibold);
  color: var(--color-accent-ink);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.cs-metadata-matrix--yarden {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-6);
}

/* ==========================================================================
   Deliberate Editorial Placeholder System
   ========================================================================== */

.yarden-placeholder {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-subtle) 100%);
  border: 1px dashed var(--color-border-default);
  border-radius: var(--radius-md);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.yarden-placeholder--hero {
  aspect-ratio: 16 / 9;
  min-height: 360px;
  border-radius: var(--radius-lg);
}

.yarden-placeholder--wide {
  aspect-ratio: 16 / 10;
  min-height: 280px;
}

.yarden-placeholder--chat {
  aspect-ratio: 16 / 9;
  min-height: 260px;
}

.yarden-placeholder--logo-primary {
  aspect-ratio: 4 / 3;
  min-height: 260px;
}

.yarden-placeholder--logo-context {
  aspect-ratio: 4 / 3;
  min-height: 260px;
}

.yarden-placeholder--card {
  aspect-ratio: 4 / 3;
  min-height: 230px;
}

.yarden-placeholder-inner {
  position: relative;
  z-index: 2;
  max-width: 48ch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.yarden-placeholder-code {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--color-ink-primary);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-1);
}

.yarden-placeholder-title {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  color: var(--color-ink-primary);
  line-height: var(--leading-snug);
}

.yarden-placeholder-desc {
  font-size: var(--text-body-sm) !important;
  color: var(--color-ink-muted) !important;
  line-height: var(--leading-normal) !important;
  margin: 0 !important;
}

.yarden-placeholder-path {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-ink-subtle);
  background-color: rgba(250, 249, 246, 0.75);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border-subtle);
}

/* ==========================================================================
   Section D: Four Palettes Exploration Grid
   ========================================================================== */

.yarden-palettes-showcase {
  margin: var(--space-10) 0 var(--space-4);
}

.yarden-palettes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: stretch;
}

.yarden-palette-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  position: relative;
}

.yarden-palette-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.yarden-palette-step {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  color: var(--color-ink-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.yarden-palette-media-pair {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.yarden-palette-card--option4 .yarden-palette-media-pair {
  position: relative;
}

.yarden-palette-img-frame--option4 {
  flex: 1;
  position: relative;
  background-color: transparent;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.yarden-palette-img-frame--option4 img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.yarden-palette-card--full {
  grid-column: 1 / -1;
}

.yarden-palette-img-frame {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-surface-subtle);
}

.yarden-palette-img-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Section E: Visual Direction Extension (Logo, Palette & Supporting Imagery)
   ========================================================================== */

.yarden-visual-system {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin: var(--space-8) 0 var(--space-4);
}

.yarden-visual-identity-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

.yarden-visual-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.yarden-visual-card--logo {
  justify-content: space-between;
}

.yarden-visual-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  color: var(--color-ink-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.yarden-logo-stage {
  flex: 1;
  min-height: 240px;
  background-color: #F6F1E7;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  display: flex;
  align-items: center;
  justify-content: center;
}

.yarden-logo-stage img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
}

.yarden-visual-meta {
  font-size: var(--text-body-sm) !important;
  color: var(--color-ink-muted) !important;
  line-height: var(--leading-normal) !important;
  margin: 0 !important;
}

.yarden-palette-stage {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #F6F1E7;
}

.yarden-palette-stage img {
  width: 100%;
  height: auto;
  display: block;
}

.yarden-supporting-imagery-block {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.yarden-supporting-grid {
  display: grid;
  grid-template-columns: 1fr 1.32fr;
  gap: var(--space-6);
  align-items: stretch;
}

.yarden-supporting-grid > .yarden-supporting-item {
  height: 100%;
}

.yarden-supporting-grid > .yarden-supporting-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.yarden-supporting-banners {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.yarden-supporting-item {
  margin: 0;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-surface-subtle);
}

.yarden-supporting-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Section F: Storefront Implementation Grid
   ========================================================================== */

.yarden-implementation-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin: var(--space-8) 0 var(--space-4);
}

.yarden-homepage-pair {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

.yarden-storefront-view {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
}

.yarden-storefront-view--desktop .yarden-storefront-frame {
  flex: 1;
  position: relative;
  background-color: #F0E6D7;
}

.yarden-storefront-view--desktop .yarden-storefront-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.yarden-storefront-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
}

.yarden-storefront-frame {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-surface-subtle);
}

.yarden-storefront-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.yarden-implementation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.yarden-implementation-grid .cs-figure,
.yarden-implementation-stack > .cs-figure {
  margin: 0;
}

/* ==========================================================================
   Section G: Outcome List & Verification Evidence Grid
   ========================================================================== */

.yarden-outcomes-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-left: 4px solid var(--color-accent-cobalt);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-sm);
}

.yarden-outcomes-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.yarden-outcomes-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.yarden-outcome-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--space-3);
  align-items: baseline;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
}

.yarden-outcome-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.yarden-outcome-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  color: var(--color-ink-primary);
  background-color: var(--color-accent-cobalt-subtle);
  border: 1px solid var(--color-accent-cobalt);
  border-radius: var(--radius-xs);
  padding: 0.15rem 0.45rem;
  text-align: center;
}

.yarden-outcome-text {
  font-size: var(--text-body) !important;
  color: var(--color-ink-primary) !important;
  line-height: var(--leading-normal) !important;
  margin: 0 !important;
}

.yarden-outcome-text span {
  display: block;
  font-size: var(--text-body-sm);
  color: var(--color-ink-secondary);
  margin-top: var(--space-1);
}

.yarden-evidence-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-top: var(--space-8);
  max-width: 440px;
}

.yarden-evidence-grid .cs-figure {
  margin: 0;
}

/* ==========================================================================
   Section H: Skills Demonstrated List
   ========================================================================== */

.yarden-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.yarden-skill-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.yarden-skill-index {
  font-family: var(--font-mono);
  font-size: var(--text-mono-tag);
  font-weight: var(--weight-bold);
  color: var(--color-accent-ink);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.yarden-skill-text {
  font-size: var(--text-body-sm) !important;
  color: var(--color-ink-primary) !important;
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal) !important;
  margin: 0 !important;
}

/* ==========================================================================
   Section I: Closing Live Store Action & Case Study Navigation
   ========================================================================== */

.yarden-closing-card {
  background-color: var(--color-surface-subtle);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  margin-bottom: var(--space-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.yarden-closing-copy {
  max-width: 46ch;
}

.yarden-closing-title {
  font-size: var(--text-h3);
  color: var(--color-ink-primary);
  margin-bottom: var(--space-2);
}

.yarden-closing-sub {
  font-size: var(--text-body-sm) !important;
  color: var(--color-ink-secondary) !important;
  margin: 0 !important;
}

.yarden-closing-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.yarden-pagination-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Adaptations (Tablet & Mobile)
   ========================================================================== */

@media (max-width: 1100px) {
  .cs-metadata-matrix--yarden {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .cs-metadata-matrix--yarden {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yarden-chat-evidence-grid,
  .yarden-palettes-grid,
  .yarden-visual-identity-grid,
  .yarden-supporting-grid,
  .yarden-homepage-pair,
  .yarden-implementation-grid,
  .yarden-evidence-grid,
  .yarden-skills-grid {
    grid-template-columns: 1fr;
  }

  .yarden-storefront-view--mobile .yarden-storefront-frame {
    max-width: 420px;
  }

  .yarden-palette-img-frame--option4 img {
    position: static;
    height: auto;
  }

  .yarden-supporting-grid > .yarden-supporting-item img {
    height: auto;
  }

  .yarden-storefront-view--desktop .yarden-storefront-frame img {
    position: static;
    height: auto;
  }

  .yarden-closing-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .cs-metadata-matrix--yarden {
    grid-template-columns: 1fr;
  }

  .yarden-palette-card--split .yarden-palette-media-pair {
    grid-template-columns: 1fr;
  }

  .yarden-placeholder--hero {
    min-height: 240px;
  }

  .yarden-outcomes-card,
  .yarden-closing-card {
    padding: var(--space-6);
  }

  .yarden-closing-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   Interactive Scrollable Website Prototype inside Realistic Monitor
   Includes monitor bezel, stand, screen scroll container, mobile mode, and storefront styles
   ========================================================================== */

.yarden-live-preview {
  margin-top: var(--space-8);
  margin-bottom: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.yarden-preview-browser {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration-fast) ease;
}

.yarden-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.65rem 1rem;
  background: var(--color-surface-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  flex-wrap: wrap;
}

.yarden-preview-toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.yarden-preview-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.yarden-preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-border);
  display: inline-block;
}

.yarden-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  background: rgba(107, 39, 55, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.yarden-preview-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.yarden-preview-toolbar-center {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.yarden-preview-preset-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-ink-muted);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.yarden-preview-preset-btn:hover {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-border);
}

.yarden-preview-preset-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.yarden-preview-preset-btn.active {
  background: var(--color-burgundy);
  color: #ffffff;
  border-color: var(--color-burgundy);
  font-weight: 600;
}

.yarden-preview-toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.yarden-preview-readout {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-ink-muted);
}

.yarden-preview-readout strong {
  color: var(--color-ink);
  font-weight: 600;
}

.yarden-preview-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-burgundy);
  text-decoration: none;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.yarden-preview-link-btn:hover {
  background: rgba(107, 39, 55, 0.08);
  color: var(--color-burgundy-dark);
}

/* Stage & Viewport Wrapper */
.yarden-preview-stage {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #edeae5 0%, #dfdad2 100%);
  min-height: 640px;
  padding: 2.5rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
}

.yarden-preview-viewport-wrap {
  position: relative;
  width: 1000px;
  max-width: calc(100% - 24px);
  min-width: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.yarden-preview-viewport-wrap.is-dragging {
  transition: none !important;
}

/* Draggable Resize Handle */
.yarden-preview-resizer {
  position: absolute;
  top: 40px;
  right: -16px;
  width: 28px;
  height: 520px;
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  touch-action: none;
}

.yarden-preview-resizer::after {
  content: '';
  width: 5px;
  height: 54px;
  background: rgba(43, 33, 24, 0.35);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: background var(--duration-fast) ease, height var(--duration-fast) ease;
}

.yarden-preview-resizer:hover::after,
.yarden-preview-resizer:focus-visible::after,
.yarden-preview-viewport-wrap.is-dragging .yarden-preview-resizer::after {
  background: var(--color-burgundy);
  height: 72px;
}

.yarden-preview-resizer:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ==========================================================================
   Realistic Desktop Computer Monitor Chassis
   ========================================================================== */

.yd-device-chassis {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

/* Outer Monitor Bezel */
.yd-monitor-bezel {
  width: 100%;
  background: linear-gradient(180deg, #2b2b2e 0%, #171719 100%);
  border: 1px solid #3c3c40;
  border-radius: 18px;
  padding: 10px 10px 0 10px;
  box-shadow:
    0 24px 50px -12px rgba(18, 12, 10, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Top Camera / Sensor */
.yd-monitor-camera {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10px;
  margin-bottom: 5px;
}

.yd-monitor-camera-lens {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4f4f58 0%, #0d0d0f 90%);
  box-shadow: inset 0 0 1px #000;
  display: inline-block;
}

/* Inner Screen Viewport (Scroll Container) */
.yd-monitor-screen {
  width: 100%;
  height: 530px;
  background: #ffffff;
  border-radius: 8px 8px 0 0;
  overflow-y: scroll;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.yd-monitor-screen::-webkit-scrollbar {
  display: none;
}

.yd-monitor-screen:focus-visible {
  outline: 2px solid var(--color-burgundy);
  outline-offset: -2px;
}

/* Monitor Bottom Chin */
.yd-monitor-chin {
  height: 24px;
  background: linear-gradient(180deg, #1e1e21 0%, #151517 100%);
  border-radius: 0 0 14px 14px;
  border-top: 1px solid #28282c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yd-monitor-brand-pip {
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

/* Monitor Stand & Pedestal */
.yd-monitor-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  user-select: none;
  pointer-events: none;
}

.yd-monitor-stand-neck {
  width: 105px;
  height: 48px;
  background: linear-gradient(90deg, #9999a1 0%, #e2e2e8 45%, #ffffff 52%, #b5b5be 80%, #76767e 100%);
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5), inset 0 -2px 4px rgba(0, 0, 0, 0.25);
  margin-top: -1px;
}

.yd-monitor-stand-base {
  width: 220px;
  height: 12px;
  background: linear-gradient(180deg, #e4e4eb 0%, #b8b8c2 70%, #8c8c96 100%);
  border-radius: 5px 5px 8px 8px;
  box-shadow:
    0 12px 24px -4px rgba(18, 12, 10, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid #75757d;
  margin-top: -1px;
}

/* ==========================================================================
   Mobile Smartphone Chassis Mode (when viewport <= 520px)
   ========================================================================== */

.yd-device-chassis.is-mobile-device .yd-monitor-bezel {
  border-radius: 42px;
  padding: 14px 12px 16px 12px;
  background: linear-gradient(180deg, #1b1b1e 0%, #0d0d0f 100%);
  box-shadow:
    0 28px 60px -12px rgba(18, 12, 10, 0.4),
    0 6px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
  border: 2px solid #3d3d42;
}

.yd-device-chassis.is-mobile-device .yd-monitor-camera {
  height: 18px;
  margin-bottom: 8px;
}

/* Dynamic Island / Notch on Mobile */
.yd-device-chassis.is-mobile-device .yd-monitor-camera-lens {
  width: 68px;
  height: 15px;
  border-radius: 20px;
  background: #000000;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
  position: relative;
}

.yd-device-chassis.is-mobile-device .yd-monitor-camera-lens::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #30304a 0%, #08080f 90%);
}

.yd-device-chassis.is-mobile-device .yd-monitor-screen {
  border-radius: 28px;
  height: 580px;
}

.yd-device-chassis.is-mobile-device .yd-monitor-chin {
  display: none;
}

.yd-device-chassis.is-mobile-device .yd-monitor-stand {
  display: none;
}

/* ==========================================================================
   Yarden Storefront Prototype Components (Inside Screen)
   Option 4 Palette:
   Tamarind: #3B1319, Rubine: #8D3A3C, Boho: #7B694E, Camel Coat: #C6B39A, Italian Roast: #280B0F
   ========================================================================== */

.yd-store-root {
  background: #fbf9f6;
  color: #280B0F;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  width: 100%;
}

/* Announcement Topbar */
.yd-store-topbar {
  background: #3B1319;
  color: #C6B39A;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 0.45rem 1rem;
  text-transform: uppercase;
}

/* Store Navigation Header */
.yd-store-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.75rem;
  background: #ffffff;
  border-bottom: 1px solid #ebe5df;
  position: sticky;
  top: 0;
  z-index: 20;
}

.yd-store-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.yd-store-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.yd-store-menu-toggle span {
  width: 18px;
  height: 2px;
  background: #280B0F;
}

.yd-store-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.yd-store-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #280B0F;
  text-decoration: none;
  transition: color 0.15s ease;
}

.yd-store-nav a:hover {
  color: #8D3A3C;
}

.yd-store-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.yd-store-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #3B1319;
  text-decoration: none;
  display: inline-block;
}

.yd-store-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #280B0F;
}

.yd-store-icon {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.yd-store-icon:hover {
  color: #8D3A3C;
}

.yd-cart-icon {
  position: relative;
}

.yd-store-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #8D3A3C;
  color: #ffffff;
  font-size: 0.5625rem;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.yd-store-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #280B0F;
  color: #ffffff;
  padding: 3rem 2.5rem;
}

.yd-store-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.yd-hero-desktop-img,
.yd-hero-mobile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.yd-hero-mobile-img {
  display: none;
}

.yd-store-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(40, 11, 15, 0.92) 0%, rgba(59, 19, 25, 0.8) 50%, rgba(40, 11, 15, 0.4) 100%);
}

.yd-store-hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.yd-store-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #C6B39A;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.yd-store-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.85rem 0;
  color: #ffffff;
}

.yd-store-subhead {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #e4dcce;
  margin: 0 0 1.5rem 0;
}

.yd-store-hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.yd-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.yd-store-btn-gold {
  background: #C6B39A;
  color: #280B0F;
  border: 1px solid #C6B39A;
}

.yd-store-btn-gold:hover {
  background: #dfcdb4;
  border-color: #dfcdb4;
  transform: translateY(-1px);
}

.yd-store-btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.yd-store-btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Trust Guarantee Strip */
.yd-store-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.15rem 2rem;
  background: #ffffff;
  border-bottom: 1px solid #ebe5df;
}

.yd-trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #3B1319;
}

.yd-trust-item svg {
  flex-shrink: 0;
  color: #8D3A3C;
}

.yd-trust-item div {
  display: flex;
  flex-direction: column;
}

.yd-trust-item strong {
  font-size: 0.72rem;
  font-weight: 700;
  color: #280B0F;
  line-height: 1.2;
}

.yd-trust-item span {
  font-size: 0.65rem;
  color: #7B694E;
}

/* General Store Section */
.yd-store-section {
  padding: 2.75rem 2rem;
}

.yd-store-bg-alt {
  background: #f4f0e9;
}

.yd-store-section-header {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 2rem auto;
}

.yd-section-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #8D3A3C;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.yd-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  color: #280B0F;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.yd-section-desc {
  font-size: 0.8125rem;
  color: #7B694E;
  margin: 0;
}

/* Category Grid */
.yd-store-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.yd-cat-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #ebe5df;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yd-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(59, 19, 25, 0.12);
}

.yd-cat-thumb {
  height: 140px;
  overflow: hidden;
  background: #ece8e1;
}

.yd-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.yd-cat-card:hover .yd-cat-thumb img {
  transform: scale(1.05);
}

.yd-cat-info {
  padding: 0.85rem;
  text-align: center;
}

.yd-cat-info h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin: 0 0 0.2rem 0;
  color: #280B0F;
}

.yd-cat-info span {
  font-size: 0.65rem;
  color: #7B694E;
}

/* Products Grid */
.yd-store-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.yd-prod-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ebe5df;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yd-prod-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(59, 19, 25, 0.12);
}

.yd-prod-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #8D3A3C;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  z-index: 2;
}

.yd-prod-badge.yd-badge-new {
  background: #3B1319;
}

.yd-prod-img-wrap {
  height: 160px;
  overflow: hidden;
  background: #f7f5f2;
}

.yd-prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.yd-prod-card:hover .yd-prod-img-wrap img {
  transform: scale(1.05);
}

.yd-prod-details {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.yd-prod-cat {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #7B694E;
  margin-bottom: 0.25rem;
}

.yd-prod-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #280B0F;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.yd-prod-rating {
  font-size: 0.65rem;
  color: #C6B39A;
  margin-bottom: 0.5rem;
}

.yd-prod-rating span {
  color: #7B694E;
}

.yd-prod-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.yd-prod-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3B1319;
}

.yd-prod-compare {
  font-size: 0.75rem;
  color: #a09789;
  text-decoration: line-through;
}

.yd-prod-btn {
  margin-top: auto;
  appearance: none;
  background: #280B0F;
  color: #ffffff;
  border: none;
  padding: 0.5rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.yd-prod-btn:hover {
  background: #8D3A3C;
}

/* Editorial Brand Banner */
.yd-store-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #3B1319;
  color: #ffffff;
  overflow: hidden;
}

.yd-editorial-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yd-editorial-content {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yd-editorial-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #C6B39A;
  margin-bottom: 0.5rem;
}

.yd-editorial-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.25;
  margin: 0 0 1rem 0;
  color: #ffffff;
}

.yd-editorial-content p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #dfdad0;
  margin: 0 0 1.5rem 0;
}

/* Promotional Campaign Strip */
.yd-store-promo-strip {
  width: 100%;
  background: #000;
}

.yd-store-promo-strip img {
  width: 100%;
  height: auto;
  display: block;
}

/* Store Footer */
.yd-store-footer {
  background: #1f080c;
  color: #d8cec0;
  padding: 2.75rem 2rem 1.5rem 2rem;
  font-size: 0.75rem;
}

.yd-store-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(198, 179, 154, 0.15);
}

.yd-footer-brand-col p {
  color: #a89c8a;
  line-height: 1.5;
  margin: 0.75rem 0 1rem 0;
  max-width: 260px;
}

.yd-store-footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #C6B39A;
  display: inline-block;
}

.yd-store-socials {
  font-size: 0.6875rem;
  color: #C6B39A;
}

.yd-store-footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff;
  margin: 0 0 0.85rem 0;
}

.yd-store-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.yd-store-footer-col ul a {
  color: #a89c8a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.yd-store-footer-col ul a:hover {
  color: #C6B39A;
}

.yd-newsletter-form {
  display: flex;
  margin-top: 0.75rem;
}

.yd-newsletter-form input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(198, 179, 154, 0.25);
  padding: 0.45rem 0.65rem;
  color: #ffffff;
  font-size: 0.7rem;
  border-radius: 3px 0 0 3px;
  outline: none;
  width: 100%;
}

.yd-newsletter-form button {
  background: #C6B39A;
  color: #280B0F;
  border: none;
  padding: 0 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
}

.yd-store-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: #7b695c;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================================================
   Responsive Reflow inside Device (Narrow Viewport / Mobile Mode)
   ========================================================================== */

/* Under 768px: Reflow categories and products to 2 cols */
@container (max-width: 768px), (max-width: 768px) {
  .yd-device-chassis.is-mobile-device .yd-store-category-grid,
  .yd-device-chassis.is-mobile-device .yd-store-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.yd-device-chassis.is-mobile-device .yd-store-nav {
  display: none;
}

.yd-device-chassis.is-mobile-device .yd-store-menu-toggle {
  display: flex;
}

.yd-device-chassis.is-mobile-device .yd-hero-desktop-img {
  display: none;
}

.yd-device-chassis.is-mobile-device .yd-hero-mobile-img {
  display: block;
}

.yd-device-chassis.is-mobile-device .yd-store-hero {
  min-height: 340px;
  padding: 2rem 1.25rem;
}

.yd-device-chassis.is-mobile-device .yd-store-heading {
  font-size: 1.55rem;
}

.yd-device-chassis.is-mobile-device .yd-store-trust-strip {
  grid-template-columns: 1fr 1fr;
  padding: 1rem;
  gap: 0.75rem;
}

.yd-device-chassis.is-mobile-device .yd-store-category-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.yd-device-chassis.is-mobile-device .yd-store-products-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.yd-device-chassis.is-mobile-device .yd-prod-img-wrap {
  height: 120px;
}

.yd-device-chassis.is-mobile-device .yd-prod-details {
  padding: 0.65rem;
}

.yd-device-chassis.is-mobile-device .yd-prod-title {
  font-size: 0.75rem;
}

.yd-device-chassis.is-mobile-device .yd-prod-btn {
  font-size: 0.58rem;
  padding: 0.4rem;
}

.yd-device-chassis.is-mobile-device .yd-store-editorial {
  grid-template-columns: 1fr;
}

.yd-device-chassis.is-mobile-device .yd-editorial-content {
  padding: 1.75rem 1.25rem;
}

.yd-device-chassis.is-mobile-device .yd-store-footer-top {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.yd-device-chassis.is-mobile-device .yd-store-footer-bottom {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.yarden-preview-notice {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-ink-faint);
  margin-top: var(--space-3);
  text-align: center;
}

@media (max-width: 768px) {
  .yarden-preview-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .yarden-preview-toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .yarden-preview-stage {
    min-height: 520px;
    padding: 1.5rem 0.5rem;
  }

  .yd-monitor-screen {
    height: 480px;
  }
}

