/* ===========================
   Products Page
   =========================== */
.products-section{
    background:
        linear-gradient(
            135deg,
            rgba(108,61,214,.05),
            rgba(232,62,140,.03),
            rgba(255,154,61,.04)
        );
}

.products-page {
    min-height: 100vh;
}

/* ===========================
   Hero
   =========================== */

.products-hero {
    text-align: center;
    padding: 40px 0 20px;
}

.products-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.products-hero .hero-subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===========================
   Search Box
   =========================== */
.search-box {
    display: flex;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.search-box .form-control {
    border-radius: 14px;
    height: 56px;
}

.search-box .btn {
    min-width: 60px;
    border-radius: 14px;
}

/* ===========================
   Categories Filter
   =========================== */
.categories-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    background: white;
    color: #555;
    border: 1px solid rgba(108,61,214,.15);
    transition: .3s ease;
}

.category-chip:hover {
    background:
        rgba(108,61,214,.08);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
}

.category-chip.active {
    background: var(--brand-gradient);
    color: white;
    border-color: transparent;
}

/* ===========================
   Results Count
   =========================== */
.products-count {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* ===========================
   Product Grid
   =========================== */
.products-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ===========================
   Product Card
  =========================== */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    border:
        1px solid rgba(108,61,214,.08);
    box-shadow:
        0 4px 15px rgba(0,0,0,.05);
    transition: .3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(0,0,0,.10);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.product-placeholder {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            rgba(108,61,214,.04),
            rgba(232,62,140,.04)
        );
}

.product-placeholder i {
    font-size: 4rem;
    color: #cfcfcf;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-title {
    color: var(--dark-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* ===========================
   Category Badge
   =========================== */
.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background:
        rgba(108,61,214,.08);

    color: var(--primary-color);
    font-size: .8rem;
    font-weight: 600;
}

/* ===========================
   Product Actions
   =========================== */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.product-actions .btn {
    width: 100%;
}

/* ===========================
   Empty State
   =========================== */
.empty-products {
    text-align: center;
    padding: 80px 20px;
}

.empty-products i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.empty-products h4 {
    margin-bottom: 10px;
}

.empty-products p {
    color: var(--text-muted);
}

/* ===========================
   Pagination
   =========================== */
.pagination {
    margin-top: 50px;
}

/* ===========================
   CTA
   =========================== */
.custom-order-section {
    margin-top: 80px;
}

.custom-order-card {
    text-align: center;
    padding: 60px 30px;
    border-radius: 30px;
    background:
        linear-gradient(
            135deg,
            rgba(108,61,214,.05),
            rgba(232,62,140,.05)
        );
    border:
        1px solid rgba(108,61,214,.08);
}

.custom-order-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.custom-order-card p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-muted);
}

/* ===========================
   Mobile
   =========================== */
@media (max-width:768px) {
    .products-hero .hero-title {
        font-size: 2.2rem;
    }
    .products-hero .hero-subtitle {
        font-size: 1rem;
    }
    .search-box {
        flex-direction: column;
    }
    .categories-filter {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .product-image,
    .product-placeholder {
        height: 220px;
    }
    .custom-order-card {
        padding: 40px 20px;
    }
    .custom-order-card h3 {
        font-size: 1.6rem;
    }
}