/* ═══════════════════════════════════════════════════════════════════════════
   GNIS Marketplace — Storefront Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────────────────────────── */
.mkt-storefront, .mkt-cart-page, .mkt-checkout-page,
.mkt-product-page, .mkt-buyer-orders {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a2e;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.mkt-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 28px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}
.mkt-filter-panel {
    flex: 0 0 272px !important;
    width: 272px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}
.mkt-main {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* ── Mobile filter bar (top search + filter toggle) ──────────────────────── */
.mkt-mobile-filter-bar {
    display: none; /* shown on mobile only */
    gap: 10px;
    margin-bottom: 18px;
    align-items: center;
}
.mkt-mobile-search-wrap { flex: 1; }
.mkt-mobile-search-wrap .mkt-search-input {
    width: 100%;
    box-sizing: border-box;
}
.mkt-filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    background: #fff;
    border: 1.5px solid #dde3ec;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .2s, background .2s;
}
.mkt-filter-toggle-btn:hover { border-color: #1a73e8; background: #f4f8ff; color: #1a73e8; }
.mkt-filter-count {
    background: #1a73e8;
    color: #fff;
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEFT FILTER PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Neutralise WordPress theme button styles inside the filter panel ────────
   Targeted resets only — avoids destroying display/pointer-events like all:unset.
   ID specificity (0,1,0,0) beats any theme class rule.                         */
#mkt-filter-panel button,
#mkt-filter-panel button:hover,
#mkt-filter-panel button:focus,
#mkt-filter-panel button:active,
#mkt-filter-panel button:visited {
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: normal !important;
    line-height: normal !important;
    margin: 0 !important;
    outline: none !important;
    padding: 0 !important;
    text-align: left !important;
    text-decoration: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    display: inline-block !important;
    vertical-align: middle !important;
    width: auto !important;
}
.mkt-filter-panel {
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 16px;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dde3ec transparent;
}
.mkt-filter-panel::-webkit-scrollbar { width: 4px; }
.mkt-filter-panel::-webkit-scrollbar-thumb { background: #dde3ec; border-radius: 4px; }

/* Panel header */
.mkt-filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f2f5;
    background: #fafbfd;
    position: sticky;
    top: 0;
    z-index: 2;
}
.mkt-filter-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -.1px;
}
#mkt-filter-panel .mkt-filter-clear-all {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1a73e8 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
    transition: background .15s;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
}
#mkt-filter-panel .mkt-filter-clear-all:hover { background: #f0f6ff !important; }

/* Active chips */
.mkt-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px;
}
.mkt-active-chips:not(:empty) { padding: 12px 16px 0; }
.mkt-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 12px;
    background: #e8f0fe;
    border: 1px solid #c5d8fc;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #1a56d6;
    cursor: default;
}
#mkt-filter-panel .mkt-chip-remove {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    color: #5a8ded !important;
    font-size: 14px !important;
    line-height: 1 !important;
    padding: 0 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 50% !important;
    transition: color .15s, background .15s;
    text-transform: none !important;
    letter-spacing: normal !important;
}
#mkt-filter-panel .mkt-chip-remove:hover { color: #c62828 !important; background: rgba(198,40,40,.08) !important; }

/* Section structure */
.mkt-filter-section {
    border-bottom: 1px solid #f0f2f5;
}
.mkt-filter-section:last-of-type { border-bottom: none; }

#mkt-filter-panel .mkt-filter-section-head,
#mkt-filter-panel .mkt-collapsible {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 20px !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
    transition: background-color .15s;
}
#mkt-filter-panel .mkt-filter-section-head:hover,
#mkt-filter-panel .mkt-collapsible:hover { background-color: #f7f9fc !important; }
.mkt-filter-section-head-static {
    padding: 14px 20px 6px;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
}

.mkt-chevron {
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
    color: #888;
}
.mkt-filter-section-head[aria-expanded="false"] .mkt-chevron {
    transform: rotate(-90deg);
}

.mkt-filter-section-body {
    padding: 0 16px 14px;
    overflow: hidden;
    transition: max-height .28s cubic-bezier(.4,0,.2,1), opacity .2s ease;
    max-height: 600px;
    opacity: 1;
}
.mkt-filter-section-body.mkt-collapsed {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
    pointer-events: none;
}

/* Desktop search strip */
.mkt-desktop-search { display: block; }
.mkt-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dde3ec;
    border-radius: 9px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}
.mkt-search-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,.1);
}

/* Filter search within a section (org/outlet search box) */
.mkt-filter-search-wrap {
    position: relative;
    margin-bottom: 10px;
}
.mkt-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aab;
    pointer-events: none;
}
.mkt-filter-search, .mkt-filter-input {
    width: 100%;
    padding: 8px 10px 8px 30px;
    border: 1.5px solid #e4e9f0;
    border-radius: 8px;
    font-size: 13px;
    box-sizing: border-box;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s;
}
.mkt-filter-search:focus, .mkt-filter-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,.08);
    background: #fff;
}

/* Price range inputs */
.mkt-price-inputs {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}
.mkt-price-field { flex: 1; }
.mkt-price-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.mkt-price-input {
    padding: 8px 10px 8px 10px !important;
    text-align: center;
    font-weight: 700;
}
.mkt-price-sep {
    color: #bbb;
    font-size: 14px;
    font-weight: 600;
    padding-bottom: 9px;
    flex-shrink: 0;
}
#mkt-filter-panel .mkt-apply-price-btn {
    display: block !important;
    width: 100% !important;
    padding: 9px !important;
    background: #1a73e8 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background .2s;
    margin-top: 4px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    text-align: center !important;
    line-height: 1.5 !important;
}
#mkt-filter-panel .mkt-apply-price-btn:hover { background: #1558b0 !important; }

/* Radio list (for category, province, district, org, outlet) */
.mkt-radio-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e0e4ec transparent;
}
.mkt-radio-list::-webkit-scrollbar { width: 3px; }
.mkt-radio-list::-webkit-scrollbar-thumb { background: #dde3ec; border-radius: 3px; }

.mkt-radio-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
    font-size: 13px;
    color: #333;
    user-select: none;
}
.mkt-radio-item:hover { background: #f4f7fb; }
.mkt-radio-item.selected {
    background: #e8f0fe;
    color: #1a56d6;
    font-weight: 600;
}
.mkt-radio-item input[type="radio"] {
    accent-color: #1a73e8;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.mkt-radio-item-label { flex: 1; line-height: 1.3; }
.mkt-radio-item-sub {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

/* Skeleton loaders */
.mkt-filter-skeleton {
    height: 32px;
    background: linear-gradient(90deg, #f0f2f5 25%, #e8ecf0 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: mkt-shimmer 1.4s infinite;
    border-radius: 8px;
    margin-bottom: 4px;
}
@keyframes mkt-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile filter footer */
.mkt-filter-footer {
    display: none;
    padding: 14px 16px 18px;
    border-top: 1px solid #f0f2f5;
    background: #fafbfd;
}
#mkt-filter-panel .mkt-filter-apply-mobile {
    display: block !important;
    width: 100% !important;
    padding: 12px !important;
    font-size: 14px !important;
    background: #1a73e8 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    line-height: 1.5 !important;
}
#mkt-filter-panel .mkt-filter-apply-mobile:hover { background: #1558b0 !important; }

/* Backdrop for mobile */
.mkt-filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 998;
    backdrop-filter: blur(2px);
}

/* ── Results Bar ──────────────────────────────────────────────────────────── */
.mkt-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 10px;
    gap: 12px;
}
.mkt-result-count {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}
.mkt-result-count strong { color: #1a1a2e; font-weight: 700; }
.mkt-sort-select {
    padding: 7px 12px;
    border: 1.5px solid #e4e9f0;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s;
}
.mkt-sort-select:focus { outline: none; border-color: #1a73e8; }

/* ── Product Grid ─────────────────────────────────────────────────────────── */
.mkt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* ── Product Card ─────────────────────────────────────────────────────────── */
.mkt-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: box-shadow .3s ease, transform .3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.mkt-card:hover {
    box-shadow: 0 12px 32px rgba(26,115,232,.14);
    transform: translateY(-3px);
}

/* Card image container */
.mkt-card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 68%;
    overflow: hidden;
    background: #f4f7fb;
    border-bottom: 1px solid #eef0f4;
    contain: layout paint;
    flex-shrink: 0;
}
.mkt-card-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.25,.46,.45,.94), filter .45s ease;
    will-change: transform;
}
.mkt-card:hover .mkt-card-image-wrap img {
    transform: scale(1.08);
    filter: brightness(1.04);
}
.mkt-card-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4f7fb 0%, #e8ecf0 100%);
    color: #b0bac8;
    font-size: 13px;
    gap: 8px;
}
.mkt-card-image-placeholder span { font-size: 36px; }

/* Featured ribbon */
.mkt-featured-ribbon {
    position: absolute;
    top: 12px; left: -2px;
    background: #1a73e8;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px 3px 8px;
    border-radius: 0 4px 4px 0;
    letter-spacing: .4px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(26,115,232,.35);
    z-index: 2;
}

/* Stock badge */
.mkt-stock-overlay {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(255,255,255,.92);
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #444;
    backdrop-filter: blur(4px);
    z-index: 2;
}
.mkt-stock-overlay.low { background: rgba(255,243,205,.95); color: #856404; border-color: #ffd700; }

/* Card body */
.mkt-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mkt-card-vendor {
    font-size: 10px;
    font-weight: 700;
    color: #1a73e8;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.mkt-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mkt-card-category {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.mkt-card-price {
    font-size: 20px;
    font-weight: 800;
    color: #1a73e8;
    margin-top: 4px;
    letter-spacing: -.3px;
}
.mkt-card-unit { font-size: 11px; color: #aaa; font-weight: 400; }
.mkt-card-footer { margin-top: auto; padding-top: 10px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.mkt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    text-decoration: none;
}
.mkt-btn:active { transform: scale(.97); }
.mkt-btn:disabled { opacity: .55; cursor: not-allowed; }
.mkt-btn-primary {
    background: #1a73e8;
    color: #fff;
    box-shadow: 0 2px 8px rgba(26,115,232,.25);
}
.mkt-btn-primary:hover { background: #1558b0; box-shadow: 0 4px 14px rgba(26,115,232,.35); }
.mkt-btn-secondary { background: #f4f7fb; color: #333; border: 1px solid #dde3ec; }
.mkt-btn-secondary:hover { background: #e8ecf0; }
.mkt-btn-block { display: flex; width: 100%; box-sizing: border-box; }
.mkt-btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.mkt-btn-added { background: #e8f5e9 !important; color: #2e7d32 !important; box-shadow: none !important; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.mkt-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.mkt-page-btn {
    padding: 7px 14px;
    border: 1px solid #dde3ec;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    font-size: 13px;
    color: #333;
    transition: background .2s, border-color .2s;
}
.mkt-page-btn:hover { background: #f4f7fb; }
.mkt-page-btn.active { background: #1a73e8; color: #fff; border-color: #1a73e8; font-weight: 700; }

/* ── Single Product Page ──────────────────────────────────────────────────── */
.mkt-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.mkt-product-image-wrap {
    border-radius: 14px; overflow: hidden; background: #f4f7fb;
    border: 1px solid #e8ecf0; aspect-ratio: 1; position: relative;
}
.mkt-product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.25,.46,.45,.94); }
.mkt-product-image-wrap:hover img { transform: scale(1.06); }
.mkt-product-image-placeholder {
    width: 100%; aspect-ratio: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f4f7fb 0%, #e8ecf0 100%);
    color: #b0bac8; font-size: 14px; gap: 10px; border-radius: 14px;
}
.mkt-product-image-placeholder span { font-size: 52px; }
.mkt-product-vendor { font-size: 12px; font-weight: 700; color: #1a73e8; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.mkt-product-title { font-size: 26px; font-weight: 800; margin: 0 0 8px; color: #1a1a2e; line-height: 1.2; }
.mkt-product-price { font-size: 32px; font-weight: 800; color: #1a73e8; margin: 12px 0; }
.mkt-product-desc { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 16px; }
.mkt-product-meta { font-size: 13px; color: #888; margin-bottom: 20px; }
.mkt-product-meta span { margin-right: 16px; }
.mkt-qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mkt-qty-input { width: 70px; padding: 9px; border: 1px solid #dde3ec; border-radius: 8px; text-align: center; font-size: 15px; font-weight: 700; }

/* ── Cart Page ────────────────────────────────────────────────────────────── */
.mkt-cart-page h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.mkt-vendor-section { margin-bottom: 28px; }
.mkt-vendor-section-header { font-size: 13px; font-weight: 700; color: #1a73e8; text-transform: uppercase; letter-spacing: .5px; padding: 8px 0; border-bottom: 2px solid #1a73e8; margin-bottom: 0; }
.mkt-cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e8ecf0; border-top: none; border-radius: 0 0 10px 10px; overflow: hidden; }
.mkt-cart-table th { text-align: left; padding: 11px 14px; font-size: 12px; color: #888; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; background: #fafbfc; border-bottom: 1px solid #eee; }
.mkt-cart-table td { padding: 14px; border-bottom: 1px solid #f4f4f4; vertical-align: middle; font-size: 14px; }
.mkt-cart-table tr:last-child td { border-bottom: none; }
.mkt-cart-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid #eee; }
.mkt-cart-thumb-placeholder { width: 56px; height: 56px; background: #f4f7fb; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; border: 1px solid #eee; }
.mkt-cart-item-name { font-weight: 600; color: #1a1a2e; }
.mkt-totals-box { background: #fff; border: 1px solid #e8ecf0; border-radius: 12px; padding: 20px; margin-top: 20px; }
.mkt-total-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f4f4f4; font-size: 14px; color: #555; }
.mkt-total-row:last-child { border-bottom: none; }
.mkt-grand { font-weight: 800; font-size: 19px; color: #1a1a2e; padding-top: 12px; }

/* ── Checkout ─────────────────────────────────────────────────────────────── */
.mkt-checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; }
.mkt-checkout-form h3 { font-size: 17px; font-weight: 700; margin: 0 0 16px; }
.mkt-checkout-form label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: #444; }
.mkt-input { display: block; width: 100%; margin-top: 5px; padding: 10px 13px; border: 1px solid #dde3ec; border-radius: 8px; font-size: 14px; box-sizing: border-box; transition: border-color .2s, box-shadow .2s; }
.mkt-input:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26,115,232,.12); }
.mkt-radio-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.mkt-radio-option { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 2px solid #dde3ec; border-radius: 10px; cursor: pointer; transition: border-color .2s, background .2s; }
.mkt-radio-option:hover { border-color: #1a73e8; background: #f4f8ff; }
.mkt-radio-option.selected { border-color: #1a73e8; background: #f0f6ff; }
.mkt-radio-option input { accent-color: #1a73e8; width: 16px; height: 16px; }
.mkt-radio-label { font-weight: 600; font-size: 14px; }
.mkt-radio-icon { font-size: 20px; }
.mkt-checkout-summary-card { background: #fff; border: 1px solid #e8ecf0; border-radius: 12px; padding: 20px; position: sticky; top: 20px; }
.mkt-checkout-summary-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 16px; }

/* ── Misc ─────────────────────────────────────────────────────────────────── */
.mkt-msg { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin: 12px 0; }
.mkt-msg.success { background: #e8f5e9; border: 1px solid #c8e6c9; color: #1b5e20; }
.mkt-msg.error   { background: #fdecea; border: 1px solid #f5c6cb; color: #c62828; }
.mkt-loading { color: #aaa; font-style: italic; text-align: center; padding: 40px 0; }
.mkt-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.mkt-badge-processing, .mkt-badge-confirmed { background: #e3f2fd; color: #0d47a1; }
.mkt-badge-fulfilled, .mkt-badge-delivered  { background: #e8f5e9; color: #1b5e20; }
.mkt-badge-pending                          { background: #fff8e1; color: #f57f17; }
.mkt-badge-cancelled, .mkt-badge-refunded   { background: #fdecea; color: #c62828; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tablet — narrower panel between 861px and 1100px */
@media (min-width: 861px) and (max-width: 1100px) {
    .mkt-layout { gap: 18px !important; }
    .mkt-filter-panel { flex: 0 0 220px !important; width: 220px !important; }
}

/* Mobile — below 860px: panel becomes a slide-in drawer */
@media (max-width: 860px) {
    .mkt-layout {
        display: flex !important;
        flex-direction: column !important;
    }
    .mkt-mobile-filter-bar { display: flex !important; }
    .mkt-desktop-search { display: none !important; }

    /* Panel: fixed drawer — hidden off-screen via transform */
    .mkt-filter-panel {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        flex: none !important;
        width: min(300px, 88vw) !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 16px 16px 0 !important;
        z-index: 9999 !important;
        transform: translateX(-110%) !important;
        transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s !important;
        box-shadow: 4px 0 32px rgba(0,0,0,.18) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        visibility: hidden !important;
    }
    .mkt-filter-panel.mkt-panel-open {
        transform: translateX(0) !important;
        visibility: visible !important;
    }
    .mkt-main {
        flex: 1 1 auto !important;
        width: 100% !important;
        overflow: visible !important;
    }
    .mkt-filter-backdrop.mkt-backdrop-visible { display: block !important; }
    .mkt-filter-footer { display: block !important; }
    .mkt-checkout-grid { flex-direction: column !important; }
}

@media (max-width: 560px) {
    .mkt-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .mkt-card-price { font-size: 17px; }
    .mkt-card-body { padding: 11px 13px 13px; }
    .mkt-results-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
    .mkt-sort-select { width: 100%; }
}
