/* ── Products Public page — pp- prefix ───────────────────────────────────── */

/* ── Directions section ───────────────────────────────────────────────────── */
.pp-directions {
    background: #f5f7fa;
    padding: 3.5rem 0;
}

.pp-directions .container { max-width: 1320px; }

.pp-section-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.45rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

/* 5-column card grid — 10 cards ÷ 5 = 2 clean rows */
.pp-directions-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

/* ── Direction card ───────────────────────────────────────────────────────── */
.pp-dir-card {
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    min-height: 260px;
    min-width: 0;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
                transform 0.2s ease, opacity 0.2s ease;
}

.pp-dir-card:hover {
    border-color: rgba(27, 42, 82, 0.28);
    box-shadow: 0 12px 32px rgba(27, 42, 82, 0.12);
    transform: translateY(-2px);
}

.pp-dir-card:focus-visible {
    border-color: var(--navy, #1b2a52);
    box-shadow: 0 0 0 3px rgba(27, 42, 82, 0.22);
}

.pp-dir-card--active {
    border-color: var(--navy, #1b2a52) !important;
    box-shadow: 0 14px 36px rgba(27, 42, 82, 0.16) !important;
}

.pp-dir-card--dimmed {
    opacity: 0.55;
    transform: none !important;
}

/* Image container — flex-centered so PNGs sit proportionally */
.pp-dir-card-img {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
}

.pp-dir-card-img img {
    max-height: 150px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.pp-dir-card:hover .pp-dir-card-img img { transform: scale(1.05); }
.pp-dir-card--active .pp-dir-card-img img { transform: scale(1.03); }

/* Card footer row: icon · title · arrow */
.pp-dir-card-body {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1rem;
}

.pp-dir-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(27, 42, 82, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.pp-dir-card--active .pp-dir-card-icon { background: var(--navy, #1b2a52); }

.pp-dir-card-icon .mdi {
    font-size: 20px;
    color: var(--navy, #1b2a52);
}

.pp-dir-card--active .pp-dir-card-icon .mdi { color: #ffffff; }

.pp-dir-card-title {
    flex: 1;
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: #0f172a;
    min-width: 0;
}

.pp-dir-card--active .pp-dir-card-title { color: var(--navy, #1b2a52); }

.pp-dir-card-arrow {
    flex-shrink: 0;
    color: #9aaabb;
    transition: transform 0.25s ease, color 0.2s ease;
    line-height: 1;
}

.pp-dir-card--active .pp-dir-card-arrow {
    transform: rotate(180deg);
    color: var(--navy, #1b2a52);
}

.pp-dir-card-arrow .mdi { font-size: 1rem; }

/* ── Direction detail panels ──────────────────────────────────────────────── */
.pp-direction-panels {
    background: #f5f7fa;
    padding: 0 1.5rem;
}

.pp-dir-detail { display: none; }

.pp-dir-detail--visible {
    display: block;
    background: #f3f7fc;
    border-radius: 20px;
    padding: 32px;
    margin: 24px auto 40px;
    max-width: 1320px;
}

.pp-dir-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.pp-dir-detail-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy, #1b2a52);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pp-dir-detail-icon .mdi { font-size: 1.55rem; color: #ffffff; }

.pp-dir-detail-heading {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.pp-dir-detail-desc {
    color: #4a5a75;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Subcategory grid: 4 cols on desktop */
.pp-subcat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 24px;
}

/* ── Subcategory card ─────────────────────────────────────────────────────── */
.pp-subcat-card {
    background: #ffffff;
    border: 1px solid #e5eaf0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    border-radius: 16px;
    padding: 24px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.pp-subcat-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pp-subcat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(27, 42, 82, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pp-subcat-card-icon .mdi { font-size: 28px; color: var(--navy, #1b2a52); }

.pp-subcat-card-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0;
    padding-top: 0.2rem;
}

.pp-subcat-parts {
    font-size: 0.8rem;
    color: #5a6a80;
    line-height: 1.6;
    padding-left: 1rem;
    margin-bottom: 1rem;
    flex: 1;
}

.pp-subcat-parts li { margin-bottom: 0.2rem; }

.pp-subcat-brands {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f4f8;
    margin-top: auto;
}

.pp-subcat-brands img {
    height: auto;
    width: auto;
    max-height: 32px;
    max-width: 110px;
    object-fit: contain;
    vertical-align: middle;
    opacity: 0.85;
}

/* ── CTA section ──────────────────────────────────────────────────────────── */
.pp-cta {
    background: #0f1d3a;
    padding: 4rem 0 1rem;
    text-align: center;
}

.pp-cta-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.pp-cta-desc {
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Responsive — card grid tablet ───────────────────────────────────────── */
@media (max-width: 1199px) {
    .pp-directions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }

    .pp-dir-card { min-height: 230px; padding: 20px 16px; }
    .pp-dir-card-img { height: 140px; }
    .pp-dir-card-img img { max-height: 120px; }
    .pp-dir-card-icon { width: 36px; height: 36px; }
    .pp-dir-card-icon .mdi { font-size: 18px; }
    .pp-dir-card-title { font-size: 15px; }

    .pp-dir-detail--visible { padding: 24px; }
    .pp-dir-detail-heading { font-size: 28px; }

    .pp-subcat-grid { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
    .pp-subcat-card { padding: 20px; min-height: 200px; }
    .pp-subcat-card-icon { width: 52px; height: 52px; }
    .pp-subcat-card-icon .mdi { font-size: 26px; }
    .pp-subcat-brands img { max-height: 28px; }
}

/* ── Responsive — mobile ──────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .pp-directions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }

    .pp-dir-card { min-height: 190px; padding: 16px 14px; }
    .pp-dir-card-img { height: 100px; }
    .pp-dir-card-img img { max-height: 88px; }
    .pp-dir-card-icon { width: 34px; height: 34px; }
    .pp-dir-card-icon .mdi { font-size: 18px; }
    .pp-dir-card-title { font-size: 14px; }

    .pp-direction-panels { padding: 0 0.75rem; }
    .pp-dir-detail--visible { padding: 18px; border-radius: 16px; margin: 16px auto 28px; }
    .pp-dir-detail-heading { font-size: 26px; }

    .pp-subcat-grid { grid-template-columns: 1fr; margin-top: 16px; }
    .pp-subcat-card { padding: 18px; min-height: auto; }
    .pp-subcat-card-icon { width: 48px; height: 48px; }
    .pp-subcat-card-icon .mdi { font-size: 24px; }
}

@media (max-width: 575px) {
    .pp-hero { height: 220px; }
    .pp-hero-title { font-size: 1.65rem; }
    .pp-hero-text { width: 90%; padding: 1.5rem 1rem; }
    .pp-subcat-brands img { max-height: 24px; }
}

