﻿/* ============================================
   PREMIUM VEGETABLE SEEDS - MAIN STYLESHEET
   FULL IMAGE VISIBILITY | ZOOM-OUT PROFESSIONAL VIEW
   NO CROPPING | MOBILE RESPONSIVE
   ============================================ */

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    background: #f8faf5;
    color: #1a2e1f;
    line-height: 1.4;
}

/* ---------- HERO SECTION ---------- */
.veg-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65)), url('/Content/Image/69.jpg') center/cover no-repeat;
    height: 85vh;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.veg-overlay {
    width: 100%;
}

.veg-hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.veg-hero-content p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: #ffefcf;
    margin-bottom: 2rem;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.veg-btn {
    background: #f5b042;
    padding: 14px 38px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    color: #1f3b1a;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

    .veg-btn:hover {
        background: #e09d2c;
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    }

/* ---------- PRODUCT GRID ---------- */
.veg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    padding: 60px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

/* ---------- PRODUCT CARD - FULL IMAGE WITH ZOOM-OUT EFFECT ---------- */
.veg-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    cursor: pointer;
    height: 100%;
    border: 1px solid #e9f0e4;
}

    .veg-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 28px 36px -12px rgba(0, 0, 0, 0.2);
        border-color: #cde0c2;
    }

/* ===== FULL IMAGE WRAPPER - NO CROP, ZOOM-OUT PROFESSIONAL ===== */
.veg-card-img-wrapper {
    width: 100%;
    background: #f4f8ef;
    padding: 24px 20px 20px 20px;
    position: relative;
    border-bottom: 2px solid #f0f6ea;
}

/* Image Frame - Ensures image is contained with breathing space */
.veg-image-frame {
    width: 100%;
    min-height: 240px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-shadow: inset 0 0 0 1px #e9f0e2, 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* CRITICAL: FULL IMAGE VISIBLE, NO CROP, ZOOM-OUT EFFECT */
.veg-card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important;
    /* ZOOM-OUT: image appears comfortably inside frame, fully visible */
    transform: scale(0.85);
    transition: transform 0.4s ease-out;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}

/* On hover: subtle scaling but still NO ZOOM-IN (remains zoomed out) */
.veg-card:hover .veg-card-img-wrapper img {
    transform: scale(0.93);
}

/* Optional: subtle overlay for professional touch */
.veg-card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 28px 28px 0 0;
}

.veg-card:hover .veg-card-img-wrapper::after {
    opacity: 1;
}

/* Card Content Styling */
.veg-card-content {
    padding: 1.25rem 1.25rem 1.5rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.veg-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d4d1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.veg-card p {
    font-size: 0.9rem;
    color: #3d5a3a;
    margin-bottom: 1.2rem;
    line-height: 1.4;
    flex: 1;
}

/* View Details Button */
.veg-view {
    background: #2c6e2c;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    width: fit-content;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .veg-view:hover {
        background: #1d531d;
        transform: translateX(5px);
    }

/* ---------- DETAILS SECTION (Bilingual Specs) ---------- */
.veg-details {
    background: #f1f6ec;
    padding: 60px 5%;
}

.veg-box {
    background: #ffffff;
    border-radius: 36px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.08);
    display: none;
    animation: fadeSlide 0.35s ease;
}

    .veg-box.show {
        display: block;
    }

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.veg-box h2 {
    font-size: 1.9rem;
    border-left: 7px solid #f6b83d;
    padding-left: 20px;
    color: #1f5420;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Language Toggle Buttons */
.veg-lang {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

    .veg-lang button {
        background: #e9f0e4;
        border: none;
        padding: 8px 24px;
        border-radius: 60px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 0.9rem;
        color: #2b4b27;
    }

        .veg-lang button.active-lang,
        .veg-lang button:hover {
            background: #2c6e2c;
            color: white;
        }

/* Language Content Boxes */
.veg-langbox {
    display: none;
    background: #fefef7;
    border-radius: 24px;
    padding: 1.2rem;
    margin-bottom: 24px;
    border: 1px solid #deecd2;
}

    .veg-langbox.active {
        display: block;
    }

    .veg-langbox table {
        width: 100%;
        border-collapse: collapse;
    }

    .veg-langbox td {
        padding: 12px 10px;
        border-bottom: 1px solid #e0ecd6;
        font-size: 1rem;
    }

        .veg-langbox td:first-child {
            font-weight: 700;
            width: 35%;
            color: #1f5a1c;
        }

        .veg-langbox td:last-child {
            color: #2a4526;
        }

/* Back Button */
.back-to-grid {
    text-align: right;
}

.back-link {
    background: none;
    border: 1px solid #c7ddbc;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
    color: #2c6e2c;
}

    .back-link:hover {
        background: #e2ecd9;
        border-color: #2c6e2c;
        transform: translateX(-3px);
    }

/* ---------- FOOTER ---------- */
footer {
    text-align: center;
    padding: 30px 20px;
    background: #e2ecd9;
    font-size: 0.85rem;
    color: #2e4a28;
    margin-top: 0;
}

/* ========== RESPONSIVE DESIGN ========== */
/* Tablet and Medium Screens */
@media (max-width: 992px) {
    .veg-grid {
        gap: 28px;
        padding: 50px 4%;
    }

    .veg-image-frame {
        min-height: 220px;
    }

    .veg-card-img-wrapper img {
        transform: scale(0.83);
    }

    .veg-card:hover .veg-card-img-wrapper img {
        transform: scale(0.91);
    }
}

/* Mobile Landscape and Tablets */
@media (max-width: 768px) {
    .veg-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
        padding: 40px 20px;
    }

    .veg-image-frame {
        min-height: 210px;
        padding: 14px;
    }

    .veg-card-img-wrapper {
        padding: 20px 16px 16px 16px;
    }

        .veg-card-img-wrapper img {
            transform: scale(0.84);
            max-height: 180px;
        }

    .veg-card h3 {
        font-size: 1.3rem;
    }

    .veg-card p {
        font-size: 0.85rem;
    }

    .veg-box {
        padding: 1.5rem;
        margin: 0 15px;
    }

        .veg-box h2 {
            font-size: 1.6rem;
        }

    .veg-lang td {
        font-size: 0.9rem;
    }

    .veg-langbox td {
        padding: 10px 8px;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .veg-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 16px;
    }

    .veg-hero {
        height: 60vh;
        min-height: 400px;
    }

    .veg-hero-content h1 {
        font-size: 1.8rem;
    }

    .veg-hero-content p {
        font-size: 0.95rem;
    }

    .veg-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .veg-image-frame {
        min-height: 200px;
        padding: 12px;
    }

    .veg-card-img-wrapper {
        padding: 18px 14px 14px 14px;
    }

        .veg-card-img-wrapper img {
            transform: scale(0.86);
            max-height: 170px;
        }

    .veg-card:hover .veg-card-img-wrapper img {
        transform: scale(0.94);
    }

    .veg-card-content {
        padding: 1rem 1rem 1.2rem 1rem;
    }

    .veg-card h3 {
        font-size: 1.25rem;
    }

    .veg-box {
        padding: 1.2rem;
        margin: 0 12px;
    }

        .veg-box h2 {
            font-size: 1.35rem;
            border-left-width: 5px;
            padding-left: 12px;
        }

    .veg-lang {
        gap: 10px;
        flex-wrap: wrap;
    }

        .veg-lang button {
            padding: 6px 18px;
            font-size: 0.8rem;
        }

    /* Stack table cells on very small screens for readability */
    .veg-langbox td {
        display: block;
        width: 100%;
        padding: 8px;
    }

        .veg-langbox td:first-child {
            width: 100%;
            padding-bottom: 2px;
            font-weight: 800;
        }

        .veg-langbox td:last-child {
            padding-top: 0;
            padding-bottom: 12px;
        }

    .back-link {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

/* Extra Small Devices */
@media (max-width: 380px) {
    .veg-image-frame {
        min-height: 180px;
    }

    .veg-card-img-wrapper img {
        transform: scale(0.85);
        max-height: 150px;
    }

    .veg-card h3 {
        font-size: 1.15rem;
    }

    .veg-card p {
        font-size: 0.8rem;
    }

    .veg-view {
        padding: 0.65rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* Large Desktop Screens */
@media (min-width: 1600px) {
    .veg-grid {
        gap: 36px;
        padding: 70px 6%;
    }

    .veg-image-frame {
        min-height: 280px;
    }

    .veg-card-img-wrapper img {
        transform: scale(0.87);
        max-height: 240px;
    }

    .veg-card h3 {
        font-size: 1.6rem;
    }

    .veg-card p {
        font-size: 1rem;
    }
}

/* ---------- UTILITY CLASSES ---------- */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* Loading State */
.veg-card-img-wrapper img.loading {
    opacity: 0.6;
    filter: blur(2px);
}

.veg-card-img-wrapper img.loaded {
    opacity: 1;
    filter: blur(0);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Guarantee: no image cropping ever */
.veg-image-frame,
.veg-card-img-wrapper,
.veg-card-img-wrapper img {
    overflow: visible;
}

/* Print Styles */
@media print {
    .veg-hero,
    .veg-view,
    .veg-lang,
    .back-to-grid,
    .veg-btn {
        display: none;
    }

    .veg-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .veg-box {
        display: block !important;
        break-inside: avoid;
    }
}
