:root {
    --navy: #1B365D;
    --navy-dark: #122541;
    --amber: #F59E0B;
    --amber-hover: #D97706;
    --sand: #F8F6F2;
    --bg: #FFFFFF;
    --surface: #F8FAFC;
    --text: #1E293B;
    --muted: #64748B;
    --border: #E2E8F0;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--sand);
    line-height: 1.5;
}

.md-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TOPBAR */
.md-topbar {
    background: var(--navy-dark);
    color: #CBD5E1;
    font-size: 13px;
    padding: 8px 0;
}
.md-topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.md-topbar__info, .md-topbar__contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}
.md-topbar__phone {
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
}

/* HEADER */
.md-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 90;
}
.md-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 76px;
}
.md-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--navy);
    font-size: 21px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.md-logo__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--sand);
    display: grid;
    place-items: center;
}
.md-logo--light { color: #FFFFFF; }

.md-search {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 4px 4px 4px 16px;
    transition: border-color 0.2s;
}
.md-search:focus-within {
    border-color: var(--navy);
    background: #FFFFFF;
}
.md-search__input {
    flex: 1;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 14px;
    outline: none;
    color: var(--text);
}
.md-search__clear {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--muted);
    cursor: pointer;
    padding: 0 8px;
}
.md-search__btn {
    background: var(--amber);
    border: none;
    color: #FFFFFF;
    width: 42px;
    height: 38px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s;
}
.md-search__btn:hover { background: var(--amber-hover); }

.md-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.md-action-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--navy);
    display: grid;
    place-items: center;
    cursor: pointer;
}
.md-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--navy);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 99px;
    display: grid;
    place-items: center;
}
.md-badge--amber { background: var(--amber); color: #111827; }

.md-cart-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s;
}
.md-cart-trigger:hover { border-color: var(--navy); }
.md-cart-trigger__icon {
    position: relative;
    color: var(--navy);
    display: flex;
}
.md-cart-trigger__label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.1;
}
.md-cart-trigger__total {
    font-size: 14px;
    color: var(--navy);
}

/* BUTTONS */
.md-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.md-btn--xs { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.md-btn--full { width: 100%; }
.md-btn--amber { background: var(--amber); color: #111827; }
.md-btn--amber:hover { background: var(--amber-hover); color: #FFFFFF; }
.md-btn--primary { background: var(--navy); color: #FFFFFF; }
.md-btn--primary:hover { background: var(--navy-dark); }
.md-btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.md-btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.md-btn--outline-light { border-color: rgba(255,255,255,0.35); color: #FFFFFF; background: transparent; }
.md-btn--outline-light:hover { background: rgba(255,255,255,0.12); }

/* HERO */
.md-hero { padding: 28px 0 16px; }
.md-hero__card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--navy);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.md-hero__content {
    padding: 44px;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.md-hero__eyebrow {
    display: inline-block;
    width: fit-content;
    background: rgba(245, 158, 11, 0.2);
    color: #FCD34D;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 99px;
    margin-bottom: 16px;
}
.md-hero__title {
    font-size: 36px;
    line-height: 1.15;
    margin: 0 0 14px;
    font-weight: 800;
}
.md-hero__desc {
    color: #CBD5E1;
    font-size: 15px;
    margin: 0 0 26px;
    max-width: 480px;
}
.md-hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.md-hero__stages {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.md-stage-chip {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: #F8FAFC;
    padding: 7px 12px;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.md-stage-chip:hover { background: rgba(255,255,255,0.2); }

.md-hero__visual {
    position: relative;
    min-height: 380px;
}
.md-room-scene, .md-room-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* HOTSPOTS */
.md-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
}
.md-hotspot__dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--amber);
    color: #111827;
    border: 3px solid #FFFFFF;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.35);
    transition: transform 0.2s;
}
.md-hotspot__dot:hover { transform: scale(1.12); }
.md-hotspot__popover {
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    width: 225px;
    background: #FFFFFF;
    color: var(--text);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    gap: 6px;
}
.md-hotspot.is-open .md-hotspot__popover { display: flex; }
.md-hotspot__tag { font-size: 11px; color: var(--muted); font-weight: 600; }
.md-hotspot__popover strong { font-size: 13px; line-height: 1.3; }
.md-hotspot__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}
.md-hotspot__bottom span { font-weight: 800; color: var(--navy); }

/* LAYOUT & CATALOG */
.md-catalog-section { padding: 20px 0 64px; }
.md-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.md-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.md-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.md-pill {
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--bg);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.md-pill.is-active {
    background: var(--navy);
    color: #FFFFFF;
    border-color: var(--navy);
}
.md-toolbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.md-select {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    font: inherit;
    font-size: 13px;
    color: var(--text);
}
.md-view-switch {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.md-view-btn {
    border: none;
    background: transparent;
    padding: 7px 11px;
    cursor: pointer;
    color: var(--muted);
}
.md-view-btn.is-active {
    background: var(--navy);
    color: #FFFFFF;
}

/* PRODUCT GRID & CARDS */
.md-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.md-products-grid.is-list {
    grid-template-columns: 1fr;
}
.md-products-grid.is-list .md-card {
    flex-direction: row;
    align-items: center;
}
.md-products-grid.is-list .md-card__media {
    width: 160px;
    height: 140px;
    flex-shrink: 0;
}
.md-products-grid.is-list .md-card__body {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.md-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.md-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.md-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 28px;
}
.md-card__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.md-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}
.md-tag--sale { background: #FEE2E2; color: #DC2626; }
.md-tag--hit { background: #FEF3C7; color: #B45309; }
.md-tag--out { background: #E2E8F0; color: #475569; }

.md-wish-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #94A3B8;
    font-size: 16px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s;
}
.md-wish-btn.is-active {
    color: #EF4444;
    border-color: #FECACA;
    background: #FEF2F2;
}

.md-card__media {
    height: 150px;
    display: grid;
    place-items: center;
    margin: 8px 0 12px;
    cursor: pointer;
}
.md-card__media img, .md-product-svg {
    max-height: 135px;
    max-width: 100%;
    object-fit: contain;
}
.md-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.md-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}
.md-card__rating { color: var(--amber); letter-spacing: 1px; }
.md-card__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.35;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.md-card__title:hover { color: var(--navy); }
.md-card__price-row {
    margin-top: auto;
    margin-bottom: 14px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.md-card__price { font-size: 20px; font-weight: 800; color: var(--navy); }
.md-card__old-price { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.md-card__unit { font-size: 12px; color: var(--muted); }
.md-card__actions { display: flex; flex-direction: column; gap: 8px; }

.md-empty-state {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
}

/* SIDEBAR ESTIMATOR */
.md-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.md-estimator-card, .md-perks-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.md-estimator-card__badge {
    display: inline-block;
    background: #EFF6FF;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 8px;
}
.md-estimator-card h2 { font-size: 20px; margin: 0 0 6px; color: var(--navy); }
.md-estimator-card p { font-size: 13px; color: var(--muted); margin: 0 0 16px; }

.md-estimator-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--sand);
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
}
.md-est-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.md-est-arrow { color: var(--muted); font-size: 18px; }

.md-estimator-form { display: flex; flex-direction: column; gap: 12px; }
.md-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.md-field input[type="text"], .md-field input[type="tel"] {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font: inherit;
    font-size: 14px;
}
.md-field input[type="range"] { accent-color: var(--amber); }

.md-estimator-summary {
    background: var(--surface);
    border: 1px dashed #CBD5E1;
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
}
.md-estimator-summary ul { margin: 6px 0 8px; padding-left: 18px; color: var(--muted); }
.md-estimator-summary__total { font-size: 16px; font-weight: 800; color: var(--navy); }

.md-perks-card { display: flex; flex-direction: column; gap: 14px; }
.md-perk strong { display: block; font-size: 14px; margin-bottom: 2px; color: var(--navy); }
.md-perk span { font-size: 12.5px; color: var(--muted); display: block; }

/* MODAL QUICK VIEW */
.md-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    place-items: center;
    padding: 20px;
}
.md-modal.is-open { display: grid; }
.md-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}
.md-modal__dialog {
    position: relative;
    background: #FFFFFF;
    border-radius: 18px;
    max-width: 760px;
    width: 100%;
    padding: 28px;
    z-index: 2;
    box-shadow: 0 24px 48px rgba(0,0,0,0.2);
}
.md-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 22px;
    cursor: pointer;
}
.md-qv {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: center;
}
.md-qv__media {
    background: var(--sand);
    border-radius: 14px;
    height: 240px;
    display: grid;
    place-items: center;
    padding: 16px;
}
.md-qv__media svg, .md-qv__media img { max-height: 190px; }
.md-qv__meta { display: flex; gap: 12px; font-size: 12px; margin-bottom: 6px; }
.md-qv__sku { color: var(--muted); }
.md-qv__stock { color: #059669; font-weight: 700; }
.md-qv__title { font-size: 22px; margin: 0 0 10px; line-height: 1.25; }
.md-qv__desc { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.md-qv__label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.md-qv__variants { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.md-var-btn {
    padding: 7px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: #FFFFFF;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.md-var-btn.is-active {
    border-color: var(--navy);
    background: #EFF6FF;
    color: var(--navy);
}
.md-qv__price-box { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.md-qv__price { font-size: 28px; font-weight: 800; color: var(--navy); }
.md-qv__old-price { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.md-qv__controls { display: flex; gap: 12px; }

.md-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.md-qty button {
    width: 38px;
    height: 44px;
    border: none;
    background: var(--surface);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.md-qty input {
    width: 44px;
    text-align: center;
    border: none;
    font: inherit;
    font-weight: 700;
}

/* DRAWER CART */
.md-drawer {
    position: fixed;
    inset: 0;
    z-index: 250;
    visibility: hidden;
    pointer-events: none;
}
.md-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}
.md-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    transition: opacity 0.25s;
}
.md-drawer.is-open .md-drawer__backdrop { opacity: 1; }
.md-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -12px 0 36px rgba(0,0,0,0.15);
}
.md-drawer.is-open .md-drawer__panel { transform: translateX(0); }

.md-drawer__header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.md-drawer__header h3 { margin: 0; font-size: 20px; }
.md-drawer__header span {
    background: var(--sand);
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 14px;
}
.md-drawer__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--muted);
}

.md-shipping-bar {
    background: var(--sand);
    padding: 12px 22px;
    border-bottom: 1px solid var(--border);
}
.md-shipping-bar__text { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.md-shipping-bar__track {
    height: 6px;
    background: #E2E8F0;
    border-radius: 99px;
    overflow: hidden;
}
.md-shipping-bar__fill {
    height: 100%;
    background: var(--amber);
    width: 0%;
    transition: width 0.3s;
}

.md-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 22px;
}
.md-cart-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.md-cart-item__title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.md-cart-item__var { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.md-cart-item__controls { display: flex; align-items: center; gap: 8px; }
.md-cart-item__controls button {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-weight: 700;
}
.md-cart-item__right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; }
.md-cart-item__remove {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

.md-cart-empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.md-cart-empty p { font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 6px; }

.md-checkout-form {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 2px solid var(--sand);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.md-checkout-form h4 { margin: 0 0 4px; font-size: 16px; }
.md-delivery-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.md-radio-tab input { display: none; }
.md-radio-tab span {
    display: block;
    text-align: center;
    padding: 9px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.md-radio-tab input:checked + span {
    border-color: var(--navy);
    background: #EFF6FF;
    color: var(--navy);
}

.md-checkout-totals {
    background: var(--surface);
    padding: 14px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13.5px;
}
.md-total-row { display: flex; justify-content: space-between; }
.md-total-row--final {
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 4px;
    font-size: 17px;
    color: var(--navy);
}

.md-order-success { text-align: center; padding: 36px 12px; }
.md-order-success__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #D1FAE5;
    color: #059669;
    font-size: 30px;
    font-weight: 800;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
}

/* FOOTER & TOAST */
.md-footer {
    background: var(--navy);
    color: #CBD5E1;
    padding: 48px 0 24px;
    font-size: 14px;
}
.md-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.md-footer h4 { color: #FFFFFF; margin: 0 0 12px; font-size: 16px; }
.md-footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.md-footer__links a { color: #CBD5E1; text-decoration: none; }
.md-footer__links a:hover { color: var(--amber); }
.md-footer__bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: #94A3B8;
}

.md-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--navy-dark);
    color: #FFFFFF;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.25s;
    z-index: 300;
}
.md-toast.is-visible { transform: translateY(0); opacity: 1; }

/* RESPONSIVE */
@media (max-width: 1080px) {
    .md-layout { grid-template-columns: 1fr; }
    .md-sidebar { position: static; }
    .md-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .md-hero__card { grid-template-columns: 1fr; }
    .md-hero__content { padding: 28px 22px; }
    .md-hero__title { font-size: 26px; }
    .md-header__inner { flex-wrap: wrap; height: auto; padding: 12px 20px; }
    .md-search { order: 3; width: 100%; flex: auto; }
    .md-qv { grid-template-columns: 1fr; }
    .md-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .md-products-grid { grid-template-columns: 1fr; }
}


/* ФОТОГРАФИИ В HERO И КАРТОЧКАХ */
.md-hero__card {
    overflow: visible;
}
.md-hero__content {
    border-radius: 20px 0 0 20px;
}
.md-hero__visual {
    border-radius: 0 20px 20px 0;
}
.md-room-scene {
    position: relative;
    border-radius: 0 20px 20px 0;
}
.md-room-photo {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 0 20px 20px 0;
}
.md-room-fallback {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #244575 0%, #152B4B 100%);
    border-radius: 0 20px 20px 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    text-align: center;
}
.md-room-fallback code {
    background: rgba(255, 255, 255, 0.14);
    padding: 3px 7px;
    border-radius: 6px;
    color: #FCD34D;
}

.md-card__media {
    height: 185px;
    background: var(--surface);
    border-radius: 10px;
    overflow: hidden;
    padding: 10px;
}
.md-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.md-card:hover .md-card__img {
    transform: scale(1.04);
}
.md-img-placeholder {
    width: 100%;
    height: 100%;
    border: 1.5px dashed #CBD5E1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
}
.md-img-placeholder span {
    font-weight: 800;
    color: var(--navy);
    font-size: 14px;
}

@media (max-width: 768px) {
    .md-hero__content { border-radius: 20px 20px 0 0; }
    .md-hero__visual, .md-room-scene, .md-room-photo, .md-room-fallback {
        border-radius: 0 0 20px 20px;
        min-height: 280px;
    }
}