:root {
    --background-color: #F5F5F5;
    --text-color: #333333;
    --accent-1: #39475c;
    --accent-2: #e4362e;
    --accent-3: #d6973b;
    --neutral: #D3D3D3;
    --shop-now-color: #e4362e; /* Red color for SHOP NOW */
    --max-width: 1920px;
    --header-height: 60px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    height: var(--header-height);
}

.header-content, .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
    height: 100%;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
}

.komila { color: var(--accent-1); }
.dot { color: var(--accent-2); }
.design { color: var(--accent-3); }

nav {
    display: flex;
    align-items: center;
}

nav a {
    font-size: 1.5rem;
    margin-left: 1rem;
    text-decoration: none;
    color: var(--accent-1);
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-2);
}

nav a.shop-now {
    color: var(--shop-now-color);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a.shop-now:hover {
    background-color: var(--shop-now-color);
    color: white;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--accent-1);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-2);
}

main {
    flex: 1 0 auto;
    max-width: var(--max-width);
    width: 100%;
    margin: var(--header-height) auto 0;
    padding: 1rem;
    box-sizing: border-box;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.grid-item {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.05);
}

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

.grid-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.grid-item:hover .grid-item-overlay {
    transform: translateY(0);
}

.loading {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 2rem;
}

footer {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width: 390px) {

    main {
        margin-top: 140px;
    }
}

@media (min-width: 390px) {
    main {
        margin-top: 100px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        margin-top: 20px;
    }

    .sticky-header {
        height: auto;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0.5rem;
    }

    nav a {
        margin: 0.5rem;
    }
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 800px) {

    nav a.shop-now {
        padding: 0.5rem 1rem;
        width: 100%;
        text-align: center;
    }

    main {
        margin-top: 60px;
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
}