﻿/* =====================================================================
   maize.css – Varsha Seeds Maize Product Page
   Mobile Responsive · One Main Card + Variety Listing
   ===================================================================== */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    background: #f5f3ee;
    color: #1f3b2c;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.hide {
    display: none !important;
}

/* ----- SECTION TITLE ----- */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.9rem;
    font-weight: 700;
    color: #1f3b2c;
    margin: 2rem 0 1.2rem 0;
    border-bottom: 2px solid #d0ddc8;
    padding-bottom: 0.5rem;
}

    .section-title i {
        color: #3b7a4a;
    }

.title-underline {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #b0c8a6, transparent);
}

/* ----- LANGUAGE TOGGLE ----- */
.lang-toggle-area {
    display: flex;
    justify-content: flex-end;
    margin: 0.5rem 0 0.2rem;
}

.lang-btn {
    background: #eef3ea;
    border: 1px solid #bccdb4;
    border-radius: 60px;
    padding: 0.4rem 1.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f402a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    font-family: inherit;
}

    .lang-btn:hover {
        background: #dce8d4;
        border-color: #8aaa7a;
    }

    .lang-btn i {
        color: #2a6a3a;
    }

/* =====================================================================
   HERO SECTION
   ===================================================================== */
.hero-section {
    width: 100%;
    min-height: 280px;
    background: #1f3b2c;
    background-image: url('/Content/Images/Maize1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 0 0 40px 40px;
    margin-bottom: 2rem;
}

.hero-overlay {
    width: 100%;
    padding: 2.5rem 0;
    background: linear-gradient(135deg, rgba(20, 45, 25, 0.85) 0%, rgba(30, 60, 35, 0.75) 100%);
    border-radius: 0 0 40px 40px;
}

.hero-content {
    text-align: center;
    color: #f7f3e0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 215, 140, 0.15);
    border: 1px solid rgba(255, 215, 140, 0.25);
    padding: 0.4rem 1.4rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    backdrop-filter: blur(4px);
}

    .hero-badge i {
        color: #f5c542;
    }

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-sub {
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.hero-varieties-tag {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.8rem;
}

    .hero-varieties-tag span {
        background: rgba(255, 215, 140, 0.12);
        border: 1px solid rgba(255, 215, 140, 0.2);
        padding: 0.25rem 1rem;
        border-radius: 40px;
        font-size: 0.8rem;
        font-weight: 500;
        backdrop-filter: blur(2px);
    }

/* =====================================================================
   MAIN PRODUCT CARD – One Image + Details
   ===================================================================== */
.main-product-section {
    margin: 0.5rem 0 1.5rem;
}

.main-product-card {
    display: flex;
    flex-wrap: wrap;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 40px -8px rgba(0, 20, 10, 0.18);
    border: 1px solid #e6ede2;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .main-product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 24px 56px -12px rgba(0, 20, 10, 0.25);
    }

/* Image Side */
.main-card-image {
    flex: 1 1 42%;
    min-height: 340px;
    position: relative;
    background: #c8a84a;
    overflow: hidden;
}

.main-img-wrapper {
    width: 100%;
    height: 100%;
    min-height: 340px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .main-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

.main-product-card:hover .main-img-wrapper img {
    transform: scale(1.02);
}

.main-card-badge {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: rgba(30, 50, 30, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #f7f3e0;
    padding: 0.5rem 1.4rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 215, 140, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* Content Side */
.main-card-content {
    flex: 1 1 58%;
    padding: 2.2rem 2.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fcfaf7;
}

.main-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.2rem;
    margin-bottom: 0.8rem;
}

    .main-card-header h2 {
        font-size: 2.4rem;
        font-weight: 700;
        color: #1f3b2c;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

.variety-status {
    background: #eaf3e7;
    color: #2b5236;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #cde0c7;
}

.main-card-description {
    font-size: 1.05rem;
    color: #2b5236;
    background: #eaf3e7;
    padding: 0.6rem 1.2rem;
    border-radius: 60px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0 0 1.2rem 0;
    border: 1px solid #cde0c7;
}

.main-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.8rem;
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e6ede2;
}

.detail-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #5a7a5a;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .detail-label i {
        color: #c8a84a;
        font-size: 0.85rem;
        width: 1.2rem;
    }

.detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f3b2c;
}

.main-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.4rem 0 1.2rem 0;
}

.tag {
    background: #eef4ea;
    color: #1f402a;
    padding: 0.25rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #d1dfc9;
}

.main-card-cta {
    background: #1f3b2c;
    color: #f7f3e0;
    border: none;
    padding: 0.8rem 2.2rem;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, transform 0.1s;
    width: fit-content;
    font-family: inherit;
}

    .main-card-cta:hover {
        background: #2d5a2d;
        transform: scale(1.02);
    }

    .main-card-cta:active {
        transform: scale(0.98);
    }

/* =====================================================================
   VARIETIES LISTING – Grid
   ===================================================================== */
.varieties-listing-section {
    margin: 0.5rem 0 1.5rem;
}

.varieties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
    margin: 1.2rem 0 1.8rem 0;
}

.variety-list-item {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 20, 10, 0.06);
    border: 1px solid #e6ede2;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

    .variety-list-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(0, 20, 10, 0.1);
    }

    .variety-list-item .variety-icon {
        font-size: 2rem;
        color: #c8a84a;
        margin-bottom: 0.2rem;
    }

    .variety-list-item .variety-name {
        font-weight: 700;
        font-size: 1.1rem;
        color: #1f3b2c;
    }

    .variety-list-item .variety-sub {
        font-size: 0.8rem;
        color: #5a7a5a;
        margin: 0.2rem 0 0.4rem 0;
    }

    .variety-list-item .variety-tag {
        display: inline-block;
        background: #eaf3e7;
        color: #2b5236;
        font-size: 0.7rem;
        font-weight: 600;
        padding: 0.2rem 0.8rem;
        border-radius: 40px;
        border: 1px solid #cde0c7;
    }

    .variety-list-item .variety-yield {
        display: block;
        font-size: 0.75rem;
        color: #7a9a7a;
        margin-top: 0.3rem;
    }

/* =====================================================================
   TECHNICAL DATA – DARK CHART
   ===================================================================== */
.details-section {
    margin: 1.5rem 0 1rem;
}

.details-chart-wrapper {
    background: #1a2e1a;
    border-radius: 32px;
    padding: 1.8rem 2rem 2rem 2rem;
    color: #e8f0e0;
    box-shadow: 0 16px 40px -8px rgba(0, 20, 0, 0.4);
    border: 1px solid #3a5a3a;
}

.details-chart-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
    border-bottom: 1px solid #3a5a3a;
    padding-bottom: 0.8rem;
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

    .chart-title i {
        color: #f5c542;
    }

.chart-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 215, 140, 0.1);
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    border: 1px solid #4a6a4a;
}

    .chart-subtitle i {
        color: #f5c542;
    }

.detail-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.2rem;
}

.detail-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 0.9rem 1.2rem;
    border: 1px solid #3a5a3a;
    transition: background 0.2s;
}

    .detail-item:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .detail-item .detail-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #a0c0a0;
        font-weight: 600;
    }

    .detail-item .detail-value {
        font-size: 1.1rem;
        font-weight: 700;
        color: #f5edd6;
        margin-top: 0.2rem;
    }

    .detail-item .detail-sub {
        font-size: 0.8rem;
        color: #b0d0b0;
    }

.details-chart-footer {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #3a5a3a;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #a0c0a0;
}

    .details-chart-footer i {
        color: #f5c542;
    }

/* ----- SPECIAL NOTE ----- */
.special-note {
    background: #fcf8f0;
    border-left: 4px solid #c8a84a;
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    margin: 1.2rem 0 0.5rem;
    color: #1f3b2c;
    font-size: 0.95rem;
}

    .special-note p {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .special-note i {
        margin-top: 0.2rem;
    }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media screen and (max-width: 820px) {
    .main-product-card {
        flex-direction: column;
        border-radius: 24px;
    }

    .main-card-image {
        flex: 1 1 auto;
        min-height: 280px;
        width: 100%;
    }

    .main-img-wrapper {
        min-height: 280px;
    }

    .main-card-content {
        flex: 1 1 auto;
        padding: 1.8rem 1.5rem;
    }

    .main-card-header h2 {
        font-size: 1.9rem;
    }

    .main-card-details {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem 1.2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .details-chart-wrapper {
        padding: 1.2rem 1.2rem 1.5rem;
    }

    .detail-chart-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .main-card-badge {
        top: 0.8rem;
        left: 0.8rem;
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
    }

    .varieties-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

@media screen and (max-width: 460px) {
    .main-card-image {
        min-height: 220px;
    }

    .main-img-wrapper {
        min-height: 220px;
    }

    .main-card-content {
        padding: 1.2rem 1rem;
    }

    .main-card-header h2 {
        font-size: 1.6rem;
    }

    .main-card-description {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .main-card-details {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .detail-row {
        padding: 0.35rem 0;
    }

    .detail-label {
        font-size: 0.8rem;
    }

    .detail-value {
        font-size: 0.85rem;
    }

    .main-card-cta {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .hero-varieties-tag span {
        font-size: 0.7rem;
        padding: 0.2rem 0.7rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .details-chart-wrapper {
        padding: 1rem 0.8rem 1.2rem;
        border-radius: 24px;
    }

    .chart-title {
        font-size: 1.2rem;
    }

    .detail-chart-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .detail-item {
        padding: 0.6rem 0.8rem;
    }

        .detail-item .detail-value {
            font-size: 0.95rem;
        }

    .lang-btn {
        padding: 0.3rem 1.2rem;
        font-size: 0.8rem;
    }

    .special-note {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .main-card-badge {
        top: 0.6rem;
        left: 0.6rem;
        font-size: 0.65rem;
        padding: 0.25rem 0.8rem;
        gap: 4px;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.15rem 0.7rem;
    }

    .variety-status {
        font-size: 0.7rem;
        padding: 0.15rem 0.8rem;
    }

    .varieties-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.8rem;
    }

    .variety-list-item {
        padding: 1rem 0.8rem;
    }

        .variety-list-item .variety-name {
            font-size: 1rem;
        }
}

@media screen and (max-width: 380px) {
    .main-card-content {
        padding: 1rem 0.8rem;
    }

    .main-card-header h2 {
        font-size: 1.3rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .detail-chart-grid {
        grid-template-columns: 1fr;
    }

    .main-card-image {
        min-height: 180px;
    }

    .main-img-wrapper {
        min-height: 180px;
    }

    .varieties-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
}
