.clickable {
    cursor: pointer;
}

.detail-body {
    margin: 0 auto;
    padding-left: 3vw;
    padding-right: 3vw;
    height: 100%;
    overflow-anchor: none;
}

/* image grid */
.product-image-list {
    /* grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 1rem; */
    float: left;
    padding-left: 30px;
}

.product-cover-wrapper {
    max-width: 530px;
    width: 100%;
    margin: 0 auto;
}

.product-cover {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    height: 100%;
    max-width: 530px;
    width: fit-content;
}

.cover-image {
    max-width: 530px;
    max-height: 530px;
    height: auto;
    width: 100%;
    object-fit: scale-down;
}

.product-image-wrapper {
    display: flex;
    flex-direction: row;
    margin-top: 15px;
    width: 100%;
    overflow-x: scroll;
    justify-content: center;
}

* {
    scrollbar-width: auto;
    scrollbar-color: #b3b3b3 #ffffff;
}

/* Chrome, Edge, and Safari */
.interest-container::-webkit-scrollbar,
.product-image-wrapper::-webkit-scrollbar {
    height: 8px;
}

.interest-container::-webkit-scrollbar-track,
.product-image-wrapper::-webkit-scrollbar-track {
    background: #ffffff;
}

.interest-container::-webkit-scrollbar-thumb,
.product-image-wrapper::-webkit-scrollbar-thumb {
    background-color: #b3b3b3;
    border-radius: 10px;
    border: 2px solid #ffffff;
}

img.just-product-image {
    height: 120px;
    width: 120px;
    margin: 5px;
    object-fit: contain;
}

.product-image-wrapper .product-image {
    flex: 0 0 25%;
}

@media only screen and (min-width: 750px) {
    .product-image-wrapper .product-image {
        flex: 0 0 33.33%;
    }
}

@media only screen and (min-width: 990px) {
    .product-image-wrapper .product-image {
        flex: 0 0 25%;
    }
}

.carousel-control-prev,
.carousel-control-next {
    height: fit-content;
    margin: auto 0;
}

.carousel.pointer-event {
    touch-action: pan-y pinch-zoom;
}

/* -------------- Start of detail container ----------------- */
.detail-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.detail-content-inside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.product-price {
    font-size: 1.75rem;
    font-weight: bold;
    color: #b12704;
}

.attribute-row {
    gap: 1rem;
    font-size: 1rem;
}

.stock-note {
    background-color: #faf2dc;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-left: 4px solid #d4af37;
    color: #333;
    border-radius: 4px;
}

/* Collapsible Button */
.btn-toggle-desc {
    background-color: transparent;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    padding: 0.5rem 0;
    position: relative;
    border-bottom: 1px solid #ccc;
    transition: background 0.3s;
}

.btn-toggle-desc:hover {
    background-color: #f8f9fa;
}

.rotate-icon {
    transition: transform 0.3s;
}

.btn-toggle-desc[aria-expanded="true"] .rotate-icon {
    transform: rotate(180deg);
}

.desc-content {
    font-size: 0.925rem;
    line-height: 1.6;
    background-color: #fdfdfd;
}

.quantity-container label {
    font-size: 1rem;
}

.quantity-box {
    background-color: #f8f9fa;
    height: 42px;
    gap: 0.5rem;
}

.qty-input {
    width: 50px;
    background: transparent;
    font-weight: 500;
    font-size: 1rem;
}

.btn-qty {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    background: none;
    border: none;
}

.btn-qty:hover {
    color: #000;
    background-color: #e9ecef;
    border-radius: 50%;
    transition: 0.2s;
}

.btn-addcart {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, white 50%, black 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    color: white;
    border: 2px solid black;
    border-radius: 0.4rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s ease;
}

.btn-addcart:hover {
    background-position: left bottom;
    color: black;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-title {
        font-size: 2.25rem;
    }

    .product-price {
        font-size: 2rem;
    }

    .attribute-row {
        font-size: 1.1rem;
    }

    .btn-add-cart {
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }
}

/* ------------ End of the detail container ------------ */




.interest-heading-text {
    font-size: 1.35em;
    font-weight: bold;
}

/* Slower collapse animation */
#descriptionCollapse {
    transition: height 0.7s ease;
}

/* Image animation base state */
.img-animate {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.9s ease;
}

/* Animate in from right (odd) */
.img-animate.odd {
    transform: translateX(50px);
}

/* Animate in from left (even) */
.img-animate.even {
    transform: translateX(-50px);
}

/* Active animation state */
.img-animate.active {
    opacity: 1;
    transform: translateX(0);
}


/* Might like section */
.interest-container {
    flex: 1;
    display: flex;
    overflow: auto;
}

.interest-container .card-list {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    flex: 1;
    min-width: max-content;
    gap: calc(0.25em + 0.5vw);
}

.interest-container .card {
    height: fit-content;
    width: 220px;
    min-height: fit-content;
    border: unset;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.card picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 1s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card picture.hover {
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.card:hover picture.hover {
    opacity: 1;
}

.card:hover picture.default {
    opacity: 0;
}

.interest-container .card-img,
.card-img-top {
    border-top-left-radius: calc(0.25rem - 1px);
    border-top-right-radius: calc(0.25rem - 1px);
    height: 220px !important;
    width: 220px !important;
    object-fit: contain;
}

@media (width < 768px) {
    .interest-container .card-list {
        grid-template-columns: unset;
        grid-auto-flow: column;
        grid-auto-columns: 45%;
        overflow-x: scroll;
    }

    .interest-container .card {
        width: 180px;
    }

    .interest-container .card-img,
    .card-img-top {
        height: 180px !important;
        width: 180px !important;
    }

    ul {
        padding-left: 1rem;
    }

}

.interest-container .card-list .card-img {
    height: 100%;
    object-fit: cover;
}



/* end of content */

/* The Modal (background) */
.products-modal-viewer {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
}

/* Modal Content */
.products-modal-viewer-content {
    position: relative;
    background-color: transparent;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    z-index: 999999;
}


.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.mySlides {
    display: none;
}

.mySlides picture img,
.mySlides picture source {
    max-width: 100%;
    max-height: 92vh;
    height: auto;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Gritter */
#gritter-notice-wrapper {
    padding: 3px;
    background: white;
    width: 388px;
    border-radius: 3px;
    top: 0;
    right: 0;
    border: 1px solid #dddd53;
}

#gritter-notice-wrapper * {
    color: black;
}

#gritter-notice-wrapper .gritter-navigate-text {
    text-decoration: underline;
    color: #dddd53;
}

.gritter-item-wrapper {
    margin: unset;
}

.gritter-item {
    background: unset;
    background-color: inherit;
}

.gritter-title {
    text-shadow: unset;
}

.gritter-image {
    width: 80px;
    height: 108px;
    object-fit: cover;
}

.gritter-with-image {
    width: 258px;
}

.gritter-with-image p {
    font-size: 1.05rem;
    font-weight: bold;
    font-style: italic;
}

.gritter-with-image p.small-text {
    font-size: 0.75rem !important;
    color: rgb(94 93 93 / 80%) !important
}

.gritter-close {
    top: 0;
    left: unset;
    right: 3px;
    display: block !important;
}

/* Loader */
.loader-container {
    position: fixed;
    top: 50%;
    left: 0;
    background: transparent;
    width: 100%;
    text-align: center;
    height: 100%;
    color: #000;
    transform: translateY(-50%);
    z-index: 1060;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: brightness(0.5);
    opacity: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.loader {
    border: 8px solid black;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-container.show {
    opacity: 1;
    visibility: visible;
}

/* End of loader */