/* === Mega Menu === */

/* Desktop Mega Menu */
.mkd-mega-menu {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: #fff; border-top: 1px solid #222;
    display: flex; height: 0; overflow: hidden; opacity: 0;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1); z-index: 200;
}
.mkd-mega-menu.open { min-height: 520px; max-height: 85vh; height: auto; opacity: 1; }

.mkd-parent-cats {
    width: 25%; min-width: 280px; background: #fafafa;
    border-right: 1px solid #eee; padding: 40px 0;
    overflow-y: auto; list-style: none; margin: 0;
}
.mkd-parent-item {
    padding: 16px 40px; cursor: pointer; font-weight: 500; color: #444;
    display: flex; flex-direction: column; transition: all 0.2s;
    border-left: 4px solid transparent; font-size: 15px;
}
.mkd-parent-item:hover { background: #fff; color: #000; }
.mkd-parent-item.active {
    background: #fff; color: #000; font-weight: 700;
    border-left-color: var(--mk-yellow, #EBF728);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.mkd-parent-item small { font-weight: 400; margin-top: 4px; font-size: 11px; color: #888; }
.mkd-parent-item:hover small { color: #555; }

.mkd-child-cats { width: 75%; padding: 50px 60px; background: #fff; overflow-y: auto; }
.mkd-tab-panel { display: none; }
.mkd-tab-panel.active { display: block; }

.mkd-grid-title {
    font-size: 28px; font-weight: 800; margin-bottom: 35px; color: #111;
    letter-spacing: -0.5px; position: relative; display: inline-block;
}
.mkd-grid-title::after {
    content: ''; position: absolute; bottom: -8px; left: 0;
    width: 60px; height: 4px; background: var(--mk-yellow, #EBF728);
}

.mkd-grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.mkd-cat-card {
    background: #fff; height: 200px; border-radius: 8px;
    position: relative; overflow: hidden; cursor: pointer;
    text-decoration: none; display: block; border: 1px solid #eee;
    transition: all 0.3s var(--mk-ease, ease);
}
.mkd-cat-card:hover {
    transform: translateY(-6px); box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: transparent; border-bottom: 4px solid var(--mk-yellow, #EBF728);
}
.mkd-card-content {
    padding: 24px; height: 100%; display: flex; flex-direction: column;
    justify-content: space-between; position: relative; z-index: 2;
}
.mkd-card-title { font-size: 17px; font-weight: 700; color: #111; margin-bottom: 6px; letter-spacing: -0.3px; }
.mkd-card-desc { font-size: 12px; color: #777; line-height: 1.4; max-width: 90%; }
.mkd-card-img-wrap {
    position: absolute; bottom: 10px; right: 10px;
    width: 140px; height: 130px;
    display: flex; align-items: flex-end; justify-content: flex-end;
    transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
.mkd-card-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05)); }
.mkd-cat-card:hover .mkd-card-img-wrap { transform: scale(1.1) translateX(-5px) translateY(-5px); }

/* Mobile Drawer */
.mkm-drawer {
    position: fixed; top: 0; left: 0; width: 100%;
    height: calc(100vh - 105px); /* minus bottom nav */
    background: #fff; z-index: 300;
    display: flex; transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25,1,0.5,1);
    padding-top: 98px; /* below header */
}
.mkm-drawer.active { transform: translateX(0); }

.mkm-drawer-cats {
    width: 35%; background: #f4f4f4; border-right: 1px solid #ddd;
    overflow-y: auto;
}
.mkm-cat-link {
    padding: 20px 10px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; color: #777; text-align: center;
    border-bottom: 1px solid #e5e5e5; cursor: pointer; transition: 0.2s;
}
.mkm-cat-link.active {
    background: #fff; color: #000;
    border-left: 4px solid var(--mk-yellow, #EBF728);
}

.mkm-drawer-content { width: 65%; padding: 20px; overflow-y: auto; background: #fff; }
.mkm-tab-panel { display: none; }
.mkm-tab-panel.active { display: block; }

.mkm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.mkm-prod-item {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; text-decoration: none; color: inherit;
}
.mkm-prod-img-box {
    width: 100%; aspect-ratio: 1/1; background: #f9f9f9;
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; margin-bottom: 8px; overflow: hidden;
}
.mkm-prod-img-box img { width: 60%; height: 60%; object-fit: contain; }
.mkm-prod-title { font-size: 10px; font-weight: 600; line-height: 1.3; }
