.recommended-products {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.carousel-track {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 0;
}

.carousel-item {
    min-width: 280px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.carousel-item:hover {
    transform: translateY(-5px);
}

.carousel-item .image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.1);
}

.carousel-item .view-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: rgba(44, 85, 48, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-item:hover .view-details {
    opacity: 1;
}

.view-details-btn {
    padding: 10px 20px;
    background-color: white;
    color: #2C5530;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.view-details-btn:hover {
    transform: scale(1.05);
}

.carousel-item-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.carousel-item h3 {
    margin: 0 0 10px 0;
    color: #2C5530;
    font-size: 1.1em;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.carousel-item .price {
    color: #2C5530;
    font-weight: 600;
    font-size: 1.2em;
    margin: 10px 0;
}

.carousel-item .description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.carousel-item .btn {
    width: 100%;
    padding: 10px;
    background-color: #2C5530;
    color: white;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.carousel-item .btn:hover {
    background-color: #1e3c21;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2C5530;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: #1e3c21;
}

.carousel-button.prev {
    margin-left: -20px;
}

.carousel-button.next {
    margin-right: -20px;
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0 20px;
    }
    
    .carousel-item {
        min-width: 240px;
    }
} 