﻿/* ============================================================
   Dandelion System — products.css
   Applies to the Products listing page (/Products).
   ============================================================ */
/* ============================================================
   Products2 — horizontal photo-card layout
   ============================================================ */
.p2-hero {
    background: linear-gradient(135deg, #1f3a5f 0%, #2c5282 100%);
    color: #fff;
    padding: 90px 20px 70px;
    text-align: center;
}

    .p2-hero h1 {
        font-size: 2.6rem;
        margin: 0 0 14px;
        font-weight: 700;
        letter-spacing: -0.5px;
    }

    .p2-hero p {
        max-width: 720px;
        margin: 0 auto;
        font-size: 1.05rem;
        opacity: 0.92;
        line-height: 1.6;
    }

.p2-section {
    padding: 70px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

    .p2-section.alt {
        background: #f7f9fc;
        max-width: none;
        margin: 0;
    }

        .p2-section.alt .p2-inner {
            max-width: 1100px;
            margin: 0 auto;
        }

.p2-section-head {
    margin-bottom: 36px;
}

.p2-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #5391de;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.p2-section-head h2 {
    font-size: 1.9rem;
    margin: 0 0 10px;
    color: #e8e8e8;
    font-weight: 700;
}

.p2-section-head p {
    color: #adb4c1;
    max-width: 680px;
    line-height: 1.6;
    margin: 0;
}

.p2-section.alt h2 {
    color: #1a202c;
}

.p2-section.alt p {
    color: #5a6478;
}

.p2-section.alt.p2-eyebrow {
    color: #2c5282;
}

/* Horizontal photo cards */
.p2-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 800px) {
    .p2-list.two-col {
        grid-template-columns: 1fr 1fr;
    }
}

.p2-card {
    display: flex;
    background: #fff;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
}

    .p2-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(31, 58, 95, 0.12);
        border-color: #c9d4e3;
    }

.p2-thumb {
    flex: 0 0 140px;
    width: 140px;
    background-size: cover;
    background-position: center;
    background-color: #e4e8ef;
}

@media (max-width: 520px) {
    .p2-card {
        flex-direction: column;
    }

    .p2-thumb {
        width: 100%;
        height: 140px;
        flex: 0 0 140px;
    }
}

.p2-body {
    flex: 1;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p2-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: #2c5282;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.p2-body h3 {
    font-size: 1.08rem;
    margin: 0 0 8px;
    color: #1a202c;
    line-height: 1.35;
}

.p2-body p {
    font-size: 0.92rem;
    color: #5a6478;
    line-height: 1.55;
    margin: 0 0 12px;
}

.p2-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #d2dfef;
    text-decoration: none;
    align-self: flex-start;
    background-color: #246ecb;
    padding: 6px 10px;
    border-radius: 8px 15px;
}

    .p2-link:hover {
        color: #ffffff;
        text-decoration: underline;
    }

    .p2-link i {
        margin-left: 4px;
        font-size: 0.78rem;
        transition: transform .2s;
    }

    .p2-link:hover i {
        transform: translateX(3px);
    }

.p2-freeware-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #38a169;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

/* "Other" mini-tiles — even more compact */
.p2-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.p2-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    padding: 12px 14px;
    transition: border-color .2s, transform .2s;
}

    .p2-mini:hover {
        border-color: #2c5282;
        transform: translateY(-2px);
    }

.p2-mini-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #e4e8ef;
}

.p2-mini h4 {
    margin: 0 0 2px;
    font-size: 0.95rem;
    color: #1a202c;
}

.p2-mini p {
    margin: 0;
    font-size: 0.8rem;
    color: #5a6478;
    line-height: 1.4;
}

/* CTA */
.p2-cta {
    background: #1a202c;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

    .p2-cta h3 {
        font-size: 1.6rem;
        margin: 0 0 8px;
    }

    .p2-cta p {
        margin: 0 0 22px;
        opacity: 0.85;
    }

    .p2-cta .btn {
        display: inline-block;
        background: #fff;
        color: #1a202c;
        padding: 12px 30px;
        border-radius: 6px;
        font-weight: 600;
        text-decoration: none;
        transition: background .2s;
    }

        .p2-cta .btn:hover {
            background: #e4e8ef;
        }