@charset "UTF-8";


.product-view-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns */
    column-gap: 1rem;
}

@media (max-width:600px) {
    .product-view-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

h1 {
    margin-top: 5px;
    margin-bottom: 5px;
}


.image-viewer {
    display: grid;
    grid-template-columns: 1fr 5fr;
    height: fit-content;
    column-gap: 0;
    align-items: center;

}

.thumb-viewer {
    align-items: center;
    display: grid;
    grid-auto-rows: auto;
    gap: .25rem;
    width: fit-content;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: none;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;


}

.thumb {
    width: 100%;
    border: none;
    padding: 0;
    box-sizing: border-box;
}

.thumb.active {
    border: 5px solid black;
}

.options-viewer {
    display: flex;
    flex-direction: column;
    height: 100%;
}


/* STILL NEED TO PLAY WITH THE SCROLLING BEHAVIOR ON THIS PAGE. I THINK WE WANTED THE OPTIONS VIEWER TO SCROLL INDEPENDENTLY FROM THE BIG IMAGE WHEN IT'S IN DESKTOP LAYOUT */
/* .options-viewer {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: none;
    height: 100%;

} */

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.main-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    /* portrait — choose yours */
    overflow: hidden;
    /* keeps buttons clipped if needed */
    /* optional */
}

/* Floating buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;

    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    cursor: pointer;

    /* choose your styling */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
}

.nav-btn.prev {
    left: 10px;
}

.nav-btn.next {
    right: 10px;
}

.product-tags {
    font-size: .75rem;
    color: var(--greyText);
    padding: 0;
    margin: 0;
}

.priceline {
    color: black;
    margin: 0;
    padding: 0;
    font-weight: bold;
    font-size: 1rem;
}

.size-form {
    margin: 25px 0;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.option-button.active {
    border: 3px solid black;
    background-color: #e9e9e9;
}

.accordion {
    max-width: 600px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.accordion ul {
    margin: 0;
    padding: 1rem;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 26px;
    /* roomy like screenshot */
    background: #fff;
    border: 0;
    cursor: pointer;

    text-transform: uppercase;
    letter-spacing: 0.35em;
    /* wide tracking */
    font-size: 14px;
    font-weight: 500;

    color: #111;
}

.accordion-header:hover {
    background: #e9e9e9;
}

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 300ms ease;
    background: #fff;
}

.accordion-item.active .accordion-content {
    grid-template-rows: 1fr;
}

.chevron {
    width: 8px;
    height: 8px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: rotate(45deg);
    transition: transform 200ms ease;
}

.accordion-item.active .chevron {
    transform: rotate(225deg);
    /* points up */
}

.inner-accordion-content {
    overflow: hidden;
    padding: 0 1rem 1rem;
}

.info-box {
    position: fixed;
    display: none;
    top: 45%;
    left: 10%;
    width: 80%;
    height: fit-content;
    /* background-color: #e9e9e9; */
    background-color: black;
    font-size: 1rem;
    z-index: 1000;
    flex-direction: column;
    padding-top: 30px;
    border-radius: 10px;
    opacity: .9;

}

.info-box.active {
    display: flex;

}

.show-info {
    cursor: pointer;
}

.show-info:hover {
    color: var(--greyText);
}

.info-box>p {
    margin: 15px;
    color: white !important;
}

.close-btn {
    position: absolute;
    top: .5rem;
    right: .5rem;

    width: 32px;
    height: 32px;
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;

    display: grid;
    place-items: center;
}

.close-button {
    width: 100%;
    align-items: right;
    text-align: end;
    display: flex;
}

.close-button button {
    border: none;
    margin: 10px 10px 0 0;
    font-size: 1.25rem;
    width: fit-content;
}

.close-button button:hover {
    font-weight: bold;
    background-color: blue;
    color: var(--greyText);
}

.options-wrapper {
    width: 100%;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    margin: 5px 0;

}

.options-wrapper div,
.options-wrapper p {
    margin: 0;
    padding: 0;
}