/* Global Styling */
body {
    font-family: 'Oxygen', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

h1, h2 {
    color: #333;
    text-align: center;
}

a {
    color: #2c9a8d; 
}

/* Store Title Section */
.store-header {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #2c9a8d, #35b5a1);
    color: white;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.store-header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.store-header p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.store-header::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: white;
    margin: 1rem auto 0;
    border-radius: 2px;
    opacity: 0.8;
}

/* Grid Layout for Products */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Product Styling */
.product-item {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-item h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.product-item .product-price {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #333;
}

.product-item button {
    background-color: #2c9a8d;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-item button:hover {
    background-color: #26867a;
}

.product-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Styling for Read More Button */
.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #2c9a8d;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #26867a;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.pagination a {
    margin: 0 10px;
    padding: 10px 20px;
    background-color: #2c9a8d;
    color: white;
    border-radius: 5px;
    font-size: 1rem;
}

.pagination a:hover {
    background-color: #26867a;
}

/* Modal container (hidden by default) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
}

/* Modal Content */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
    overflow: hidden; /* Prevent page scroll */
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* Adjust to fit smaller viewports */
    max-width: 600px; /* Max size for larger screens */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-height: 90%; /* Limit height to viewport */
    overflow-y: auto; /* Scroll only if content exceeds modal height */
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Mobile Layouts */
@media (max-width: 768px) {
    .store-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .store-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-item {
        padding: 0.5rem;
    }

    .store-header h1 {
        font-size: 2.5rem;
    }
}
