/** Shopify CDN: Minification failed

Line 9:0 Unexpected "{"
Line 9:1 Expected identifier but found "%"
Line 10:57 Expected identifier but found whitespace
Line 12:1 Expected identifier but found "%"

**/
{%- comment -%}
  This file contains all styles for the Quick View modal.
  All selectors are prefixed with #lumistelle-quickview-modal to prevent conflicts.
{%- endcomment -%}

/* ==========================================================================
   Quick View Modal Shell & Overlay
   ========================================================================== */
#lumistelle-quickview-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center; /* This is for desktop vertical centering */
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

#lumistelle-quickview-modal.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s 0s;
}

#lumistelle-quickview-modal .lumistelle-quickview__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

#lumistelle-quickview-modal .lumistelle-quickview__content {
  position: relative;
  background-color: #ffffff;
  border-radius: 8px;
  max-width: 1400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  z-index: 1;
}

#lumistelle-quickview-modal .lumistelle-quickview__container {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1400px; /* Match this with __content max-width */
  max-height: 90vh;
}

#lumistelle-quickview-modal.active .lumistelle-quickview__content {
  transform: scale(1);
}

#lumistelle-quickview-modal .lumistelle-quickview__close {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(241, 241, 241, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 101; /* Higher than the modal content */
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#lumistelle-quickview-modal .lumistelle-quickview__close:hover {
  background-color: #e1e1e1;
  transform: scale(1.1);
}

@media screen and (min-width: 990px) {
  #lumistelle-quickview-modal .lumistelle-quickview__close {
    top: 0;
    right: 0;
    margin-right: 190px;
  }

  #lumistelle-quickview-modal {
    /* Adjust padding to account for the sticky header */
    padding-top: calc(var(--sticky-header-height, 61px) + 3rem);
    padding-bottom: 3rem;
  }
}

#lumistelle-quickview-modal .lumistelle-quickview__inner-content {
  padding: 1rem;
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */
#lumistelle-quickview-modal .lumistelle-quickview__loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0,0,0,0.1);
  border-top-color: #333;
  border-radius: 50%;
  animation: qv-spin 1s linear infinite;
  margin: 4rem auto;
}

@keyframes qv-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Product Section Overrides (Inside Modal)
   ========================================================================== */
#lumistelle-quickview-modal .lumistelle-product-section {
  margin-top: 0;
}

#lumistelle-quickview-modal .lumistelle-product__gallery {
  /* The gallery is sticky on the product page, disable that in the modal */
  position: static;
  top: auto;
}

#lumistelle-quickview-modal .lumistelle-sticky-bar {
  /* The section has its own sticky bar, which we must never show inside the modal */
  display: none !important;
}

#lumistelle-quickview-modal .lumistelle-info-hub {
    /* Reduce top spacing for info tabs inside the modal */
    margin-top: 2rem;
    padding-top: 2rem;
}

/* --- Mobile & Tablet Overrides --- */
@media screen and (max-width: 989px) {
  #lumistelle-quickview-modal {
    /* On mobile, align to the top and use padding to push content down */
    align-items: flex-start;
    padding-top: calc(var(--sticky-header-height, 61px) + 1.5rem);
  }

  #lumistelle-quickview-modal .lumistelle-quickview__container {
    /* Ensure the container takes up the full available height */
    height: 100%;
  }

  #lumistelle-quickview-modal .lumistelle-product__grid {
    /* Force a single-column layout on smaller screens */
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #lumistelle-quickview-modal .product-gallery__slide {
    /* Adjust mobile gallery height to better fit the modal viewport */
    height: 65vh;
  }

  #lumistelle-quickview-modal .lumistelle-quickview__close {
    margin-left: 85vw;
    transform: translate(5%, -15%);
  }
}

/* --- Desktop Overrides --- */
@media screen and (min-width: 990px) {
  #lumistelle-quickview-modal .lumistelle-quickview__content {
    /* Widen the modal to accommodate the two-column layout */
    max-width: 1200px;
  }

  #lumistelle-quickview-modal .product-gallery__slide {
    /* Use a taller gallery height on desktop for a better experience */
    height: 75vh;
  }
}

body.quick-view-active {
  overflow: hidden;
}