/* css/crop-detail.css */
.crop-detail-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px var(--container-padding);
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

.crop-detail-hero-content {
    flex: 1;
    max-width: 600px;
}

.crop-back-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-primary);
    font-size: 16px;
    color: #8E4E00;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
}

.crop-back-link::before {
    content: '←';
    margin-right: 8px;
}

.crop-detail-title {
    font-family: var(--font-primary);
    font-size: 60px;
    color: #1D1B1A;
    font-weight: 700;
    margin-bottom: 30px;
}

.crop-detail-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.crop-btn-orange {
    background-color: #EF7819;
    color: #FFFFFF;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.crop-btn-orange:hover {
    background-color: #d66a15;
}

.crop-btn-black {
    background-color: #1D1B1A;
    color: #FFFFFF;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.crop-btn-black:hover {
    background-color: #333333;
}

.crop-detail-hero-img-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.crop-detail-img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 21 / 9;
    max-height: 400px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.crop-detail-content-section {
    background-color: #fcfcfc;
    padding: 80px var(--container-padding);
}

.crop-detail-content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.crop-detail-subtitle-red {
    font-family: var(--font-primary);
    font-size: 17px;
    color: #AA182C;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.crop-detail-subtitle-main {
    font-family: var(--font-primary);
    font-size: 30px;
    color: #000000;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

.crop-detail-text-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.crop-detail-left-text {
    display: none;
}

.crop-detail-right-text {
    flex: 1;
    font-family: var(--font-primary);
    font-size: 16px;
    color: #555555;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
}

.crop-detail-right-text p {
    margin-bottom: 15px;
}

.crop-detail-download {
    text-align: center;
    margin-top: 40px;
}

.crop-btn-red {
    background-color: #AA182C;
    color: #FFFFFF;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.crop-btn-red:hover {
    background-color: #8a1324;
}

/* Recommended Products Carousel */
.crop-products-section {
    background-color: #F8F3EF;
    padding: 80px var(--container-padding);
}

.crop-products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.crop-products-title {
    font-family: var(--font-primary);
    font-size: 32px;
    color: #1D1B1A;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.crop-products-desc {
    font-family: var(--font-primary);
    font-size: 16px;
    color: #555555;
    text-align: center;
    margin-bottom: 50px;
}

.crop-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.crop-carousel-track {
    display: flex;
    gap: 25px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.crop-carousel-slide {
    min-width: calc(20% - 20px);
    background-color: #FFFFFF;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    cursor: pointer;
}

.crop-carousel-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: rgba(239, 120, 25, 0.3);
}

.crop-carousel-slide-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.crop-carousel-slide:hover .crop-carousel-slide-img {
    transform: scale(1.05);
}

.crop-carousel-slide-name {
    font-family: var(--font-primary);
    font-size: 15px;
    color: #1D1B1A;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
    transition: color 0.2s ease;
}

.crop-carousel-slide:hover .crop-carousel-slide-name {
    color: #EF7819;
}

.crop-carousel-slide-cat {
    font-family: var(--font-primary);
    font-size: 13px;
    color: #8E4E00;
    font-weight: 600;
    text-align: center;
}

.crop-carousel-slide-link {
    font-family: var(--font-primary);
    font-size: 13px;
    color: #EF7819;
    font-weight: 700;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.crop-carousel-slide:hover .crop-carousel-slide-link {
    color: #d66a15;
    transform: translateX(3px);
}

.crop-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.crop-carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #1D1B1A;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1D1B1A;
    transition: all 0.3s ease;
}

.crop-carousel-btn:hover {
    background-color: #1D1B1A;
    color: #FFFFFF;
}

@media (max-width: 1200px) {
    .crop-carousel-slide {
        min-width: calc(33.33% - 17px);
    }
}

@media (max-width: 992px) {
    .crop-detail-hero, .crop-detail-text-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .crop-detail-right-text {
        text-align: left;
    }
    
    .crop-detail-hero-img-wrapper {
        justify-content: center;
        margin-top: 30px;
        width: 100%;
    }
    
    .crop-detail-left-text {
        max-width: 100%;
        margin-bottom: 20px;
        text-align: left;
    }
    
    .crop-detail-buttons {
        justify-content: center;
    }

    .crop-carousel-slide {
        min-width: calc(50% - 13px);
    }
}

@media (max-width: 768px) {
    .crop-detail-hero {
        padding: 30px var(--container-padding);
        gap: 25px;
    }

    .crop-detail-title {
        font-size: clamp(30px, 8vw, 42px);
        margin-bottom: 20px;
    }

    .crop-detail-content-section {
        padding: 50px var(--container-padding);
    }

    .crop-detail-subtitle-main {
        font-size: 24px;
        margin-bottom: 35px;
    }

    .crop-detail-left-text {
        font-size: 20px;
    }

    .crop-products-section {
        padding: 50px var(--container-padding);
    }

    .crop-products-title {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .crop-detail-hero {
        padding: 25px 15px;
    }

    .crop-detail-buttons {
        flex-direction: column;
        width: 100%;
    }

    .crop-btn-orange, .crop-btn-black, .crop-btn-red {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .crop-carousel-slide {
        min-width: 100%;
    }

    .crop-detail-content-section {
        padding: 40px 15px;
    }

    .crop-products-section {
        padding: 40px 15px;
    }
}
