/* ==========================================================================
   Műszaki Diszkont – Black kampány (front)
   Témák: .mdbk--bn (Black November), .mdbk--bf (Black Friday), .mdbk--cw (Cyber Week)
   ========================================================================== */

.mdbk, .mdbk * { box-sizing: border-box; }
.mdbk { --mdbk-display: 'Archivo', 'Arial Narrow', Impact, sans-serif; --mdbk-text: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif; }

/* ---------- Témák (színek) ---------- */
.mdbk--bn {
  --mdbk-bg: #0A0A0A; --mdbk-bg-image: none; --mdbk-bg-size: auto;
  --mdbk-fg: #FFFFFF; --mdbk-fg-soft: #D6D6D6;
  --mdbk-accent: #FF6A00; --mdbk-accent-fg: #0A0A0A;
  --mdbk-title: #FFFFFF; --mdbk-dot: #FF6A00;
  --mdbk-badge-bg: #FF6A00; --mdbk-badge-fg: #0A0A0A;
  --mdbk-btn-bg: #FF6A00; --mdbk-btn-fg: #0A0A0A;
  --mdbk-btn-m-bg: #0A0A0A; --mdbk-btn-m-fg: #FFFFFF;
  --mdbk-circle: #FF6A00; --mdbk-circle-fg: #0A0A0A; --mdbk-img-border: #0A0A0A;
  --mdbk-border: #FF6A00;
  --mdbk-card-bg: #181818; --mdbk-card-fg: #FFFFFF;
  --mdbk-pct-bg: #FF6A00; --mdbk-pct-fg: #0A0A0A;
  --mdbk-so-bg: #0A0A0A; --mdbk-so-fg: #FFFFFF;
  --mdbk-pill-bg: #0A0A0A; --mdbk-pill-fg: #FF8A33;
  --mdbk-was: #B5B5B5; --mdbk-price: #FF6A00; --mdbk-price-so: #8E8E8E;
  --mdbk-logo-pill-bg: #FF6A00; --mdbk-logo-pill-fg: #0A0A0A;
}
.mdbk--bf {
  --mdbk-bg: #FFD400; --mdbk-bg-image: none; --mdbk-bg-size: auto;
  --mdbk-fg: #0A0A0A; --mdbk-fg-soft: #0A0A0A;
  --mdbk-accent: #0A0A0A; --mdbk-accent-fg: #FFD400;
  --mdbk-title: #0A0A0A; --mdbk-dot: currentColor;
  --mdbk-badge-bg: #0A0A0A; --mdbk-badge-fg: #FFD400;
  --mdbk-btn-bg: #0A0A0A; --mdbk-btn-fg: #FFD400;
  --mdbk-btn-m-bg: #FFD400; --mdbk-btn-m-fg: #0A0A0A;
  --mdbk-circle: #0A0A0A; --mdbk-circle-fg: #FFD400; --mdbk-img-border: #FFD400;
  --mdbk-border: #0A0A0A;
  --mdbk-card-bg: #0A0A0A; --mdbk-card-fg: #FFFFFF;
  --mdbk-pct-bg: #FFD400; --mdbk-pct-fg: #0A0A0A;
  --mdbk-so-bg: #0A0A0A; --mdbk-so-fg: #FFD400;
  --mdbk-pill-bg: #FFD400; --mdbk-pill-fg: #0A0A0A;
  --mdbk-was: #B5B5B5; --mdbk-price: #FFD400; --mdbk-price-so: #8E8E8E;
  --mdbk-logo-pill-bg: #0A0A0A; --mdbk-logo-pill-fg: #FFD400;
}
.mdbk--cw {
  --mdbk-bg: #060B16; --mdbk-bg-image: radial-gradient(#1C3A55 2px, transparent 2px); --mdbk-bg-size: 28px 28px;
  --mdbk-fg: #FFFFFF; --mdbk-fg-soft: #E4EEF5;
  --mdbk-accent: #FF6A00; --mdbk-accent-fg: #060B16;
  --mdbk-title: #00E5FF; --mdbk-dot: #FF6A00;
  --mdbk-badge-bg: #FF6A00; --mdbk-badge-fg: #060B16;
  --mdbk-btn-bg: #FF6A00; --mdbk-btn-fg: #060B16;
  --mdbk-btn-m-bg: #060B16; --mdbk-btn-m-fg: #FFFFFF;
  --mdbk-circle: #00E5FF; --mdbk-circle-fg: #060B16; --mdbk-img-border: #060B16;
  --mdbk-border: #00E5FF;
  --mdbk-card-bg: #0E1A2B; --mdbk-card-fg: #FFFFFF;
  --mdbk-pct-bg: #FF6A00; --mdbk-pct-fg: #060B16;
  --mdbk-so-bg: #060B16; --mdbk-so-fg: #00E5FF;
  --mdbk-pill-bg: #060B16; --mdbk-pill-fg: #00E5FF;
  --mdbk-was: #B7C4D1; --mdbk-price: #00E5FF; --mdbk-price-so: #8FA0B0;
  --mdbk-logo-pill-bg: #00E5FF; --mdbk-logo-pill-fg: #060B16;
}

.mdbk .mdbk-dot { color: var(--mdbk-dot); }
.mdbk-notice { padding: 12px 16px; background: #fff3cd; border: 1px solid #ffe69c; color: #664d03; border-radius: 6px; font: 14px/1.4 system-ui, sans-serif; }

/* Közös gomb */
.mdbk .mdbk-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 34px; border-radius: 28px;
  background: var(--mdbk-btn-bg); color: var(--mdbk-btn-fg);
  font-family: var(--mdbk-text); font-weight: 700; font-size: 19px; line-height: 1;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, filter .15s ease;
}
.mdbk .mdbk-btn:hover { color: var(--mdbk-btn-fg); text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }

/* ==========================================================================
   SLIDER
   ========================================================================== */
.mdbk-slider { position: relative; width: 100%; overflow: hidden; background: var(--mdbk-bg); background-image: var(--mdbk-bg-image); background-size: var(--mdbk-bg-size); }
.mdbk-slider__track { position: relative; width: 100%; }
.mdbk-slider .mdbk-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.mdbk-slider .mdbk-slide.is-active { position: relative; opacity: 1; visibility: visible; transition: opacity .6s ease; }

.mdbk-hero {
  position: relative; width: 100%; overflow: hidden;
  container-type: inline-size;
  background: var(--mdbk-bg); background-image: var(--mdbk-bg-image); background-size: var(--mdbk-bg-size);
  color: var(--mdbk-fg); font-family: var(--mdbk-display);
}
.mdbk-hero--desktop { aspect-ratio: 2 / 1; }
.mdbk-hero--mobile { aspect-ratio: 39 / 64; display: none; }
@media (max-width: 767px) {
  .mdbk-hero--desktop { display: none; }
  .mdbk-hero--mobile { display: block; }
}

.mdbk-hero__text { position: absolute; display: flex; flex-direction: column; align-items: flex-start; z-index: 2; }
.mdbk-hero__badge {
  display: inline-block; background: var(--mdbk-badge-bg); color: var(--mdbk-badge-fg);
  font-family: var(--mdbk-display); font-weight: 900; font-stretch: 75%; letter-spacing: .08em; line-height: 1.2; white-space: nowrap;
}
.mdbk-hero__title { margin: 0; color: var(--mdbk-title); font-family: var(--mdbk-display); font-weight: 900; font-stretch: 62%; letter-spacing: -.01em; text-transform: uppercase; }
.mdbk-hero__tagline { margin: 0; font-family: var(--mdbk-text); font-weight: 500; color: var(--mdbk-fg); }
.mdbk-hero__circle { position: absolute; border-radius: 50%; background: var(--mdbk-circle); z-index: 1; }
.mdbk-hero__img { position: absolute; z-index: 2; display: block; overflow: hidden; border-style: solid; border-color: var(--mdbk-img-border); }
.mdbk-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mdbk-hero__spot { position: absolute; z-index: 2; display: flex; flex-direction: column; color: var(--mdbk-circle-fg); font-family: var(--mdbk-display); font-weight: 900; font-stretch: 70%; }
.mdbk-hero__spot-label { letter-spacing: .04em; line-height: 1.1; }
.mdbk-hero__spot-price { line-height: 1; white-space: nowrap; }

/* --- Asztali méretek: 1cqw = 1600px / 100 --- */
.mdbk-hero--desktop .mdbk-hero__text { left: 6cqw; top: 6.875cqw; gap: 1.625cqw; }
.mdbk-hero--desktop .mdbk-hero__badge { padding: .5cqw 1.375cqw; border-radius: 1.5cqw; font-size: 1.75cqw; }
.mdbk-hero--desktop .mdbk-hero__title { font-size: 13.375cqw; line-height: .88; }
.mdbk-slide.is-long .mdbk-hero--desktop .mdbk-hero__title { font-size: 11cqw; }
.mdbk-hero--desktop .mdbk-hero__tagline { font-size: 2.25cqw; }
.mdbk-hero--desktop .mdbk-btn { height: 4.25cqw; padding: 0 2.5cqw; border-radius: 2.125cqw; font-size: 1.5cqw; }
.mdbk-hero--desktop .mdbk-hero__circle { left: 62.5cqw; top: 3.75cqw; width: 47.5cqw; height: 47.5cqw; }
.mdbk-hero--desktop .mdbk-hero__img { left: 61.25cqw; top: 8.125cqw; width: 32.5cqw; height: 20cqw; border-width: .5cqw; }
.mdbk-hero--desktop .mdbk-hero__spot { left: 66.875cqw; top: 30.625cqw; gap: .125cqw; }
.mdbk-hero--desktop .mdbk-hero__spot-label { font-size: 3.5cqw; }
.mdbk-hero--desktop .mdbk-hero__spot-price { font-size: 5.75cqw; }

/* --- Mobil méretek: 1cqw = 390px / 100 --- */
.mdbk-hero--mobile .mdbk-hero__text { left: 6.154cqw; top: 6.154cqw; gap: 3.077cqw; }
.mdbk-hero--mobile .mdbk-hero__badge { padding: 1.282cqw 3.59cqw; border-radius: 4.1cqw; font-size: 4.359cqw; }
.mdbk-hero--mobile .mdbk-hero__title { font-size: 19.49cqw; line-height: .9; }
.mdbk-slide.is-long .mdbk-hero--mobile .mdbk-hero__title { font-size: 18.46cqw; }
.mdbk-hero--mobile .mdbk-hero__tagline { font-size: 5.128cqw; }
.mdbk-hero--mobile .mdbk-hero__circle { left: -8.974cqw; top: 69.23cqw; width: 117.95cqw; height: 117.95cqw; }
.mdbk-hero--mobile .mdbk-hero__img { left: 19.23cqw; top: 59.49cqw; width: 61.54cqw; height: 37.95cqw; border-width: 1.026cqw; }
.mdbk-hero--mobile .mdbk-hero__spot { left: 0; right: 0; top: 102.56cqw; align-items: center; text-align: center; }
.mdbk-hero--mobile .mdbk-hero__spot-label { font-size: 7.18cqw; }
.mdbk-hero--mobile .mdbk-hero__spot-price { font-size: 15.9cqw; }
.mdbk-hero--mobile .mdbk-btn { height: 12.31cqw; margin-top: 4.1cqw; padding: 0 6.667cqw; border-radius: 6.154cqw; font-size: 4.359cqw; background: var(--mdbk-btn-m-bg); color: var(--mdbk-btn-m-fg); }

/* Slider vezérlők */
.mdbk-slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.18); color: var(--mdbk-fg); font-size: 28px; line-height: 1;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
  transition: background .15s;
}
.mdbk-slider__nav:hover { background: rgba(255,255,255,.35); }
.mdbk-slider__nav--prev { left: 12px; }
.mdbk-slider__nav--next { right: 12px; }
.mdbk-slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.mdbk-slider__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.4); }
.mdbk-slider__dots button.is-active { background: var(--mdbk-accent); }
.mdbk--bf .mdbk-slider__dots button { background: rgba(0,0,0,.25); }
.mdbk--bf .mdbk-slider__dots button.is-active { background: #0A0A0A; }
@media (max-width: 767px) { .mdbk-slider__nav { display: none; } }

/* ==========================================================================
   TERMÉKBOX
   ========================================================================== */
.mdbk-box {
  background: var(--mdbk-bg); background-image: var(--mdbk-bg-image); background-size: var(--mdbk-bg-size);
  border: 6px solid var(--mdbk-border);
  padding: 44px 44px 40px; font-family: var(--mdbk-text); color: var(--mdbk-fg);
  display: flex; flex-direction: column; gap: 32px;
}
.mdbk-box__head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.mdbk-box__title { margin: 0; color: var(--mdbk-title); font-family: var(--mdbk-display); font-weight: 900; font-stretch: 70%; font-size: clamp(34px, 4.8vw, 68px); line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.mdbk-box__sub { margin: 0; color: var(--mdbk-fg-soft); font-size: 18px; }
.mdbk-box__foot { display: flex; justify-content: center; margin-top: auto; }
@media (max-width: 767px) {
  .mdbk-box { padding: 24px 16px 24px; gap: 22px; border-width: 4px; }
  .mdbk-box__sub { font-size: 15px; }
}

/* ---------- Rács ---------- */
.mdbk-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mdbk-grid--1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.mdbk-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mdbk-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mdbk-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mdbk-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .mdbk-grid--4, .mdbk-grid--5, .mdbk-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .mdbk-grid, .mdbk-grid--3, .mdbk-grid--4, .mdbk-grid--5, .mdbk-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ---------- Termékkártya ---------- */
.mdbk .mdbk-card {
  display: flex; flex-direction: column; border-radius: 10px; overflow: hidden;
  background: var(--mdbk-card-bg); color: var(--mdbk-card-fg); text-decoration: none;
  font-family: var(--mdbk-text); transition: transform .15s ease, box-shadow .15s ease;
}
.mdbk .mdbk-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.35); color: var(--mdbk-card-fg); text-decoration: none; }
.mdbk-card__media { position: relative; height: 196px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; padding: 10px; }
.mdbk-card__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.mdbk-card.is-soldout .mdbk-card__media img { filter: grayscale(1); opacity: .45; }
.mdbk-card__pct {
  position: absolute; top: 10px; right: 10px; width: 62px; height: 62px; border-radius: 50%;
  background: var(--mdbk-pct-bg); color: var(--mdbk-pct-fg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mdbk-display); font-weight: 900; font-stretch: 75%; font-size: 24px; line-height: 1;
}
.mdbk-card__soldout {
  position: absolute; left: 0; right: 0; top: 74px; height: 48px;
  background: var(--mdbk-so-bg); color: var(--mdbk-so-fg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mdbk-display); font-weight: 900; font-stretch: 75%; font-size: 28px; letter-spacing: .1em; line-height: 1;
}
.mdbk-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.mdbk-card__pill {
  align-self: flex-start; padding: 3px 9px 2px; border-radius: 10px;
  background: var(--mdbk-pill-bg); color: var(--mdbk-pill-fg);
  font-family: var(--mdbk-display); font-weight: 800; font-stretch: 75%; font-size: 13px; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.mdbk-card__name { font-size: 15px; font-weight: 500; line-height: 1.3; max-height: 60px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.mdbk-card__was { color: var(--mdbk-was); font-size: 12px; line-height: 1.3; }
.mdbk-card__was s, .mdbk-card__was .amount { color: inherit; }
.mdbk-card__price { margin-top: auto; color: var(--mdbk-price); font-family: var(--mdbk-display); font-weight: 900; font-stretch: 80%; font-size: 30px; line-height: 1; }
.mdbk-card__price .amount, .mdbk-card__price bdi { color: inherit; font: inherit; }
.mdbk-card__price del { display: none; }
.mdbk-card__price ins { text-decoration: none; }
.mdbk-card.is-soldout .mdbk-card__price { color: var(--mdbk-price-so); }
@media (max-width: 767px) {
  .mdbk-card__media { height: 150px; }
  .mdbk-card__pct { width: 48px; height: 48px; font-size: 18px; }
  .mdbk-card__soldout { top: 52px; height: 40px; font-size: 20px; }
  .mdbk-card__body { padding: 12px 12px 14px; gap: 6px; }
  .mdbk-card__name { font-size: 13px; max-height: 51px; }
  .mdbk-card__price { font-size: 22px; }
  .mdbk-card__pill { font-size: 11px; }
}

/* ==========================================================================
   KATEGÓRIA ALOLDAL
   ========================================================================== */
.mdbk-cat { font-family: var(--mdbk-text); }
.mdbk-cat__head {
  background: var(--mdbk-bg); background-image: var(--mdbk-bg-image); background-size: var(--mdbk-bg-size);
  color: var(--mdbk-fg); padding: 56px 32px; margin-bottom: 28px;
}
.mdbk-cat__head-inner { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.mdbk-cat__head .mdbk-hero__badge { padding: 7px 18px; border-radius: 18px; font-size: 18px; }
.mdbk-cat__title { margin: 0; color: var(--mdbk-title); font-family: var(--mdbk-display); font-weight: 900; font-stretch: 65%; font-size: clamp(40px, 6.5vw, 92px); line-height: .9; text-transform: uppercase; }
.mdbk-cat__sub { margin: 0; font-size: 20px; color: var(--mdbk-fg-soft); }
.mdbk-cat .mdbk-grid { max-width: 1400px; margin: 0 auto; }
.mdbk-cat .mdbk-card { background: var(--mdbk-card-bg); }
.mdbk-cat__empty { text-align: center; padding: 40px 0; }
.mdbk-pagination { margin: 32px 0 0; display: flex; justify-content: center; }
.mdbk-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.mdbk-pagination a, .mdbk-pagination span { display: inline-flex; min-width: 40px; height: 40px; padding: 0 12px; align-items: center; justify-content: center; border-radius: 20px; background: var(--mdbk-card-bg); color: var(--mdbk-card-fg); text-decoration: none; font-weight: 700; }
.mdbk-pagination .current { background: var(--mdbk-accent); color: var(--mdbk-accent-fg); }
@media (max-width: 767px) { .mdbk-cat__head { padding: 32px 16px; margin-bottom: 16px; } .mdbk-cat__sub { font-size: 16px; } }

/* Kategória – záró gomb */
.mdbk-cat:not(.mdbk-box) .mdbk-cat__foot { margin-top: 32px; }

/* Kategória – dobozos stílus (style="box") */
.mdbk-cat--box.mdbk-box { max-width: 1400px; margin: 0 auto; }
.mdbk-cat--box .mdbk-grid { max-width: none; }
.mdbk-cat--box .mdbk-box__title { font-size: clamp(34px, 5.2vw, 76px); }
.mdbk-cat--box .mdbk-pagination { margin-top: 8px; }
.mdbk-cat--box .mdbk-cat__empty { color: var(--mdbk-fg); }

/* ==========================================================================
   LOGÓ + PILL
   ========================================================================== */
.mdbk-logo { display: inline-flex; flex-direction: column; gap: 6px; width: var(--mdbk-logo-w, 220px); max-width: 100%; text-decoration: none; }
.mdbk-logo__img img { width: 100%; height: auto; display: block; }
.mdbk-logo__pill {
  display: flex; align-items: center; justify-content: center; height: 30px; border-radius: 15px; margin: 0 2px;
  background: var(--mdbk-logo-pill-bg); color: var(--mdbk-logo-pill-fg);
  font-family: var(--mdbk-display); font-weight: 900; font-stretch: 75%; font-size: 20px; letter-spacing: .11em; line-height: 1; white-space: nowrap; text-transform: uppercase;
}
