/* Store App Styles */

.store-content {
    max-width: 1200px;
    margin: 0 auto;
}

.store-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.store-search-form,
.store-filter-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.store-search-input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.store-search-button,
.store-filter-button {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.store-search-button:hover,
.store-filter-button:hover {
    background-color: #0056b3;
}

.store-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.store-item-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.store-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.store-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.store-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

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

.store-item-info {
    padding: 1rem;
}

.store-item-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #333;
}

.store-item-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.store-item-description {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.store-item-unavailable {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #dc3545;
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.store-empty {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Item Detail Page */
.store-item-detail {
    max-width: 1200px;
    margin: 0 auto;
}

.store-item-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.store-item-detail-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-item-main-image {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.store-item-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.store-item-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.store-item-gallery-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background-color: #f5f5f5;
}

.store-item-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-item-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-item-detail-title {
    margin: 0;
    font-size: 2rem;
    color: #333;
}

.store-item-detail-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.price-currency {
    font-size: 1rem;
    color: #666;
}

.store-item-availability {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
}

.store-item-availability.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.store-item-availability.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

.store-item-stock {
    color: #856404;
    font-weight: bold;
}

.store-item-description-full {
    line-height: 1.6;
    color: #333;
}

.store-item-actions {
    margin-top: 1rem;
}

.store-buy-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.store-buy-button:hover:not(:disabled) {
    background-color: #218838;
}

.store-buy-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.store-item-detail-back {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.store-back-link {
    color: #007bff;
    text-decoration: none;
    font-size: 1.1rem;
}

.store-back-link:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination-link {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.pagination-link:hover {
    background-color: #0056b3;
}

.pagination-current {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .store-item-detail-main {
        grid-template-columns: 1fr;
    }
    
    .store-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

