.single-product-page {
    padding: 2rem 0 6rem 0;
}

.product-essential {
    display: flex;
    gap: 6rem;
    margin-top: 9rem;
}

/* Gallery */
.product-gallery {
    flex: 0 0 45%;
}

.main-image {
    background: linear-gradient(90deg, rgba(241, 219, 221, 1), rgba(241, 219, 221, 1.5));
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    height: 47.813rem;
}

.main-image img {
    max-width: 100%;
    height: auto;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.thumb-item {
    background-color: #eee;
    border-radius: 1rem;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumb-item img {
    width: 100%;
    object-fit: cover;
}
.thumb-item.active {
    border: 2px solid #000;
}
.main-carousel {
    width: 100%;
    margin-bottom: 3.5rem;
}

.main-carousel .carousel-cell {
    width: 100%;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nav-carousel {
    width: 100%;
}

.nav-carousel .carousel-cell {
    width: 22%; 
    margin-right: 1.5rem;
    border-radius: 1.5rem;
    cursor: pointer;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}


.nav-carousel .carousel-cell.is-nav-selected {
    border: 2px solid #000;
}

.flickity-enabled:focus {
    outline: none;
}
/* Summary Content */
.product-summary {
    flex: 1;
}

.product_title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.product-short-description {
    margin-bottom: 3rem;
}
.product-short-description p {
    font-size: 1.25rem;
    color: rgba(126, 126, 126, 1);
    line-height: 1.3;
}
.variation-label, .qty-label, .price-label {
    font-size: 1.5rem;
    color: rgba(126, 126, 126, 1);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 500;
}

.variation-options {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.swatch {
    border: 1px solid #000;
    background: transparent;
    padding: 0 4.5rem;
    border-radius: 3rem;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    height: 4.875rem;
    line-height: 4.875rem;
    color: rgba(0, 0, 0, 1);
}
.swatch.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Actions Row */
.product-actions-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.qty-box {
    display: flex;
    align-items: center;
    width: 14.375rem;
}

.qty-box button {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    width: 4rem;
    height: 4rem;
    border: 2px solid #000;
    border-radius: 50%;
    line-height: 4rem;
}

.qty-box  button.minus {
    line-height: 3rem;
}
.qty-box input {
    width: 4rem;
    text-align: center;
    border: none;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
}
.qty-box input::-webkit-outer-spin-button,
.qty-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.price-content {
    display: flex;
    align-items: center;
    position: relative;
    line-height: 1;
}

.current-price {
    font-size: 3rem;
    font-weight: 700;
    text-decoration: none;
}
.old-price {
    font-size: 1rem;
    color: rgba(126, 126, 126, 1);
    font-weight: 600;
}
.price-wrapper span.price-label {
    text-align: right;
}
.price-meta {
    text-align: right;
    margin-right: 1rem;
}
.sale-percentage {
    color: rgba(234, 73, 73, 1);
    padding: 0;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    display: block;
}
/* Buttons */
.button-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.btn-add-to-cart, .btn-buy-now {
    flex: 1;
    padding: 1.8rem;
    border-radius: 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-add-to-cart {
    background: transparent;
    border: 1px solid #000;
}

.btn-buy-now {
    background: #000;
    color: #fff;
    border: none;
}

/* Trust Badges */
.product-trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    background: rgba(241, 219, 221, 0.5);
    padding: 1.5rem;
    border-radius: 1rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.badge-item p {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
}
/*tabs product*/
.product-details-bottom {
    padding: 1.5rem 0;
}

/* Tabs Styling */
.tabs-nav {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    list-style: none;
    margin-bottom: 4rem;
}

.tabs-nav li {
    padding: 0 4rem;
    border: 1px solid #000;
    border-radius: 3rem;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    height: 4.875rem;
    line-height: 4.875rem;
}
.tabs-nav li.active {
    background: #000;
    color: #fff;
}

.tabs-content p {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #000;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.content-banner {
    margin: 4rem 0;
    border-radius: 2rem;
    overflow: hidden;
}

.content-banner img {
    width: 100%;
    display: block;
}

/* Reviews Styling */
.review-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 4rem 0 4rem;
}

.review-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
/* Rating Left Column */
.rating-score {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
}

.star-icon {
    font-size: 4rem;
    font-style: normal;
}

.rating-count {
    font-size: 1.25rem;
    color: rgba(126, 126, 126, 1);
    margin: 1rem 0 3rem;
    font-weight: 500;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 2.25rem;
    font-weight: 500;
}
.bar {
    flex: 1;
    height: 1.938rem;
    background: #e0e0e0;
    border-radius: 1rem;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: #000;
}
.rating-bars {
    max-width: 80%;
}
/* Review Right Column */
.review-item {
    background: #f7efef;
    padding: 2.5rem;
    border-radius: 2rem;
    margin-bottom: 2rem;
}

.review-user-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.user-name {
    font-weight: 500;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}
span.user-name img {
    margin-right: .5rem;
}
.review-date {
    color: rgba(126, 126, 126, 1);
    font-size: 1rem;
    font-weight: 500;
}
.user-stars {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    letter-spacing: .5rem;
}

.review-text {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0;
}
.review-images {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}
.review-images img {
    width: 3.875rem;
    height: 3.875rem;
    border-radius: 1rem;
    object-fit: cover;
}
.review-images > * {
    height: 3.875rem;
}
.img-more {
    position: relative;
}

.img-more span {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-weight: 700;
}

/* Footer */
.review-footer {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}
.btn-load-more {
    padding: 0 2rem;
    border: 1px solid #000;
    border-radius: 3rem;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 1.5rem;
    height: 3.375rem;
    line-height: 3.375rem;
}
.tabs-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tabs-content.active {
    display: block;
    opacity: 1;
}

.tabs-nav li {
    cursor: pointer;
    user-select: none;
}
/*tabs product*/
.recently-viewed  ul.loriana-shop-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 2rem;
    display: grid;
    gap: 2rem;
}
section.recently-viewed {
    padding: 6rem 0;
}
section.recently-viewed .product-card-inner {
    background: #fff;
    border-radius: 2rem;
    padding: 1rem;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.25);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
section.recently-viewed .product-image-wrapper {
    background-color: #f2e1e1;
    border-radius: 1.5rem;
    aspect-ratio: 1 / 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1.5rem;
    height: 22.875rem;
}
section.recently-viewed .woocommerce-loop-product__title {
    font-size: 1.875rem !important;
}
.product-info a {
    text-decoration: none;
}
section.recently-viewed .price {
    font-size: 2.25rem !important;
}
section.recently-viewed .product-price-row {
    text-align: right;
    padding: 1rem 0 0;
}
section.recently-viewed p.product-short-desc,
section.recently-viewed .product-category {
    font-size: .938rem;
}
section.recently-viewed {
    padding: 6rem 0 10rem;
}
/* ================= PDP RESPONSIVE ================= */

@media screen and (max-width: 1024px) {
    .product-essential {
        flex-direction: column; 
        gap: 4rem;
        margin-top: 3rem;
    }
    .review-title{
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    .review-text {
        margin-bottom: 1rem;
    }
    section.recently-viewed {
        padding: 6rem 0;
    }
    .swatch {
        border: 1px solid #000;
        background: transparent;
        padding: 0 2rem;
        border-radius: 3rem;
        font-size: 1.5rem;
        font-weight: 500;
        cursor: pointer;
        height: 4rem;
        line-height: 4rem;
        color: rgba(0, 0, 0, 1);
    }
    .product-gallery {
        flex: 0 0 100%;
    }

    .main-image {
        height: 40rem; 
    }

    .product-summary {
        width: 100%;
    }

    .product_title {
        font-size: 2.8rem;
    }

    .tabs-nav {
        overflow-x: auto; 
        white-space: nowrap;
        padding-bottom: 1rem;
        justify-content: flex-start;
    }

    .tabs-nav li {
        padding: 0 2.5rem;
        flex-shrink: 0;
    }
    .review-layout {
        grid-template-columns: 1fr; 
        gap: 5rem;
    }

    .rating-bars {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .recently-viewed ul.loriana-shop-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
    }
    .breadcrumb {
        font-size: 1.2rem;
    }

    .main-image {
        height: 32rem;
    }

    .nav-carousel .carousel-cell {
        width: 30%; 
    }

    .product-actions-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .price-wrapper span.price-label {
        text-align: left; 
    }

    .price-content {
        justify-content: flex-start;
    }

    .button-group {
        flex-direction: column;
        gap: 1.5rem;
    }

    .btn-add-to-cart, .btn-buy-now {
        width: 100%;
    }

    .product-trust-badges {
        grid-template-columns: 1fr; 
    }

    .rating-score {
        font-size: 5rem;
    }

    .bar-item {
        font-size: 1.6rem;
    }

}

@media screen and (max-width: 480px) {
    .main-image {
        height: 25rem;
        padding: 1rem;
    }

    .product_title {
        font-size: 2.2rem;
    }

    .current-price {
        font-size: 2.4rem;
    }

    .variation-options {
        flex-wrap: wrap; 
        gap: 1rem;
    }

    .swatch {
        padding: 0 2.5rem;
        height: 4rem;
        line-height: 4rem;
        font-size: 1.3rem;
    }

    /* Review Images */
    .review-images {
        justify-content: flex-start; 
        flex-wrap: wrap;
    }

    .recently-viewed ul.loriana-shop-grid {
        grid-template-columns: 1fr; 
    }
}

.flickity-viewport {
    transition: height 0.2s;
}