/* ===== קטלוג מכירה Milwaukee — בסגנון milwaukeetool.com ===== */
:root {
  --mw-red: #db021d;
  --mw-red-dark: #a30015;
  --mw-black: #000000;
  --mw-dark: #1a1a1a;
  --mw-gray: #f2f2f2;
  --mw-line: #e3e3e3;
  --mw-text: #111111;
  --mw-muted: #6b6b6b;
}
#view-milwaukee { --radius: 0; }
#view-milwaukee.active { margin: -28px -34px 0; }                 /* הקטלוג מותח לכל רוחב אזור התוכן (מבטל את ריפוד main-area) */
.mw-page { background: #fff; color: var(--mw-text); min-height: 100%; display: flex; flex-direction: column; }
.mw-page * { box-sizing: border-box; }

/* --- פס אדום עליון (לוגו + חיפוש) --- */
.mw-top { background: var(--mw-red); color: #fff; padding: 0 28px; height: 72px; display: flex; align-items: center; gap: 18px; position: sticky; top: 0; z-index: 6; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.mw-top .mw-wordmark { height: 30px; width: auto; flex: none; }
.mw-top .mw-search { flex: 1 1 260px; max-width: 520px; position: relative; }
.mw-top .mw-search input { width: 100%; height: 42px; border: 0; border-radius: 3px; padding: 0 40px 0 12px; font: inherit; font-size: 15px; color: var(--mw-text); background: #fff; }
.mw-top .mw-search input:focus { outline: 3px solid rgba(0,0,0,.25); }
.mw-top .mw-search::before { content: '⌕'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--mw-muted); font-size: 20px; }
.mw-top .spacer { flex: 1; }
.mw-top-btn { border: 2px solid #fff; background: transparent; color: #fff; border-radius: 3px; padding: 8px 14px; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; text-decoration: none; text-transform: uppercase; font-size: 13px; letter-spacing: .3px; }
.mw-top-btn:hover { background: #fff; color: var(--mw-red); }
.mw-top-btn.solid { background: var(--mw-black); border-color: var(--mw-black); }
.mw-top-btn.solid:hover { background: #333; color: #fff; }

/* --- פס שחור: קטגוריות --- */
.mw-strip { background: var(--mw-black); color: #fff; padding: 0 28px; display: flex; align-items: stretch; gap: 0; overflow-x: auto; scrollbar-width: thin; position: sticky; top: 72px; z-index: 5; }
.mw-strip button { flex: none; background: none; border: 0; border-bottom: 4px solid transparent; color: #d9d9d9; font: inherit; font-weight: 800; font-size: 13.5px; padding: 14px 14px 12px; cursor: pointer; white-space: nowrap; letter-spacing: .3px; }
.mw-strip button small { color: #8a8a8a; font-weight: 500; margin-inline-start: 4px; }
.mw-strip button:hover { color: #fff; }
.mw-strip button.on { color: #fff; border-bottom-color: var(--mw-red); }
.mw-substrip { background: #fff; border-bottom: 1px solid var(--mw-line); padding: 8px 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.mw-substrip:empty { display: none; }
.mw-chip { border: 1.5px solid var(--mw-line); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--mw-text); }
.mw-chip.on { background: var(--mw-black); border-color: var(--mw-black); color: #fff; }

/* --- הירו (קרוסלה) --- */
.mw-hero { position: relative; background: radial-gradient(120% 100% at 70% 30%, #3a3a3a 0%, #151515 55%, #000 100%); color: #fff; min-height: 420px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.mw-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--mw-red); }
/* התמונות הרשמיות על רקע לבן — לכן צד התמונה לבן, עם חיתוך אלכסוני אדום אל הצד הכהה */
.mw-hero .pic { height: 420px; display: flex; align-items: center; justify-content: center; padding: 30px 60px 30px 40px; position: relative; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.mw-hero .pic::before { content: ''; position: absolute; top: 0; bottom: 0; right: -1px; width: 70px; background: linear-gradient(to left, #151515 0, #151515 50%, var(--mw-red) 50%, var(--mw-red) 62%, transparent 62%); clip-path: polygon(0 0, 100% 0, 100% 100%, 55% 100%); }
.mw-hero .pic img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .35s; }
.mw-hero .txt { padding: 40px 48px; position: relative; z-index: 1; }
.mw-flag { display: inline-block; background: var(--mw-red); color: #fff; font-weight: 900; font-size: 15px; letter-spacing: 2px; padding: 8px 22px 8px 16px; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); margin-bottom: 18px; text-transform: uppercase; }
.mw-hero h2 { margin: 0 0 8px; font-size: 40px; font-weight: 900; line-height: 1.1; letter-spacing: .3px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.mw-hero .sub { color: #cfcfcf; font-size: 17px; margin-bottom: 10px; }
.mw-hero .ids { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.mw-hero .price { font-size: 30px; font-weight: 900; margin-bottom: 20px; }
.mw-hero .price small { font-size: 13px; font-weight: 500; color: #cfcfcf; margin-inline-start: 8px; }
.mw-hero-btn { display: inline-block; border: 2px solid #fff; color: #fff; background: transparent; padding: 12px 34px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; text-transform: uppercase; letter-spacing: .5px; }
.mw-hero-btn:hover { background: #fff; color: var(--mw-black); }
.mw-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; background: var(--mw-red); color: #fff; border: 0; font-size: 26px; cursor: pointer; z-index: 2; opacity: .9; }
.mw-arrow:hover { opacity: 1; }
.mw-arrow.prev { right: 0; } .mw-arrow.next { left: 0; }
.mw-dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.mw-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.mw-dots button.on { background: var(--mw-red); }

/* --- פס אדום: מספרים --- */
.mw-band { background: var(--mw-red); color: #fff; display: flex; justify-content: center; gap: 48px; padding: 14px 28px; flex-wrap: wrap; }
.mw-band div { text-align: center; }
.mw-band b { display: block; font-size: 26px; font-weight: 900; line-height: 1; }
.mw-band span { font-size: 12.5px; font-weight: 600; opacity: .9; }

/* --- סרגל כלים --- */
.mw-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px 28px 0; }
.mw-seg { display: inline-flex; border: 2px solid var(--mw-black); overflow: hidden; }
.mw-seg button { border: 0; background: #fff; padding: 8px 14px; font: inherit; font-weight: 800; font-size: 13px; color: var(--mw-black); cursor: pointer; }
.mw-seg button.on { background: var(--mw-black); color: #fff; }
.mw-tools select { width: auto; padding: 9px 12px; border: 2px solid var(--mw-black); border-radius: 0; font: inherit; font-weight: 700; background: #fff; }
.mw-count { color: var(--mw-muted); font-size: 13px; margin-inline-start: auto; font-weight: 600; }

/* --- רשת מוצרים --- */
.mw-content { padding: 8px 28px 40px; }
.mw-section-title { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 12px; }
.mw-section-title h3 { margin: 0; font-size: 26px; font-weight: 900; color: var(--mw-black); text-transform: uppercase; }
.mw-section-title h3::before { content: ''; display: inline-block; width: 8px; height: 24px; background: var(--mw-red); margin-inline-end: 12px; vertical-align: -3px; }
.mw-section-title span { color: var(--mw-muted); font-size: 13px; font-weight: 600; }
.mw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.mw-card { background: #fff; border: 1px solid var(--mw-line); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; text-align: right; font: inherit; padding: 0; transition: box-shadow .15s, transform .15s; }
.mw-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.14); transform: translateY(-3px); }
.mw-img { aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--mw-gray); }
.mw-img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .3s; }
.mw-card:hover .mw-img img { transform: scale(1.05); }
.mw-img .mw-noimg { color: #cfcfcf; font-size: 46px; }
.mw-tag { position: absolute; top: 0; right: 0; background: var(--mw-red); color: #fff; font-size: 11px; font-weight: 900; padding: 5px 12px 5px 9px; letter-spacing: .5px; clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%); text-transform: uppercase; }
.mw-tag.warn { background: var(--mw-black); }
.mw-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.mw-name { font-weight: 900; font-size: 15.5px; color: var(--mw-black); line-height: 1.3; }
.mw-sub { color: var(--mw-muted); font-size: 12.5px; }
.mw-ids { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.mw-model { border: 2px solid var(--mw-red); color: var(--mw-red); padding: 1px 7px; font-size: 12px; font-weight: 900; direction: ltr; }
.mw-sku { background: var(--mw-gray); color: var(--mw-muted); padding: 2px 7px; font-size: 11.5px; font-family: Consolas, monospace; direction: ltr; }
.mw-price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mw-price b { font-size: 22px; font-weight: 900; color: var(--mw-black); }
.mw-price small { color: var(--mw-muted); font-size: 12px; font-weight: 600; }
.mw-price .alt { margin-inline-start: auto; font-size: 12px; color: var(--mw-muted); }
.mw-price.na b { color: var(--mw-muted); font-size: 14px; font-weight: 700; }
.mw-cta { margin-top: 10px; background: var(--mw-red); color: #fff; text-align: center; font-weight: 900; font-size: 13px; padding: 10px; letter-spacing: .5px; text-transform: uppercase; }
.mw-card:hover .mw-cta { background: var(--mw-red-dark); }

/* --- תצוגת רשימה --- */
.mw-list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--mw-line); }
.mw-list th { background: var(--mw-black); color: #fff; font-size: 13px; padding: 12px; text-align: right; text-transform: uppercase; }
.mw-list td { padding: 8px 12px; border-bottom: 1px solid var(--mw-gray); font-size: 13.5px; vertical-align: middle; }
.mw-list tr { cursor: pointer; }
.mw-list tbody tr:hover { background: #fff3f4; }
.mw-list .th { width: 60px; height: 60px; object-fit: contain; background: #fff; border: 1px solid var(--mw-gray); }
.mw-list .p { font-weight: 900; color: var(--mw-black); white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* --- חלון מוצר --- */
.mw-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 60; display: none; align-items: center; justify-content: center; padding: 18px; }
.mw-backdrop.open { display: flex; }
.mw-modal { background: #fff; width: min(1080px, 100%); max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 1.05fr 1fr; position: relative; border-top: 8px solid var(--mw-red); }
.mw-modal-close { position: absolute; top: 12px; left: 12px; border: 0; background: var(--mw-black); color: #fff; width: 38px; height: 38px; font-size: 18px; cursor: pointer; z-index: 2; }
.mw-gallery { padding: 28px; background: #fff; display: flex; flex-direction: column; gap: 12px; border-inline-start: 1px solid var(--mw-gray); }
.mw-gallery .main { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--mw-gray); overflow: hidden; }
.mw-gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.mw-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.mw-thumbs img { width: 66px; height: 66px; object-fit: contain; border: 2px solid var(--mw-gray); cursor: pointer; background: #fff; padding: 4px; }
.mw-thumbs img.on { border-color: var(--mw-red); }
.mw-info { padding: 32px 30px 30px; display: flex; flex-direction: column; gap: 12px; }
.mw-info .crumb { color: var(--mw-muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; }
.mw-info h2 { margin: 0; font-size: 26px; font-weight: 900; color: var(--mw-black); line-height: 1.2; }
.mw-info .sub { color: var(--mw-muted); font-size: 14px; }
.mw-pricebox { background: var(--mw-black); color: #fff; padding: 16px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; border-inline-start: 8px solid var(--mw-red); }
.mw-pricebox .lbl { font-size: 12px; color: #a9a9a9; }
.mw-pricebox .val { font-size: 28px; font-weight: 900; color: #fff; }
.mw-pricebox .val.sec { font-size: 18px; color: #e5e5e5; }
.mw-box h4 { margin: 8px 0 6px; font-size: 14px; font-weight: 900; color: var(--mw-black); text-transform: uppercase; }
.mw-box h4::before { content: ''; display: inline-block; width: 5px; height: 14px; background: var(--mw-red); margin-inline-end: 8px; vertical-align: -2px; }
.mw-box ul { margin: 0; padding-inline-start: 18px; font-size: 13.5px; line-height: 1.55; }
.mw-box table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mw-box td { padding: 5px 8px; border-bottom: 1px solid var(--mw-gray); }
.mw-box td:first-child { color: var(--mw-muted); width: 45%; }
.mw-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.mw-links a, .mw-links button { border: 2px solid var(--mw-black); background: #fff; color: var(--mw-black); padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; text-transform: uppercase; }
.mw-links a:hover, .mw-links button:hover { background: var(--mw-black); color: #fff; }
.mw-empty { text-align: center; padding: 40px; color: var(--mw-muted); border: 1px dashed var(--mw-line); }
.mw-loading { text-align: center; padding: 60px 20px; color: var(--mw-muted); font-size: 16px; }
.mw-footer { background: var(--mw-black); color: #9a9a9a; font-size: 12px; padding: 16px 28px; margin-top: auto; border-top: 6px solid var(--mw-red); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* --- ריבוע במסך בחירת המערכת --- */
.brand-card.mw-tile { background: var(--mw-red); border-color: var(--mw-red); position: relative; overflow: hidden; }
.brand-card.mw-tile::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: #000; }
.brand-card.mw-tile:hover { border-color: #000; }
.brand-card.mw-tile .bc-logo { height: 30px; }
.brand-card.mw-tile .bc-name { color: #fff; }
.brand-card.mw-tile .bc-sub { color: #ffd6da; }
.brand-card.mw-tile .bc-stats { color: #ffe9eb; }

@media (max-width: 900px) {
  #view-milwaukee.active { margin: -18px -18px 0; }
  .mw-top { padding: 0 14px; height: 64px; gap: 10px; }
  .mw-top .mw-wordmark { height: 22px; }
  .mw-top-btn { padding: 7px 10px; font-size: 12px; }
  .mw-strip { padding: 0 8px; top: 64px; }
  .mw-hero { grid-template-columns: 1fr; min-height: 0; }
  .mw-hero .pic { height: 240px; padding: 16px 40px; }
  .mw-hero .txt { padding: 20px 22px 40px; }
  .mw-hero h2 { font-size: 26px; }
  .mw-band { gap: 22px; }
  .mw-tools, .mw-content, .mw-substrip { padding-inline: 14px; }
  .mw-modal { grid-template-columns: 1fr; }
  .mw-gallery { padding: 18px; border-inline-start: 0; border-bottom: 1px solid var(--mw-gray); }
  .mw-info { padding: 18px; }
  .mw-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
  .mw-name { font-size: 13.5px; }
  .mw-price b { font-size: 17px; }
  .mw-count { margin-inline-start: 0; width: 100%; }
}
