/* Home Products Section */
.home-products-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #F5EFE7 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Header */
.home-products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    gap: 30px;
    flex-wrap: wrap;
}

.home-products-header-content {
    flex: 1;
    min-width: 280px;
}

.home-products-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #D4844D;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.home-products-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5C4033;
    margin: 0 0 15px 0;
    font-family: 'Merriweather', serif;
    line-height: 1.2;
}

.home-products-description {
    font-size: 1.125rem;
    color: #6B5744;
    margin: 0;
    max-width: 500px;
    line-height: 1.6;
}

.home-products-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #8B4513;
    color: #8B4513 !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.home-products-view-all:hover {
    background-color: #8B4513;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.home-products-view-all svg {
    transition: transform 0.3s ease;
}

.home-products-view-all:hover svg {
    transform: translateX(4px);
}

/* Slider Layout */
.home-products-slider-wrapper {
    position: relative;
    margin: 0 -15px;
    padding: 20px 0 40px;
}

.home-products-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.product-card-wrapper {
    flex: 0 0 25%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Product Card */
.home-product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

.home-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.15);
}

/* Image Wrapper */
.home-product-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f0f0f0;
}

.home-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-product-card:hover .home-product-image {
    transform: scale(1.08);
}

.home-product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

/* Badge */
.home-product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #D4844D;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(212, 132, 77, 0.3);
}

/* Rating */
.home-product-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #5C4033;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Content */
.home-product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.home-product-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #5C4033;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    transition: color 0.3s ease;
}

.home-product-card:hover .home-product-card-title {
    color: #D4844D;
}

.home-product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #6B5744;
    margin-bottom: 15px;
}

.home-product-meta .separator {
    color: #D4844D;
}

/* Footer */
.home-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 69, 19, 0.1);
}

.home-product-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: #6B5744;
    margin-bottom: 2px;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B4513;
    font-family: 'Merriweather', serif;
}

.home-product-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #D4844D;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
}

.home-product-card:hover .home-product-btn {
    background: #C17844;
    transform: scale(1.1);
}

/* Navigation Buttons */
.home-products-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.products-nav-button {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: #ffffff;
    color: #8B4513;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 69, 19, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.products-nav-button:hover {
    background-color: #8B4513;
    color: #ffffff;
    transform: scale(1.05);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 1019px) {
    .product-card-wrapper {
        flex: 0 0 50%;
    }

    .home-products-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .home-products-section {
        padding: 60px 0;
    }

    .home-products-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px;
        gap: 20px;
    }

    .home-products-header-actions {
        width: 100%;
    }

    .home-products-view-all {
        width: 100%;
        justify-content: center;
    }

    .product-card-wrapper {
        flex: 0 0 85%;
    }

    .home-product-image-wrapper {
        height: 240px;
    }

    .home-products-slider-wrapper {
        margin: 0 -10px;
    }
}