/* --- International Standard CSS --- */
:root {
    --msh-primary: #0066cc;
    --msh-primary-hover: #0052a3;
    --msh-accent: #e74c3c;
    --msh-accent-hover: #c0392b;
    --msh-success: #28a745;
    --msh-success-hover: #218838;
    --msh-bg: #f8f9fc;
    --msh-card-bg: #ffffff;
    --msh-text-main: #1a1a1a;
    --msh-text-muted: #6c757d;
    --msh-border: #e9ecef;
    --msh-radius-lg: 16px;
    --msh-radius-md: 10px;
    --msh-radius-sm: 6px;
    --msh-shadow-sm: 0 4px 6px rgba(0,0,0,0.04);
    --msh-shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --msh-shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --msh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Advanced Filter UI */
.msh-advanced-filter { background: var(--msh-card-bg); padding: 35px; border-radius: var(--msh-radius-lg); box-shadow: var(--msh-shadow-md); margin-bottom: 40px; font-family: var(--msh-font); border: 1px solid rgba(0,0,0,0.03); }
.msh-filter-header { text-align: center; margin-bottom: 30px; }
.msh-filter-header h2 { margin: 0 0 8px 0; font-size: 28px; font-weight: 800; color: var(--msh-text-main); letter-spacing: -0.5px; }
.msh-filter-header p { margin: 0; color: var(--msh-text-muted); font-size: 15px; }

.msh-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 25px; }
.msh-feature-filter-wrap { background: #fdfdfe; padding: 20px; border-radius: var(--msh-radius-md); border: 1px solid var(--msh-border); }

.msh-filter-group { display: flex; flex-direction: column; }
.msh-filter-group label { font-size: 12px; font-weight: 700; color: var(--msh-text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.8px; }
.msh-filter-group select { width: 100%; padding: 14px 16px; border: 1px solid var(--msh-border); border-radius: var(--msh-radius-sm); font-size: 15px; color: var(--msh-text-main); background: #fff; appearance: none; cursor: pointer; transition: all 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.msh-filter-group select:focus { border-color: var(--msh-primary); outline: none; box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1); }
.msh-filter-group select:disabled { background: #f4f6f8; cursor: not-allowed; color: #a0aab2; }

/* Price Range */
.msh-price-section { padding: 25px 0; border-top: 1px solid var(--msh-border); border-bottom: 1px solid var(--msh-border); margin: 30px 0; }
.msh-price-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.msh-price-header label { font-size: 16px; font-weight: 700; color: var(--msh-text-main); }
.msh-price-inputs { display: flex; align-items: center; gap: 12px; }
.msh-price-inputs input { width: 110px; padding: 10px; border: 1px solid var(--msh-border); border-radius: var(--msh-radius-sm); text-align: center; font-size: 15px; font-weight: 600; color: var(--msh-text-main); transition: border 0.2s; }
.msh-price-inputs input:focus { border-color: var(--msh-primary); outline: none; }
.msh-separator { color: var(--msh-text-muted); font-weight: bold; }

.msh-slider-container { position: relative; height: 30px; }
.msh-slider-track { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; height: 6px; background: #eef1f5; border-radius: 4px; }
.msh-slider-progress { position: absolute; top: 50%; transform: translateY(-50%); height: 6px; background: var(--msh-primary); border-radius: 4px; }
.msh-range-slider { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; -webkit-appearance: none; background: transparent; pointer-events: none; margin: 0; }
.msh-range-slider::-webkit-slider-thumb { -webkit-appearance: none; height: 22px; width: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--msh-primary); cursor: pointer; pointer-events: auto; box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: transform 0.1s; }
.msh-range-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.msh-filter-actions { display: flex; justify-content: center; }
.msh-btn-reset { padding: 12px 30px; background: transparent; color: var(--msh-text-muted); border: 1px solid var(--msh-border); border-radius: 30px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.msh-btn-reset:hover { background: #f4f6f8; color: var(--msh-text-main); border-color: #dcdcdc; }

/* NEW: Dynamic Results Header */
.msh-results-header { text-align: center; margin-bottom: 40px; padding: 20px; background: #fff; border-radius: var(--msh-radius-md); box-shadow: var(--msh-shadow-sm); border-top: 4px solid var(--msh-primary); }
.msh-results-header h2 { margin: 0 0 5px 0; font-size: 26px; font-weight: 800; color: var(--msh-text-main); }
.msh-results-header p { margin: 0; color: var(--msh-text-muted); font-size: 15px; font-weight: 600; }

/* Grid Results */
.msh-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; font-family: var(--msh-font); }
.msh-card { background: var(--msh-card-bg); border-radius: var(--msh-radius-lg); overflow: hidden; border: 1px solid rgba(0,0,0,0.04); box-shadow: var(--msh-shadow-sm); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; }
.msh-card:hover { transform: translateY(-8px); box-shadow: var(--msh-shadow-lg); }
.msh-card-img { padding: 30px 20px; background: #fcfcfd; text-align: center; border-bottom: 1px solid #f0f2f5; }
.msh-card-img img { max-width: 100%; height: 200px; object-fit: contain; transition: transform 0.4s; }
.msh-card:hover .msh-card-img img { transform: scale(1.05); }
.msh-card-body { padding: 25px; display: flex; flex-direction: column; flex: 1; }

/* NEW: Card Brand Logo wrapper */
.msh-card-brand-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.msh-brand-logo-small { height: 16px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.7; transition: all 0.3s; }
.msh-card:hover .msh-brand-logo-small { filter: grayscale(0%); opacity: 1; }
.msh-card-brand { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--msh-text-muted); font-weight: 700; }

.msh-card-title { text-decoration: none; color: var(--msh-text-main); }
.msh-card-title h3 { margin: 0 0 5px 0; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.msh-card-title:hover h3 { color: var(--msh-primary); }
.msh-card-variant { font-size: 14px; color: var(--msh-text-muted); margin-bottom: 15px; }
.msh-card-price { font-size: 22px; font-weight: 800; color: var(--msh-accent); margin-bottom: 20px; }

.msh-card-specs { background: #f8f9fa; border-radius: var(--msh-radius-md); padding: 15px; margin-bottom: 20px; }
.msh-spec-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; border-bottom: 1px dashed #eaeaea; padding-bottom: 8px; }
.msh-spec-row:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.msh-spec-row span { color: var(--msh-text-muted); }
.msh-spec-row strong { color: var(--msh-text-main); text-align: right; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.msh-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.msh-btn-action { padding: 10px; background: #f1f3f5; color: var(--msh-text-main); border: none; border-radius: var(--msh-radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.msh-btn-action:hover { background: #e2e6ea; }
.msh-btn-buy { grid-column: span 2; display: block; text-align: center; padding: 12px; background: var(--msh-primary); color: #fff; text-decoration: none; border-radius: var(--msh-radius-sm); font-weight: 700; font-size: 15px; transition: background 0.2s; }
.msh-btn-buy:hover { background: var(--msh-primary-hover); color: #fff; }

/* Sticky Compare Bar */
#msh-compare-floating-bar { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.85); backdrop-filter: saturate(180%) blur(20px); border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); border-radius: 50px; padding: 12px 25px; z-index: 99999; font-family: var(--msh-font); }
.msh-compare-bar-inner { display: flex; align-items: center; gap: 40px; }
.msh-compare-status { display: flex; align-items: center; gap: 15px; }
.msh-compare-icon-wrap { background: var(--msh-primary); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,102,204,0.3); }
.msh-compare-buttons { display: flex; gap: 12px; }
.msh-btn-clear { background: transparent; border: none; color: var(--msh-text-muted); font-weight: 600; cursor: pointer; padding: 8px 15px; }
.msh-btn-clear:hover { color: var(--msh-accent); }
.msh-btn-compare-now { background: var(--msh-text-main); color: #fff; border: none; padding: 10px 25px; border-radius: 30px; font-weight: 700; cursor: pointer; transition: transform 0.2s; }
.msh-btn-compare-now:hover { transform: scale(1.05); }

/* Quick View Modal */
.msh-modal { display: none; position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(8px); font-family: var(--msh-font); }
.msh-modal-content { background: var(--msh-card-bg); margin: 3% auto; border-radius: var(--msh-radius-lg); width: 92%; max-width: 800px; box-shadow: var(--msh-shadow-lg); animation: msh-slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; max-height: 94vh; overflow: hidden; }
@keyframes msh-slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.msh-modal-header-controls { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; border-bottom: 1px solid var(--msh-border); background: #fdfdfe; }
.msh-modal-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--msh-text-main); text-transform: uppercase; letter-spacing: 1px; }
.msh-modal-close { font-size: 32px; color: #a0aab2; cursor: pointer; line-height: 1; transition: color 0.2s; padding: 0 10px; }
.msh-modal-close:hover { color: var(--msh-accent); }
#msh-modal-body { padding: 30px; overflow-y: auto; }

.msh-modal-header { display: flex; gap: 30px; align-items: center; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid var(--msh-border); }
.msh-modal-header img { width: 130px; height: 160px; object-fit: contain; }
.msh-modal-brand { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--msh-text-muted); font-weight: 700; }
.msh-modal-info h2 { margin: 5px 0 10px 0; font-size: 28px; font-weight: 800; color: var(--msh-text-main); line-height: 1.1; }
.msh-modal-variant { background: #eef1f5; padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--msh-text-main); display: inline-block; margin-bottom: 15px; }
.msh-modal-price { font-size: 26px; font-weight: 800; color: var(--msh-accent); }

.msh-premium-table, .msh-premium-compare-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.msh-spec-cat h3 { font-size: 16px; color: var(--msh-primary); margin: 0 0 12px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.msh-premium-table td { padding: 14px 15px; border-bottom: 1px solid #f0f2f5; vertical-align: top; }
.msh-premium-table tr:last-child td { border-bottom: none; }
.msh-premium-table td:first-child { width: 35%; font-weight: 600; color: var(--msh-text-muted); }
.msh-premium-table td:last-child { color: var(--msh-text-main); line-height: 1.6; }

.msh-modal-footer { display: flex; gap: 15px; padding-top: 25px; border-top: 1px solid var(--msh-border); margin-top: 20px; }
.msh-btn-full-specs { flex: 1; text-align: center; padding: 15px; background: #e9ecef; color: var(--msh-text-main); text-decoration: none; border-radius: var(--msh-radius-sm); font-weight: 700; transition: background 0.2s; }
.msh-btn-full-specs:hover { background: #dde2e6; }
.msh-btn-buy-large { flex: 1.5; text-align: center; padding: 15px; background: var(--msh-primary); color: #fff; text-decoration: none; border-radius: var(--msh-radius-sm); font-weight: 700; font-size: 16px; transition: background 0.2s; box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2); }
.msh-btn-buy-large:hover { background: var(--msh-primary-hover); color: #fff; }

.msh-compare-header-title { text-align: center; margin-bottom: 30px; font-family: var(--msh-font); }
.msh-compare-header-title h2 { font-size: 28px; font-weight: 800; margin: 0; color: var(--msh-text-main); }
.msh-table-responsive { overflow-x: auto; background: var(--msh-card-bg); border-radius: var(--msh-radius-lg); box-shadow: var(--msh-shadow-md); font-family: var(--msh-font); }
.msh-premium-compare-table th, .msh-premium-compare-table td { padding: 20px; border: 1px solid #eaedf1; min-width: 200px; vertical-align: top; }
.msh-compare-th-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.msh-compare-th-card img { height: 140px; margin-bottom: 15px; object-fit: contain; }
.msh-comp-title { font-size: 18px; font-weight: 800; color: var(--msh-text-main); text-decoration: none; margin-bottom: 5px; }
.msh-comp-var { font-size: 13px; color: var(--msh-text-muted); margin-bottom: 10px; }
.msh-comp-price { font-size: 20px; font-weight: 800; color: var(--msh-accent); margin-bottom: 15px; }
.msh-btn-buy-sm { background: var(--msh-success); color: #fff; text-decoration: none; padding: 8px 20px; border-radius: 30px; font-size: 14px; font-weight: bold; }
.msh-cat-row th { background: #f8f9fa; color: var(--msh-primary); font-size: 16px; text-transform: uppercase; letter-spacing: 1px; text-align: left; }
.msh-feat-name { font-weight: 700; color: var(--msh-text-muted); background: #fdfdfe; width: 180px; min-width: 180px; }

@media (max-width: 768px) {
    .msh-compare-bar-inner { gap: 15px; }
    .msh-compare-status strong { display: none !important; }
    .msh-modal-header { flex-direction: column; text-align: center; }
    .msh-modal-footer { flex-direction: column; }
}
/* Firefox Slider Fix */
.msh-range-slider::-moz-range-thumb { 
    -moz-appearance: none; 
    height: 22px; 
    width: 22px; 
    border-radius: 50%; 
    background: #fff; 
    border: 2px solid var(--msh-primary); 
    cursor: pointer; 
    pointer-events: auto; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); 
    transition: transform 0.1s; 
}
.msh-range-slider::-moz-range-thumb:hover { 
    transform: scale(1.15); 
}