/* Stores Pages Styles */

/* Force white background for entire page */
body {
    background-color: white !important;
}

/* Stores Page Background */
.stores-page {
    background-color: white !important;
    min-height: 100vh;
}

/* Page Container */
.stores-container {
    background-color: transparent;
}

/* All Cards Default White Background */
.stores-page .card {
    background-color: white !important;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
}

.stores-page .card-body {
    background-color: white !important;
}

.stores-page .card-header {
    background-color: white !important;
    border-bottom: 1px solid #e9ecef;
    color: #333 !important;
}

/* Force white background for all elements in stores pages */
.stores-page .card,
.stores-page .card-body,
.stores-page .card-header,
.stores-page .card-footer {
    background-color: white !important;
}

/* Store Cards */
.store-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 0.75rem;
}

.store-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Store Card Content */
.store-card .card-body {
    background-color: white;
    color: #333;
}

.store-card .card-title {
    color: #333;
    font-weight: 600;
}

.store-card .card-text {
    color: #6c757d;
}

.store-card .text-muted {
    color: #6c757d !important;
}

/* Store Image Container */
.store-image-container {
    height: 200px;
    overflow: hidden;
}

.store-image-container img {
    height: 100%;
    object-fit: cover;
}

/* Store Info */
.store-info {
    padding: 1.5rem;
}

.store-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.store-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Store Contact */
.store-contact {
    margin-bottom: 1rem;
}

.store-contact .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.store-contact .contact-item i {
    width: 20px;
    margin-right: 0.5rem;
    color: #007bff;
}

/* Store Stats */
.store-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.store-stat {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.store-stat i {
    margin-right: 0.5rem;
    color: #007bff;
}

/* Store Products Preview */
.store-products-preview {
    margin-bottom: 1.5rem;
}

.store-products-preview h6 {
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Product Cards in Store Pages */
.product-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.product-card .card-body {
    background-color: white;
    color: #333;
}

.product-card .card-title {
    color: #333;
    font-weight: 600;
}

.product-card .card-text {
    color: #6c757d;
}

.product-thumbnail {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.product-thumbnail:hover {
    transform: scale(1.05);
}

.product-thumbnail img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.25rem;
}

.product-name {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 2px;
    margin-top: 0.25rem;
}

.product-name small {
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    white-space: normal;
    color: #6c757d;
}

/* Store Actions */
.store-actions {
    display: flex;
    gap: 0.5rem;
}

.store-actions .btn {
    flex: 1;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Store Footer */
.store-footer {
    background-color: #f8f9fa;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.store-footer small {
    color: #6c757d;
}

/* Store Header */
.store-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.store-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.store-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Store Page Header Card */
.store-page-header {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.store-page-header .card-body {
    background-color: white;
    padding: 1.5rem;
}

.store-page-header h1 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.store-page-header .text-muted {
    color: #6c757d;
}

/* Search and Filter Card */
.search-filter-card {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.search-filter-card .card-body {
    background-color: white;
    padding: 1.5rem;
}

.search-filter-card .form-label {
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.search-filter-card .form-control {
    background-color: white;
    border: 1px solid #ced4da;
    color: #495057;
}

.search-filter-card .form-select {
    background-color: white;
    border: 1px solid #ced4da;
    color: #495057;
}

.search-filter-card .btn {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* Store Details */
.store-details {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.store-details h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .store-header h1 {
        font-size: 2rem;
    }
    
    .store-header p {
        font-size: 1rem;
    }
    
    .store-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .store-actions {
        flex-direction: column;
    }
    
    .store-actions .btn {
        width: 100%;
    }
}
