/* Store Catalog Specific Styles */

/* Page Header */
.page-header-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    border-bottom: 1px solid #dee2e6;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.page-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat-item {
    font-size: 0.95rem;
    color: #495057;
}

.stat-item strong {
    color: #28a745;
    font-weight: 600;
}

.page-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Filters Section */
.filters-section {
    background: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filters-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.filters-card .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filters-card .btn-group .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 500;
}

.filters-card .btn-group .btn.active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.filters-card .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 0.9rem;
}

.filters-card .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Products Section */
.products-section {
    padding: 3rem 0;
    background: #f8f9fa;
    min-height: 60vh;
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #0d6efd;
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.ready-stock {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.badge.limited {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.badge.preorder {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    color: white;
}

.product-actions-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions-overlay {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: #0d6efd;
    color: white;
    transform: scale(1.1);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    margin-bottom: 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 0.3rem;
}

.rating-stars .icon {
    width: 14px;
    height: 14px;
    color: #ffc107;
}

.rating-text {
    font-size: 0.8rem;
    color: #6c757d;
}

.product-price {
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: #28a745;
}

.price-old {
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-actions {
    margin-top: auto;
}

.product-actions .btn {
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* List View Styles */
.product-list-item {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.product-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #0d6efd;
}

.product-list-item .product-image {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
}

.product-list-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-list-item .product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-list-item .product-description {
    margin-bottom: 1rem;
    -webkit-line-clamp: 3;
}

.product-list-item .product-price-actions {
    text-align: center;
}

.product-list-item .product-price {
    margin-bottom: 1rem;
}

.product-list-item .product-price .price-current {
    font-size: 1.3rem;
}

.product-list-item .product-actions .btn {
    margin-bottom: 0.5rem;
}

/* Load More Button */
#load-more-btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    border: none;
    color: white;
}

#load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
    background: linear-gradient(135deg, #0b5ed7, #5a32a3);
}

/* Pagination Info */
.pagination-info {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
}

.empty-state svg {
    color: #6c757d;
}

.empty-state h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6c757d;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header-section {
        padding: 2rem 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filters-section {
        position: relative;
        top: 0;
    }
    
    .filters-card {
        padding: 1rem;
    }
    
    .filters-card .btn-group {
        flex-wrap: wrap;
    }
    
    .filters-card .btn-group .btn {
        flex: 1;
        min-width: 80px;
    }
    
    .products-section {
        padding: 2rem 0;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .filters-card .col-lg-2 {
        margin-bottom: 1rem;
    }
    
    .product-list-item .row {
        flex-direction: column;
    }
    
    .product-list-item .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* Loading States */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animation */
.success-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}







