﻿/*
    ata-product.css
    ----------------
    SHARED STYLESHEET FOR ALL PRODUCT PAGES (Jash Brand Castor Cake,
    Jash Brand Neem Cake, Nisharg Gold PROM, Nisharg Organic Fertilizer,
    Payas Organic Manure, Payas Gold Bio Enriched Organic Manure, etc.)

    HOW TO USE:
    Link this ONE file from the <head> content of every product .aspx page
    instead of pasting the whole <style> block into each file:

        <link rel="stylesheet" href="assets/css/ata-product.css">

    (Adjust the path to wherever you place this file in your project —
    e.g. assets/css/ata-product.css.)

    Then each product page only needs its own markup: carousel images/alt
    text, product name, description, composition/applications text, and the
    advantages list. Packaging is fixed to display "50kg" across all
    product pages.

    Also includes .ata-breadcrumbs, which is the same breadcrumb bar used
    site-wide (contact-us, about-us, portfolio, and every product page) —
    if you already have it in a global stylesheet, you can delete that
    block here to avoid duplication. It's included so this file works
    standalone if linked on its own.
*/

:root {
    --ata-green-dark: #113627;
    --ata-green-mid: #1c4d37;
    --ata-gold: #c9a227;
    --ata-gold-light: #e8c15c;
    --ata-cream: #f6f1e2;
    --ata-cream-dark: #ece3c9;
    --ata-text-dark: #16281f;
    --ata-text-light: #f7f5ee;
    --ata-shadow: rgba(17, 54, 39, 0.18);
}

/* ---------- Base / responsive safety ---------- */
.ata-breadcrumbs,
#ata-product,
#ata-product *,
#ata-product-advantages,
#ata-product-advantages * {
    box-sizing: border-box;
}

    #ata-product img {
        max-width: 100%;
    }

/* ---------- Breadcrumb bar (shared site-wide) ---------- */
.ata-breadcrumbs {
    position: relative;
    z-index: 5;
    margin-top: 160px;
    scroll-margin-top: 90px;
    background: linear-gradient(120deg, var(--ata-green-dark), var(--ata-green-mid));
    padding: 18px 0;
    border-bottom: 2px solid var(--ata-gold);
}

    .ata-breadcrumbs h2 {
        color: var(--ata-text-light);
        font-weight: 700;
        letter-spacing: 0.2px;
        font-size: clamp(1.05rem, 1.6vw, 1.35rem);
        margin: 0;
    }

    .ata-breadcrumbs ol {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        font-size: 0.85rem;
    }

        .ata-breadcrumbs ol li {
            color: rgba(247, 245, 238, 0.7);
        }

            .ata-breadcrumbs ol li + li::before {
                content: "\276F";
                margin-right: 6px;
                font-size: 0.7rem;
                color: var(--ata-gold-light);
            }

            .ata-breadcrumbs ol li a {
                color: var(--ata-gold-light);
                text-decoration: none;
                position: relative;
                transition: color 0.25s ease;
            }

                .ata-breadcrumbs ol li a::after {
                    content: "";
                    position: absolute;
                    left: 0;
                    bottom: -3px;
                    width: 0;
                    height: 1px;
                    background: #ffffff;
                    transition: width 0.25s ease;
                }

                .ata-breadcrumbs ol li a:hover {
                    color: #ffffff;
                }

                    .ata-breadcrumbs ol li a:hover::after {
                        width: 100%;
                    }

/* ---------- Section entrance ---------- */
#ata-product {
    background: linear-gradient(180deg, var(--ata-cream) 0%, #ffffff 55%);
    overflow: hidden;
    position: relative;
    z-index: 1;
    padding: 50px 0 60px;
}

    .ata-breadcrumbs,
    #ata-product .ata-carousel-wrap,
    #ata-product .ata-product-info,
    #ata-product .ata-detail-card {
        animation: ataFadeUp 0.7s ease both;
    }

@keyframes ataFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ata-breadcrumbs, #ata-product .ata-carousel-wrap, #ata-product .ata-product-info,
    #ata-product .ata-detail-card {
        animation: none;
    }
}

/* ---------- Carousel ---------- */
#ata-product .ata-carousel-wrap {
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px var(--ata-shadow);
    border: 4px solid #ffffff;
    outline: 1px solid var(--ata-cream-dark);
    background: #ffffff;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

    #ata-product .ata-carousel-wrap:hover {
        box-shadow: 0 20px 40px var(--ata-shadow);
        transform: translateY(-4px);
    }

#ata-product .carousel-item {
    transition: opacity 1.2s ease-in-out;
}

#ata-product .carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

    #ata-product .carousel-fade .carousel-item.active {
        opacity: 1;
    }

#ata-product .ata-carousel-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

#ata-product .carousel-indicators button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.55);
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#ata-product .carousel-indicators .active {
    background-color: var(--ata-gold);
    transform: scale(1.2);
}

#ata-product .carousel-control-prev,
#ata-product .carousel-control-next {
    width: 8%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#ata-product .ata-carousel-wrap:hover .carousel-control-prev,
#ata-product .ata-carousel-wrap:hover .carousel-control-next {
    opacity: 0.85;
}

/* ---------- Product info column ---------- */
#ata-product .ata-product-info h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    color: var(--ata-green-dark);
    margin-bottom: 12px;
}

    #ata-product .ata-product-info h1 i {
        color: var(--ata-gold);
        font-size: 1.1rem;
    }

#ata-product .ata-pack-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ata-cream);
    border: 1px solid var(--ata-cream-dark);
    color: var(--ata-green-dark);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

    #ata-product .ata-pack-badge i {
        color: var(--ata-gold);
    }

#ata-product .ata-product-info p {
    text-align: justify;
    color: #3f4f47;
    line-height: 1.75;
    font-size: 0.98rem;
}

#ata-product .ata-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

#ata-product .ata-btn {
    background: linear-gradient(120deg, var(--ata-green-dark), var(--ata-green-mid));
    color: var(--ata-text-light);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 6px 16px var(--ata-shadow);
}

    #ata-product .ata-btn::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.35);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.5s ease, height 0.5s ease;
    }

    #ata-product .ata-btn:hover {
        transform: translateY(-3px);
        background: linear-gradient(120deg, var(--ata-green-mid), var(--ata-gold));
        box-shadow: 0 14px 26px var(--ata-shadow);
        color: var(--ata-text-light);
    }

        #ata-product .ata-btn:hover::after {
            width: 220px;
            height: 220px;
        }

    #ata-product .ata-btn i {
        transition: transform 0.3s ease;
    }

    #ata-product .ata-btn:hover i {
        transform: translateX(4px);
    }

/* ---------- Description / composition detail cards ---------- */
#ata-product .ata-detail-card {
    background: #ffffff;
    border: 1px solid var(--ata-cream-dark);
    border-radius: 14px;
    padding: 26px 26px 22px;
    margin-top: 26px;
    box-shadow: 0 8px 20px rgba(17, 54, 39, 0.05);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.35s ease;
}

    #ata-product .ata-detail-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, var(--ata-gold), var(--ata-gold-light));
    }

    #ata-product .ata-detail-card:hover {
        box-shadow: 0 16px 30px var(--ata-shadow);
    }

    #ata-product .ata-detail-card h4 {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
        font-size: 1.15rem;
        color: var(--ata-green-dark);
        margin-bottom: 14px;
    }

        #ata-product .ata-detail-card h4 i {
            color: var(--ata-gold);
            background: var(--ata-cream);
            width: 36px;
            height: 36px;
            line-height: 36px;
            text-align: center;
            border-radius: 50%;
            font-size: 1rem;
        }

    #ata-product .ata-detail-card p {
        text-align: justify;
        color: #3f4f47;
        line-height: 1.75;
        font-size: 0.96rem;
        margin-bottom: 12px;
    }

        #ata-product .ata-detail-card p:last-child {
            margin-bottom: 0;
        }

/* ---------- Advantages ---------- */
#ata-product-advantages {
    padding: 20px 0 60px;
    background: #ffffff;
}

    #ata-product-advantages .ata-section-title {
        text-align: center;
        padding: 0 0 30px;
    }

        #ata-product-advantages .ata-section-title h2 {
            position: relative;
            display: inline-block;
            font-weight: 700;
            font-size: clamp(1.4rem, 2.2vw, 1.8rem);
            color: var(--ata-green-dark);
            padding-bottom: 12px;
            margin: 0;
        }

            #ata-product-advantages .ata-section-title h2::after {
                content: "";
                position: absolute;
                left: 50%;
                bottom: 0;
                width: 56px;
                height: 3px;
                background: linear-gradient(90deg, var(--ata-gold), var(--ata-gold-light));
                transform: translateX(-50%);
                border-radius: 3px;
            }

    #ata-product-advantages .ata-adv-card,
    #ata-product-advantages .ata-order-cta {
        animation: ataFadeUp 0.7s ease both;
    }

    #ata-product-advantages .ata-adv-row .col-12:nth-child(odd) .ata-adv-card {
        animation-delay: 0.05s;
    }

    #ata-product-advantages .ata-adv-row .col-12:nth-child(even) .ata-adv-card {
        animation-delay: 0.15s;
    }

@media (prefers-reduced-motion: reduce) {
    #ata-product-advantages .ata-adv-card,
    #ata-product-advantages .ata-order-cta {
        animation: none;
    }
}

#ata-product-advantages .ata-adv-card {
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--ata-cream);
    border: 1px solid var(--ata-cream-dark);
    border-radius: 12px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

    #ata-product-advantages .ata-adv-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, var(--ata-gold), var(--ata-gold-light));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease;
    }

    #ata-product-advantages .ata-adv-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 28px var(--ata-shadow);
        background: #ffffff;
        border-color: var(--ata-cream-dark);
    }

        #ata-product-advantages .ata-adv-card:hover::before {
            transform: scaleX(1);
        }

    #ata-product-advantages .ata-adv-card i {
        flex: 0 0 auto;
        color: var(--ata-gold);
        background: #ffffff;
        width: 36px;
        height: 36px;
        line-height: 36px;
        text-align: center;
        border-radius: 50%;
        font-size: 1rem;
        box-shadow: 0 2px 6px rgba(17, 54, 39, 0.08);
        transition: transform 0.4s cubic-bezier(.22,1,.36,1), background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
    }

    #ata-product-advantages .ata-adv-card:hover i {
        transform: rotate(-10deg) scale(1.12);
        background: var(--ata-green-dark);
        color: var(--ata-gold-light);
        box-shadow: 0 6px 16px var(--ata-shadow);
    }

    #ata-product-advantages .ata-adv-card span {
        color: var(--ata-text-dark);
        font-size: 0.94rem;
        line-height: 1.65;
    }

/* ---------- Order CTA banner ---------- */
#ata-product-advantages .ata-order-cta {
    margin-top: 40px;
    background: linear-gradient(120deg, var(--ata-green-dark), var(--ata-green-mid));
    border-radius: 16px;
    padding: 34px 30px;
    text-align: center;
    box-shadow: 0 16px 34px var(--ata-shadow);
}

    #ata-product-advantages .ata-order-cta h3 {
        color: var(--ata-text-light);
        font-weight: 700;
        font-size: clamp(1.2rem, 2vw, 1.5rem);
        margin-bottom: 8px;
    }

    #ata-product-advantages .ata-order-cta p {
        color: rgba(247, 245, 238, 0.8);
        margin-bottom: 20px;
        font-size: 0.95rem;
    }

    #ata-product-advantages .ata-order-cta .ata-btn {
        background: linear-gradient(120deg, var(--ata-gold), var(--ata-gold-light));
        color: var(--ata-green-dark);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    }

        #ata-product-advantages .ata-order-cta .ata-btn:hover {
            background: #ffffff;
            color: var(--ata-green-dark);
        }

#ata-product-advantages .ata-btn {
    background: linear-gradient(120deg, var(--ata-green-dark), var(--ata-green-mid));
    color: var(--ata-text-light);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 6px 16px var(--ata-shadow);
}

    #ata-product-advantages .ata-btn::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.35);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.5s ease, height 0.5s ease;
    }

    #ata-product-advantages .ata-btn:hover::after {
        width: 220px;
        height: 220px;
    }

    #ata-product-advantages .ata-btn i {
        transition: transform 0.3s ease;
    }

    #ata-product-advantages .ata-btn:hover i {
        transform: translateX(4px);
    }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
    #ata-product {
        padding: 34px 0 40px;
    }

        #ata-product .ata-product-info {
            margin-top: 24px;
        }

    #ata-product-advantages {
        padding: 36px 0 40px;
    }
}

@media (max-width: 767.98px) {
    .ata-breadcrumbs {
        padding: 18px 0;
    }

        .ata-breadcrumbs .ata-breadcrumbs-inner {
            flex-wrap: wrap;
            gap: 8px;
        }

    #ata-product .ata-detail-card {
        padding: 20px 18px 18px;
    }

    #ata-product-advantages .ata-order-cta {
        padding: 26px 20px;
    }

    #ata-product .ata-cta-row {
        flex-direction: column;
    }

        #ata-product .ata-cta-row .ata-btn {
            width: 100%;
            justify-content: center;
        }
}

/* ============================================================
   ADD-ON: All Products listing page (#ata-products-listing)
   Append this block to the end of ata-product.css.
   Reuses the same variables/patterns as #ata-product-advantages.
   ============================================================ */

#ata-products-listing {
    padding: 20px 0 60px;
    background: #ffffff;
}

    /* Section title (reuses the same visual language as advantages heading) */
    #ata-products-listing .ata-section-title {
        text-align: center;
        padding: 0 0 30px;
    }

        #ata-products-listing .ata-section-title h2 {
            position: relative;
            display: inline-block;
            font-weight: 700;
            font-size: clamp(1.4rem, 2.2vw, 1.8rem);
            color: var(--ata-green-dark);
            padding-bottom: 12px;
            margin: 0 0 8px;
        }

            #ata-products-listing .ata-section-title h2::after {
                content: "";
                position: absolute;
                left: 50%;
                bottom: 0;
                width: 56px;
                height: 3px;
                background: linear-gradient(90deg, var(--ata-gold), var(--ata-gold-light));
                transform: translateX(-50%);
                border-radius: 3px;
            }

        #ata-products-listing .ata-section-title p {
            color: #5c6b63;
            font-size: 0.98rem;
            margin: 0 auto;
            max-width: 620px;
        }

    /* Product cards */
    #ata-products-listing .ata-product-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border: 1px solid var(--ata-cream-dark);
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(17, 54, 39, 0.05);
        transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s ease;
    }

        #ata-products-listing .ata-product-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 16px 28px var(--ata-shadow);
        }

    #ata-products-listing .ata-product-card-img {
        background: var(--ata-cream);
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        overflow: hidden;
    }

        #ata-products-listing .ata-product-card-img img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
        }

    #ata-products-listing .ata-product-card-body {
        padding: 20px 22px 24px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

        #ata-products-listing .ata-product-card-body h3 {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--ata-green-dark);
            margin-bottom: 10px;
            line-height: 1.35;
        }

        #ata-products-listing .ata-product-card-body p {
            color: #3f4f47;
            font-size: 0.92rem;
            line-height: 1.6;
            margin-bottom: 20px;
            flex-grow: 1;
            text-align: justify;
        }

    /* Pack badge — unscoped copy so it also works outside #ata-product */
    #ata-products-listing .ata-pack-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--ata-cream);
        border: 1px solid var(--ata-cream-dark);
        color: var(--ata-green-dark);
        font-weight: 700;
        font-size: 0.85rem;
        padding: 6px 14px;
        border-radius: 50px;
        margin-bottom: 12px;
        align-self: flex-start;
    }

        #ata-products-listing .ata-pack-badge i {
            color: var(--ata-gold);
        }

    /* Button — unscoped copy so it also works outside #ata-product */
    #ata-products-listing .ata-btn {
        align-self: flex-start;
        background: linear-gradient(120deg, var(--ata-green-dark), var(--ata-green-mid));
        color: var(--ata-text-light);
        border: none;
        padding: 10px 22px;
        border-radius: 50px;
        font-size: 0.88rem;
        font-weight: 700;
        letter-spacing: 0.3px;
        cursor: pointer;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
        box-shadow: 0 6px 16px var(--ata-shadow);
    }

        #ata-products-listing .ata-btn:hover {
            transform: translateY(-3px);
            background: linear-gradient(120deg, var(--ata-green-mid), var(--ata-gold));
            color: var(--ata-text-light);
        }

        #ata-products-listing .ata-btn i {
            transition: transform 0.3s ease;
        }

        #ata-products-listing .ata-btn:hover i {
            transform: translateX(4px);
        }

    /* Order CTA banner reused on the listing page */
    #ata-products-listing .ata-order-cta {
        margin-top: 40px;
        background: linear-gradient(120deg, var(--ata-green-dark), var(--ata-green-mid));
        border-radius: 16px;
        padding: 34px 30px;
        text-align: center;
        box-shadow: 0 16px 34px var(--ata-shadow);
    }

        #ata-products-listing .ata-order-cta h3 {
            color: var(--ata-text-light);
            font-weight: 700;
            font-size: clamp(1.2rem, 2vw, 1.5rem);
            margin-bottom: 8px;
        }

        #ata-products-listing .ata-order-cta p {
            color: rgba(247, 245, 238, 0.8);
            margin-bottom: 20px;
            font-size: 0.95rem;
        }

        #ata-products-listing .ata-order-cta .ata-btn {
            background: linear-gradient(120deg, var(--ata-gold), var(--ata-gold-light));
            color: var(--ata-green-dark);
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
        }

            #ata-products-listing .ata-order-cta .ata-btn:hover {
                background: #ffffff;
                color: var(--ata-green-dark);
            }

@media (max-width: 767.98px) {
    #ata-products-listing .ata-order-cta {
        padding: 26px 20px;
    }
}
