.sub-product-carousel-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 50%, #e0f2f1 100%);
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 8px 40px rgba(46, 125, 50, 0.1);
    margin-top: 1rem;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.sub-product-carousel-header {
    text-align: center;
    margin-bottom: 40px;
}

.sub-product-carousel-title {
    color: #1b5e20;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.sub-product-carousel-subtitle {
    color: #4caf50;
    font-size: 1.05rem;
    font-weight: 500;
}

.sub-product-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    padding: 0 30px;
}

.sub-product-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 1200px;
}

.sub-product-item {
    min-width: calc(33.333% - 20px);
    margin: 0 10px;
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(46, 125, 50, 0.08);
}

.sub-product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2e7d32, #66bb6a, #81c784);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sub-product-item:hover::before {
    opacity: 1;
}

.sub-product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(46, 125, 50, 0.12);
    border-color: rgba(46, 125, 50, 0.15);
}

.sub-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.sub-product-item:hover .sub-product-image img {
    transform: scale(1.03);
}

.sub-product-image {
    width: 100%;
    height: 200px;
    background: #f5f9f5;
    border-radius: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    font-size: 3rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.sub-product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.sub-product-item:hover .sub-product-image::after {
    transform: translateX(100%);
}

.sub-product-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 8px;
    min-height: 60px;
    line-height: 1.5;
    letter-spacing: -0.3px;
}

.sub-product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sub-product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e53935;
    margin-bottom: 16px;
}

.sub-product-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    text-align: center;
    text-decoration: none;
}

.sub-product-btn:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

.sub-product-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(46, 125, 50, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #2e7d32;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.1);
}

.sub-product-nav-btn:hover {
    background: #2e7d32;
    color: white;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.25);
}

.sub-product-prev-btn {
    left: -5px;
}

.sub-product-next-btn {
    right: -5px;
}

.sub-product-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

.sub-product-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.sub-product-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sub-product-dot:hover {
    background: rgba(46, 125, 50, 0.4);
}

.sub-product-dot.active {
    background: #2e7d32;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(46, 125, 50, 0.3);
}

/* Tablet */
@media (max-width: 1024px) {
    .sub-product-item {
        min-width: calc(50% - 20px);
    }

    .sub-product-carousel-container {
        padding: 30px 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .sub-product-carousel-title {
        font-size: 1.6rem;
    }

    .sub-product-item {
        min-width: calc(100% - 20px);
        padding: 18px;
    }

    .sub-product-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .sub-product-carousel-container {
        padding: 24px 12px;
        border-radius: 14px;
    }

    .sub-product-image {
        height: 180px;
    }

    .sub-product-name {
        min-height: auto;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .sub-product-carousel-container {
        padding: 20px 10px;
        border-radius: 12px;
    }

    .sub-product-carousel-title {
        font-size: 1.4rem;
    }

    .sub-product-image {
        height: 160px;
    }

    .sub-product-item {
        padding: 14px;
    }

    .sub-product-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
}