/* General Shop Styles */
body {
    background-color: #fff;
    color: #333;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
}

.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

/* Hero Section */
.shop-hero {
    text-align: center;
    padding: 60px 20px 40px;
    margin-bottom: 40px;
}

.shop-title {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0 0 20px 0;
    color: #000;
}

.shop-subtitle {
    font-size: 1.1rem;
    color: #666;
    letter-spacing: 1px;
    margin: 0;
}

/* Filter Section */
.filter-section {
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 30px;
    border: 2px solid #333;
    background: transparent;
    color: #333;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.filter-btn:hover {
    background: #333;
    color: #fff;
}

.filter-btn.active {
    background: #333;
    color: #fff;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

/* Product Card */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-in-out;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 100%;
    /* Square aspect ratio */
    background: #f5f5f5;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view {
    padding: 12px 25px;
    background: #fff;
    color: #000;
    border: none;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: #000;
    color: #fff;
}

/* Product Info */
.product-info {
    padding: 20px;
    text-align: center;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-year {
    font-size: 0.9rem;
    color: #999;
    margin: 0 0 12px 0;
}

.product-details {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.btn-purchase {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #333;
    background: transparent;
    color: #333;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: 'Courier New', Courier, monospace;
}

.btn-purchase:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: auto;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #999;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-title {
        font-size: 2.5rem;
    }

    .shop-subtitle {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }

    .filter-container {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .product-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .shop-hero {
        padding: 40px 20px 30px;
    }

    .shop-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Hide filtered items */
.product-card.hidden {
    display: none;
}