/**
 * Single Product Page Styles
 * Charlotte Home Furnishings Theme
 * Author: Md Rafiqul Islam
 */

/* Single Product Layout */
.single-product-content {
    margin: 0 auto;
}
.product-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}
/* Product Images Section */
.product-images-section {
    /* position: sticky;
    top: 80px;
    height: fit-content;
    align-self: flex-start; */
    position: relative;
    max-width: 645px;
}
/* .main-swiper {
    width: 100%;
    margin-bottom: 10px;
}
.main-swiper .swiper-slide {
    text-align: center;
}

.main-swiper img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    max-height: 800px;
    width: auto;
}
.product-thumbnails-swiper {
    transform: translatey(-65%);
}
.product-thumbnails-swiper .swiper-wrapper {
    justify-content: center;
    gap: 20px;
}
.product-thumbnails-swiper .swiper-slide {
    width: 110px;
    height: 110px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    transition: border-color 0.3s ease;
    position: relative;
}
.product-thumbnails-swiper .swiper-slide .image-counter{
    position: absolute;
    width: 110px;
    height: 43px;
    left: calc(50% - 110px/2);
    top: calc(50% - 43px/2 + 2.5px);
    font-family: var(--font-title);
    font-style: normal;
    font-weight: 500;
    font-size: 36px;
    line-height: 43px;
    text-align: center;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}
.product-thumbnails-swiper .swiper-slide.swiper-slide-thumb-active {
}
.product-thumbnails-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */
/* Product Image Gallery */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.main-image-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.main-image-container img {
    max-width: 100%;
    height: auto;
    max-height: 800px;
    width: auto;
}
.img-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin2 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}
@keyframes spin2 {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.thumbnail-container {
    width: 100%;
    transform: translateY(-65%);
}
.product-thumbnails {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.product-thumbnail {
    width: 110px;
    height: 110px;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}
.product-thumbnail:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.product-thumbnail.active {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-thumbnail:hover img {
    transform: scale(1.1);
}
.image-count-overlay {
    position: absolute;
    width: 110px;
    height: 43px;
    left: calc(50% - 55px);
    top: calc(50% - 19px);
    font-family: var(--font-title);
    font-style: normal;
    font-weight: 500;
    font-size: 36px;
    line-height: 43px;
    text-align: center;
    letter-spacing: -0.01em;
    color: #fff;
}
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.product-thumbnail:hover .play-icon-overlay {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}
.main-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 48px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}
.main-image-container:hover .main-play-icon {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}
.f-thumbs__slide.for-video::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1;
}

/* Product Details Section */
.product-details-section {
    padding-left: 20px;
}
.product-details-section .entry-summary {
}
.single-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 0 10px 0;
}
.product-title {
    flex: 1 1 60%;
    max-width: 75%;
}
.product_title{
    font-family: var(--font-title);
    font-style: normal;
    font-weight: 500;
    font-size: 36px;
    line-height: 43px;
    letter-spacing: -0.01em;
    color: var(--text);
    margin:0;
}
.product-stock {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: -0.01em;
    color: #454545;
}
.product-stock .dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-right: 5px;
}
.product-stock.out-of-stock .dot{
    background-color: var(--color-danger);
}
.product-favorite {
    flex: 0 0 auto;
    font-size: 20px;
    cursor: pointer;
}
.product-favorite .wishlist-btn{
    padding: 0;
    border: none;
    outline:none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.product-favorite .wishlist-btn svg{
    fill: var(--primary);
}
.product-favorite .wishlist-btn:hover svg{
    fill: var(--color-danger);
}
.product-rating {
    margin-bottom: 20px;
}
.product-rating .review-stars{
    display: flex;
    align-items: center;
    gap: 5px;
}
.product-rating .review-stars .rating-link{
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: -0.01em;
    color: var(--muted);
}
.product-meta-info {
    margin: 10px 0;
}
.product-meta-info .meta-item {
    display: flex;
    justify-content: flex-start;
    gap:10px;
    margin-bottom: 5px;
    font-style: normal;
    font-weight: 200;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #454545;
}
.product-meta-info .meta-item:last-child {
    margin-bottom: 0;
}
.single-product-size-info{
    margin-top: 20px;
}
.price {
    font-family: var(--font-title);
    font-style: normal;
    font-weight: 500;
    font-size: 36px;
    line-height: 43px;
    letter-spacing: -0.01em;
    color: var(--secondary);
}
.price del {
    font-family: var(--font-title);
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    letter-spacing: -0.01em;
    text-decoration-line: line-through;
    color: var(--muted);
    margin-right: 10px;
}
.price ins {
    text-decoration: none;
    color: var(--secondary);
}
.single-product .price{
    margin-bottom: 20px;
}
.cart {
    margin-bottom: 30px;
}
.cart .quantity {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    border: 1px solid #E4EADE;
    border-radius: 8px;
    overflow: hidden;
}
.cart .quantity input[type="number"] {
    width: 60px;
    height: 48px;
    text-align: center;
    background: transparent;
    border:none;
    outline: none;
    -moz-appearance: textfield;
    font-family: var(--font-family-inter);
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.01em;
    color: #5D5D5D;
}
.cart .quantity input[type="number"]::-webkit-outer-spin-button,
.cart .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cart .quantity .qty-btn {
    width: 40px;
    height: 48px;
    border: none;
    background: var(--white);
    cursor: pointer;
    font-size: 18px;
    color: #5D5D5D;
    transition: background-color 0.3s ease;
}
.cart .quantity .qty-btn:hover {
    background: var(--btn-white-active);
}

.single_add_to_cart_button {
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0px 0px 12px #BBE2C2;
    backdrop-filter: blur(3.9px);
    border-radius: 4px;
    color: white;
    border: none;
    padding: 15px 64px 15px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 300px;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    text-transform: uppercase;
    overflow: hidden;
}
.single_add_to_cart_button.button::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 5px;
    width: 24px;
    height: 24px;
    background-image: url('../images/plus-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block !important;
}
.single_add_to_cart_button:disabled {
    background: var(--muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.help-content-box{
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #454545;
    margin-bottom: 20px;
}
.help-content-box a{
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: -0.01em;
    text-decoration-line: underline;
    color: var(--primary);
}
.product-tab-informations .product-info-group{
    border-top: 1px solid #E4EADE;
    padding: 16px 0px;
}
.product-tab-informations .product-info-group:last-child{
    border-bottom: 1px solid #E4EADE;
}
.product-tab-informations .product-info-group .product-info-group-title{
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 29px;
    color: #36523D;
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
}
.product-tab-informations .product-info-group .product-info-group-title::after{
    position: absolute;
    top: 3px;
    right: 10px;
    content: "";
    width: 24px;
    height: 24px;
    background: url('../images/arrow-down-green.svg');
    background-size: contain;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}
.product-info-group.closed .product-info-group-title::after {
    transform: rotate(180deg);
}
.product-info-group .product-info-group-content,
.product-info-group .product-info-group-content table th,
.product-info-group .product-info-group-content table td{
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: var(--muted);
}
.product-info-group.closed .product-info-group-content {
    display: none;
}
.product-additional-info .related.products{
    margin-bottom: 40px;
}
.product-additional-info .related.products > h2{
    font-family: var(--font-title);
    font-style: normal;
    font-weight: 400;
    font-size: 50px;
    line-height: 60px;
    text-align: center;
    color: var(--text);
    margin-bottom: 40px;
}
.variations_form.cart{
    margin-top: 20px;
}
.woocommerce-variation.single_variation{
    margin-bottom: 20px;
}
.swvr-active form.variations_form .variations {
    display: none !important;
}
/* .swvr-active form.variations_form .single_variation .woocommerce-variation-price, */
.swvr-active form.variations_form .single_variation .woocommerce-variation-description,
.swvr-active form.variations_form .single_variation .woocommerce-variation-availability {
    display: none !important;
}
.swvr-variations-label{
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 10px;
}
.swvr-variations{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    padding: 0px;
    gap: 8px;
    margin-bottom: 20px;
}
.swvr-variations .swvr-variation-option{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 8px 6px;
    gap: 10px;
    border: 1px solid #E4EADE;
    border-radius: 8px;
    cursor: pointer;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: -0.01em;
    color: #5A5C4C;
}
.swvr-variations .swvr-variation-option:hover,
.swvr-variations .swvr-variation-option.swvr-variation-active{
    background: #36523D;
    border: 1px solid #000000;
    color: #FFFFFF;
}
.swvr-variations .swvr-variation-option .swvr-variation-selector{
    display: none;
}
.swvr-variations .swvr-variation-option label{
    cursor: pointer;
}

.product-additional-info #reviews{
    margin-top: 40px;
}


/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}