/* ---------- Page hero ---------- */
/* ملاحظة session4: أنماط page-hero و page-breadcrumb رُقّيت إلى style.css (مكوّن مشترك لكل الصفحات الداخلية) */

/* ---------- Categories filter ---------- */
.pcats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
    column-gap: 18px;
    row-gap: 24px;
    margin-bottom: 50px;
}

.pcat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--heading);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
}

.pcat-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    transition: var(--transition);
}

.pcat-icon svg,
.pcat-icon img {
    display: block;
    width: 44px;
    height: 44px;
}

.pcat-icon img {
    object-fit: contain;
}

.pcat-item:hover,
.pcat-item.active { color: var(--primary); }

.pcat-item:hover .pcat-icon,
.pcat-item.active .pcat-icon { transform: translateY(-4px); }

/* ---------- Product cards ---------- */
@keyframes pcard-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pcard.is-hidden,
.pcard-col.is-hidden { display: none; }

.products-empty {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    color: var(--text);
    font-size: 16px;
}

.pcard {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    animation: pcard-in .4s ease;
}

.pcard:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-red);
    transform: translateY(-6px);
}

.pcard-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.pcard-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--heading);
    margin-bottom: 8px;
    transition: var(--transition);
}

.pcard:hover .pcard-title { color: var(--primary); }

.pcard-desc {
    font-size: 13px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pcard-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 34px;
    border-radius: 50px;
    background-color: var(--primary);
    border: 1.5px solid var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(200, 16, 46, .2);
    transition: var(--transition);
}

.pcard:hover .pcard-cta {
    background-color: var(--white);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.pcard-cta:hover { transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .page-hero { padding-bottom: 55px; }

    .page-hero-line { display: none; }

    .page-hero-img { margin-top: 25px; }

    .pcats {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 28px;
    }
}

@media (max-width: 575.98px) {
    .page-hero-title { font-size: clamp(26px, 6vw, 34px); }

    .page-breadcrumb { margin-top: 30px; }

    .page-hero-dots {
        width: 240px;
        height: 240px;
        left: -120px;
    }

    .section-title-dots {
        font-size: 26px;
        gap: 8px;
    }

    .section-title-dots::before {
        width: 40px;
        height: 40px;
        background-size: 10px 10px;
    }

    .pcats {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 12px;
        row-gap: 20px;
        margin-bottom: 40px;
    }
}
