/* ============================================================================
   SIMPLIFIED HOMEPAGE STYLES - Agriculture E-shop
   Clean, commercial design inspired by KV-AGRODILY
   ============================================================================ */

/* Container */
.custom-homepage {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
}

/* ============================================================================
   HERO SECTION - Two Column Layout
   ============================================================================ */

.homepage-hero {
    background: #ffffff;
    padding: 40px 20px 60px;
    margin-bottom: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.hero-content {
    padding: 20px 0;
}

.hero-label {
    display: inline-block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #212121;
    margin: 0 0 20px 0;
    line-height: 1.1;
}

.hero-text {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.hero-button {
    display: inline-block;
    background: #fdd835;
    color: #212121;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background: #f9a825;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 216, 53, 0.4);
    color: #212121;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.hero-image-placeholder svg {
    width: 100%;
    height: auto;
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        order: -1;
    }
}

@media (max-width: 600px) {
    .homepage-hero {
        padding: 20px 15px 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
}

/* ============================================================================
   HIGHLIGHTS SECTION - 4 Column Grid
   ============================================================================ */

.homepage-highlights {
    background: #f8f9fa;
    padding: 50px 20px;
    margin-bottom: 60px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.highlight-box {
    text-align: center;
    padding: 20px;
}

.highlight-icon {
    color: #fdd835;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.highlight-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212121;
    margin: 0 0 8px 0;
}

.highlight-text {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 968px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================================================
   FEATURED PRODUCTS SECTION
   ============================================================================ */

.homepage-featured {
    padding: 0 20px 60px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212121;
    text-align: center;
    margin: 0 0 40px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================================
   PRODUCT CAROUSEL
   ============================================================================ */

.product-carousel-wrapper {
    position: relative;
    padding: 0 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-carousel {
    overflow: hidden;
    padding: 15px 0; /* Add vertical padding to prevent clipping */
    margin: -15px 0; /* Compensate for the padding */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 20%; /* 5 items per page */
    padding: 0 10px;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .carousel-item {
        min-width: 25%; /* 4 items */
    }
}

@media (max-width: 900px) {
    .carousel-item {
        min-width: 33.333%; /* 3 items */
    }
}

@media (max-width: 600px) {
    .carousel-item {
        min-width: 50%; /* 2 items */
    }
    
    .product-carousel-wrapper {
        padding: 0 35px;
    }
}

@media (max-width: 400px) {
    .carousel-item {
        min-width: 100%; /* 1 item */
    }
}

/* Product Card */
.product-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    margin: 5px 0; /* Add margin to prevent clipping */
}

.product-card:hover {
    border-color: #1976d2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
    border-bottom: 1px solid #e0e0e0;
}

.product-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.product-info {
    padding: 16px;
    min-height: 100px;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212121;
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1976d2;
    margin: 0;
}

/* Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #757575;
    font-size: 1.8rem;
    font-weight: 300;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
}

.carousel-nav:hover {
    color: #1976d2;
    transform: translateY(-50%) scale(1.15);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav svg {
    display: none;
}

.carousel-prev::before {
    content: "‹";
}

.carousel-next::before {
    content: "›";
}

.carousel-prev {
    left: 5px;
}

.carousel-next {
    right: 5px;
}

@media (max-width: 600px) {
    .carousel-nav {
        width: 28px;
        height: 28px;
        font-size: 1.5rem;
    }
    
    .carousel-prev {
        left: 2px;
    }
    
    .carousel-next {
        right: 2px;
    }
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #bdbdbd;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(189, 189, 189, 0.5);
}

.carousel-dot.active {
    background: #1976d2;
    border-color: #1976d2;
}

/* ============================================================================
   CONTENT SECTION
   ============================================================================ */

/* ============================================================================
   CONTENT SECTION
   ============================================================================ */

.homepage-content {
    margin-bottom: 60px;
    padding: 0;
}

.content-grid {
    display: grid;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Two column layout for first two blocks */
.content-grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.content-block {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #1976d2;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1976d2;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.content-block p {
    font-size: 0.95rem;
    color: #424242;
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.content-block p:last-child {
    margin-bottom: 0;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.benefits-list li {
    font-size: 0.95rem;
    color: #424242;
    line-height: 1.6;
    padding-left: 28px;
    position: relative;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1976d2;
    font-weight: 700;
    font-size: 1.2rem;
}

.benefits-list li strong {
    color: #1976d2;
    font-weight: 600;
}

@media (max-width: 968px) {
    .content-grid-two-cols {
        grid-template-columns: 1fr;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .content-block {
        padding: 25px;
    }
    
    .content-block h2 {
        font-size: 1.3rem;
    }
}

/* ============================================================================
   CALL TO ACTION
   ============================================================================ */

.homepage-cta {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 50px 40px;
    text-align: center;
    margin: 0 20px 60px;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
}

.homepage-cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212121;
    margin: 0 0 12px 0;
}

.homepage-cta p {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 30px 0;
}

.cta-button {
    display: inline-block;
    background: #fdd835;
    color: #212121;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: #f9a825;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 216, 53, 0.4);
    color: #212121;
}

@media (max-width: 768px) {
    .homepage-cta {
        padding: 40px 20px;
        margin: 0 15px 40px;
    }
    
    .homepage-cta h2 {
        font-size: 1.5rem;
    }
    
    .homepage-cta p {
        font-size: 1rem;
    }
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
}