/* Marketplace Theme — Trendyol / Hepsiburada inspired */
:root {
    --brand: #F27A1A;
    --brand-dark: #E06810;
    --brand-light: #FFF4EC;
    --text: #333;
    --text-muted: #666;
    --text-light: #999;
    --border: #e6e6e6;
    --bg: #f5f5f5;
    --white: #fff;
    --green: #0bc15c;
    --red: #e02020;
    --shadow: 0 2px 8px rgba(0,0,0,.08);
    --radius: 8px;
    --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: clip; max-width: 100%; }

body.mp-body {
    font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.mp-container { max-width: min(1280px, 100%); margin: 0 auto; padding: 0 16px; min-width: 0; width: 100%; }
.mp-hide-sm { display: inline; }
@media (max-width: 768px) { .mp-hide-sm { display: none; } }

/* Promo bar */
.mp-promo-bar {
    background: var(--brand);
    color: #fff;
    font-size: .8125rem;
    text-align: center;
    padding: .5rem 0;
}
.mp-promo-inner { display: flex; justify-content: center; align-items: center; gap: .75rem; flex-wrap: wrap; }
.mp-promo-divider { opacity: .6; }

/* Header */
.mp-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 250;
}
.mp-header-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    padding: .875rem 16px;
}
.mp-logo {
    display: flex;
    align-items: center;
    gap: .625rem;
    flex-shrink: 0;
    text-decoration: none;
}
.mp-logo-mark {
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 10px;
    flex-shrink: 0;
}
.mp-logo-icon { font-size: 1.75rem; }
.mp-logo-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -.02em;
}

.mp-search {
    flex: 1;
    display: flex;
    max-width: 580px;
    border: 2px solid var(--brand);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}
.mp-search input {
    flex: 1;
    border: none;
    padding: .625rem 1rem;
    outline: none;
    font-size: .9375rem;
}
.mp-search button {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.mp-search button:hover { background: var(--brand-dark); }

.mp-header-actions { display: flex; gap: 1rem; flex-shrink: 0; }
.mp-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    font-size: .75rem;
    color: var(--text-muted);
    position: relative;
    transition: color .2s;
}
.mp-action:hover { color: var(--brand); }
.mp-action svg { color: var(--text); }
.mp-cart-badge, .cart-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--brand);
    color: #fff;
    font-style: normal;
    font-size: .65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.mp-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem;
}

.mp-category-nav {
    border-top: 1px solid var(--border);
    background: #fafafa;
}
.mp-category-nav .mp-container {
    display: flex;
    align-items: center;
    gap: .5rem;
    overflow-x: auto;
    padding-top: .5rem;
    padding-bottom: .5rem;
    scrollbar-width: none;
}
.mp-category-nav .mp-container::-webkit-scrollbar { display: none; }
.mp-cat-all {
    background: var(--brand);
    color: #fff;
    padding: .4rem .875rem;
    border-radius: var(--radius);
    font-size: .8125rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.mp-cat-links { display: flex; gap: .25rem; }
.mp-cat-links a {
    padding: .4rem .75rem;
    font-size: .8125rem;
    color: var(--text);
    white-space: nowrap;
    border-radius: var(--radius);
    transition: background .2s;
}
.mp-cat-links a:hover { background: var(--brand-light); color: var(--brand); }
.mp-cat-deals { color: var(--red) !important; font-weight: 600; }

/* Trust bar */
.mp-trust-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: .625rem 0;
}
.mp-trust-inner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: .5rem;
}
.mp-trust-item {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .8125rem;
    color: var(--text-muted);
}

/* Main */
.mp-main { padding-bottom: 2rem; min-height: 50vh; }

/* Alerts */
.mp-alert {
    padding: .875rem 1rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-size: .9375rem;
}
.mp-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.mp-alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* Hero banners */
.mp-hero-banners { padding: 1rem 0 0; }
.mp-banner-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: .75rem;
    min-height: 320px;
}
.mp-banner-main {
    grid-row: 1 / 3;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, var(--brand) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    padding: 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.mp-banner-main::after {
    content: '';
    position: absolute;
    right: -20%;
    top: -20%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
}
.mp-banner-side {
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    padding: 1.5rem;
    color: #fff;
}
.mp-banner-orange { background: linear-gradient(135deg, var(--brand) 0%, #ff9a4d 100%); }
.mp-banner-purple { background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%); }
.mp-banner-content { position: relative; z-index: 1; }
.mp-banner-tag {
    display: inline-block;
    background: rgba(255,255,255,.2);
    padding: .2rem .625rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    margin-bottom: .5rem;
}
.mp-banner-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .35rem; line-height: 1.2; }
.mp-banner-main .mp-banner-content h2 { font-size: 2rem; }
.mp-banner-content p { opacity: .9; margin-bottom: 1rem; font-size: .9375rem; }
.mp-banner-dots { display: flex; gap: .5rem; justify-content: center; padding: .75rem 0 1rem; }
.mp-banner-dots button {
    width: 8px; height: 8px; border-radius: 50%;
    border: none; background: #ccc; cursor: pointer; padding: 0;
}
.mp-banner-dots button.active { background: var(--brand); width: 24px; border-radius: 4px; }

/* Buttons */
.mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .625rem 1.25rem;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .9375rem;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.mp-btn:hover { background: var(--brand-dark); }
.mp-btn-white { background: #fff; color: var(--brand); }
.mp-btn-white:hover { background: #f5f5f5; }
.mp-btn-outline {
    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand);
}
.mp-btn-buy { flex: 1; padding: .875rem; font-size: 1rem; }
.mp-btn-cart {
    width: 100%;
    padding: .5rem;
    background: var(--brand-light);
    color: var(--brand);
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .8125rem;
    cursor: pointer;
    transition: all .2s;
}
.mp-btn-cart:hover { background: var(--brand); color: #fff; }

/* Sections */
.mp-section { padding: 1.5rem 0; }
.mp-section-alt { background: var(--white); }
.mp-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.mp-section-head h2 { font-size: 1.25rem; font-weight: 700; }
.mp-link-more { color: var(--brand); font-size: .875rem; font-weight: 600; }
.mp-flash-title { display: flex; align-items: center; gap: .5rem; }
.mp-flash-icon { font-size: 1.25rem; }
.mp-flash-timer {
    background: #1a1a2e;
    color: #fff;
    padding: .25rem .625rem;
    border-radius: var(--radius);
    font-size: .8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.mp-flash-section { background: linear-gradient(180deg, #fff5eb 0%, var(--bg) 100%); }

/* Category grid */
.mp-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: .75rem;
}
.mp-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1rem .5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    text-align: center;
}
.mp-category-item:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.mp-category-icon {
    width: 56px; height: 56px;
    background: var(--brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.mp-category-name { font-size: .8125rem; font-weight: 600; color: var(--text); }

/* Campaign row */
.mp-campaign-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.mp-campaign-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-height: 100px;
    transition: transform .2s;
}
.mp-campaign-card:hover { transform: scale(1.02); }
.mp-campaign-card span { font-size: .8125rem; opacity: .9; }
.mp-campaign-card strong { font-size: 1.125rem; }
.mp-campaign-1 { background: linear-gradient(135deg, #e84393, #fd79a8); }
.mp-campaign-2 { background: linear-gradient(135deg, #0984e3, #74b9ff); }
.mp-campaign-3 { background: linear-gradient(135deg, #00b894, #55efc4); }

/* Product grid & scroll */
.mp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
    gap: .75rem;
}
.mp-product-grid > * { min-width: 0; }
.mp-product-scroll {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: thin;
}
.mp-product-scroll .mp-product-card {
    flex: 0 0 180px;
    max-width: 180px;
}

/* Product card */
.mp-product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
    min-width: 0;
}
.mp-product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.mp-badge {
    position: absolute;
    z-index: 2;
    font-size: .6875rem;
    font-weight: 700;
    padding: .2rem .4rem;
    border-radius: 4px;
}
.mp-badge-discount { top: 8px; left: 8px; background: var(--red); color: #fff; }
.mp-badge-ship { top: 8px; right: 8px; background: var(--green); color: #fff; font-size: .625rem; }
.mp-badge-lg { font-size: .8125rem; padding: .35rem .625rem; }
.mp-product-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: #fff; }
.mp-product-photo, .mp-gallery-photo { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.mp-banner-photo { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mp-banner-has-photo .mp-banner-content { position: relative; z-index: 2; }
.mp-banner-has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.15)); z-index: 1; }
.mp-product-placeholder {
    width: 64px; height: 64px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}
.mp-product-body { padding: .75rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.mp-product-brand { font-size: .6875rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .03em; }
.mp-product-title {
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.mp-product-title a:hover { color: var(--brand); }
.mp-product-rating { display: flex; align-items: center; gap: .25rem; font-size: .75rem; }
.mp-stars { color: #ffc107; }
.mp-rating-count { color: var(--text-light); }
.mp-product-price { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.mp-price-current { font-size: 1rem; font-weight: 700; color: var(--brand); }
.mp-price-old { font-size: .75rem; color: var(--text-light); text-decoration: line-through; }
.mp-price-lg .mp-price-current { font-size: 1.75rem; }

/* Brands */
.mp-brands {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.mp-brands span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: .05em;
}

/* Shop page */
.mp-shop-page { padding: 1rem 0 2rem; }
.mp-breadcrumb {
    display: flex;
    gap: .35rem;
    font-size: .8125rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.mp-breadcrumb a:hover { color: var(--brand); }
.mp-shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.25rem; }
.mp-filter-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: .75rem;
    box-shadow: var(--shadow);
}
.mp-filter-box h3 { font-size: .9375rem; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.mp-filter-list { list-style: none; }
.mp-filter-list a {
    display: block;
    padding: .4rem .5rem;
    font-size: .875rem;
    border-radius: var(--radius);
    color: var(--text-muted);
}
.mp-filter-list a:hover, .mp-filter-list a.active { background: var(--brand-light); color: var(--brand); font-weight: 600; }
.mp-checkbox { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--text-muted); padding: .25rem 0; cursor: pointer; }
.mp-shop-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.mp-shop-toolbar h1 { font-size: 1.25rem; flex: 1; }
.mp-result-count { font-size: .8125rem; color: var(--text-light); }
.mp-sort-select {
    padding: .4rem .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .8125rem;
    background: var(--white);
}
.mp-empty, .mp-empty-box { text-align: center; color: var(--text-light); padding: 3rem; }
.mp-empty-box span { font-size: 3rem; display: block; margin-bottom: .5rem; }
.mp-empty-box .mp-btn { margin-top: 1rem; }

/* Product detail */
.mp-product-page { padding: 1rem 0 2rem; }
.mp-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}
.mp-gallery-main {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #f5f5f5, #ebebeb);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.mp-gallery-placeholder {
    width: 120px; height: 120px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
}
.mp-gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; }
.mp-thumb {
    width: 64px; height: 64px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #f5f5f5;
    cursor: pointer;
    font-weight: 700;
    color: var(--brand);
}
.mp-thumb.active { border-color: var(--brand); }

.mp-product-brand-link { font-size: .8125rem; color: var(--brand); font-weight: 600; }
.mp-product-info h1 { font-size: 1.5rem; font-weight: 700; margin: .35rem 0 .75rem; line-height: 1.3; }
.mp-product-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mp-rating-lg .mp-stars { font-size: 1.125rem; font-weight: 700; color: var(--text); }
.mp-sku { font-size: .8125rem; color: var(--text-light); }
.mp-price-box {
    background: var(--brand-light);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.mp-ship-badge { display: inline-block; margin-top: .5rem; font-size: .8125rem; color: var(--green); font-weight: 600; }
.mp-product-short { color: var(--text-muted); margin-bottom: 1.25rem; }
.mp-form-group { margin-bottom: 1rem; }
.mp-form-group label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: .35rem; }
.mp-select {
    width: 100%;
    padding: .625rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.mp-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.mp-qty-btn {
    width: 36px; height: 36px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 1.125rem;
}
.mp-qty-control input {
    width: 48px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: .5rem 0;
}
.mp-buy-actions { display: flex; gap: .75rem; margin-bottom: 1.25rem; }
.mp-out-of-stock { color: var(--red); font-weight: 600; }
.mp-product-features {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .8125rem;
    color: var(--text-muted);
}
.mp-product-features span { color: var(--green); font-weight: 700; }

.mp-product-tabs {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.mp-tab-head {
    display: flex;
    border-bottom: 1px solid var(--border);
}
.mp-tab-head button {
    padding: .875rem 1.25rem;
    border: none;
    background: none;
    font-weight: 600;
    font-size: .9375rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.mp-tab-head button.active { color: var(--brand); border-bottom-color: var(--brand); }
.mp-tab-body { padding: 1.5rem; }
.mp-prose { color: var(--text-muted); line-height: 1.7; }

/* Cart & Checkout */
.mp-cart-page { padding: 1.5rem 0; }
.mp-cart-page h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.mp-cart-box { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.cart-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.cart-table th, .cart-table td { padding: 1rem; border-bottom: 1px solid var(--border); }
.cart-table th { background: #fafafa; font-weight: 600; text-align: left; font-size: .8125rem; color: var(--text-muted); }
.cart-table .text-right { text-align: right; }
.cart-table .text-center { text-align: center; }
.mp-cart-summary { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); margin-top: 1rem; }
.mp-cart-total { font-size: 1.25rem; font-weight: 700; color: var(--brand); }
.w-full { width: 100%; }
.w-20 { width: 5rem; }
.text-center { text-align: center; }
.text-gray-500 { color: var(--text-muted); }
.text-gray-800 { color: var(--text); }
.text-red-500 { color: var(--red); }
.font-medium { font-weight: 600; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.p-12 { padding: 3rem; }
.inline-block { display: inline-block; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.product-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.btn { display: inline-flex; padding: .625rem 1.25rem; background: var(--brand); color: #fff; border: none; border-radius: var(--radius); font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--brand); }
.btn-sm { padding: .4rem .875rem; font-size: .8125rem; }
.btn-outline { background: transparent; border: 2px solid var(--brand); color: var(--brand); }
.form-label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: .35rem; }
.form-input { width: 100%; padding: .625rem; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; }
.alert { padding: .875rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-error { background: #fef2f2; color: #b91c1c; }
.alert-success { background: #f0fdf4; color: #15803d; }

/* Footer */
.mp-footer {
    background: #2d2d2d;
    color: #ccc;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}
.mp-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    padding: 2.5rem 16px;
    width: 100%;
    max-width: min(1280px, 100%);
    margin: 0 auto;
    box-sizing: border-box;
    min-width: 0;
}
.mp-footer-col {
    min-width: 0;
}
.mp-footer-col h4 {
    color: #fff;
    font-size: .9375rem;
    margin: 0 0 .875rem;
    line-height: 1.3;
}
.mp-footer-brand {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin-bottom: .875rem;
}
.mp-footer-brand img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    flex-shrink: 0;
}
.mp-footer-brand h4 {
    margin: 0;
}
.mp-footer-col p {
    font-size: .8125rem;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.mp-footer-col a {
    display: block;
    font-size: .8125rem;
    padding: .35rem 0;
    color: #bbb;
    text-decoration: none;
    transition: color .2s;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.4;
}
.mp-footer-col a:hover { color: var(--brand); }
.mp-footer-bottom {
    border-top: 1px solid #444;
    padding: 1rem 16px calc(1rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
    font-size: .8125rem;
    color: #888;
    width: 100%;
    box-sizing: border-box;
}
.mp-footer-bottom .mp-container {
    padding-left: 0;
    padding-right: 0;
}
.mp-footer-bottom p { margin: .35rem 0; }
.mp-signature a { color: var(--brand); }

/* Toast */
.mp-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: .875rem 1.25rem;
    border-radius: var(--radius);
    color: #fff;
    font-size: .9375rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all .3s;
}
.mp-toast-show { transform: translateY(0); opacity: 1; }
.mp-toast-success { background: var(--green); }
.mp-toast-error { background: var(--red); }

/* Lightbox */
.mp-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.mp-lightbox[hidden] { display: none !important; }
.mp-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.mp-lightbox-dialog { position: relative; max-width: min(92vw, 900px); max-height: 90vh; z-index: 1; }
.mp-lightbox-img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius-lg); background: #fff; }
.mp-lightbox-caption { color: #fff; text-align: center; margin-top: .75rem; font-size: .9375rem; }
.mp-lightbox-close {
    position: absolute; top: -2.5rem; right: 0;
    background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}
.mp-banner-zoom {
    position: absolute; bottom: .75rem; right: .75rem; z-index: 3;
    width: 2rem; height: 2rem; border-radius: 50%; border: none;
    background: rgba(255,255,255,.9); cursor: pointer; font-size: .875rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: transform .2s;
}
.mp-banner-zoom:hover { transform: scale(1.08); }
.mp-gallery-link { display: block; cursor: zoom-in; }
.mp-zoom-hint { display: block; font-size: .75rem; color: var(--text-light); margin-top: .35rem; text-align: center; }

/* Wishlist */
.mp-wishlist-btn {
    position: absolute; top: 8px; right: 8px; z-index: 3;
    width: 2rem; height: 2rem; border-radius: 50%; border: none;
    background: rgba(255,255,255,.95); color: #ccc; font-size: 1rem;
    cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.12); transition: all .2s;
}
.mp-product-card .mp-badge-ship { top: 8px; right: 2.75rem; }
.mp-wishlist-btn:hover, .mp-wishlist-btn.active { color: var(--red); }
.mp-wishlist-btn.active { background: #fff0f0; }
.mp-btn-wish { background: #fff; border: 2px solid var(--border); color: var(--text); }
.mp-btn-wish.active { border-color: var(--red); color: var(--red); }

/* Stock badges */
.mp-badge-oos { bottom: 8px; left: 8px; top: auto; background: #666; color: #fff; }
.mp-badge-low { bottom: 8px; left: 8px; top: auto; background: #f59e0b; color: #fff; }
.mp-out-of-stock-inline { display: block; text-align: center; font-size: .8125rem; color: var(--text-light); padding: .5rem; }

/* Pagination */
.mp-pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.mp-page-link {
    min-width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius); font-size: .875rem; font-weight: 600;
    color: var(--text-muted); background: var(--white); transition: all .2s;
}
.mp-page-link:hover, .mp-page-link.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Page title */
.mp-page-title { font-size: 1.5rem; margin-bottom: 1.25rem; }
.mp-lead { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Cart layout */
.mp-cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; align-items: start; }
.mp-cart-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.mp-cart-table th, .mp-cart-table td { padding: 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.mp-cart-table th { background: #fafafa; font-size: .8125rem; color: var(--text-muted); font-weight: 600; }
.mp-cart-product { display: flex; align-items: center; gap: .75rem; }
.mp-cart-product a { color: var(--text); font-weight: 500; }
.mp-cart-product a:hover { color: var(--brand); }
.mp-cart-thumb { width: 64px; height: 64px; object-fit: contain; border-radius: var(--radius); background: #fafafa; border: 1px solid var(--border); }
.mp-cart-thumb-ph {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--brand); font-size: 1.25rem;
}
.mp-qty-input { width: 4rem; padding: .4rem; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.mp-btn-remove { background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 1rem; padding: .25rem .5rem; }
.mp-btn-remove:hover { color: var(--red); }
.mp-cart-form .mp-btn-secondary { margin-top: .75rem; }

/* Order summary */
.mp-cart-summary h2 { font-size: 1.0625rem; margin-bottom: 1rem; }
.mp-summary-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .9375rem; color: var(--text-muted); }
.mp-summary-row.mp-discount { color: var(--green); }
.mp-summary-total {
    display: flex; justify-content: space-between; padding: 1rem 0; margin-top: .5rem;
    border-top: 2px solid var(--border); font-size: 1.125rem; font-weight: 700;
}
.mp-summary-total span:last-child { color: var(--brand); }
.mp-coupon-form { display: flex; gap: .5rem; margin: 1rem 0; flex-wrap: wrap; }
.mp-coupon-input { flex: 1; min-width: 120px; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .875rem; }
.mp-coupon-applied { font-size: .8125rem; color: var(--green); margin-bottom: .5rem; }
.mp-checkout-btn { width: 100%; text-align: center; margin-top: .5rem; }
.mp-continue-link { display: block; text-align: center; margin-top: .75rem; font-size: .8125rem; color: var(--text-muted); }
.mp-continue-link:hover { color: var(--brand); }
.mp-trust-note { font-size: .8125rem; color: var(--text-muted); margin-top: 1rem; text-align: center; }

/* Checkout */
.mp-checkout-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; align-items: start; }
.mp-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.mp-card h2 { font-size: 1.0625rem; margin-bottom: 1rem; }
.mp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.mp-form-group { margin-bottom: .75rem; }
.mp-form-group label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: .35rem; }
.mp-form-group input, .mp-form-group textarea, .mp-form-group select {
    width: 100%; padding: .625rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9375rem;
}
.mp-radio { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; cursor: pointer; font-size: .9375rem; }

/* Order tracking */
.mp-track-form { max-width: 420px; background: var(--white); padding: 1.25rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.mp-track-result { background: var(--white); padding: 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.mp-track-date { color: var(--text-muted); font-size: .875rem; margin-bottom: 1rem; }
.mp-track-status { display: flex; gap: 1rem; flex-wrap: wrap; }
.mp-track-step { flex: 1; min-width: 0; text-align: center; padding: 1rem; border: 2px solid var(--border); border-radius: var(--radius-lg); opacity: .5; }
.mp-track-step.done { border-color: var(--green); opacity: 1; background: #f0fdf4; }
.mp-track-step span { font-size: 1.5rem; display: block; margin-bottom: .35rem; }
.mp-track-step small { display: block; color: var(--text-muted); font-size: .75rem; margin-top: .25rem; }
.mp-track-items { margin-top: 1rem; padding-left: 1.25rem; color: var(--text-muted); font-size: .9375rem; }

/* Related products */
.mp-related { margin-top: 2rem; }
.mp-related h2 { font-size: 1.25rem; margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 992px) {
    .mp-banner-grid { grid-template-columns: 1fr; grid-template-rows: auto; min-height: auto; }
    .mp-banner-main { grid-row: auto; min-height: 200px; }
    .mp-banner-side { min-height: 120px; }
    .mp-campaign-row { grid-template-columns: 1fr; }
    .mp-shop-layout { grid-template-columns: 1fr; }
    .mp-shop-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
    .mp-product-detail { grid-template-columns: 1fr; }
    .mp-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1.25rem;
    }
    .mp-footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .mp-header-main {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo toggle"
            "search search";
    }
    .mp-logo { grid-area: logo; min-width: 0; }
    .mp-search {
        grid-area: search;
        grid-column: auto;
        max-width: none;
        width: 100%;
    }
    .mp-logo-text { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mp-promo-inner { overflow-x: auto; flex-wrap: nowrap; }
    .mp-track-status { flex-direction: column; }
    .mp-track-step { min-width: 0; width: 100%; }
    .mp-mobile-toggle {
        grid-area: toggle;
        display: grid;
        place-items: center;
        margin-left: 0;
    }
    .mp-header-actions { display: none; }
    body.mp-nav-open .mp-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
    }
    body.mp-nav-open .mp-header-actions {
        display: flex;
        position: fixed;
        top: var(--mp-nav-top, 72px);
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        background: var(--white);
        padding: .85rem 1rem;
        box-shadow: var(--shadow);
        justify-content: space-around;
        gap: .5rem;
        z-index: 260;
        box-sizing: border-box;
    }
    .mp-category-nav { display: none; }
    body.mp-nav-open .mp-category-nav {
        display: block;
        position: fixed;
        top: calc(var(--mp-nav-top, 72px) + 64px);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100vw;
        z-index: 260;
        background: #fff;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-sizing: border-box;
    }
    body.mp-nav-open .mp-category-nav .mp-container {
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
        padding: .75rem 1rem 1.25rem;
        gap: .5rem;
    }
    body.mp-nav-open .mp-cat-all {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    body.mp-nav-open .mp-cat-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    body.mp-nav-open .mp-cat-links a {
        display: block;
        width: 100%;
        padding: .85rem .25rem;
        border-bottom: 1px solid var(--border);
        white-space: normal;
        box-sizing: border-box;
    }
    .mp-trust-bar { display: none; }
    .mp-shop-sidebar { grid-template-columns: 1fr; }
    .mp-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.35rem 1rem;
        padding: 1.75rem 16px 1.5rem;
    }
    .mp-footer-col:first-child {
        grid-column: 1 / -1;
        padding-bottom: .35rem;
        border-bottom: 1px solid #444;
        margin-bottom: .15rem;
    }
    .mp-footer-col h4 { margin-bottom: .55rem; font-size: .875rem; }
    .mp-footer-col a {
        padding: .5rem 0;
        min-height: 2.5rem;
        display: flex;
        align-items: center;
    }
    .mp-footer-bottom {
        padding: .9rem 16px calc(.9rem + env(safe-area-inset-bottom, 0px));
    }
    .mp-buy-actions { flex-direction: column; }
    .mp-cart-layout, .mp-checkout-layout { grid-template-columns: 1fr; }
    .mp-form-grid { grid-template-columns: 1fr; }
    .mp-cart-table { font-size: .8125rem; }
    .mp-cart-table th:nth-child(2), .mp-cart-table td:nth-child(2) { display: none; }
    .mp-compare-fab { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
    .mp-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }
    .mp-footer-col:first-child {
        border-bottom: 0;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

/* Storefront extras: compare, quick view, FAQ, tabs */
.mp-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transition: opacity .2s;
}
.mp-product-card:hover .mp-card-actions,
.mp-product-card:focus-within .mp-card-actions { opacity: 1; }
.mp-card-actions .mp-wishlist-btn,
.mp-card-actions .mp-compare-btn,
.mp-card-actions .mp-quick-view-btn {
    position: static;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.95);
    color: var(--text-muted);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    display: grid;
    place-items: center;
    padding: 0;
}
.mp-card-actions .mp-wishlist-btn { font-size: 1rem; }
.mp-card-actions .mp-compare-btn svg,
.mp-card-actions .mp-quick-view-btn svg { width: 16px; height: 16px; }
.mp-card-actions .mp-compare-btn.active,
.mp-card-actions .mp-compare-btn:hover { color: var(--brand); }
.mp-product-card .mp-badge-ship { top: 8px; left: 8px; right: auto; }

.mp-compare-fab {
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 190;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: none;
    place-items: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    text-decoration: none;
}
.mp-compare-fab.is-visible { display: grid; }
.mp-compare-fab span {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.mp-compare-fab svg { width: 20px; height: 20px; }

.mp-quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.mp-quick-view-modal[hidden] { display: none !important; }
.mp-quick-view-dialog {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 880px;
    width: 100%;
    padding: 1.25rem;
    position: relative;
    max-height: 90vh;
    overflow: auto;
}
.mp-quick-view-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
}
.mp-quick-view-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}
.mp-quick-view-media img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--bg);
}
.mp-quick-view-price { font-size: 1.25rem; font-weight: 700; color: var(--brand); margin: .5rem 0 1rem; }
.mp-quick-view-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
body.mp-qv-open { overflow: hidden; }

.mp-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.mp-page-lead { color: var(--text-muted); margin-bottom: 1.25rem; max-width: 640px; }
.mp-eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); font-weight: 600; }
.mp-link-muted { color: var(--text-muted); font-size: .875rem; text-decoration: underline; }
.mp-empty-box { background: var(--white); padding: 2rem; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow); }
.mp-empty-box h3 { margin-bottom: .5rem; }
.mp-empty-inline { margin-bottom: 1rem; text-align: left; }

.mp-faq-list { display: flex; flex-direction: column; gap: .5rem; max-width: 820px; }
.mp-faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: .75rem 1rem; }
.mp-faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.mp-faq-item summary::-webkit-details-marker { display: none; }
.mp-faq-answer { margin-top: .75rem; color: var(--text-muted); line-height: 1.6; }

.mp-size-chart-page,
.mp-size-chart-body { overflow-x: auto; }
.mp-size-chart-table,
.mp-size-chart-page table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.mp-size-chart-table th,
.mp-size-chart-table td,
.mp-size-chart-page table th,
.mp-size-chart-page table td { border: 1px solid var(--border); padding: .5rem .65rem; text-align: center; }
.mp-size-note { margin-top: 1rem; color: var(--text-muted); line-height: 1.65; }
details.mp-size-chart { margin: 1rem 0; background: var(--bg); border-radius: var(--radius); padding: .75rem 1rem; }
details.mp-size-chart summary { cursor: pointer; font-weight: 600; }

.mp-lookbook-hero { margin: 0 0 1.5rem; overflow: hidden; border-radius: var(--radius-lg); }
.mp-lookbook-hero img { width: 100%; max-height: 70vh; object-fit: cover; display: block; }
.mp-lookbook-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    color: inherit;
    min-width: 0;
}
.mp-lookbook-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.mp-lookbook-card h3 { padding: .75rem 1rem 0; font-size: 1rem; }
.mp-lookbook-card p { padding: .35rem 1rem 1rem; color: var(--text-muted); font-size: .875rem; }
.mp-lookbook-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 3/4;
    background: var(--brand-light);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand);
}

.mp-compare-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.mp-compare-table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 520px; }
.mp-compare-table th,
.mp-compare-table td { border: 1px solid var(--border); padding: .75rem; vertical-align: top; }
.mp-compare-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius); margin-bottom: .35rem; }
.mp-compare-remove { display: inline-block; margin-top: .35rem; font-size: .75rem; color: var(--red); }

.mp-tab-panels { background: var(--white); border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); }
.mp-tab-panel { display: none; }
.mp-tab-panel.active { display: block; }
.mp-tab-head button:not(.active) { opacity: .75; }
.mp-review-summary { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; margin-bottom: 1.25rem; }
.mp-review-score strong { font-size: 2rem; display: block; }
.mp-review-bars { display: flex; flex-direction: column; gap: .35rem; }
.mp-review-bar { display: grid; grid-template-columns: 72px 1fr 28px; gap: .5rem; align-items: center; font-size: .8125rem; }
.mp-review-track { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.mp-review-fill { display: block; height: 100%; background: var(--brand); }
.mp-review-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.mp-review-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.mp-review-item header { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; font-size: .875rem; }
.mp-review-item time { color: var(--text-light); margin-left: auto; }
.mp-review-title { font-weight: 700; margin-bottom: .35rem; }
.mp-review-form { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.mp-review-form h3 { margin-bottom: 1rem; }
.mp-q-answer { margin-top: .5rem; color: var(--text-muted); }
.mp-checkbox { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 500; }
.mp-btn-sm { padding: .35rem .75rem; font-size: .8125rem; }

@media (max-width: 768px) {
    .mp-card-actions { opacity: 1; }
    .mp-quick-view-grid { grid-template-columns: 1fr; }
    .mp-review-summary { grid-template-columns: 1fr; }
}
