/* ---------------------------------------------------------------------------
   wwwroot/css/shared/global/05-quick-view.css

   Loaded by _Layout.cshtml as part 5 of 17 for every page.
   Cascade order is the file order in that <link> list:
     previous: 04-grids.css
     next:     06-filters.css

   Split out of a single monolithic stylesheet. Do not reorder the <link>
   tags and do not move a rule between these files: both change the cascade.
--------------------------------------------------------------------------- */
.qv__placeholder {
    width: 100%;
    height: 220px;
    display: grid;
    place-items: center;
    background: #f4f4f4;
    color: #525252;
}
.qv__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.qv__thumb {
    flex: 0 0 auto;
    width: 76px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    padding: 0;
    overflow: hidden;
    scroll-snap-align: center;
    cursor: pointer;
}

    .qv__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .qv__thumb.is-active {
        border-color: #0f62fe;
        box-shadow: 0 0 0 2px rgba(15, 98, 254, 0.18);
    }
#quick-view-modal::part(content) {
    padding: 0;
}

.qv {
    display: grid;
    gap: 12px;
    padding: 16px 20px 18px;
}


.qv__viewer {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 10px;
}


.qv__frame {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    min-height: 260px;
    display: grid;
    place-items: center;
    background: #fff;
    width: 100%;
    max-height: calc(100vh - 260px);
}


.qv__main {
    width: 100%;
    max-height: calc(100vh - 260px);
    object-fit: contain;
    display: block;
    height: 100%;
    transition: opacity 160ms ease;
}

    
    .qv__main.is-fading {
        opacity: 0.2;
    }


.qv__nav {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    font-size: 1.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding: 0;
    position: relative;
}

.qv__nav::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-left: 2px solid #525252;
  border-bottom: 2px solid #525252;
}

.qv__nav--prev::before {
  transform: rotate(45deg);
  margin-left: 4px; 
}

.qv__nav--next::before {
  transform: rotate(-135deg);
  margin-right: 4px; 
}

.qv__nav:hover {
    background: #f4f4f4;
}


.qv__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 2px;
}

.qv__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: #c6c6c6;
    cursor: pointer;
    padding: 0;
}

    .qv__dot.is-active {
        background: #0f62fe;
        transform: scale(1.2);
    }


.qv__desc {
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .mmrp-banner__grid,
    .mmrp-banner__content {
        width: 358px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}