.single-product {
    margin-bottom: 9.375rem;
}

.single-product-content {
    display: flex;
    align-items: flex-start;
    gap: 5rem;
}

.single-product-image img {
    background: var(--light-gray-2);
    border-radius: 0.625rem;
    text-align: center;
    width: 100%;
    height: 37.5rem;
    object-fit: cover;
    object-position: center;
}

.single-product-info {
    flex: 0 1 calc((100% - 5rem) / 2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding-top: 2.5rem;
}

.single-product-title {
    font-weight: 400;
    font-size: 3.4375rem;
    line-height: 1.1;
    letter-spacing: 1%;
    text-transform: capitalize;
    color: var(--dark);
}

.single-product-rating-number a {
    font-family: var(--second-family);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
}

.single-product-price {
    font-family: var(--second-family);
    font-weight: 300;
    font-size: 1.625rem;
    line-height: 1.2;
    letter-spacing: 1%;
    text-transform: capitalize;
    color: var(--soft-orange);
}

.single-product-price ins {
    text-decoration: none;
}

.single-product-short-description {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gray);
}

.single-product-sku {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark);
}

.product-sku-label {
    font-family: var(--second-family);
    font-size: 1rem;
    font-weight: 700;
}

.categories-title {
    font-family: var(--second-family);
    font-size: 1rem;
    font-weight: 700;
}

.product-category {
    font-family: var(--second-family);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark);
}

.product-tags-label {
    font-family: var(--second-family);
    font-size: 1rem;
    font-weight: 700;
}

.product-tag {
    font-family: var(--second-family);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark);
}

.single-product-description-section {
    margin-bottom: 9.375rem;
}

.single-product-cart {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    height: 3.5rem;

    border: 0.0625rem solid var(--dark);
    border-radius: 0.25rem;
}

.quantity-wrapper button {
    width: 3rem;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    background: transparent;

    font-size: 1.25rem;
    color: var(--dark);

    cursor: pointer;
}

.quantity-input {
    width: 3rem;
    height: 100%;

    padding: 0;

    border: 0;
    outline: none;

    background: transparent;

    text-align: center;

    font-size: 1rem;
    color: var(--dark);
}

/* Remove browser arrows */

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type="number"] {
    appearance: textfield;
}


.single_add_to_cart_button {
    height: 3.5rem;

    padding: 0 2rem;

    border: 0.0625rem solid var(--dark) !important;
    border-radius: 0.25rem;

    background: var(--dark) !important;
    color: var(--white) !important;

    cursor: pointer;

    transition:
        background 0.3s;
}

.single_add_to_cart_button:hover {
    border: 0.0625rem solid var(--soft-orange) !important;
    background: var(--soft-orange) !important;
}

.product-tabs {
    margin-bottom: 9.375rem;
}

.product-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 0.0625rem solid var(--light-gray);
}

.product-tab-btn {
    position: relative;
    padding: 0.9375rem;
    border: 0.0625rem solid var(--light-gray);
    background: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
}

.product-tab-btn {
    margin-left: -0.0625rem;
    margin-bottom: -0.0625rem;
}

.product-tab-btn.active {
    color: var(--dark);
}

.product-tab-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.0625rem;
    width: 100%;
    height: 0.125rem;
    background: var(--dark);
}

.product-tabs-content {
    padding-top: 1.875rem;
}

.product-tab-content {
    display: none;
}

.product-tab-content.active {
    display: block;
}

.product-tab-content h2 {
    font-family: var(--second-family);
    margin-bottom: 1.25rem;
}

.product-tab-content p {
    margin: 1.1875rem 0rem;
    line-height: 1.5;
}

.product-tab-content ul li {
    font-family: var(--second-family);
    line-height: 1.5;
}

th.woocommerce-product-attributes-item__label {
    font-family: var(--second-family);
}

/* =========================================================
   PRODUCT GALLERY
========================================================= */

.single-product-gallery {
    width: calc((100% - 5rem) / 2);
}


/* =========================================================
   MAIN SWIPER
========================================================= */

.product-main-swiper {
    width: 100%;
    overflow: hidden;
}


.product-main-swiper .swiper-slide {
    width: 100%;
}


.product-image-zoom {
    position: relative;

    display: block;

    width: 100%;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}


.product-image-zoom img {
    display: block;
    background: var(--alabaster);
    width: 100%;
    height: 37.5rem;
    border-radius: 0.625rem;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   ZOOM ICON
========================================================= */

.zoom-icon {
    position: absolute;

    top: 1.25rem;
    right: 1.25rem;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 2.75rem;
    height: 2.75rem;

    border-radius: 50%;

    background: #fff;

    color: #111;

    box-shadow:
        0 0.25rem 0.9375rem rgba(0, 0, 0, .15);

    pointer-events: none;
}


/* =========================================================
   THUMBNAILS WRAPPER
========================================================= */

.product-thumbnails-wrapper {
    display: flex;

    align-items: center;

    gap: 0.625rem;

    width: 100%;

    margin-top: 0.9375rem;
}


/* =========================================================
   THUMBNAIL SWIPER
========================================================= */

.product-thumbnails-swiper {
    flex: 1;

    min-width: 0;

    overflow: hidden;
}


.product-thumbnails-swiper .swiper-wrapper {
    align-items: stretch;
}


.product-thumbnails-swiper .swiper-slide {
    /*
     * Width is controlled by Swiper:
     * 5 slides visible
     */
    height: auto;
    border-radius: 0.625rem;
    cursor: pointer;

    opacity: .55;

    transition:
        opacity .2s ease,
        border-color .2s ease;
}


/* =========================================================
   THUMBNAIL
========================================================= */

.product-thumbnail {
    aspect-ratio: 1 / 1;

    overflow: hidden;

    border: 0.125rem solid transparent;

    box-sizing: border-box;
}


.product-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/*
 * Swiper active thumbnail
 */

.product-thumbnail.swiper-slide-thumb-active {
    opacity: 1;

    border-color: #111;
}


.product-thumbnail:hover {
    opacity: 1;
}


/* =========================================================
   ARROWS
========================================================= */

.product-gallery-prev,
.product-gallery-next {
    flex: 0 0 2.5rem;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 2.5rem;
    height: 2.5rem;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #f4f4f4;

    color: #111;

    cursor: pointer;

    transition:
        background .2s ease,
        opacity .2s ease;
}


.product-gallery-prev:hover,
.product-gallery-next:hover {
    background: #e5e5e5;
}


.product-gallery-prev.swiper-button-disabled,
.product-gallery-next.swiper-button-disabled {
    opacity: .3;
}


/*
 * IMPORTANT:
 * Because we use loop, arrows should
 * normally never become disabled.
 */

.product-gallery-prev.swiper-button-disabled,
.product-gallery-next.swiper-button-disabled {
    opacity: 1;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.product-lightbox {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    background: rgba(0, 0, 0, .94);
}


.product-lightbox.active {
    display: block;
}


/* =========================================================
   LIGHTBOX MAIN
========================================================= */

.lightbox-main {
    position: absolute;

    top: 3.125rem;
    right: 5.625rem;
    bottom: 8.75rem;
    left: 5.625rem;

    display: flex;

    align-items: center;
    justify-content: center;
}


.lightbox-image {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}


/* =========================================================
   LIGHTBOX CLOSE
========================================================= */

.lightbox-close {
    position: absolute;

    top: 1.25rem;
    right: 1.5625rem;

    z-index: 20;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 2.8125rem;
    height: 2.8125rem;

    padding: 0;

    border: 0;

    background: transparent;

    color: #fff;

    cursor: pointer;
}


/* =========================================================
   LIGHTBOX ARROWS
========================================================= */

.lightbox-prev,
.lightbox-next {
    position: absolute;

    top: 50%;

    z-index: 20;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 3.125rem;
    height: 3.125rem;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, .15);

    color: #fff;

    transform: translateY(-50%);

    cursor: pointer;

    transition:
        background .2s ease;
}


.lightbox-prev {
    left: 1.25rem;
}


.lightbox-next {
    right: 1.25rem;
}


.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, .3);
}


/* =========================================================
   LIGHTBOX THUMBNAILS
========================================================= */

.lightbox-thumbnails {
    position: absolute;

    left: 50%;
    bottom: 1.25rem;

    width: min(90%, 56.25rem);

    transform: translateX(-50%);

    overflow: hidden;
}


.lightbox-thumbnail {
    height: 4.375rem;

    opacity: .55;

    cursor: pointer;

    border: 0.125rem solid transparent;

    box-sizing: border-box;
}


.lightbox-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.lightbox-thumbnail.active {
    opacity: 1;

    border-color: #fff;
}


.related-products {
    margin-bottom: 9.375rem;
}

.related-products-header {
    font-weight: 400;
    font-size: 3.4375rem;
    line-height: 1.1;
    letter-spacing: 1%;
    text-transform: capitalize;
    color: var(--dark);
    margin-bottom: 1.875rem;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 2.8125rem;
}

.related-products-grid .product-title {
    margin-bottom: 0.3125rem;
}

.product-card .attachment-woocommerce_thumbnail {
    width: 100%;
    aspect-ratio: 300 / 270;
    height: auto;
    transform: scale(1);
    object-fit: contain;
    object-position: bottom;
    padding: 0.9375rem 1.5625rem 0;
    background: var(--light-gray-2);
    transition: all 0.3s ease-in-out;
}

.product-link-img:hover .attachment-woocommerce_thumbnail {
    transform: scale(1.1);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 64rem) {
    
    .related-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 62.5rem) {

    .single-product-content {
        flex-direction: column;
        gap: 2.5rem;
    }

    .single-product-gallery {
        width: 100%;
    }

    .single-product-info {
        flex: 0 1 100%;
    }

    
}

@media (max-width: 48rem) {

    .product-thumbnails-wrapper {
        gap: 0.375rem;
    }


    .product-gallery-prev,
    .product-gallery-next {
        flex: 0 0 2rem;

        width: 2rem;
        height: 2rem;
    }


    .lightbox-main {
        top: 3.75rem;

        right: 3.125rem;
        bottom: 7.5rem;

        left: 3.125rem;
    }


    .lightbox-prev,
    .lightbox-next {
        width: 2.5rem;
        height: 2.5rem;
    }


    .lightbox-prev {
        left: 0.3125rem;
    }


    .lightbox-next {
        right: 0.3125rem;
    }


    .lightbox-thumbnail {
        height: 3.75rem;
    }

    .single-product {
        margin-bottom: 6.25rem;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-products-header {
        font-size: 3rem;
    }

    .single-product-title {
        font-size: 3rem;
    }

}

@media (max-width: 30rem) {

    .related-products-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .product-image-zoom img {
        height: 28.125rem;
    }
}