main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--background-color);
}

.store-header {
    text-align: center;
    margin-bottom: 2rem;
}

.store-header h1 {
    font-size: 2.5rem;
    color: var(--navy);
    margin: 0; /* Ensure no extra spacing */
}

.store-header p {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin: 0.5rem 0 0; /* Add spacing consistency */
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.search-bar input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar input[type="text"]:focus {
    border-color: var(--navy);
}

.search-bar button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: var(--dark-blue);
}

.search-bar i {
    font-size: 1.2rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 1.5rem;
    width: 100%; /* Ensure grid spans full width */
    max-width: 1200px; /* Optional: Limit max width */
    margin: 0 auto; /* Center the grid */
}

.app-card {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth shadow transition */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for better depth */
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.app-image {
    flex: 0 0 150px; /* Fixed width for the image */
    background-color: var(--light-gray); /* Placeholder background */
    border-radius: 12px; /* Adjusted border-radius for rounded corners */
    overflow: hidden; /* Ensure content respects border-radius */
    aspect-ratio: 1 / 1; /* Set aspect ratio to 1:1 for a square shape */
}

.app-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Ensure image fits nicely */
    border-radius: inherit; /* Inherit border-radius from parent */
}

.app-content {
    flex: 1;
    padding: 1rem;
    text-align: left; /* Align text to the left */
}

.app-content h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin: 0 0 0.5rem; /* Add spacing below heading */
}

.app-content p {
    font-size: 1rem;
    color: var(--dark-blue);
    margin: 0; /* Ensure no extra spacing */
}
.app-content a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--navy);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease; 
}
.app-content a:hover {
    background-color: var(--dark-blue);
}

@media (max-width: 768px) {
    main {
        padding: 20px 10px; /* Adjust padding for smaller screens */
    }

    .store-header h1 {
        font-size: 2rem; /* Adjust font size for smaller screens */
    }

    .store-header p {
        font-size: 1rem; /* Adjust font size for smaller screens */
    }

    .app-image {
        flex: 0 0 100px; /* Reduce image size on smaller screens */
    }

    .app-content h2 {
        font-size: 1.2rem; /* Adjust heading size */
    }

    .app-content p {
        font-size: 0.9rem; /* Adjust paragraph size */
    }
}
