:root {
    --mk-bg: #F7F8FC;
    --mk-surface: #ffffff;
    --mk-primary: #5146E5;
    --mk-primary-2: #7C5CFF;
    --mk-accent: #2563EB;
    --mk-orange: #FF8A00;
    --mk-green: #16B981;
    --mk-danger: #EF4444;
    --mk-text: #171A2B;
    --mk-muted: #697386;
    --mk-border: #E8EAF0;
    --mk-radius: 16px;
    --mk-radius-sm: 12px;
    --mk-shadow: 0 4px 18px rgba(23, 26, 43, 0.06);
    --mk-shadow-hover: 0 12px 28px rgba(23, 26, 43, 0.1);
    --mk-max: 1680px;
}

.mk-container {
    width: 100%;
    max-width: var(--mk-max);
    margin-inline: auto;
    padding-inline: 24px;
    box-sizing: border-box;
}

/* ========== HEADER ========== */
.mk-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--mk-surface);
    border-bottom: 1px solid var(--mk-border);
    box-shadow: 0 2px 12px rgba(23, 26, 43, 0.04);
}
.mk-header__top {
    border-bottom: 1px solid #f0f2f7;
}
.mk-header__top-inner {
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding-block: 10px;
}
.mk-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--mk-text);
    flex-shrink: 0;
}
.mk-brand img {
    height: 34px;
    width: auto;
    display: block;
}
.mk-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.mk-brand__text strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--mk-primary);
}
.mk-brand__text small {
    font-size: 11px;
    font-weight: 500;
    color: var(--mk-muted);
}
.mk-search {
    display: flex;
    align-items: stretch;
    height: 48px;
    border: 1px solid var(--mk-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    justify-self: center;
}
.mk-search__cat {
    display: flex;
    align-items: center;
    border-inline-end: 1px solid var(--mk-border);
    background: #fafbff;
    margin: 0;
}
.mk-search__cat select {
    border: 0;
    background: transparent;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--mk-text);
    padding: 0 12px;
    max-width: 140px;
    outline: none;
    cursor: pointer;
}
.mk-search__input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 0 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--mk-text);
    min-width: 0;
    background: transparent;
}
.mk-search__input::placeholder { color: #9aa3b5; }
.mk-search__btn {
    width: 48px;
    border: 0;
    background: var(--mk-primary);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.mk-search__btn:hover { background: #4338ca; }
.mk-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
}
.mk-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    border-radius: 11px;
    background: linear-gradient(135deg, #5146E5, #7C5CFF);
    color: #fff !important;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(81, 70, 229, 0.28);
    transition: transform .15s ease, box-shadow .2s ease;
}
.mk-shop-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(81, 70, 229, 0.38);
    color: #fff !important;
}
.mk-shop-btn i { font-size: 15px; }
@media (max-width: 1280px) {
    .mk-shop-btn span { display: none; }
    .mk-shop-btn { width: 40px; padding: 0; justify-content: center; }
}
.mk-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--mk-text);
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease;
}
.mk-icon-btn:hover { background: #f3f4fb; }
.mk-icon-btn i { font-size: 20px; }
.mk-icon-btn__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--mk-muted);
    white-space: nowrap;
}
.mk-badge {
    position: absolute;
    top: 4px;
    inset-inline-end: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--mk-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.mk-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--mk-primary);
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-inline-start: 4px;
    transition: transform .15s ease, background .2s ease;
}
.mk-user-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
    color: #fff !important;
}
.mk-header__nav {
    background: #fff;
}
.mk-header__nav-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding-block: 6px;
}
.mk-cats-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--mk-primary);
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    transition: background .2s ease;
}
.mk-cats-btn:hover { background: #4338ca; color: #fff !important; }
.mk-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.mk-nav::-webkit-scrollbar { display: none; }
.mk-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--mk-muted);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}
.mk-nav__item i { font-size: 15px; }
.mk-nav__item:hover,
.mk-nav__item.is-active {
    color: var(--mk-primary);
    background: #f3f1ff;
}
.mk-deal-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FF8A00, #EF4444);
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

