h1,
h2 {
    text-transform: uppercase;
    font-size: 20px;
}

.product-wrapper {
    padding: 12px;
    margin-left: 0px;
    margin-right: 0px;
    border: 1px solid #CCC;
}

.product-details {
    padding-left: 12px;
    display: flex;
    flex-direction: column;
}

.product-skelton {
    height: 335px;
    margin-bottom: 30px;
    background: #f7f7f7;
}

.product-pic {
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.border-1 {
    border: 1px solid #CCC;
    border-radius: 4px;
    padding: 16px;
}

.pro-pic-wrapper {
    width: auto;
    display: inline-block;
}

.pro-pic-wrapper {
    margin: 0 auto;
    max-height: 500px;
    overflow: hidden;
}

.pro-pic-wrapper img {
    margin: 0px auto;
    max-height: 500px;
}

.text-secondary {
    color: #6c757d;
    font-weight: 500;
    font-size: 13px;
}

.text-primary {
    color: #000;
    font-weight: 500;
    font-size: 13px;
}

.product-title {
    font-size: 18px;
    line-height: 36px;
    font-weight: 600;
    color: #000;
}
.price-text {
    font-size: 18px;
    line-height: 24px;
}
.offer-text {
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    color: #CC0C39;
    margin: 8px 0 16px;
}
.offer-exp-text {
    margin-left: 6px;
    font-size: 12px;
    line-height: 20px;
    color: #CC0C39;
}
.free-download-link {
    display: flex;
    justify-content: center;
    gap: 4px;
    width: 100%;
}
.free-download-link > a {
    color: #9E2143;
}
.free-download-link:before {
    content: " ";
    width: 24px;
    height: 18px;
    background: url(https://www.oregonpatchworks.com/embroidery/app/view/elements/images/img-download.png) 0 18px;
}
.wishlist-button {
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 6px;
}

.main-image-container {
    width: 100%;
    min-height: 300px;
    display: inline-grid;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    border: 1px solid #ccc;
    touch-action: none;
}

.main-image {
    width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    will-change: transform;
}

.opacity-1 {
    opacity: 0.1;
}

.main-image-container.hover-zoom .main-image {
    transform: scale(2);
    transform-origin: var(--x, 50%) var(--y, 50%);
}

.main-image-container.mobile-zoom .main-image {
    transform: scale(2) translate(var(--move-x, 0px), var(--move-y, 0px));
    cursor: move;
}

.thumbnail-carousel {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    max-width: 100%;
    max-height: 570px;
}

.thumbnails {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex-direction: column;
}

.thumbnails::-webkit-scrollbar {
    display: none;
}

.thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    flex: 0 0 auto;
    border: 1px solid #ccc;
}

.thumb.active {
    border-color: #007bff;
}

.arrow {
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 22px;
    font-weight: 800;
    z-index: 1;
    rotate: 90deg;
}

/**modal css */
.image-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
    padding-top: 60px;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    /* transition: transform 0.3s ease; */
    /* cursor: zoom-in; */
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* .image-modal img:active {
    transform: scale(2);
    cursor: zoom-out;
} */
.token-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}
.add-btn-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.btn-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}
.flex-justify-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.flex-justify-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.add-cart-btn {
    width: 100%;
    font-size: 18px;
    line-height: 32px;
}
.add-wishlist-btn {
    width: 100%;
    font-size: 18px;
    line-height: 32px;
}
.social-icons-wrapper {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
}
.social-icons-wrapper img {
    width: 44px;
    height: 44px;
    cursor: pointer;
    margin: 0;
}
.pdf-link-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.custom-alert {
    width: 100%;
}

@media screen and (max-width: 767px) {
    .main-image-container {
        width: 85vw;
        max-height: 430px;
    }
    .product-details {
        padding: 0;
        margin-top: 16px;
    }
    .product-pic {
        flex-direction: column-reverse;
    }
    .thumbnail-carousel {
        flex-direction: row;
        gap: 4px;
    }
    .thumbnails {
        flex-direction: row;
    }
    .arrow {
        rotate: none;
    }
    #price-span {
        margin-top: 20px;
    }
}
