/* ═══════════════════════════════════════════════════════════════
   BUMAGA METHODS — Public Page Styles v2.0
   Location: /assets/css/methods.css
   ═══════════════════════════════════════════════════════════════
   
   v2.0 — Hybrid Detail Block (no modal)
   Click card → full-width detail block appears below row
   Grid stays visible, active card highlighted, others fade.
   
   Namespace: mth-*
   Dependencies: tokens.css (--bp-* variables)
   ═══════════════════════════════════════════════════════════════ */

.mth-page {
    max-width: clamp(1280px, 86vw, 1420px);
    margin: 0 auto;
    padding: 40px 20px 60px;
}


/* ══════════════════════════════════════════════════════════════
   HERO — 1:1 proxy.php / numbers.php
   ══════════════════════════════════════════════════════════════ */
.mth-header { text-align: center; margin-bottom: 40px; }

.mth-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--bp-text);
}

.mth-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--bp-accent) 0%, #2d7cd6 100%);
    border-radius: var(--bp-radius);
    box-shadow: 0 8px 25px rgba(74, 158, 255, 0.3);
    flex-shrink: 0;
}

.mth-title-icon svg { width: 32px; height: 32px; color: #fff; }

.mth-subtitle {
    color: var(--bp-text-secondary);
    font-size: 18px;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ══════════════════════════════════════════════════════════════
   FILTERS
   ══════════════════════════════════════════════════════════════ */
.mth-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.mth-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.mth-filter-chip {
    padding: 9px 20px;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-xs);
    color: var(--bp-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--bp-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    font-family: var(--bp-sans);
    user-select: none;
}

.mth-filter-chip:hover {
    border-color: var(--bp-accent-border-strong);
    color: var(--bp-accent);
    background: var(--bp-accent-dim);
}

.mth-filter-chip.active {
    background: var(--bp-accent-dim);
    border-color: var(--bp-accent);
    color: var(--bp-accent);
}

.mth-filter-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--bp-text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 7px;
    border-radius: var(--bp-radius-xs);
    margin-left: 4px;
    font-family: var(--bp-mono);
}

.mth-filter-chip.active .mth-filter-count {
    color: var(--bp-accent);
    background: rgba(74, 158, 255, 0.12);
}

.mth-countries-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bp-card);
    border: 1px solid var(--bp-accent);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 220px;
    max-height: 320px;
    overflow-y: auto;
    z-index: var(--z-header-dropdown);
    display: none;
    box-shadow: var(--bp-shadow);
}

.mth-countries-dropdown.visible { display: block; }

.mth-country-option {
    padding: 10px 16px;
    cursor: pointer;
    transition: all var(--bp-transition-fast);
    color: var(--bp-text);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.mth-country-option:hover {
    background: var(--bp-accent-dim);
    color: var(--bp-accent);
}

.mth-country-option .mth-flag-icon {
    width: 24px; height: 18px; border-radius: 3px; object-fit: cover;
}

.mth-country-option .mth-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--bp-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
    font-family: var(--bp-mono);
}

.mth-countries-dropdown::-webkit-scrollbar { width: 6px; }
.mth-countries-dropdown::-webkit-scrollbar-track { background: transparent; }
.mth-countries-dropdown::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

.mth-reset-btn {
    padding: 9px 18px;
    background: transparent;
    border: 1px solid var(--bp-red);
    border-radius: var(--bp-radius-xs);
    color: var(--bp-red);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--bp-transition);
    text-transform: uppercase;
    font-family: var(--bp-sans);
}

.mth-reset-btn:hover { background: var(--bp-red-dim); }

.mth-search-wrap { display: flex; align-items: center; gap: 10px; }

.mth-search-input {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    color: var(--bp-text);
    padding: 11px 20px;
    border-radius: var(--bp-radius-sm);
    font-size: 14px;
    font-family: var(--bp-sans);
    width: 380px;
    transition: border-color var(--bp-transition);
}

.mth-search-input::placeholder { color: var(--bp-text-muted); }

.mth-search-input:focus {
    border-color: var(--bp-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--bp-accent-dim);
}

.mth-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bp-card);
    border: 1px solid var(--bp-accent);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 280px;
    overflow-y: auto;
    z-index: var(--z-header-dropdown);
    display: none;
    box-shadow: var(--bp-shadow);
}

.mth-autocomplete.visible { display: block; }

.mth-ac-item {
    padding: 11px 18px;
    cursor: pointer;
    transition: all var(--bp-transition-fast);
    color: var(--bp-text);
    border-bottom: 1px solid var(--bp-border-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.mth-ac-item:last-child { border-bottom: none; }
.mth-ac-item:hover { background: var(--bp-accent-dim); color: var(--bp-accent); }

.mth-ac-item .mth-ac-flag {
    width: 20px; height: 15px; border-radius: 2px; object-fit: cover; flex-shrink: 0;
}

.mth-ac-item .mth-ac-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--bp-text-muted);
    margin-left: auto;
}

.mth-context-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--bp-text-muted);
}

.mth-context-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mth-context-value {
    color: var(--bp-accent);
    font-weight: 700;
    font-family: var(--bp-mono);
}

.mth-context-sep { color: rgba(255, 255, 255, 0.15); font-weight: 300; }


/* ══════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ══════════════════════════════════════════════════════════════ */
.mth-main {
    max-width: 100%;
}


/* ══════════════════════════════════════════════════════════════
   CARDS GRID
   ══════════════════════════════════════════════════════════════ */
.mth-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}


/* ══════════════════════════════════════════════════════════════
   METHOD CARD
   ══════════════════════════════════════════════════════════════ */
.mth-card {
    background: var(--bp-card);
    border: 1px solid var(--bp-border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition:
        border-color var(--bp-transition),
        transform var(--bp-transition),
        box-shadow var(--bp-transition),
        opacity 0.35s ease;
    display: flex;
    flex-direction: column;
}

.mth-card:hover {
    border-color: var(--bp-accent-border-strong);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(74, 158, 255, 0.06);
}

/* ── Active card (detail open for this card) ── */
.mth-card--active {
    border-color: var(--bp-accent) !important;
    box-shadow: 0 0 0 1px var(--bp-accent), 0 0 24px rgba(74, 158, 255, 0.15) !important;
    transform: none !important;
}

/* ── Faded cards (detail is open, other cards dim) ── */
.mth-grid--has-detail .mth-card:not(.mth-card--active):not(.mth-card--dimmed) {
    opacity: 0.4;
}

.mth-grid--has-detail .mth-card:not(.mth-card--active):hover {
    opacity: 0.75;
    transform: translateY(-2px);
}

/* ── Search dimmed ── */
.mth-card--dimmed {
    opacity: 0.15 !important;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mth-card--match { border-color: var(--bp-accent-border-strong); }

/* ── Card Image ── */
.mth-card-img {
    position: relative;
    width: 100%;
    height: 170px;
    background: var(--bp-surface);
    overflow: hidden;
}

.mth-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mth-card:hover .mth-card-img img { transform: scale(1.04); }

.mth-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bp-surface) 0%, var(--bp-card) 100%);
    color: var(--bp-text-muted);
    font-size: 40px;
}

/* ── Card Badges ── */
.mth-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.mth-badge {
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mth-badge-country { background: rgba(74, 158, 255, 0.85); color: #fff; }
.mth-badge-type { background: rgba(255, 152, 0, 0.85); color: #fff; }
.mth-badge-courier { background: rgba(76, 175, 80, 0.85); color: #fff; }

/* ── Card Body ── */
.mth-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mth-card-title-row { display: flex; align-items: center; gap: 10px; }

.mth-card-flag {
    width: 28px; height: 21px; border-radius: 3px;
    object-fit: cover; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); flex-shrink: 0;
}

.mth-card-flag.mth-worldwide-icon {
    width: 24px; height: 24px; color: var(--bp-accent); border-radius: 0; box-shadow: none;
}

.mth-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--bp-text);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mth-card-excerpt {
    font-size: 13px;
    color: var(--bp-text-secondary);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mth-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--bp-border-light);
    margin-top: auto;
}

.mth-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--bp-accent);
    font-family: var(--bp-mono);
}

.mth-card-views {
    font-size: 11px;
    color: var(--bp-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mth-card-views svg { width: 14px; height: 14px; opacity: 0.5; }


/* ══════════════════════════════════════════════════════════════
   DETAIL BLOCK — the core UX pattern
   ══════════════════════════════════════════════════════════════ */
.mth-detail {
    grid-column: 1 / -1;
    display: none;
    background: var(--bp-card);
    border: 1px solid var(--bp-border);
    border-top: 3px solid var(--bp-accent);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    position: relative;
}

.mth-detail.active {
    display: block;
    animation: mth-detail-in 0.35s ease;
}

@keyframes mth-detail-in {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Close button ── */
.mth-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--bp-text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.2s ease;
    border: none;
    font-family: var(--bp-sans);
}

.mth-detail-close:hover {
    background: var(--bp-red-dim);
    color: var(--bp-red);
}

/* ── Detail inner layout: gallery left + content right ── */
.mth-detail-inner {
    display: grid;
    grid-template-columns: 50% 1fr;
    min-height: 340px;
}

.mth-detail-inner.no-gallery {
    grid-template-columns: 1fr;
}

/* ── Gallery (left column) ── */
.mth-detail-gallery {
    background: var(--bp-surface);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mth-detail-main-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    border-radius: var(--bp-radius-xs);
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

.mth-detail-main-img img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: var(--bp-radius-xs);
}

.mth-detail-main-img .mth-img-placeholder {
    color: var(--bp-text-muted);
    font-size: 56px;
}

/* Gallery nav arrows */
.mth-detail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: var(--bp-sans);
    z-index: 3;
}

.mth-detail-nav:hover { background: var(--bp-accent); }
.mth-detail-nav:disabled { opacity: 0.2; cursor: not-allowed; }
.mth-detail-nav--prev { left: 10px; }
.mth-detail-nav--next { right: 10px; }

/* Gallery counter */
.mth-detail-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-family: var(--bp-mono);
}

/* ── Thumbnail strip ── */
.mth-detail-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0;
}

.mth-detail-thumbs::-webkit-scrollbar { height: 4px; }
.mth-detail-thumbs::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }

.mth-detail-thumb {
    width: 60px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.6;
}

.mth-detail-thumb:hover { opacity: 0.9; }

.mth-detail-thumb.active {
    border-color: var(--bp-accent);
    opacity: 1;
}

.mth-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Content (right column) ── */
.mth-detail-content {
    padding: 28px 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    max-height: 520px;
}

.mth-detail-content::-webkit-scrollbar { width: 5px; }
.mth-detail-content::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

/* Badges row */
.mth-detail-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.mth-detail-badges .mth-badge {
    font-size: 11px;
    padding: 4px 11px;
}

/* Title */
.mth-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--bp-text);
    line-height: 1.25;
    margin: 0;
}

.mth-detail-subtitle {
    font-size: 14px;
    color: var(--bp-text-muted);
    margin: -10px 0 0;
}

/* ── Quickbar: above-fold price + CTA ── */
.mth-detail-quickbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(74, 158, 255, 0.04);
    border: 1px solid var(--bp-accent-border);
    border-radius: var(--bp-radius-xs);
}

.mth-quickbar-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--bp-accent);
    font-family: var(--bp-mono);
    letter-spacing: -0.5px;
    line-height: 1;
}

.mth-quickbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--bp-accent) 0%, #2d7cd6 100%);
    color: #fff;
    border: none;
    border-radius: var(--bp-radius-xs);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--bp-transition);
    box-shadow: 0 2px 10px rgba(74, 158, 255, 0.25);
    white-space: nowrap;
    font-family: var(--bp-sans);
}

.mth-quickbar-btn svg {
    width: 16px;
    height: 16px;
}

.mth-quickbar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(74, 158, 255, 0.35);
}

.mth-quickbar-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Section titles */
.mth-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--bp-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

/* Description */
.mth-detail-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--bp-text);
    white-space: pre-wrap;
}

/* Notes */
.mth-detail-notes {
    background: var(--bp-orange-dim);
    border-left: 3px solid var(--bp-orange);
    padding: 14px 16px;
    border-radius: 0 var(--bp-radius-xs) var(--bp-radius-xs) 0;
}

.mth-detail-notes .mth-section-title {
    color: var(--bp-orange);
    margin-bottom: 6px;
}

.mth-detail-notes ul { list-style: none; padding: 0; margin: 0; }

.mth-detail-notes li {
    font-size: 14px;
    color: var(--bp-text-secondary);
    line-height: 1.6;
    padding: 3px 0 3px 16px;
    position: relative;
}

.mth-detail-notes li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--bp-orange);
    font-weight: 700;
}

/* Price block — price-dominant vertical layout */
.mth-detail-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: var(--bp-accent-dim);
    border: 1px solid var(--bp-accent-border);
    border-radius: var(--bp-radius-xs);
}

.mth-detail-price-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--bp-accent);
    font-family: var(--bp-mono);
    letter-spacing: -0.5px;
    line-height: 1;
}

.mth-detail-price-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--bp-text-muted);
    text-transform: lowercase;
    letter-spacing: 0.3px;
}

/* Action buttons */
.mth-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.mth-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 14px 22px;
    border: none;
    border-radius: var(--bp-radius-xs);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--bp-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--bp-sans);
}

.mth-action-btn svg { width: 18px; height: 18px; }

.mth-btn-order {
    background: linear-gradient(135deg, var(--bp-accent) 0%, #2d7cd6 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.mth-btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 158, 255, 0.4);
}

.mth-btn-order.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mth-btn-share {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--bp-border);
    color: var(--bp-text-secondary);
}

.mth-btn-share:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--bp-accent-border);
    color: var(--bp-text);
}


/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════ */
.mth-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.mth-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.mth-empty-title { font-size: 16px; font-weight: 600; color: var(--bp-text-secondary); margin-bottom: 6px; }
.mth-empty-text { font-size: 14px; color: var(--bp-text-muted); }


/* ══════════════════════════════════════════════════════════════
   LIGHTBOX (image zoom only — not a content modal)
   ══════════════════════════════════════════════════════════════ */
.mth-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    cursor: zoom-out;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mth-lightbox.visible { display: flex; }

.mth-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    cursor: default;
    border-radius: 4px;
}


/* ══════════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════════ */
.mth-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(76, 175, 80, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--bp-radius-xs);
    font-size: 14px;
    font-weight: 500;
    z-index: calc(var(--z-modal) + 200);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    font-family: var(--bp-sans);
}

.mth-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
/* 3 columns */
@media (max-width: 1200px) {
    .mth-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 2 columns */
@media (max-width: 900px) {
    .mth-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .mth-page { padding: 20px 12px 40px; }

    .mth-title { font-size: 28px; gap: 10px; }
    .mth-title-icon { width: 44px; height: 44px; border-radius: 10px; }
    .mth-title-icon svg { width: 24px; height: 24px; }
    .mth-subtitle { font-size: 15px; }
    .mth-header { margin-bottom: 28px; }

    .mth-filter-row { gap: 6px; }
    .mth-search-input { width: 100%; }
    .mth-search-wrap { width: 100%; }

    /* Detail block: stack vertically on mobile */
    .mth-detail-inner {
        grid-template-columns: 1fr !important;
    }

    .mth-detail-gallery { max-height: 300px; }
    .mth-detail-content { max-height: none; padding: 20px; }
    .mth-detail-title { font-size: 22px; }
    .mth-detail-actions { flex-direction: column; }

    /* Quickbar: stack on mobile */
    .mth-detail-quickbar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }
    .mth-quickbar-price { font-size: 24px; }
    .mth-quickbar-btn { justify-content: center; }
}

/* 1 column */
@media (max-width: 640px) {
    .mth-grid { grid-template-columns: 1fr; }
    .mth-filter-chip { font-size: 11px; padding: 8px 14px; }
    .mth-card-img { height: 150px; }
    .mth-context-bar { font-size: 12px; }
    .mth-detail-gallery { padding: 16px; }
}
