/**
 * Product Page Custom Styles
 * Additional styles for WooCommerce single product page
 *
 * @package Grabit
 * @version 1.0
 */

/* Product Gallery */
.woocommerce-product-gallery {
    position: relative;
}

.single-product-cover .slick-slide {
    outline: none;
}

.single-product-cover .zoom-image-hover {
    cursor: zoom-in;
    position: relative;
}

.single-nav-thumb .slick-slide img {
    transition: all 0.3s ease;
}

.single-nav-thumb .slick-current img {
    border-color: #5caf90 !important;
}

.single-nav-thumb .slick-slide:hover img {
    border-color: #5caf90;
}

/* Slick Navigation Arrows */
.single-nav-thumb .slick-prev,
.single-nav-thumb .slick-next {
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.single-nav-thumb .slick-prev:hover,
.single-nav-thumb .slick-next:hover {
    background: #5caf90;
    border-color: #5caf90;
}

.single-nav-thumb .slick-prev:before,
.single-nav-thumb .slick-next:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #4b5966;
    opacity: 1;
}

.single-nav-thumb .slick-prev:hover:before,
.single-nav-thumb .slick-next:hover:before {
    color: #fff;
}

.single-nav-thumb .slick-prev {
    left: -15px;
}

.single-nav-thumb .slick-next {
    right: -15px;
}

/* Product Variations */
.gi-pro-variation-content ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gi-pro-variation-content li.active,
.gi-pro-variation-content li:hover {
    background: #5caf90;
    color: #fff;
    border-color: #5caf90;
}

/* Quantity Input */
.qty-plus-minus {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qty-plus-minus .qty-input {
    border: none;
    text-align: center;
    width: 50px;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #4b5966;
}

.qty-plus-minus .inc,
.qty-plus-minus .dec {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #4b5966;
    font-size: 18px;
    transition: all 0.3s ease;
}

.qty-plus-minus .inc:hover,
.qty-plus-minus .dec:hover {
    color: #5caf90;
}

/* Product Tabs */
.gi-single-pro-tab-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gi-single-pro-tab-nav li.active a {
    background: #5caf90;
    color: #fff;
    border-color: #5caf90;
}

.tab-single-pane {
    display: none;
}

.tab-single-pane.active {
    display: block;
}

/* Product Meta */
.product_meta > div {
    margin-bottom: 10px;
}

.product_meta a {
    color: #5caf90;
    transition: all 0.3s ease;
}

.product_meta a:hover {
    color: #4b5966;
}

/* Add to Cart Button */
.single_add_to_cart_button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
    margin: 5px;
    padding: 10px 15px;
    text-transform: uppercase;
    background: #4b5966;
    color: #fff;
    transition: all 0.3s ease-in-out;
    position: relative;
    border-radius: 5px;
    min-width: 160px;
    font-weight: 600;
    letter-spacing: 0.02rem;
    border: 0;
}

.single_add_to_cart_button:hover {
    background: #5caf90;
    color: #fff;
}

.single_add_to_cart_button.loading {
    opacity: 0.6;
    pointer-events: none;
}

.single_add_to_cart_button.loading:after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Wishlist Button */
.yith-wcwl-add-to-wishlist .yith-wcwl-add-button a,
.yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a,
.yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #17181c;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
}

.yith-wcwl-add-to-wishlist .yith-wcwl-add-button a:hover,
.yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a:hover,
.yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a:hover {
    color: #fff;
    background: #5caf90;
    border-color: #5caf90;
}

/* Related & Upsells Carousels */
.gi-product-slider .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.gi-product-slider .owl-nav button:hover {
    background: #5caf90;
    border-color: #5caf90;
    color: #fff;
}

.gi-product-slider .owl-nav .owl-prev {
    left: -45px;
}

.gi-product-slider .owl-nav .owl-next {
    right: -45px;
}

/* Add More Slider */
.gi-add-more-slider .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.gi-add-more-slider .owl-nav button:hover {
    background: #5caf90;
    border-color: #5caf90;
    color: #fff;
}

.gi-add-more-slider .owl-nav .owl-prev {
    left: -35px;
}

.gi-add-more-slider .owl-nav .owl-next {
    right: -35px;
}

.add-more-item:hover .gi-btn-2 {
    opacity: 1;
}

/* Reviews */
.woocommerce-Reviews {
    margin-top: 20px;
}

.woocommerce-review__author {
    font-weight: 600;
    color: #4b5966;
}

.woocommerce-review__published-date {
    font-size: 12px;
    color: #999;
}

.comment-text .description {
    margin-top: 10px;
}

/* Star Rating */
.star-rating {
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 1em;
    width: 5.4em;
    font-family: star;
}

.star-rating:before {
    content: '\73\73\73\73\73';
    color: #b2b2b2;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.star-rating span:before {
    content: '\53\53\53\53\53';
    top: 0;
    position: absolute;
    left: 0;
    color: #f27d0c;
}

/* Responsive */
@media (max-width: 991px) {
    .single-product-scroll {
        position: relative !important;
        top: auto !important;
    }
    
    .gi-product-slider .owl-nav .owl-prev {
        left: 10px;
    }
    
    .gi-product-slider .owl-nav .owl-next {
        right: 10px;
    }
}

@media (max-width: 767px) {
    .gi-single-price-stoke {
        flex-direction: column;
    }
    
    .gi-single-stoke {
        margin-top: 10px;
    }
}

/* WooCommerce Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid;
}

.woocommerce-message {
    background: #f0f8f5;
    border-color: #5caf90;
    color: #4b5966;
}

.woocommerce-error {
    background: #fef0f0;
    border-color: #dc3545;
    color: #4b5966;
}

.woocommerce-info {
    background: #f8f8fb;
    border-color: #4b5966;
    color: #4b5966;
}

/* Loading State */
.woocommerce-product-gallery.woocommerce-product-gallery--with-images {
    position: relative;
}

.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 99;
}

