/* =========================================================
   Products listing + Product detail pages
   Scoped classes: .pp-* (kept separate so nothing collides
   with the shared classes in style.css / about-page.css)
   ========================================================= */

/* Page hero (banner + slideshow background) now lives in style.css so it can
   be shared with about.html too — see "Page hero banner" section there. */

/* ---- Products listing grid (products.html) ---- */
.pp-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 22px
}

.pp-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px -18px #06245140;
    transition: transform .25s ease,box-shadow .25s ease,border-color .25s ease,background .25s ease;
}

    .pp-box:hover {
        transform: translateY(-6px)
    }

.pp-box-media {
    height: 170px;
    background: linear-gradient(150deg,#eef8f0 0%,#e4f2fb 100%);
    overflow: hidden
}

    .pp-box-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .4s ease
    }

        .pp-box-media img[src*="solar-street-lights"] {
            object-position: top
        }

    .pp-box-media.logo-fit {
        background: #0b0b0b;
        display: flex;
        align-items: center;
        justify-content: center
    }

        .pp-box-media.logo-fit img {
            width: auto;
            height: auto;
            max-width: 72%;
            max-height: 60%;
            object-fit: contain
        }

.pp-box:hover .pp-box-media img {
    transform: scale(1.08)
}

.pp-box-body {
    padding: 18px 18px 22px
}

    .pp-box-body h3 {
        font-size: 16px;
        margin: 0 0 12px;
        color: var(--ink);
        transition: color .25s ease
    }

.pp-readmore {
    display: flex;
    width: fit-content;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--green);
    color: #fff !important;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .3px;
    padding: 10px 16px;
    border-radius: 999px;
    transition: gap .25s ease,background .25s ease
}

    .pp-readmore:hover {
        gap: 11px
    }

/* Each product box lights up with its own accent color on hover, cycling
   through the site's palette — mirrors the .service-card behaviour */
.pp-box:nth-child(6n+1):hover {
    border-color: #1477c966;
    box-shadow: 0 22px 38px -16px #1477c94d
}

    .pp-box:nth-child(6n+1):hover h3 {
        color: var(--blue)
    }

    .pp-box:nth-child(6n+1):hover .pp-readmore {
        background: var(--blue)
    }

.pp-box:nth-child(6n+2):hover {
    border-color: #f0871f66;
    box-shadow: 0 22px 38px -16px #f0871f4d
}

    .pp-box:nth-child(6n+2):hover h3 {
        color: var(--orange)
    }

    .pp-box:nth-child(6n+2):hover .pp-readmore {
        background: var(--orange)
    }

.pp-box:nth-child(6n+3):hover {
    border-color: #06245166;
    box-shadow: 0 22px 38px -16px #0624514d
}

    .pp-box:nth-child(6n+3):hover h3 {
        color: var(--navy)
    }

    .pp-box:nth-child(6n+3):hover .pp-readmore {
        background: var(--navy)
    }

.pp-box:nth-child(6n+4):hover {
    border-color: #0aa5a866;
    box-shadow: 0 22px 38px -16px #0aa5a84d
}

    .pp-box:nth-child(6n+4):hover h3 {
        color: #0aa5a8
    }

    .pp-box:nth-child(6n+4):hover .pp-readmore {
        background: #0aa5a8
    }

.pp-box:nth-child(6n+5):hover {
    border-color: #23943a66;
    box-shadow: 0 22px 38px -16px #23943a4d
}

    .pp-box:nth-child(6n+5):hover h3 {
        color: var(--green)
    }

    .pp-box:nth-child(6n+5):hover .pp-readmore {
        background: var(--green)
    }

.pp-box:nth-child(6n+6):hover {
    border-color: #ff5c8a66;
    box-shadow: 0 22px 38px -16px #ff5c8a4d
}

    .pp-box:nth-child(6n+6):hover h3 {
        color: #ff5c8a
    }

    .pp-box:nth-child(6n+6):hover .pp-readmore {
        background: #ff5c8a
    }

/* ---- Product detail layout ---- */
.pp-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
    padding: 44px 0 60px
}

.pp-detail-side {
    position: sticky;
    top: 24px
}

.pp-detail-grid.no-sidebar {
    grid-template-columns: 1fr
}

/* ---- Optional: hide the top contact bar + site header entirely on a
   product's detail page (opt-in via hideHeader:true in data.js) ---- */
body.pd-no-header .top,
body.pd-no-header .site-header {
    display: none
}

/* ---- "View More / View Less" toggle (matches About page's pattern) ---- */
/* ---- Split layout: image on the left, title/text/CTA on the right
   (opt-in via splitLayout:true in data.js, e.g. BI FACIAL PANEL 545) ---- */
.pp-detail-split {
    display: flex;
    align-items: flex-start;
    gap: 32px
}

.pp-detail-split-media {
    flex: 0 0 320px
}

    .pp-detail-split-media .pp-detail-media {
        margin-bottom: 0
    }

.pp-detail-split-body {
    flex: 1;
    min-width: 0
}

@media(max-width:760px) {
    .pp-detail-split {
        flex-direction: column
    }

    .pp-detail-split-media {
        flex-basis: auto;
        width: 100%
    }
}

/* ---- Extra stacked product section on the same detail page (opt-in via
   moreSections:[...] in data.js, e.g. "Bravo ECO" shown below "Bravo
   Series" on the Bravo Series page instead of its own separate page) ---- */
.pp-detail-subsection {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb
}

.pp-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 0 16px;
    color: var(--green);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .2px
}

    .pp-view-toggle svg {
        transition: transform .3s ease
    }

    .pp-view-toggle.open svg {
        transform: rotate(180deg)
    }

    .pp-view-toggle:hover {
        color: #1a6b21
    }

.pp-view-more {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .45s ease,opacity .35s ease
}

    .pp-view-more.open {
        max-height: 2000px;
        opacity: 1
    }

.pp-detail-main {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 14px 30px -20px #06245140
}

.pp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    text-decoration: none;
    transition: gap .2s ease;
}

    .pp-back-link:hover {
        gap: 10px;
        text-decoration: underline;
    }

/* ---- Top bar: back link (left) + "Share this on" (right) ---- */
.pp-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.pp-share-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--ink);
    white-space: nowrap;
}

    .pp-share-bar a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--ink);
        transition: color .2s ease;
    }

        .pp-share-bar a:hover {
            color: var(--green);
        }

/* ---- Orange "LIKE IT? GET IT." contact call-out ---- */
.pp-cta-box {
    margin-top: 4px;
}

    .pp-cta-box h3 {
        font-family: "Plus Jakarta Sans";
        font-size: 19px;
        font-weight: 800;
        color: var(--orange);
        margin: 0 0 6px;
    }

    .pp-cta-box p {
        color: var(--orange);
        font-size: 14px;
        font-weight: 600;
        margin: 0 0 16px;
        text-align: left;
    }

.btn-pill.orange {
    background: var(--orange);
}

    .btn-pill.orange:hover {
        background: #d3720f;
    }

/* ---- "Get a Free Quote" CTA on product detail pages: bigger, bolder
   text plus a soft glow so it stands out at the end of the content ---- */
.pp-detail-main .btn-pill.green {
    margin-top: 18px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .2px;
    padding: 14px 26px;
    box-shadow: 0 0 0 0 rgba(35,148,58,.55), 0 6px 18px rgba(35,148,58,.35);
    animation: ppQuoteGlow 2.2s ease-in-out infinite;
}

    .pp-detail-main .btn-pill.green:hover {
        box-shadow: 0 0 0 8px rgba(35,148,58,0), 0 8px 22px rgba(35,148,58,.45);
    }

@keyframes ppQuoteGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(35,148,58,.55), 0 6px 18px rgba(35,148,58,.35);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(35,148,58,0), 0 6px 18px rgba(35,148,58,.35);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(35,148,58,0), 0 6px 18px rgba(35,148,58,.35);
    }
}

.pp-detail-media {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    max-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg,#eef8f0 0%,#e4f2fb 100%)
}

    .pp-detail-media img {
        width: 100%;
        max-height: 360px;
        object-fit: contain;
        display: block
    }

    /* Optional thin frame around the product photo box (opt-in via
       bordered:true in data.js) — e.g. Bravo Series / Bravo ECO, to match
       the boxed-photo look used for NOVA Series. */
    .pp-detail-media.bordered-box {
        border: 1px solid #b9d3ea;
        box-shadow: 0 2px 12px rgba(15,23,42,.08)
    }

    .pp-detail-media.logo-fit {
        background: #0b0b0b
    }

        .pp-detail-media.logo-fit img {
            max-width: 60%;
            max-height: 220px
        }

.pp-detail-main h2 {
    font-family: "Plus Jakarta Sans";
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--navy)
}

.pp-detail-main p {
    color: #3d4c63;
    font-size: 14.5px;
    line-height: 1.8;
    margin: 0 0 14px;
    text-align: justify
}

.pp-detail-features {
    list-style: none;
    margin: 6px 0 26px;
    padding: 0;
    display: grid;
    gap: 12px
}

    .pp-detail-features li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 14px;
        font-weight: 600;
        color: var(--ink)
    }

        .pp-detail-features li i {
            color: var(--green);
            font-style: normal;
            font-weight: 800;
            flex-shrink: 0
        }

/* ---- Sidebar box-list (all products, matches reference screenshots) ---- */
.pp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.pp-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    transition: background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;
}

    .pp-sidebar-link svg {
        flex-shrink: 0;
        color: var(--muted);
        transition: transform .2s ease,color .2s ease
    }

    .pp-sidebar-link:hover {
        border-color: #f0871f66;
        color: var(--orange);
        transform: translateX(3px)
    }

        .pp-sidebar-link:hover svg {
            color: var(--orange);
            transform: translateX(2px)
        }

    .pp-sidebar-link.active {
        background: var(--orange);
        border-color: var(--orange);
        color: #fff
    }

        .pp-sidebar-link.active svg {
            color: #fff
        }

/* ---- Plain photo grid (galleryImages products, e.g. Havells Appliances)
   Uniform-size tiles (fixed aspect ratio) so the grid stays evenly
   aligned no matter whether the source photo is portrait or landscape.
   object-fit:contain keeps the whole photo visible, uncropped — no
   titles/captions. ---- */
.pp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    margin: 6px 0 26px;
}

.pp-gallery-item {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px #0624511a;
    position: relative;
    background: #f3f5f4;
}

    .pp-gallery-item img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform .45s ease;
    }

    .pp-gallery-item::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,transparent 60%,#062451b3 100%);
        opacity: 0;
        transition: opacity .3s ease;
    }

    .pp-gallery-item:hover::after {
        opacity: 1;
    }

    .pp-gallery-item:hover img {
        transform: scale(1.06);
    }

@media (max-width: 860px) {
    .pp-gallery-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 14px;
    }

    .pp-gallery-item {
        border-radius: 11px;
    }
}

@media (max-width: 520px) {
    .pp-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Category boxes grid (Havells Appliances style detail page) ----
   Styled to match the "What We Do" boxes on the About page: soft
   gradient card, circular image badge, hover lift + color fill. */
.pp-cat-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    margin: 6px 0 26px;
    text-align: center
}

.pp-cat-box {
    position: relative;
    border-radius: 16px;
    padding: 22px 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 12px 24px -14px #10233d26;
    transition: transform .25s ease,box-shadow .25s ease,background .3s ease;
    text-decoration: none;
    color: inherit;
}

/* Boxes that link to their own product page (e.g. V-Guard sub-products)
   get a pointer cursor; plain category tiles (e.g. Havells) keep default. */
a.pp-cat-box {
    cursor: pointer;
}

.pp-cat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 32px -16px #10233d40
}

.pp-cat-box-media {
    width: 100%;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    background: #fff;
    box-shadow: 0 8px 16px -6px #00000030;
    transition: transform .3s ease;
}

.pp-cat-box:hover .pp-cat-box-media {
    transform: scale(1.04)
}

.pp-cat-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.pp-cat-box h4 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #10233d;
    transition: color .3s ease
}

.pp-cat-box.pc1 {
    background: linear-gradient(160deg,#eafaf0,#d9f3e2)
}

    .pp-cat-box.pc1:hover {
        background: linear-gradient(160deg,#1c8a2c,#0f5c1c)
    }

        .pp-cat-box.pc1:hover h4 {
            color: #fff
        }

.pp-cat-box.pc2 {
    background: linear-gradient(160deg,#eaf4ff,#d7ebff)
}

    .pp-cat-box.pc2:hover {
        background: linear-gradient(160deg,#1c72c9,#0f4a86)
    }

        .pp-cat-box.pc2:hover h4 {
            color: #fff
        }

.pp-cat-box.pc3 {
    background: linear-gradient(160deg,#f2edfd,#e5dafb)
}

    .pp-cat-box.pc3:hover {
        background: linear-gradient(160deg,#7440d6,#4c2794)
    }

        .pp-cat-box.pc3:hover h4 {
            color: #fff
        }

.pp-cat-box.pc4 {
    background: linear-gradient(160deg,#e6f8fb,#d2eff5)
}

    .pp-cat-box.pc4:hover {
        background: linear-gradient(160deg,#0f97ac,#0a6070)
    }

        .pp-cat-box.pc4:hover h4 {
            color: #fff
        }

.pp-cat-box.pc5 {
    background: linear-gradient(160deg,#fff5e2,#ffe9c2)
}

    .pp-cat-box.pc5:hover {
        background: linear-gradient(160deg,#f08a12,#a55d09)
    }

        .pp-cat-box.pc5:hover h4 {
            color: #fff
        }

.pp-cat-box.pc6 {
    background: linear-gradient(160deg,#ffe4ec,#ffd0dd)
}

    .pp-cat-box.pc6:hover {
        background: linear-gradient(160deg,#ff5c8a,#c93862)
    }

        .pp-cat-box.pc6:hover h4 {
            color: #fff
        }

@media(max-width:640px) {
    .pp-cat-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

.pp-notfound {
    padding: 60px 0;
    text-align: center
}

    .pp-notfound h2 {
        font-family: "Plus Jakarta Sans";
        margin-bottom: 8px
    }

    .pp-notfound p {
        color: var(--muted);
        margin-bottom: 20px
    }

@media(max-width:1000px) {
    .pp-grid {
        grid-template-columns: repeat(3,1fr)
    }

    .pp-detail-grid {
        grid-template-columns: 1fr;
        padding: 34px 0 46px
    }

    .pp-detail-side {
        order: 2;
        position: static
    }

    .pp-sidebar {
        flex-direction: row;
        flex-wrap: wrap
    }

    .pp-sidebar-link {
        flex: 1 1 calc(50% - 5px)
    }
}

@media(max-width:700px) {
    .pp-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:480px) {
    .pp-grid {
        grid-template-columns: 1fr
    }

    .pp-sidebar-link {
        flex: 1 1 100%
    }

    .pp-detail-main {
        padding: 20px
    }
}
