/* Product Gallery Container */
/* Main Carousel */
.product-carousel {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.product-carousel-item {
    background: #f8f9fa;
    position: relative;
    padding-top: 75%; /* Ratio 4:3 */
}

.product-carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Carousel Controls */
.product-carousel .carousel-control-prev,
.product-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.product-carousel .carousel-control-prev {
    left: 1rem;
}

.product-carousel .carousel-control-next {
    right: 1rem;
}

.product-carousel .carousel-control-prev:hover,
.product-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

/* Thumbnails */
.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0 0.25rem;
}

.product-thumb-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    padding-top: 100%; /* Ratio carré 1:1 */
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.product-thumb-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.2s ease;
    background: white;
}

.product-thumb-wrapper.active {
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.15);
}

/* Responsive adjustments for thumbnails */
@media (max-width: 576px) {
    .product-thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Product Info Sticky Container */
.product-sticky-wrapper {
    position: sticky;
    top: 100px;
    height: fit-content;
    padding-right: 1rem;
}

/* Product Title and Price */
.product-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #212529;
    line-height: 1.2;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 600;
    color: #198754;
}

/* Product Meta */
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating-count {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Shipping Info */
.shipping-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.shipping-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.shipping-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.shipping-item i {
    font-size: 1.5rem;
    color: #198754;
    width: 2rem;
    text-align: center;
}

.shipping-text {
    display: flex;
    flex-direction: column;
}

.shipping-text strong {
    font-size: 0.95rem;
    color: #212529;
}

.shipping-text span {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Usage Tips */
.usage-tips {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tip-item i {
    font-size: 1.25rem;
    padding-top: 0.25rem;
}

.tip-content {
    flex: 1;
}

.tip-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #212529;
}

.tip-content p {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Custom Accordion Styles */
.custom-accordion {
    margin-top: 2rem;
}

.accordion-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.accordion-content {
    padding: 1.25rem;
    background: white;
}

.accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #333;
    transition: transform 0.3s ease;
}

.accordion-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.accordion-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

[aria-expanded="true"] .accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
}

/* Add to Cart Button */
.btn-dark {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.payment-methods i {
    color: #6c757d;
    font-size: 1.1rem;
}

.klarna-tag {
    background: #ffb3c7;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-gallery {
        margin-bottom: 2rem;
    }
    
    .product-sticky-wrapper {
        position: static;
        padding-right: 0;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .shipping-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 1.75rem;
    }

    .product-price {
        font-size: 1.5rem;
    }
}