/* ==========================================================================
   VEIL & BLOOM — Responsive Layout Rules
   ========================================================================== */

/* Tablet (768px to 1199px) */
@media (max-width: 1199.98px) {
  .vb-nav {
    gap: 1.35rem;
  }

  .vb-atelier-content-col {
    padding: 4.5rem 3rem;
  }

  .vb-collection-section,
  .vb-section-ivory,
  .vb-section-dark {
    padding: 5.5rem 0;
  }

  .vb-hscroll-panel {
    flex: 0 0 76vw;
  }
}

/* Below 992px — Mobile Drawer + Horizontal Scroll Vertical Fallback */
@media (max-width: 991.98px) {
  .vb-nav,
  .vb-header-discover {
    display: none;
  }

  .vb-mobile-toggle {
    display: inline-flex;
  }

  .vb-atelier-media-col {
    min-height: 420px;
  }

  .vb-atelier-content-col {
    padding: 4rem 2rem;
  }

  .vb-pdp-info,
  .vb-pinned-media-sticky {
    position: static;
    margin-bottom: 2rem;
  }

  .vb-hscroll-section {
    height: auto;
    padding: 5rem 0;
  }

  .vb-hscroll-sticky {
    position: static;
    height: auto;
    padding-top: 0;
  }

  .vb-hscroll-track {
    flex-direction: column;
    padding: 0 1rem;
    gap: 3rem;
    transform: none !important;
  }

  .vb-hscroll-panel {
    flex: 1 1 auto;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Mobile (below 768px) */
@media (max-width: 767.98px) {
  :root {
    --vb-header-height: 68px;
  }

  .vb-cursor {
    display: none !important;
  }

  .vb-hero {
    min-height: 92vh;
    align-items: flex-end;
    padding-bottom: 5.5rem;
  }

  .vb-hero-img {
    object-position: 74% top;
  }

  .vb-hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(16, 17, 22, 0.45) 0%,
      rgba(16, 17, 22, 0.52) 38%,
      rgba(16, 17, 22, 0.94) 76%,
      rgba(16, 17, 22, 0.98) 100%
    );
  }

  .vb-hero-content {
    padding-top: 1.5rem;
  }

  .vb-hero-title {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
    margin: 1rem 0 1.25rem;
  }

  .vb-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .vb-hero-actions .vb-btn-primary {
    width: 100%;
  }

  .vb-hero-actions .vb-btn-link-light {
    align-self: flex-start;
  }

  .vb-hero-indicator {
    bottom: 1.35rem;
  }

  .vb-collection-section,
  .vb-section-ivory,
  .vb-section-dark,
  .vb-manifesto-section,
  .vb-pinned-section {
    padding: 4.25rem 0;
  }

  .vb-collection-header {
    margin-bottom: 3rem;
  }

  .vb-overlap-collage {
    min-height: 360px;
  }

  .vb-overlap-primary {
    width: 88%;
  }

  .vb-overlap-secondary {
    width: 56%;
  }

  .vb-atelier-media-col {
    min-height: 340px;
  }

  .vb-atelier-content-col {
    padding: 3.5rem 1.25rem;
  }

  .vb-stage-card {
    padding: 1.75rem 0 1.75rem 1.25rem;
  }

  .vb-craft-steps {
    max-width: 100%;
  }

  .vb-cart-row {
    grid-template-columns: 76px 1fr;
    gap: 1rem;
  }

  .vb-cart-row-controls {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .vb-confirm-hero {
    padding: calc(var(--vb-header-height) + 2.5rem) 0 4.5rem;
    text-align: center;
  }

  .vb-confirm-hero .d-flex.flex-wrap {
    justify-content: center;
  }

  .vb-confirm-support p {
    margin-left: auto;
    margin-right: auto;
  }

  .vb-confirm-pedestal-wrap {
    max-width: 280px;
    margin-bottom: 1.5rem;
  }

  .vb-confirm-item-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .vb-confirm-item-img {
    width: 100%;
    max-width: 240px;
  }

  .vb-confirm-meta-grid {
    grid-template-columns: 1fr;
  }

  .vb-packaging-bottle-overlay {
    right: 0;
    bottom: -1rem;
    width: 38%;
  }

  .vb-journey-timeline {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-top: 0;
    padding-left: 2rem;
  }

  .vb-journey-track {
    top: 0;
    bottom: 0;
    left: 5px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .vb-journey-progress {
    top: 0;
    left: 5px;
    width: 2px;
    height: 18%;
    transform-origin: top center;
    transform: scaleY(0);
  }

  .vb-journey-timeline.is-visible .vb-journey-progress {
    transform: scaleY(1);
  }

  .vb-journey-step {
    padding-top: 0;
  }

  .vb-journey-step::before {
    top: 0.25rem;
    left: -2rem;
  }

  .vb-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .vb-footer-links {
    flex-wrap: wrap;
    gap: 0.75rem 0;
  }

  .vb-footer-link:first-child {
    padding-left: 0;
  }

  .vb-footer-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--vb-border-light);
  }
}
