/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Segoe UI', Tahoma, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.page-subtitle {
    font-size: 1.1rem;
    text-align: center;
    opacity: 0.95;
}

/* Container */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    position: sticky;
    top: 20px;
    overflow: hidden;
}

.sidebar-header {
    background: #f5f5f5;
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
    text-align: center;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-list {
    list-style: none;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.category-item:hover {
    background: #f8f9fa;
}

.category-item.active {
    background: #e8eaf6;
    border-left: 4px solid #667eea;
    font-weight: 600;
}

.category-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

.category-item.active .category-number {
    background: #5568d3;
}

.category-name {
    font-size: 0.9rem;
    color: #555;
    letter-spacing: 0.3px;
}

.category-item.active .category-name {
    color: #333;
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Pooja Grid */
.pooja-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Pooja Card */
.pooja-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pooja-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pooja-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    /* padding: 20px; */
    display: flex;
    flex-direction: column;
    /* gap: 12px; */
    flex: 1;
}

.pooja-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.4;
    /* min-height: 50px; */
    display: flex;
    padding-top: 5px;
    align-items: center;
    justify-content: center;
}

.price-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* padding: 10px 0; */
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #667eea;
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.book-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-btn:hover {
    text-decoration: none;
    background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* No Products Message */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.no-products p {
    font-size: 1.1rem;
    color: #666;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding: 20px 0;
}

/* Mobile Filter Button */
.mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
}

.mobile-filter-btn:hover {
    transform: scale(1.05);
}

.mobile-filter-btn span {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pooja-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 9999;
        transition: left 0.3s ease;
        width: 280px;
        overflow-y: auto;
        background: white;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-header {
        display: block !important;
        background: #667eea;
        padding: 20px;
        border-bottom: none;
        text-align: center;
    }

    .sidebar-header h3 {
        font-size: 1.2rem;
        font-weight: 600;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0;
    }

    .category-list {
        padding-top: 0;
    }

    .category-item {
        padding: 15px 20px;
    }

    .mobile-filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-filter-btn.visible {
        display: flex !important;
    }

    .main-content {
        width: 100%;
    }

    .pooja-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-image {
        height: 200px;
    }

    body.sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 30px 0;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .pooja-title {
        font-size: 1rem;
        min-height: 45px;
    }

    .current-price {
        font-size: 1.2rem;
    }

    .original-price {
        font-size: 0.9rem;
    }

    .book-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .card-content {
        padding: 15px;
    }
}

/* Laravel Pagination Styling */
.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination .active span {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination .disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}
