/* Product Carousel Styles */
.product-carousel-container {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.product-carousel {
    position: relative;
    display: flex;
    transition: transform 0.5s ease;
    width: fit-content;
}

/* Product Item */
.product-item {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
}

/* Gallery and Content Layout */
.product-item.gallery-left {
    flex-direction: row;
}

.product-item.gallery-right {
    flex-direction: row-reverse;
}

/* Gallery Styles */
.product-gallery-container {
    position: relative;
    padding: 0 15px;
    box-sizing: border-box;
}

.product-gallery {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 10px;
}

.product-gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.product-gallery-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.product-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Navigation Arrows */
.gallery-nav-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    pointer-events: none;
}

.gallery-nav-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0.7;
}

.gallery-nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

/* Gallery Thumbnails */
.product-gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.product-gallery-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.product-gallery-thumbnail.active {
    border-color: #4caf50;
}

.product-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Content */
.product-content {
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: #222222;
    font-size: 24px;
    font-weight: 600;
}

.product-price {
    font-size: 22px;
    font-weight: 600;
    color: #e91e63;
    margin-bottom: 15px;
}

.product-description {
    margin-bottom: 20px;
    color: #666666;
    line-height: 1.6;
}

/* Product Features */
.product-features {
    margin-bottom: 20px;
}

.product-features h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.product-features ul {
    margin: 0;
    padding-left: 20px;
}

.product-features li {
    margin-bottom: 5px;
}

/* Button Styles */
.product-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4caf50;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: auto;
    align-self: flex-start;
}

.product-button:hover {
    background-color: #388e3c;
}

/* Navigation Arrows */
.product-carousel-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.product-carousel-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    color: #333333;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.product-carousel-arrow:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* Navigation Dots */
.product-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.product-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #dddddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-carousel-dot.active {
    background-color: #4caf50;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-item {
        flex-direction: column !important;
    }
    
    .product-gallery-container, 
    .product-content {
        width: 100% !important;
        padding: 0;
    }
    
    .product-gallery-container {
        margin-bottom: 20px;
    }
    
    .product-carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}