/* Makesy shell — announcement, header, search overlay, cart drawer, mega menu */

body.theme-makesy.mk-layout {
    padding-top: 0;
}

body.theme-makesy .mk-container,
body.theme-makesy .mk-chrome-grid {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--mk-container, 1440px);
    margin-inline: auto;
    padding-inline: var(--mk-grid-padding, 1.25rem);
}

/* Header + primary nav — edge-to-edge within 1440 (no side gutter) */
body.theme-makesy .mk-header-stack .mk-container,
body.theme-makesy .mk-header-stack .mk-chrome-grid {
    padding-inline: 0;
}

/* Shopingo legacy .page-content offset (fixed header) — Makesy uses sticky mk-header-stack */
body.theme-makesy.mk-layout .mk-main.page-content,
body.theme-makesy.mk-layout main.page-content {
    padding-top: 0 !important;
}

body.theme-makesy .mk-header-stack {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--mk-bg, #fff);
}

/* Utility top bar (makesy.com announcement) */
body.theme-makesy .mk-utility-bar {
    position: relative;
    z-index: 40;
    overflow: visible;
    background: var(--theme-topbar-bg, var(--mk-announcement, #e5e8dd));
    border-bottom: none;
    color: var(--theme-topbar-text, var(--mk-brown));
    font-family: var(--theme-topbar-font-family, var(--mk-font-nav));
    font-size: var(--theme-topbar-font-size, var(--mk-text-xs, 11px));
    font-weight: 400;
}

body.theme-makesy .mk-utility-bar__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
    padding-block: 0.5rem;
    overflow: visible;
}

body.theme-makesy .mk-utility-bar__nav {
    display: none;
    position: relative;
    z-index: 5;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    max-width: min(36vw, 20rem);
}

@media (min-width: 992px) {
    body.theme-makesy .mk-utility-bar__nav {
        display: flex;
    }
}

body.theme-makesy .mk-utility-bar__nav-link {
    color: var(--theme-topbar-link, var(--theme-topbar-text, var(--mk-brown)));
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
}

body.theme-makesy .mk-utility-bar__nav-link:hover {
    color: var(--theme-topbar-link-hover, var(--mk-link-hover));
}

body.theme-makesy .mk-utility-bar__nav-link--toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.35;
    color: var(--theme-topbar-link, var(--theme-topbar-text, var(--mk-brown)));
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

body.theme-makesy .mk-utility-bar__nav-link--toggle:hover,
body.theme-makesy .mk-utility-bar__dropdown:hover > .mk-utility-bar__nav-link--toggle {
    color: var(--theme-topbar-link-hover, var(--mk-link-hover));
}

body.theme-makesy .mk-utility-bar__nav-link--toggle .bi {
    font-size: 0.65rem;
    line-height: 1;
    opacity: 0.85;
}

body.theme-makesy .mk-utility-bar__dropdown {
    position: relative;
}

/* Hover köprüsü: toggle ile menü arasında boşluk kalmasın */
body.theme-makesy .mk-utility-bar__dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

body.theme-makesy .mk-utility-bar__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    display: none;
    min-width: 10rem;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    border-radius: 6px;
    background: var(--theme-topbar-dropdown-bg, var(--mk-cream, #faf8f4));
    box-shadow: 0 8px 24px rgba(48, 43, 39, 0.12);
}

body.theme-makesy .mk-utility-bar__dropdown:hover .mk-utility-bar__dropdown-menu,
body.theme-makesy .mk-utility-bar__dropdown:focus-within .mk-utility-bar__dropdown-menu {
    display: block;
}

body.theme-makesy .mk-utility-bar__dropdown-link {
    display: block;
    padding: 0.4rem 0.85rem;
    color: var(--theme-topbar-dropdown-text, var(--theme-topbar-text, var(--mk-brown)));
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

body.theme-makesy .mk-utility-bar__dropdown-link:hover,
body.theme-makesy .mk-utility-bar__dropdown-link:focus {
    color: var(--theme-topbar-dropdown-hover-text, #fffdfc);
    background: var(--theme-topbar-dropdown-hover-bg, var(--mk-brown));
}

body.theme-makesy .mk-utility-bar__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--theme-topbar-link, var(--theme-topbar-text, var(--mk-brown)));
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

body.theme-makesy .mk-utility-bar__phone:hover {
    color: var(--theme-topbar-link-hover, var(--mk-link-hover));
}

/* Logo ile aynı eksen: tam genişlik ortası (sağdaki meta/sosyal kaydırmaz) */
body.theme-makesy .mk-utility-bar__freeship {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: min(92vw, 36rem);
    margin: 0;
    text-align: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

body.theme-makesy .mk-utility-bar__message {
    display: block;
    line-height: 1.35;
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    letter-spacing: var(--mk-tracking-wide, 0.12em);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    pointer-events: auto;
}

body.theme-makesy .mk-utility-bar__progress {
    display: block;
    width: min(450px, 100%);
    height: 4px;
    margin-top: 4px;
    pointer-events: none;
    flex: 0 1 450px;
    min-width: 80px;
    border-radius: 999px;
    background: rgba(48, 43, 39, 0.12);
    overflow: hidden;
}

body.theme-makesy .mk-utility-bar__progress-fill {
    display: block;
    height: 100%;
    background: var(--theme-topbar-text, var(--mk-brown));
    border-radius: inherit;
}

body.theme-makesy .mk-utility-bar__links {
    display: none;
    position: relative;
    z-index: 2;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1.25rem;
    white-space: nowrap;
    margin-left: auto;
}

@media (min-width: 992px) {
    body.theme-makesy .mk-utility-bar__links {
        display: flex;
    }
}

body.theme-makesy .mk-utility-bar__meta {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    max-width: 14rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--theme-topbar-text, var(--mk-brown));
}

body.theme-makesy .mk-utility-bar__meta-label {
    font-weight: 700;
    color: var(--theme-topbar-label, var(--theme-topbar-text, var(--mk-brown)));
}

body.theme-makesy .mk-utility-bar__meta-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.theme-makesy .mk-utility-bar__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-topbar-icon, var(--theme-topbar-link, var(--mk-brown)));
    font-size: 1rem;
    text-decoration: none;
}

body.theme-makesy .mk-utility-bar__social:hover {
    color: var(--theme-topbar-link-hover, var(--mk-link-hover));
}

@media only screen and (max-width: 1280px) {
    body.theme-makesy .mk-utility-bar__progress {
        flex-basis: 170px;
    }
}

@media only screen and (max-width: 1064px) {
    body.theme-makesy .mk-utility-bar__inner {
        gap: 0 1rem;
    }

    body.theme-makesy .mk-utility-bar__freeship {
        max-width: min(88vw, 28rem);
    }

    body.theme-makesy .mk-utility-bar__progress {
        flex-basis: 120px;
        width: 100%;
    }
}

body.theme-makesy .mk-header {
    background: var(--mk-bg, #fff);
}

body.theme-makesy .mk-header__primary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 12px;
    min-height: 72px;
    padding-block: 0.65rem;
}

@media (min-width: 992px) {
    body.theme-makesy .mk-header__primary {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: center;
        min-height: 80px;
        padding-block: var(--spacing-4-5, 1.125rem);
    }
}

body.theme-makesy .mk-header__logo {
    display: inline-flex;
    align-items: center;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
}

body.theme-makesy .mk-header__menu-toggle {
    grid-column: 1;
    grid-row: 1;
}

@media (min-width: 992px) {
    body.theme-makesy .mk-header__menu-toggle {
        display: none;
    }
}

body.theme-makesy .mk-header__logo-img {
    max-height: 45px;
    width: auto;
    height: auto;
}

@media (max-width: 991.98px) {
    body.theme-makesy .mk-header__logo-img {
        max-height: 26px;
    }
}

body.theme-makesy .mk-header-search {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--mk-header-search-max, 300px);
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--mk-brown);
    border-radius: 50px;
    background: #fff;
}

body.theme-makesy .mk-header-search:not(.mk-header-search--mobile) {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin-left: 0;
    max-width: min(var(--mk-header-search-max, 300px), 100%);
}

@media (min-width: 992px) {
    body.theme-makesy .mk-header-search:not(.mk-header-search--mobile) {
        z-index: 1;
    }
}

body.theme-makesy .mk-header-search--mobile {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    margin-top: 12px;
}

body.theme-makesy .mk-header-search__inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
}

body.theme-makesy .mk-header-search .mk-svg-icon {
    flex-shrink: 0;
    color: var(--mk-icon, #302b27);
}

body.theme-makesy .mk-header-search__input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: var(--mk-font);
    font-size: 1rem;
    font-weight: 300;
    color: var(--mk-brown);
    outline: none;
}

body.theme-makesy .mk-header-search__input::placeholder {
    color: var(--mk-muted);
}

body.theme-makesy .mk-header-search__input::-webkit-search-cancel-button {
    display: none;
}

/* Smart search suggest panel */
body.theme-makesy .mk-header-search.mk-smart-search,
body.theme-makesy .mk-search__form.mk-smart-search {
    position: relative;
    overflow: visible;
}

body.theme-makesy .mk-search__form-inner {
    position: relative;
    flex: 1 1 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
}

body.theme-makesy .mk-search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 250;
    max-height: min(60vh, 420px);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0.35rem 0;
    background: var(--mk-bg, #fff);
    border: 1px solid var(--mk-border, #d8cec2);
    border-radius: 0.75rem;
    box-shadow: 0 14px 44px rgba(48, 43, 39, 0.14);
}

body.theme-makesy .mk-header-search .mk-search-suggest {
    border-radius: 1rem;
}

body.theme-makesy .mk-search-suggest__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 0;
    background: transparent;
    text-align: left;
    font-family: var(--mk-font);
    cursor: pointer;
}

body.theme-makesy .mk-search-suggest__item:hover,
body.theme-makesy .mk-search-suggest__item.is-active {
    background: #e5e8dd;
}

body.theme-makesy .mk-search-suggest__thumb {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    background: #f5f0e8;
}

body.theme-makesy .mk-search-suggest__thumb--empty {
    display: inline-block;
}

body.theme-makesy .mk-search-suggest__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

body.theme-makesy .mk-search-suggest__name {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--mk-brown);
}

body.theme-makesy .mk-search-suggest__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    font-size: 0.75rem;
    color: var(--mk-muted);
}

body.theme-makesy .mk-search-suggest__price {
    font-weight: 600;
    color: var(--mk-brown);
}

body.theme-makesy .mk-header__actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0 12px;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

body.theme-makesy .mk-header-action {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mk-icon, #302b27);
    text-decoration: none;
    font-family: var(--mk-font-action);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.25px;
    text-transform: none;
    cursor: pointer;
}

body.theme-makesy .mk-header-action:hover {
    color: var(--mk-link-hover);
}

body.theme-makesy .mk-header-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    color: inherit;
}

body.theme-makesy .mk-header-action__icon .mk-svg-icon {
    display: block;
}

body.theme-makesy .mk-header-action__label {
    margin: 0 7px 3px;
    line-height: normal;
    text-align: center;
    white-space: nowrap;
}

body.theme-makesy .mk-icon-btn--search {
    color: var(--mk-icon, #302b27);
}

body.theme-makesy .mk-header__secondary {
    border-top: 0.5px solid var(--mk-border);
    border-bottom: 0.5px solid var(--mk-border);
    margin: 0 0 1rem;
    background: #fff;
}


body.theme-makesy .mk-header__secondary-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-height: 33px;
    padding-block: 0.35rem;
}

body.theme-makesy .mk-nav--primary {
    flex: 0 1 auto;
    min-width: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

body.theme-makesy .mk-nav--utility {
    flex-shrink: 0;
}

body.theme-makesy .mk-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem var(--theme-menu-item-gap, 1.35rem);
}

body.theme-makesy .mk-nav--primary .mk-nav__list {
    justify-content: center;
}

body.theme-makesy .mk-nav__list--utility {
    gap: 0.15rem 1.1rem;
}

body.theme-makesy .mk-nav .nav-link.mk-nav-link--utility {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 33px;
    line-height: 33px;
    font-family: var(--mk-font-nav);
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

body.theme-makesy .mk-nav .nav-link.mk-nav-link--utility i {
    font-size: 0.95rem;
}

body.theme-makesy .mk-nav--primary .nav-item,
body.theme-makesy .mk-nav--utility .nav-item {
    display: inline-block;
    vertical-align: top;
}

body.theme-makesy .mk-nav--primary .nav-item.dropdown {
    position: relative;
}

body.theme-makesy .mk-nav--primary .dropdown-menu {
    min-width: 12rem;
    margin-top: 0;
    padding: 0.35rem 0;
    border: 1px solid var(--mk-border, #e8e0d8);
    border-radius: var(--mk-radius-lg, 8px);
    box-shadow: 0 8px 24px rgba(48, 43, 39, 0.12);
    z-index: 1080;
}

/* Ana menü (masaüstü): alt menü hover ile açılır, tıklama ana bağlantıya gider */
@media (min-width: 1200px) {
    body.theme-makesy .mk-nav--primary .mk-nav-dropdown--hover > .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
    }

    body.theme-makesy .mk-nav--primary .mk-nav-dropdown--hover:hover > .dropdown-menu,
    body.theme-makesy .mk-nav--primary .mk-nav-dropdown--hover:focus-within > .dropdown-menu {
        display: block;
    }

    body.theme-makesy .mk-nav--primary .mk-nav-dropdown--hover:hover > .nav-link,
    body.theme-makesy .mk-nav--primary .mk-nav-dropdown--hover:focus-within > .nav-link {
        color: var(--mk-link-hover);
    }

    body.theme-makesy .mk-nav--primary .dropdown-large-menu.mk-mega-menu {
        left: 50%;
        transform: translateX(-50%);
        min-width: min(960px, 92vw);
        padding: 1rem 1.25rem;
    }
}

body.theme-makesy .mk-nav--primary .dropdown-menu .dropdown-item {
    font-family: var(--theme-menu-font-family, var(--mk-font-nav));
    font-size: var(--theme-menu-dropdown-link-size, var(--theme-menu-link-size, 14px));
    font-weight: var(--theme-menu-dropdown-weight, 600);
    color: var(--theme-menu-dropdown-link, var(--mk-brown, #502c1e));
    padding: 0.4rem 1rem;
}


body.theme-makesy .mk-mobile-nav__list .dropdown-menu {
    position: static !important;
    display: block !important;
    float: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 0.75rem;
    margin: 0.25rem 0 0.5rem;
    background: transparent;
}

body.theme-makesy .mk-mobile-nav__list .dropdown-toggle::after {
    margin-left: 0.35rem;
}

@media (max-width: 1199.98px) {
    body.theme-makesy .mk-mobile-nav__list .nav-link {
        font-size: var(--theme-menu-link-size-mobile, var(--theme-menu-link-size, 14px));
    }
}

body.theme-makesy .mk-nav .nav-link,
body.theme-makesy .mk-mobile-nav__list .nav-link {
    color: var(--theme-menu-link, var(--mk-brown));
    height: 33px;
    display: inline-block;
    font-family: var(--theme-menu-font-family, var(--mk-font-nav));
    font-size: var(--theme-menu-link-size, 14px);
    font-weight: var(--theme-menu-link-weight, 700);
    letter-spacing: var(--theme-menu-link-letter-spacing, 0);
    line-height: 33px;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
    transition: color 0.2s ease-in-out;
}

body.theme-makesy .mk-mega-menu .large-menu-title {
    height: 33px;
    display: inline-block;
    font-family: var(--mk-font-nav);
    font-size: 14px;
    font-weight: 700;
    line-height: 33px;
    margin-bottom: 0.35rem;
}

body.theme-makesy .mk-nav .nav-link.mk-nav-link--sale {
    color: #c41e3a;
}

body.theme-makesy .mk-nav--primary .dropdown-menu {
    background: var(--theme-menu-dropdown-bg, #fff);
}

body.theme-makesy .mk-nav--primary .dropdown-menu .dropdown-item:hover,
body.theme-makesy .mk-nav--primary .dropdown-menu .dropdown-item:focus {
    color: var(--theme-menu-dropdown-link-hover, var(--mk-link-hover));
    background-color: var(--theme-menu-dropdown-link-hover-bg, var(--mk-taupe-light, #f5f0eb));
}

body.theme-makesy .mk-nav .nav-link:hover,
body.theme-makesy .mk-nav .nav-link:focus-visible,
body.theme-makesy .mk-nav .show > .nav-link,
body.theme-makesy .mk-nav--primary .mk-nav-dropdown--hover:hover > .nav-link,
body.theme-makesy .mk-nav--primary .mk-nav-dropdown--hover:focus-within > .nav-link,
body.theme-makesy .mk-mobile-nav__list .nav-link:hover,
body.theme-makesy .mk-mega-menu a:hover,
body.theme-makesy .mk-mega-menu a:focus-visible {
    color: var(--theme-menu-link-hover, var(--mk-link-hover));
}

body.theme-makesy .mk-nav .nav-link.active {
    color: var(--mk-accent);
}

body.theme-makesy .mk-nav .nav-link.mk-nav-link--sale:hover,
body.theme-makesy .mk-nav .nav-link.mk-nav-link--sale:focus-visible {
    color: var(--mk-link-hover);
}

body.theme-makesy .mk-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0.625rem;
    background: transparent;
    color: var(--mk-brown);
    cursor: pointer;
}

body.theme-makesy .mk-icon-btn:hover {
    color: var(--mk-link-hover);
}

body.theme-makesy .mk-header__cart-badge {
    position: absolute;
    top: -4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--mk-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    line-height: 16px;
    text-align: center;
}

body.theme-makesy .mk-header__cart-badge:empty,
body.theme-makesy .mk-header__cart-badge[data-count="0"] {
    display: none;
}

body.theme-makesy .mk-mega-menu {
    border: 1px solid var(--mk-border);
    border-radius: 0.625rem;
    padding: 1.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 12px 40px rgba(48, 43, 39, 0.08);
}

body.theme-makesy .mk-mega-menu a {
    color: var(--mk-brown);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

body.theme-makesy .mk-mega-menu .large-menu-title {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mk-muted);
}

body.theme-makesy .mk-mobile-nav {
    max-width: min(100vw, 400px);
}

body.theme-makesy .mk-mobile-nav__footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mk-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
}

body.theme-makesy .mk-mobile-nav__footer a {
    color: var(--mk-brown);
}

/* Search overlay */
body.theme-makesy .mk-search {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem;
    padding-top: max(1.5rem, env(safe-area-inset-top));
}

body.theme-makesy .mk-search[hidden] {
    display: none !important;
}

body.theme-makesy .mk-search__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(80, 44, 30, 0.35);
}

body.theme-makesy .mk-search__dialog {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin-top: 10vh;
    padding: 2rem;
    background: var(--mk-bg, #fff);
    border-radius: 0.625rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

body.theme-makesy .mk-search__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

body.theme-makesy .mk-search__form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

body.theme-makesy .mk-search__input {
    flex: 1 1 200px;
    min-height: 50px;
    padding: 0 1rem;
    border: 1px solid var(--mk-border);
    border-radius: 0.625rem;
    font-family: var(--mk-font);
    font-size: 1rem;
    font-weight: 300;
}

body.theme-makesy .mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 1.75rem;
    border: 0;
    border-radius: 3.75rem;
    font-family: var(--mk-btn-font-family);
    font-size: var(--mk-btn-font-size);
    font-weight: var(--mk-btn-font-weight);
    letter-spacing: var(--mk-btn-letter-spacing);
    text-transform: var(--mk-btn-text-transform);
    cursor: pointer;
}

body.theme-makesy .mk-btn--primary {
    background: var(--mk-btn-primary-bg);
    border: 1px solid var(--mk-btn-primary-bg);
    color: var(--mk-btn-primary-text);
}

body.theme-makesy .mk-search__popular {
    margin-top: 1.5rem;
}

body.theme-makesy .mk-search__popular-label {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mk-muted);
}

body.theme-makesy .mk-search__popular-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

body.theme-makesy .mk-search__popular-list a {
    font-size: 0.875rem;
    color: var(--mk-brown);
}

body.theme-makesy .mk-search__popular-list a:hover {
    color: var(--mk-link-hover);
}

/* Cart drawer — makesy.com side panel */
body.theme-makesy .mk-cart-drawer.offcanvas-end {
    width: min(100vw, 430px);
    max-width: min(100vw, 430px);
    border: none;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    box-shadow: -8px 0 32px rgba(80, 44, 30, 0.12);
}

body.theme-makesy .mk-cart-drawer__head {
    align-items: center;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: none;
    background: #fff;
}

body.theme-makesy .mk-cart-drawer__title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

body.theme-makesy .mk-cart-drawer__title {
    margin: 0;
    font-family: var(--mk-font-slider-bold);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mk-brown, #502c1e);
}

body.theme-makesy .mk-cart-drawer__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--mk-brown, #502c1e);
    color: #fff;
    font-family: var(--mk-font-slider-bold);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

body.theme-makesy .mk-cart-drawer__close {
    margin: 0;
    opacity: 0.65;
}

body.theme-makesy .mk-cart-drawer__freeship {
    padding: 0 1.25rem 1rem;
    background: #fff;
}

body.theme-makesy .mk-cart-drawer__freeship-text {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    font-family: var(--mk-font-slider);
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--mk-brown, #502c1e);
}

body.theme-makesy .mk-cart-drawer__freeship-text .bi-truck {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 1rem;
}

body.theme-makesy .mk-cart-drawer__freeship-track {
    height: 4px;
    border-radius: 999px;
    background: var(--mk-taupe-light);
    overflow: hidden;
}

body.theme-makesy .mk-cart-drawer__freeship-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--mk-accent);
    transition: width 0.25s ease;
}

body.theme-makesy .mk-cart-drawer__body {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

body.theme-makesy .mk-mini-cart {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
}

body.theme-makesy .mk-mini-cart__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 1.25rem;
}

body.theme-makesy .mk-mini-cart__empty {
    margin: 1rem 0;
    font-family: var(--mk-font-slider);
    font-size: 0.9375rem;
    color: var(--mk-muted);
}

body.theme-makesy .mk-mini-cart__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.theme-makesy .mk-mini-cart__line {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--mk-border, #e8e0d8);
}

body.theme-makesy .mk-mini-cart__line.f1-cart-item-new {
    animation: mk-cart-line-flash 2s ease;
}

@keyframes mk-cart-line-flash {
    0% { background: rgba(238, 89, 9, 0.08); }
    100% { background: transparent; }
}

body.theme-makesy .mk-mini-cart__thumb {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5efe8;
}

body.theme-makesy .mk-mini-cart__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.theme-makesy .mk-mini-cart__name {
    display: block;
    font-family: var(--mk-font-slider-bold);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--mk-brown, #502c1e);
    text-decoration: none;
}

body.theme-makesy .mk-mini-cart__name:hover {
    color: var(--mk-link-hover, #a88275);
}

body.theme-makesy .mk-mini-cart__price {
    margin: 0.35rem 0 0;
    font-family: var(--mk-font-slider);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mk-commerce-meta, var(--mk-brown, #502c1e));
}

body.theme-makesy .mk-mini-cart__variant {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mk-commerce-meta, var(--mk-brown, #502c1e));
}

body.theme-makesy .mk-mini-cart__line-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

body.theme-makesy .mk-mini-cart__qty {
    width: 3rem;
    padding: 0.35rem 0.25rem;
    border: 1px solid var(--mk-border, #e8e0d8);
    border-radius: 6px;
    font-family: var(--mk-font-slider);
    font-size: 0.875rem;
    text-align: center;
    color: var(--mk-brown, #502c1e);
}

body.theme-makesy .mk-mini-cart__remove {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--mk-font-slider);
    font-size: 0.8125rem;
    color: var(--mk-muted);
    text-decoration: underline;
    cursor: pointer;
}

body.theme-makesy .mk-mini-cart__remove:hover {
    color: var(--mk-brown, #502c1e);
}

body.theme-makesy .mk-mini-cart__footer {
    flex-shrink: 0;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--mk-border, #e8e0d8);
    background: #fff;
}

body.theme-makesy .mk-mini-cart__total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

body.theme-makesy .mk-mini-cart__total-label,
body.theme-makesy .mk-mini-cart__total-value {
    font-family: var(--mk-font-slider-bold);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mk-brown, #502c1e);
}

body.theme-makesy .mk-mini-cart__legal {
    margin: 0 0 1rem;
    font-family: var(--mk-font-slider);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--mk-legal-text, var(--mk-brown, #502c1e));
    opacity: 1;
}

body.theme-makesy .mk-mini-cart__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

body.theme-makesy .mk-mini-cart__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0 1rem;
    border-radius: 999px;
    font-family: var(--mk-font-slider-bold);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.theme-makesy .mk-mini-cart__btn--ghost {
    border: 1px solid var(--mk-brown, #502c1e);
    background: #fff;
    color: var(--mk-brown, #502c1e);
}

body.theme-makesy .mk-mini-cart__btn--ghost:hover {
    background: var(--mk-brown, #502c1e);
    color: #fff;
}

body.theme-makesy .mk-mini-cart__btn--checkout {
    border: 1px solid var(--mk-accent);
    background: var(--mk-accent);
    color: var(--mk-warm-white, #fffdfc);
}

body.theme-makesy .mk-mini-cart__btn--checkout:hover {
    background: var(--mk-brown, #502c1e);
    border-color: var(--mk-brown, #502c1e);
    color: #fff;
}

body.theme-makesy .mk-footer.footer-section {
    background: var(--mk-footer, var(--mk-ivory)) !important;
}

body.theme-makesy .loader-wrapper {
    display: none;
}
