/* Product Detail Page Styles */

.section_product-detail {
    padding: 2rem 0;
}

/* Breadcrumb Styles */
.breadcrumb-wrapper {
    padding: 1rem 0;
}

.woocommerce-breadcrumb {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    direction: rtl;
}

.woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.woocommerce-breadcrumb .breadcrumb-separator {
    margin: 0 0.25rem;
}

/* Product Gallery */
.product-detail_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-detail_gallery-wrapper {
    position: relative;
    width: 100%;
}

.product-detail_gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-detail_main-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    min-height: 500px;
    aspect-ratio: 1 / 1;
}

.product-detail_main-image {
    display: none;
    width: 100%;
    height: 100%;
}

.product-detail_main-image.current {
    display: block;
}

.product-detail_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail_main-video {
    display: none;
    width: 100%;
    height: 100%;
}

.product-video-wrapper {
    position: relative;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    height: 0;
    overflow: hidden;
}

.product-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-gallery_arrow {
    position: absolute;
    width: 10%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    padding: 0px;
    opacity: .1;
    transition:ease-in-out 0.3s

}


.product-gallery_arrow:hover {
    position: absolute;
    width: 10%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    padding: 0px; 
    opacity: 1;
}

.product-gallery_arrow.left {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);

}

.product-gallery_arrow.right {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

.product-detail_thumbnail-wrapper {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.product-detail_thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 0.25rem;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.product-detail_thumbnail-item:hover,
.product-detail_thumbnail-item.active {
    opacity: 1;
}

.product-detail_thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail_video-thumbnail {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Content */
.product-detail_content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.product-short-description {
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    color: #000;
}

/* Color swatches */
.product-attribute {
    margin-bottom: 1rem;
}

.attribute-label {
    margin-bottom: 0.5rem;
}

.color-swatch-wrapper {
    display: flex;
    gap: 0.5rem;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: transform 0.2s ease;
}

.color-swatch:hover,
.color-swatch.active {
    transform: scale(1.1);
    border: 2px solid #000;
}

/* Quantity selector */
.product-quantity {
    margin-bottom: 1rem;
}

.quantity-label {
    margin-bottom: 0.5rem;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    max-width: 120px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quantity-button {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.quantity-input {
    width: 100%;
    text-align: center;
    border: none;
    padding: 0.5rem;
}

/* Add to cart */
.product-add-to-cart {
    margin-bottom: 1rem;
}

.single_add_to_cart_button {
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.single_add_to_cart_button:hover {
    background-color: #333;
}

/* Shipping notice */
.shipping-notice {
    padding: 1rem;
    background-color: #f8f8f8;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Accordions */
.product-accordions {
    margin-top: 1rem;
}

.product-accordion {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 0 1rem 0;
}

/* Related products */
/* Product card styling removed to avoid conflicts with existing styles */

/* Responsive styles */
@media (max-width: 991px) {
    .product-detail_grid {
        grid-template-columns: 1fr;
    }
    
    .product_list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 767px) {
    .product_list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .product_list {
        grid-template-columns: 1fr;
    }
}













/* Product Slider Styles */

.section_product-slider {
    padding: 2rem 0;
    overflow: hidden;
}

.product-slider_component {
    position: relative;
}

.product-slider_wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 -8px;
    padding: 0 8px;
}

.product-slider_track {
    display: flex;
    transition: transform 0.3s ease;
}

.product-slider_slide {
    flex: 0 0 25%; /* Default - 4 slides per view */
    padding: 0 8px;
    box-sizing: border-box;
}

/* Product Card */
.product-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background-color: #fff;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card_link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.product-card_image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect ratio */
    overflow: hidden;
}

.product-card_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card_image {
    transform: scale(1.05);
}

.product-card_content {
    padding: 1rem;
}

.product-card_category {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
    background-color: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.product-card_title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card_price {
    font-weight: 700;
    color: #000;
}

.product-card_price del {
    color: #999;
    font-weight: normal;
    margin-right: 0.5rem;
}

.product-card_price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* Slider Navigation */
.product-slider_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
}

.product-slider_arrow:hover {
    background-color: #000;
    color: #fff;
}

.product-slider_arrow.left {
    left: 0;
}

.product-slider_arrow.right {
    right: 0;
}

.product-slider_arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 991px) {
    .product-slider_slide {
        flex: 0 0 33.333%; /* 3 slides per view */
    }
}

@media (max-width: 767px) {
    .product-slider_slide {
        flex: 0 0 50%; /* 2 slides per view */
    }
}

@media (max-width: 479px) {
    .product-slider_slide {
        flex: 0 0 100%; /* 1 slide per view */
    }
}