/**
 * MF Collection — global mobile & tablet responsive
 */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

body.is-home .site-main {
    padding-top: 0 !important;
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* ─── Slide-out panel (cart + mobile menu) ─── */
.cart-panel {
    max-width: min(450px, 100vw);
}

.cart-panel__head {
    padding: 20px 22px;
    border-bottom: 1px solid rgba(176, 141, 87, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #fafaf8;
}

.cart-panel__title {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--black, #0a0a0a);
    margin: 0;
}

.cart-panel__close {
    background: none;
    border: 1px solid rgba(176, 141, 87, 0.35);
    border-radius: 2px;
    padding: 8px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--black, #0a0a0a);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cart-panel__close:hover {
    background: var(--black, #0a0a0a);
    border-color: var(--black, #0a0a0a);
    color: #fff;
}

.cart-panel__body {
    padding: 28px 22px 40px;
    text-align: center;
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
    max-height: calc(100vh - 72px);
    -webkit-overflow-scrolling: touch;
}

.cart-panel-empty {
    text-align: center;
    padding: 24px 0;
}

.cart-panel-shop-link,
.cart-panel-checkout {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 24px;
    background: var(--black, #0a0a0a);
    color: #fff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.cart-panel-checkout {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.cart-panel-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.cart-panel-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: start;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(176, 141, 87, 0.12);
}

.cart-panel-item__image img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 2px;
}

.cart-panel-item__name {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: var(--black, #0a0a0a);
    text-decoration: none;
}

.cart-panel-item__meta {
    font-size: 12px;
    color: #888;
    margin: 4px 0 8px;
}

.cart-panel-item__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(176, 141, 87, 0.4);
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.cart-qty-val {
    min-width: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--black, #0a0a0a);
}

.cart-remove-btn {
    border: none;
    background: none;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
    cursor: pointer;
    text-decoration: underline;
}

.cart-panel-item__total {
    font-size: 13px;
    font-weight: 600;
    color: var(--black, #0a0a0a);
}

.cart-panel-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(176, 141, 87, 0.2);
    text-align: left;
}

.cart-panel-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--black, #0a0a0a);
    margin-bottom: 16px;
}

.cart-panel-loading {
    color: #999;
    font-size: 13px;
}

.cart-panel__body--menu {
    text-align: left;
    padding: 8px 0 32px;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-nav a {
    display: block;
    padding: 16px 24px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--black, #0a0a0a);
    border-bottom: 1px solid rgba(176, 141, 87, 0.1);
    transition: background 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}

.mobile-menu-nav a:hover {
    background: #faf8f4;
    color: var(--lux-gold, #b08d57);
    padding-left: 30px;
}

.mobile-menu-nav__label {
    padding: 14px 24px 8px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--lux-gold, #b08d57);
}

.mobile-menu-nav__divider {
    height: 1px;
    margin: 8px 24px;
    background: rgba(176, 141, 87, 0.15);
    border: none;
}

.mobile-menu-accordion {
    border-bottom: 1px solid rgba(176, 141, 87, 0.1);
}

.mobile-menu-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--black, #0a0a0a);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease, color 0.3s ease;
}

.mobile-menu-accordion summary::-webkit-details-marker {
    display: none;
}

.mobile-menu-accordion summary::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--lux-gold, #b08d57);
    border-bottom: 1.5px solid var(--lux-gold, #b08d57);
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.35s ease;
}

.mobile-menu-accordion[open] summary {
    background: #faf8f4;
    color: var(--lux-gold, #b08d57);
}

.mobile-menu-accordion[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.mobile-menu-accordion__panel {
    background: #fafaf8;
    border-top: 1px solid rgba(176, 141, 87, 0.1);
}

.mobile-menu-accordion__panel a {
    padding: 14px 24px 14px 36px;
    font-size: 11px;
    letter-spacing: 0.14em;
    border-bottom: 1px solid rgba(176, 141, 87, 0.08);
}

.mobile-menu-accordion__panel a:last-child {
    border-bottom: none;
}

/* ─── Site content spacing (matches compact mobile header) ─── */
@media (max-width: 1024px) {
    body.is-inner .site-main {
        padding-top: 72px !important;
    }

    .container,
    .shop-page,
    .checkout-page .container {
        padding-left: clamp(16px, 4vw, 24px);
        padding-right: clamp(16px, 4vw, 24px);
    }
}

@media (max-width: 480px) {
    body.is-inner .site-main {
        padding-top: 64px !important;
    }
}

/* ─── WhatsApp float: safe area on notched phones ─── */
.mf-whatsapp-float {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

/* ─── Touch-friendly controls ─── */
@media (max-width: 1024px) {
    .shop-search {
        flex-direction: column;
    }

    .shop-search button {
        width: 100%;
        padding: 14px;
    }

    .action-icon,
    .menu-hamburger-trigger {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* ─── Login (minimal layout) ─── */
@media (max-width: 600px) {
    body.is-minimal {
        padding: 24px 16px 16px;
    }

    .login-card {
        padding: 28px 20px;
        border-radius: 8px;
    }

    .login-card h1,
    .login-card .login-heading {
        font-size: 1.35rem;
    }
}

@media (max-width: 380px) {
    .login-card {
        padding: 24px 16px;
    }
}

/* ─── Product cards in grids on small phones ─── */
@media (max-width: 400px) {
    .shop-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .shop-page__title {
        font-size: 26px;
    }

    .product-card {
        padding: 8px;
    }
}

/* ─── Prevent horizontal scroll from wide sections ─── */
.site-main,
.mf-footer,
.marquee-wrap,
.categories-section,
.bestseller-section,
.gender-products,
.shop-page {
    max-width: 100vw;
}

/* ─── Tables / wide content safety ─── */
.site-main table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
