@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=DM+Sans:wght@400;500;700&display=swap");

/* --- CORE VARIABLES --- */
:root {
    --bg-cream: #F5F1E6;
    /* Warm paper background */
    --card-green: #0D3B26;
    /* Deep Forest Green */
    --cta-red: #C82343;
    /* Magenta/Red */
    --text-dark: #1A1A1A;
    --text-muted: #666666;

    /* Icon Circle Colors */
    --icon-green: #D4E2D4;
    --icon-orange: #EBCBAE;
    --icon-yellow: #EBE4AE;
    --icon-pink: #EBCBD4;
}

/* --- LAYOUT CONTAINER --- */
.mk-menu-container {
    background-color: var(--bg-cream);
    font-family: "DM Sans", sans-serif;
    display: flex;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* --- SIDEBAR --- */
.mk-sidebar {
    width: 280px;
    padding: 40px 30px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    /* Sticky sidebar behavior */
    position: sticky;
    top: 0;
    height: 100vh;
}

.mk-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.mk-nav-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.mk-nav-item:hover {
    opacity: 0.7;
}

/* Icon Circles */
.mk-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

/* Assign colors to circles */
.mk-nav-item:nth-child(1) .mk-icon-circle {
    background-color: var(--icon-green);
}
.mk-nav-item:nth-child(2) .mk-icon-circle {
    background-color: var(--icon-orange);
}
.mk-nav-item:nth-child(3) .mk-icon-circle {
    background-color: var(--icon-yellow);
}
.mk-nav-item:nth-child(4) .mk-icon-circle {
    background-color: var(--icon-pink);
}
.mk-nav-item:nth-child(5) .mk-icon-circle {
    background-color: var(--icon-orange);
}
.mk-nav-item:nth-child(6) .mk-icon-circle {
    background-color: var(--icon-green);
}

.mk-cat-name {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.mk-cat-active .mk-cat-name {
    font-weight: 700;
}

/* CTA Button */
.mk-cta-btn {
    background-color: var(--cta-red);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: auto;
    /* Pushes to bottom */
    display: block;
    box-shadow: 0 4px 10px rgba(200, 35, 67, 0.3);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mk-cta-btn:hover {
    background-color: #a01c38;
    text-decoration: none;
}

/* --- MAIN CONTENT --- */
.mk-content {
    flex-grow: 1;
    padding: 60px 50px;
}

.mk-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
}

.mk-category-title {
    font-family: "Oswald", sans-serif;
    font-size: 48px;
    color: var(--card-green);
    margin: 0;
    text-transform: capitalize;
    font-weight: 700;
}

.mk-item-count {
    color: var(--text-muted);
    font-size: 14px;
}

/* --- PRODUCT GRID --- */
.mk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mk-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The Green Tile */
.mk-card-bg {
    background-color: var(--card-green);
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Makes it a square */
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.mk-product-img {
    width: 85%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.mk-card-bg:hover .mk-product-img {
    transform: scale(1.05);
}

.mk-product-label {
    text-transform: uppercase;
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 500;
    text-align: center;
}

/* --- RESPONSIVE --- */
/* Tablet */
@media (max-width: 1024px) {
    .mk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mk-sidebar {
        width: 220px;
        padding: 30px 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mk-menu-container {
        flex-direction: column;
    }
    .mk-sidebar {
        width: 100%;
        height: auto;
        padding: 20px;
        position: relative;
        flex-direction: row;
        overflow-x: auto;
        /* Horizontal scroll for cats */
        white-space: nowrap;
        border-bottom: 1px solid #ddd;
    }
    .mk-nav-list {
        display: flex;
        flex-direction: row;
        margin-right: 20px;
    }
    .mk-nav-item {
        margin-right: 20px;
        margin-bottom: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .mk-icon-circle {
        margin-right: 0;
        margin-bottom: 5px;
        width: 40px;
        height: 40px;
    }
    .mk-cat-name {
        font-size: 12px;
    }

    .mk-cta-btn {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        z-index: 100;
    }

    .mk-content {
        padding: 30px 20px 100px 20px;
        /* Extra bottom padding for sticky btn */
    }
    .mk-grid {
        grid-template-columns: 1fr;
    }
}
