/* Base styles for the product sections */
.skincare-products,
.hair-products {
    padding: 2rem 0;
    background-color: #f5f5f5;
    overflow: hidden;
}

.hair-products {
    background-color: #f0f0f0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c1810;
    font-size: 2rem;
}

/* Slider container and navigation */
.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.product-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.product-row {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease;
    will-change: transform;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(44, 24, 16, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(44, 24, 16, 1);
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* Flip card styles */
.flip-card {
    flex: 0 0 280px;
    height: 420px;
    perspective: 1000px;
    margin-bottom: 20px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: white;
}

.flip-card-front {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flip-card-front img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    border-radius: 4px;
}

.flip-card-back {
    transform: rotateY(180deg);
    padding: 1.5rem;
}

.flip-card-back .content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flip-card-back h3 {
    color: #2c1810;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.flip-card-back .price {
    color: #2c1810;
    font-weight: 600;
    margin-bottom: 1rem;
}

.flip-card-back .description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Button styles */
.btn {
    background-color: #2c1810;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #3d2317;
}

/* Mobile styles */
@media (max-width: 768px) {
    .slider-container {
        padding: 0 20px;
    }

    .product-row {
        gap: 0;
    }

    .product-slider {
        width: calc(100% - 40px);
        margin: 0 auto;
    }

    .flip-card {
        flex: 0 0 100%;
        margin: 0 auto;
    }
}