/* ---- Page-specific styles ---- */
.products-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 60%, var(--secondary) 100%);
    padding: 2rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.products-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: #64748b;
}

.breadcrumb .current {
    color: #e2e8f0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary-light);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* ---- Main Content ---- */
.page-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* ---- Category Filter Bar ---- */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-chips {
    display: flex;
    gap: 0.6rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.25rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 0.4rem 1.1rem;
    border-radius: 100px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    background: white;
    transition: all 0.2s;
    display: inline-block;
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.04);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-count {
    background: #f1f5f9;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-weight: 700;
    color: #475569;
    font-size: 0.82rem;
}

.filter-mobile-container {
    display: none;
}

.filter-select-mobile {
    display: none;
    width: 100%;
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
    outline: none;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f97316' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-select-mobile:focus {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.12);
}

/* ---- Product Grid ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1.75rem;
}

/* ---- Product Card ---- */
.product-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.06);
}

.product-card-img {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
    transition: transform 0.6s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(var(--secondary-rgb), 0.85);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.5rem;
}

.card-category::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-desc {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.3);
}

.card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.4);
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    background: white;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
}

/* ---- Pagination ---- */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 5rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 3rem;
}

.pagination-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.pagination-summary {
    font-size: 0.88rem;
    color: #94a3b8;
    font-weight: 500;
}

.pagination-summary strong {
    color: var(--secondary);
    font-weight: 700;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-buttons .btn {
    min-width: 42px;
    height: 42px;
    padding: 0 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.pagination-buttons .btn-secondary {
    background: white;
    border: 1.5px solid #e2e8f0;
    color: #475569;
}

.pagination-buttons .btn-secondary:hover:not(.btn-disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.pagination-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

.pagination-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.45);
}

.pagination-buttons .btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #f1f5f9;
}

.pagination-buttons .btn-ellipsis {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: default;
}

@media (min-width: 768px) {
    .pagination-nav {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ---- CTA Banner at bottom ---- */
.products-cta {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: 28px;
    padding: 4rem 3rem;
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-content h2 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 640px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.25rem;
}

.cta-phone {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.phone-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.phone-text {
    display: flex;
    flex-direction: column;
}

.phone-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.phone-number {
    font-size: 1rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

.cta-phone:hover .phone-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.cta-phone:hover .phone-number {
    color: var(--primary-light);
}

.products-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .products-hero {
        padding: 4rem 0 2rem;
    }

    .hero-inner {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .breadcrumb {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        width: 100%;
        margin-top: 2.5rem;
        background: rgba(255, 255, 255, 0.03);
        padding: 1.5rem;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hero-stat {
        align-items: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-bar {
        padding: 1.25rem;
        border-radius: 20px;
        margin-bottom: 1.5rem;
        width: 100%;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .filter-chips {
        display: none;
    }

    .filter-mobile-container {
        display: block !important;
        width: 100%;
    }

    .filter-select-mobile {
        display: block;
        width: 100% !important;
    }

    .filter-right {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        font-size: 0.8rem;
        color: #94a3b8;
    }

    .products-cta {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem;
        text-align: center;
    }

    .cta-content p {
        margin: 0 auto 1.5rem;
    }

    .cta-actions {
        align-items: center;
    }
}