/* ========================================================
   El Shaib - Products Catalog Stylesheet (Lean & Focused)
   Shared cards, breadcrumbs, tags, and quantity in components.css
   ======================================================== */

/* --- Catalog Hero Banner --- */
.products-hero {
    background: linear-gradient(135deg, #1B4332 0%, #0d3520 50%, #006C48 100%);
    padding: 2.75rem 0 2.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.products-hero-content { position: relative; z-index: 1; }
.products-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(116, 198, 157, 0.16);
    border: 1px solid rgba(116, 198, 157, 0.3);
    color: var(--accent, #74C69D);
    padding: 0.35rem 1.1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.products-hero-content h1 {
    color: #fff;
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.products-hero-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    max-width: 580px;
    margin: 0 auto 1.25rem;
    line-height: 1.7;
}
.products-hero-badges {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.phero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}
.phero-badge i { color: var(--accent, #74C69D); }

/* --- Search & Filter Bar Layout --- */
.products-filter-section {
    background: #fff;
    padding: 1.5rem 0 1rem;
    border-bottom: 1px solid var(--border-color, #E9ECEF);
}
.products-search-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.products-search-box {
    flex: 1;
    min-width: 260px;
    position: relative;
}
.products-search-box .search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}
.products-search-box input {
    width: 100%;
    height: 44px;
    padding: 0 2.75rem 0 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md, 12px);
    font-size: 0.88rem;
    color: var(--text-dark, #012D1D);
    background: var(--light-gray, #F8F9FA);
    transition: var(--transition, all 0.2s);
}
.products-search-box input:focus {
    background: #fff;
    border-color: var(--primary, #40916C);
    box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.15);
    outline: none;
}
.products-sort-dropdown {
    position: relative;
    min-width: 220px;
}
.products-sort-dropdown select {
    width: 100%;
    height: 44px;
    padding: 0 1rem 0 2.25rem;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md, 12px);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark, #012D1D);
    background: var(--light-gray, #F8F9FA);
    cursor: pointer;
    appearance: none;
    transition: var(--transition, all 0.2s);
}
.products-sort-dropdown select:focus {
    border-color: var(--primary, #40916C);
    outline: none;
    box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.15);
}
.products-sort-dropdown i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.8rem;
}

.products-filter-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.25rem;
}

/* --- Products Grid Section --- */
.products-grid-section {
    padding: 2.25rem 0 3rem;
    background: var(--light-gray, #F8F9FA);
    min-height: 450px;
}
.products-results-info {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted, #6C757D);
}

/* --- Pagination --- */
.products-pagination { margin-top: 2rem; }
.products-pagination .page-link {
    font-family: var(--font-family, 'Cairo', sans-serif);
    font-weight: 700;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 8px !important;
    margin: 0 0.2rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.products-pagination .page-item.active .page-link {
    background: var(--primary-dark, #006C48);
    border-color: var(--primary-dark, #006C48);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 108, 72, 0.3);
}
.products-pagination .page-link:hover {
    background: var(--very-light-green, #F0FFF4);
    border-color: var(--primary, #40916C);
    color: var(--primary-dark, #006C48);
}
.products-pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

/* --- Guarantee Strip --- */
.products-guarantee {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--very-light-green, #F0FFF4) 0%, #fff 50%, #f0faf4 100%);
    border-top: 1px solid var(--border-color, #E9ECEF);
}
.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--light-green, #D8F3DC);
    color: var(--primary-dark, #006C48);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.guarantee-content h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-dark, #012D1D);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.guarantee-content p {
    font-size: 0.88rem;
    color: var(--text-muted, #6C757D);
    line-height: 1.7;
}
.guarantee-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.guarantee-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 12px);
    padding: 0.9rem 1.1rem;
    transition: all 0.2s ease;
}
.guarantee-card:hover {
    border-color: var(--primary, #40916C);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateX(-4px);
}
.guarantee-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--light-green, #D8F3DC);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark, #006C48);
    font-size: 1.15rem;
}
.guarantee-card h5 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: var(--text-dark, #012D1D);
}
.guarantee-card p {
    font-size: 0.75rem;
    color: var(--text-muted, #6C757D);
    margin: 0;
}

/* --- Responsive Queries --- */
@media (max-width: 767.98px) {
    .products-hero { padding: 2rem 0 1.5rem; }
    .products-hero-content h1 { font-size: 1.6rem; }
    .products-search-row { flex-direction: column; }
    .products-sort-dropdown { min-width: 100%; }
}
@media (max-width: 575.98px) {
    .guarantee-content { text-align: center; margin-bottom: 1.5rem; }
}
