/* Shop Page Styles */
:root {
    --primary: #1a4b8c;
    --primary-dark: #0d2d5c;
    --primary-light: #2c6cba;
    --secondary: #f8c300;
    --accent: #1e88e5;
    --light: #f5f7fa;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #666;
    --white: #ffffff;
    --gray: #e0e0e0;
    --gray-dark: #b0b0b0;
    --success: #28a745;
}

.shop-container {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

/* Filters Sidebar */
.filters-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.filter-widget {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-title button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
}

.filter-options {
    list-style: none;
}

.filter-options li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.filter-options input {
    margin-right: 10px;
}

.filter-options label {
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
}

.filter-count {
    margin-left: auto;
    color: var(--text-light);
    font-size: 14px;
}

.price-range {
    margin-top: 15px;
}

.price-inputs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.price-inputs input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--gray);
    border-radius: 4px;
}

/* Products Section */
.products-section {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.products-header h1 {
    font-size: 28px;
    color: var(--dark);
}

.products-sorting {
    display: flex;
    align-items: center;
    gap: 15px;
}

.products-sorting select {
    padding: 8px 15px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    background-color: var(--white);
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-options button {
    background: none;
    border: 1px solid var(--gray);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s;
}

.view-options button.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Products Grid - 3 cards per row */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary);
    color: var(--dark);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-image {
    height: 200px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.product-card:hover .product-actions {
    transform: translateY(0);
}

.product-actions button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 16px;
    margin: 0 10px;
    cursor: pointer;
    transition: color 0.3s;
}

.product-actions button:hover {
    color: var(--secondary);
}

.product-details {
    padding: 20px;
}

.product-category {
    color: var(--primary);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-card-footer {
    display: flex;
    gap: 10px;
}

.product-card-footer .btn {
    flex: 1;
    padding: 8px 15px;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination button {
    background-color: var(--white);
    border: 1px solid var(--gray);
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover {
    background-color: var(--light);
}

.pagination button.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.loading-spinner {
    border: 4px solid var(--gray);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--gray-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
    .shop-container {
        flex-direction: column;
    }
    
    .filters-sidebar {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .products-sorting {
        width: 100%;
        justify-content: space-between;
    }
}