﻿/* ============================================================
   SAMRUDDHI AGRI TECH
   ONION SEEDS PRODUCTS
   File: Content/css/onion-products.css
   ============================================================ */

#rdsOnionProducts,
#rdsOnionProducts * {
    box-sizing: border-box;
}

#rdsOnionProducts {
    --rds-onion-dark: #1d292e;
    --rds-onion-text: #26363c;
    --rds-onion-muted: #718086;
    --rds-onion-border: #e2e8e9;
    --rds-onion-bg: #f7f9f8;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--rds-onion-text);
    font-family: "Segoe UI", "Noto Sans Devanagari", Arial, sans-serif;
    background: radial-gradient( circle at 0% 0%, rgba(190, 90, 80, .07), transparent 30% ), radial-gradient( circle at 100% 20%, rgba(54, 124, 136, .07), transparent 32% ), var(--rds-onion-bg);
}

.rds-onion-shell {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
    padding: 55px 0 75px;
}


/* ============================================================
   HERO
   ============================================================ */

.rds-onion-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
    min-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 30px;
    background: linear-gradient( 120deg, #ffffff 0%, #faf9f8 52%, #f3f1ef 100% );
    box-shadow: 0 25px 65px rgba(27,42,48,.10);
}

.rds-onion-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 55px 50px 55px 60px;
}

.rds-onion-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-bottom: 18px;
    color: #9b4d46;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.rds-onion-eyebrow-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #a9534c;
    box-shadow: 0 0 0 6px rgba(169,83,76,.12);
}

.rds-onion-hero-content h1 {
    max-width: 700px;
    margin: 0;
    color: #19282e;
    font-size: clamp(38px, 4vw, 65px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -2.5px;
}

    .rds-onion-hero-content h1 span {
        display: block;
        margin-top: 8px;
        color: #a14f47;
    }

.rds-onion-hero-content p {
    max-width: 650px;
    margin: 22px 0 0;
    color: #68777d;
    font-size: 16px;
    line-height: 1.8;
}


/* ============================================================
   HERO LANGUAGE SWITCH
   ============================================================ */

.rds-onion-language-switch {
    position: absolute;
    top: 28px;
    right: 30px;
    z-index: 20;
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    border: 1px solid #dce4e6;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 25px rgba(25,42,48,.08);
}

.rds-lang-btn {
    border: 0;
    outline: 0;
    cursor: pointer;
    min-width: 78px;
    padding: 9px 15px;
    border-radius: 999px;
    background: transparent;
    color: #68777d;
    font-size: 13px;
    font-weight: 700;
    transition: background .25s ease, color .25s ease, transform .2s ease, box-shadow .25s ease;
}

    .rds-lang-btn:hover {
        color: #19282e;
    }

    .rds-lang-btn.is-active {
        color: #ffffff;
        background: #293a40;
        box-shadow: 0 5px 14px rgba(39,58,64,.22);
    }

    .rds-lang-btn:active {
        transform: scale(.96);
    }


/* ============================================================
   LANGUAGE PANELS
   ============================================================ */

.rds-lang-panel {
    opacity: 1;
    transform: translateY(0);
    animation: rdsOnionLanguageIn .28s ease both;
}

    .rds-lang-panel[hidden] {
        display: none !important;
    }

@keyframes rdsOnionLanguageIn {

    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   HERO POINTS
   ============================================================ */

.rds-onion-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

    .rds-onion-hero-points span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 10px 14px;
        border: 1px solid #e1e6e7;
        border-radius: 999px;
        background: rgba(255,255,255,.82);
        color: #405057;
        font-size: 12px;
        font-weight: 700;
    }

    .rds-onion-hero-points b {
        color: #a14f47;
    }


/* ============================================================
   HERO IMAGE
   ============================================================ */

.rds-onion-hero-image {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient( 135deg, #eeeae7, #e2e7e4 );
}

.rds-onion-hero-glow {
    position: absolute;
    width: 310px;
    height: 310px;
    top: -90px;
    right: -80px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    filter: blur(5px);
    z-index: 2;
}

.rds-onion-hero-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    padding: 22px;
    object-fit: contain;
}

.rds-onion-hero-label {
    position: absolute;
    left: 28px;
    bottom: 25px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 14px;
    background: rgba(29,41,46,.88);
    color: #ffffff;
    backdrop-filter: blur(12px);
}

    .rds-onion-hero-label span {
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1.5px;
    }

    .rds-onion-hero-label strong {
        font-size: 15px;
    }


/* ============================================================
   SECTION HEADING
   ============================================================ */

.rds-onion-heading {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    margin: 75px 0 35px;
    text-align: center;
}

.rds-onion-heading-line {
    height: 1px;
    background: linear-gradient( 90deg, transparent, #d4dddf );
}

    .rds-onion-heading-line:last-child {
        background: linear-gradient( 90deg, #d4dddf, transparent );
    }

.rds-onion-small-title {
    display: block;
    margin-bottom: 8px;
    color: #a14f47;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.rds-onion-heading h2 {
    margin: 0;
    color: #1d3037;
    font-size: clamp(27px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.8px;
}

.rds-onion-heading p {
    margin: 9px 0 0;
    color: #77858a;
    font-size: 14px;
}


/* ============================================================
   PRODUCT GRID
   ============================================================ */

.rds-onion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}


/* ============================================================
   CARD
   ============================================================ */

.rds-onion-card {
    --rds-card-accent: #a14f47;
    --rds-card-soft: #faefed;
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--rds-onion-border);
    border-top: 4px solid var(--rds-card-accent);
    border-radius: 23px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(26,41,47,.075);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .rds-onion-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 22px 50px rgba(26,41,47,.12);
    }


/* ============================================================
   CARD COLOR THEMES
   ============================================================ */

.rds-onion-tone-01 {
    --rds-card-accent: #a14f47;
    --rds-card-soft: #faefed;
}

.rds-onion-tone-02 {
    --rds-card-accent: #397d88;
    --rds-card-soft: #eaf5f6;
}

.rds-onion-tone-03 {
    --rds-card-accent: #6b5b94;
    --rds-card-soft: #f1eef8;
}


/* ============================================================
   CARD TOP
   ============================================================ */

.rds-onion-card-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    min-height: 94px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f1;
    background: linear-gradient( 120deg, #ffffff, var(--rds-card-soft) );
}

.rds-onion-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    background: var(--rds-card-accent);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(30,50,55,.14);
}

.rds-onion-title-area {
    min-width: 0;
}

.rds-onion-code {
    margin-bottom: 2px;
    color: var(--rds-card-accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.rds-onion-title-area h3 {
    overflow: hidden;
    margin: 0;
    color: #1c2d34;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 800;
    text-overflow: ellipsis;
}

.rds-onion-local-name {
    margin-top: 5px;
    color: #7a878c;
    font-size: 12px;
    font-weight: 600;
}

.rds-onion-season-badge {
    padding: 7px 10px;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    color: var(--rds-card-accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* ============================================================
   CARD BODY
   ============================================================ */

.rds-onion-card-body {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(260px, 1.08fr);
    min-height: 350px;
}


/* ============================================================
   INFORMATION
   ============================================================ */

.rds-onion-info {
    min-width: 0;
    padding: 21px 21px 23px;
}

.rds-onion-mini-switch {
    display: inline-flex;
    gap: 3px;
    margin-bottom: 17px;
    padding: 4px;
    border: 1px solid #e0e6e8;
    border-radius: 999px;
    background: #f7f9f9;
}

    .rds-onion-mini-switch .rds-lang-btn {
        min-width: 67px;
        padding: 7px 10px;
        font-size: 11px;
    }


/* ============================================================
   SPECIFICATIONS
   ============================================================ */

.rds-onion-spec-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .rds-onion-spec-list li {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 0;
        border-bottom: 1px dashed #e0e5e6;
    }

        .rds-onion-spec-list li:first-child {
            padding-top: 0;
        }

        .rds-onion-spec-list li:last-child {
            border-bottom: 0;
        }

    .rds-onion-spec-list span {
        flex: 0 1 43%;
        color: #78868b;
        font-size: 11px;
        line-height: 1.45;
    }

    .rds-onion-spec-list strong {
        flex: 0 1 57%;
        color: #26383f;
        font-size: 12px;
        line-height: 1.45;
        text-align: right;
    }


/* ============================================================
   LARGE IMAGE AREA
   ============================================================ */

.rds-onion-image {
    position: relative;
    min-width: 0;
    min-height: 350px;
    overflow: hidden;
    border-left: 1px solid #edf0f1;
    background: radial-gradient( circle at 50% 35%, #ffffff 0, #f6f7f5 62%, #edf0ee 100% );
}

.rds-onion-image-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 350px;
    padding: 20px;
}

.rds-onion-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 330px;
    object-fit: contain;
    transition: transform .45s ease;
}

.rds-onion-card:hover
.rds-onion-image img {
    transform: scale(1.035);
}

.rds-onion-image-caption {
    position: absolute;
    left: 15px;
    bottom: 14px;
    max-width: calc(100% - 30px);
    overflow: hidden;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 9px;
    background: rgba(255,255,255,.9);
    color: #45565d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(25,40,45,.08);
}


/* ============================================================
   LANGUAGE SWITCH TRANSITION
   ============================================================ */

.rds-language-scope.rds-is-switching
.rds-onion-spec-list {
    opacity: .35;
    transform: translateY(3px);
}

.rds-onion-spec-list {
    transition: opacity .18s ease, transform .18s ease;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .rds-onion-shell {
        width: min(100% - 30px, 1000px);
    }

    .rds-onion-hero {
        grid-template-columns: minmax(0, 1fr) minmax(350px, .85fr);
    }

    .rds-onion-hero-content {
        padding: 48px 35px;
    }

        .rds-onion-hero-content h1 {
            font-size: 44px;
        }

    .rds-onion-card-body {
        grid-template-columns: minmax(0, 1fr) minmax(230px, .95fr);
    }

    .rds-onion-image,
    .rds-onion-image-inner {
        min-height: 330px;
    }

    .rds-onion-grid {
        gap: 20px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {

    .rds-onion-shell {
        width: min(100% - 22px, 680px);
        padding: 28px 0 50px;
    }

    .rds-onion-hero {
        display: flex;
        flex-direction: column;
        min-height: auto;
        border-radius: 22px;
    }

    .rds-onion-hero-content {
        order: 1;
        padding: 68px 24px 30px;
    }

    .rds-onion-hero-image {
        order: 2;
        min-height: 330px;
    }

        .rds-onion-hero-image img {
            min-height: 330px;
            padding: 16px;
        }

    .rds-onion-language-switch {
        top: 18px;
        right: 18px;
    }

    .rds-onion-hero-content h1 {
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    .rds-onion-hero-content p {
        font-size: 14px;
        line-height: 1.7;
    }

    .rds-onion-hero-points {
        margin-top: 22px;
    }

        .rds-onion-hero-points span {
            font-size: 11px;
        }


    .rds-onion-heading {
        display: block;
        margin: 50px 0 26px;
    }

    .rds-onion-heading-line {
        display: none;
    }

    .rds-onion-small-title {
        font-size: 10px;
    }

    .rds-onion-heading h2 {
        font-size: 29px;
    }


    .rds-onion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    .rds-onion-card-body {
        display: grid;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .rds-onion-info {
        order: 1;
        padding: 19px 18px 21px;
    }

    .rds-onion-image {
        order: 2;
        min-height: 300px;
        border-top: 1px solid #edf0f1;
        border-left: 0;
    }

    .rds-onion-image-inner {
        min-height: 300px;
        padding: 20px 18px;
    }

    .rds-onion-image img {
        max-height: 280px;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .rds-onion-shell {
        width: calc(100% - 14px);
        padding-top: 20px;
    }

    .rds-onion-hero {
        border-radius: 18px;
    }

    .rds-onion-hero-content {
        padding: 64px 18px 24px;
    }

        .rds-onion-hero-content h1 {
            font-size: 30px;
            line-height: 1.08;
        }

        .rds-onion-hero-content p {
            margin-top: 17px;
            font-size: 13px;
        }

    .rds-onion-language-switch {
        top: 14px;
        right: 14px;
    }

        .rds-onion-language-switch
        .rds-lang-btn {
            min-width: 69px;
            padding: 8px 10px;
            font-size: 11px;
        }

    .rds-onion-hero-image,
    .rds-onion-hero-image img {
        min-height: 260px;
    }

        .rds-onion-hero-image img {
            padding: 12px;
        }

    .rds-onion-hero-label {
        left: 14px;
        bottom: 14px;
        padding: 10px 12px;
    }


    .rds-onion-heading h2 {
        font-size: 25px;
    }

    .rds-onion-heading p {
        font-size: 12px;
    }


    .rds-onion-card {
        border-radius: 17px;
    }

    .rds-onion-card-top {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .rds-onion-season-badge {
        display: none;
    }

    .rds-onion-number {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
        font-size: 13px;
    }

    .rds-onion-title-area h3 {
        font-size: 18px;
    }

    .rds-onion-local-name {
        font-size: 10px;
    }

    .rds-onion-info {
        padding: 16px 14px 18px;
    }

    .rds-onion-mini-switch {
        margin-bottom: 15px;
    }

        .rds-onion-mini-switch
        .rds-lang-btn {
            min-width: 65px;
            padding: 7px 9px;
        }

    .rds-onion-spec-list li {
        padding: 10px 0;
        gap: 8px;
    }

    .rds-onion-spec-list span,
    .rds-onion-spec-list strong {
        font-size: 10.5px;
    }

    .rds-onion-image,
    .rds-onion-image-inner {
        min-height: 255px;
    }

        .rds-onion-image img {
            max-height: 235px;
        }

    .rds-onion-image-caption {
        left: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
        font-size: 8px;
    }
}


/* ============================================================
   VERY SMALL DEVICES
   ============================================================ */

@media (max-width: 350px) {

    .rds-onion-hero-content h1 {
        font-size: 27px;
    }

    .rds-onion-language-switch
    .rds-lang-btn {
        min-width: 62px;
        padding: 7px 8px;
        font-size: 10px;
    }

    .rds-onion-spec-list span,
    .rds-onion-spec-list strong {
        font-size: 9.5px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    #rdsOnionProducts *,
    #rdsOnionProducts *::before,
    #rdsOnionProducts *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
