﻿/* LEEDAR AGRI GENETICS - Products Page CSS */
/* Hero Background Image | Marathi/English | Mobile Responsive */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.products-page-section {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: #f8faf8;
}

/* ========== HERO SECTION WITH BACKGROUND IMAGE ========== */
.products-hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.products-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.6));
}

.products-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 40px;
    margin-bottom: 20px;
}

    .hero-badge i {
        font-size: 0.9rem;
        color: #ffd700;
    }

    .hero-badge span {
        font-size: 0.85rem;
        font-weight: 500;
        letter-spacing: 1px;
    }

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

    .hero-title span {
        color: #ffd700;
    }

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

    .hero-subtitle span {
        color: #ffd700;
    }

.hero-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffb347);
    margin: 0 auto 20px;
    border-radius: 3px;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

    .hero-scroll i {
        font-size: 1.5rem;
        color: white;
        opacity: 0.7;
    }

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ========== CONTAINER ========== */
.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* ========== CATEGORY TABS ========== */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.tab-btn {
    background: white;
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .tab-btn:hover {
        background: #ffb347;
        color: white;
        transform: translateY(-2px);
    }

    .tab-btn.active {
        background: linear-gradient(135deg, #ffd700, #ffb347);
        color: #1a1a2e;
        box-shadow: 0 4px 12px rgba(255, 180, 71, 0.3);
    }

/* ========== PRODUCTS GRID ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    }

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 260px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #1a1a2e;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .quick-view-btn:hover {
        transform: scale(1.05);
    }

/* Product Info */
.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.eng-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffb347;
}

.product-type {
    font-size: 0.7rem;
    color: #777;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

    .product-meta span {
        font-size: 0.7rem;
        color: #555;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .product-meta i {
        color: #ffb347;
    }

.product-actions {
    display: flex;
    gap: 12px;
}

.details-btn, .enquiry-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.details-btn {
    background: #1a1a2e;
    border: none;
    color: white;
}

    .details-btn:hover {
        background: #ffb347;
        color: #1a1a2e;
    }

.enquiry-btn {
    background: transparent;
    border: 1px solid #ffb347;
    color: #ffb347;
}

    .enquiry-btn:hover {
        background: #ffb347;
        color: white;
    }

/* ========== PRODUCT MODAL ========== */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

    .product-modal.active {
        display: block;
    }

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1100px;
    max-height: 85vh;
    background: white;
    border-radius: 28px;
    overflow-y: auto;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    z-index: 10;
}

    .modal-close:hover {
        color: #ffb347;
        transform: scale(1.1);
    }

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.modal-image {
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
}

    .modal-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        min-height: 350px;
    }

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.english-text {
    font-size: 0.9rem;
    color: #ffb347;
    font-weight: 500;
    margin-bottom: 8px;
}

.modal-header p:last-of-type {
    font-size: 0.85rem;
    color: #777;
}

.modal-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
    background: #f8faf8;
    border-radius: 16px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .spec-item i {
        font-size: 1.2rem;
        color: #ffb347;
        width: 30px;
    }

    .spec-item div {
        display: flex;
        flex-direction: column;
    }

    .spec-item strong {
        font-size: 0.7rem;
        color: #999;
        font-weight: 500;
    }

    .spec-item span {
        font-size: 0.85rem;
        color: #333;
        font-weight: 600;
    }

.modal-season {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #fff8e8;
    border-radius: 12px;
    border-left: 4px solid #ffb347;
}

    .modal-season i {
        font-size: 1rem;
        color: #ffb347;
    }

    .modal-season span {
        font-size: 0.85rem;
        color: #555;
    }

.modal-features h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .modal-features h4 i {
        color: #ffb347;
    }

.modal-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.modal-features li {
    font-size: 0.8rem;
    color: #555;
    padding: 8px 12px;
    background: #f8faf8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .modal-features li i {
        color: #ffb347;
        font-size: 0.7rem;
    }

.modal-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background: #e8f5e9;
    border-radius: 12px;
}

    .modal-note i {
        font-size: 1rem;
        color: #ffb347;
    }

    .modal-note p {
        font-size: 0.8rem;
        color: #555;
        line-height: 1.4;
    }

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.enquire-now-btn, .close-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.enquire-now-btn {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border: none;
    color: #1a1a2e;
}

    .enquire-now-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 180, 71, 0.4);
    }

.close-modal-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

    .close-modal-btn:hover {
        border-color: #ffb347;
        color: #ffb347;
    }

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .modal-specs {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .products-hero {
        height: 60vh;
        min-height: 450px;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .hero-badge span {
        font-size: 0.7rem;
    }

    .products-container {
        padding: 40px 20px;
    }

    .product-tabs {
        gap: 10px;
    }

    .tab-btn {
        padding: 8px 18px;
        font-size: 0.7rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }

    .modal-content {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .modal-image img {
        min-height: 250px;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-features ul {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .products-hero {
        height: 50vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-badge {
        padding: 5px 14px;
    }

        .hero-badge span {
            font-size: 0.6rem;
        }

    .products-container {
        padding: 30px 16px;
    }

    .product-image-wrapper {
        height: 220px;
    }

    .product-name {
        font-size: 1rem;
    }

    .eng-name {
        font-size: 0.65rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .modal-container {
        width: 95%;
    }

    .modal-specs {
        padding: 12px;
    }

    .spec-item {
        gap: 8px;
    }

        .spec-item i {
            font-size: 1rem;
            width: 25px;
        }

        .spec-item span {
            font-size: 0.75rem;
        }

    .modal-features li {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .modal-note p {
        font-size: 0.7rem;
    }
}
