/* ============================================================
   nabijpuszke.pl — Oferta warsztatowa (oferta.php)
   Dołączane PO style.css — tylko elementy specyficzne oferty.
   ============================================================ */

/* ── hero oferty (ciemny pas, jak hero sklepu, niższy) ── */
.of-hero { background: var(--grafit); color: var(--biel); position: relative; }
.of-hero__inner {
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center;
  gap: 40px; padding: 56px 20px 60px;
}
.of-hero h1 {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(38px, 6vw, 62px); line-height: .98; letter-spacing: .01em;
  margin: 10px 0 18px;
}
.of-hero h1 em { font-style: normal; color: var(--zolty); }
.of-hero p { color: var(--aluminium); font-size: 17px; max-width: 54ch; }
.of-hero__stats { display: grid; gap: 14px; justify-items: start; }
.of-hero__stats div {
  display: flex; align-items: baseline; gap: 12px;
  border-left: 3px solid var(--zolty); padding-left: 14px;
}
.of-hero__stats b { font-family: var(--f-mono); font-size: 28px; color: var(--zolty); }
.of-hero__stats span { color: var(--aluminium); font-size: 14px; }
@media (max-width: 860px) {
  .of-hero__inner { grid-template-columns: 1fr; padding: 40px 20px 44px; }
  .of-hero__stats { grid-auto-flow: column; gap: 22px; }
  .of-hero__stats b { font-size: 22px; }
}

/* ── toolbar: szukajka + pasek działów ── */
.of-toolbar { margin-bottom: 30px; }
.of-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--biel); border: 1.5px solid var(--alu-jasne); border-radius: var(--radius);
  padding: 8px 8px 8px 16px; max-width: 560px; margin-bottom: 16px;
}
.of-search svg { width: 19px; height: 19px; color: var(--grafit-3); flex: none; }
.of-search input {
  flex: 1; border: 0; outline: 0; font: inherit; background: transparent; min-width: 0;
}
.of-chips {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.of-chips a {
  flex: none; text-decoration: none; font-size: 13.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--alu-jasne);
  background: var(--biel); color: var(--grafit); white-space: nowrap;
}
.of-chips a:hover { border-color: var(--grafit); }
.of-chips a.is-active { background: var(--grafit); color: var(--biel); border-color: var(--grafit); }

.of-chips a b {
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500;
  color: var(--grafit-3); margin-left: 3px;
}
.of-chips a.is-active b { color: var(--zolty); }

/* ── stronicowanie ── */
.of-pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 6px 0 22px;
}
.of-grid + .of-pager { margin: 26px 0 6px; }
.of-pager__info { font-size: 13.5px; color: var(--grafit-3); }
.of-pager__info b { font-family: var(--f-mono); color: var(--grafit); font-weight: 600; }
.of-pager__info a { font-weight: 600; color: var(--grafit); }
.of-pages { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.of-pages a {
  text-decoration: none; font-size: 13.5px; font-weight: 600;
  min-width: 38px; text-align: center; padding: 8px 12px;
  border: 1.5px solid var(--alu-jasne); border-radius: 8px; background: var(--biel);
}
.of-pages a:hover { border-color: var(--grafit); }
.of-pages a.is-active { background: var(--grafit); color: var(--biel); border-color: var(--grafit); }
.of-pages__gap { color: var(--aluminium); padding: 0 2px; }

/* ── blok „wycena indywidualna" ── */
.of-ask { margin-top: 44px; }
.of-ask h2 {
  font-family: var(--f-display); text-transform: uppercase; font-weight: 700;
  font-size: 22px; letter-spacing: .02em; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.of-ask h2::before { content: ""; width: 22px; height: 3px; background: var(--zolty); flex: none; }
.of-ask__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .of-ask__row { grid-template-columns: 1fr; } }
.of-ask__item {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: var(--biel); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 18px 14px 14px; transition: transform .15s, box-shadow .15s;
}
.of-ask__item:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(26,28,32,.1), 0 18px 38px rgba(26,28,32,.1); }
.of-ask__item img { width: 92px; height: 72px; object-fit: contain; flex: none; }
.of-ask__item b { display: block; font-size: 15px; line-height: 1.25; margin-bottom: 4px; }
.of-ask__item span { font-size: 13px; font-weight: 600; color: #8a6d00; }

/* ── kafle działów ── */
.of-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1020px) { .of-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .of-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .of-tiles { grid-template-columns: 1fr; } }
.of-tile {
  background: var(--biel); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.of-tile:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(26,28,32,.1), 0 18px 38px rgba(26,28,32,.1); }
.of-tile__media { height: 150px; background: var(--biel); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--stal); }
.of-tile__media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.of-tile__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.of-tile__body h2 {
  font-family: var(--f-display); text-transform: uppercase; font-weight: 700;
  font-size: 19px; line-height: 1.1; letter-spacing: .015em;
}
.of-tile__body span { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--grafit-3); }
.of-tile:hover .of-tile__body span { color: var(--grafit); }
.of-tile--ask .of-tile__body h2 { color: var(--grafit); }
.of-tile--ask .of-tile__body span { color: #8a6d00; }

/* ── karty produktów oferty ── */
.of-card__link { text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.of-card__media { background: var(--biel); border-bottom: 1px solid var(--stal); position: relative; }
/* zdjęcie wyjęte z układu — kadr trzyma proporcję 4:3 niezależnie od tego,
   czy w środku jest zdjęcie HD, czy mała miniatura z cennika */
.of-card__media img {
  position: absolute; inset: 0; margin: auto;
  width: auto !important; height: auto !important;
  max-width: calc(100% - 20px); max-height: calc(100% - 20px);
  object-fit: contain !important;
}
/* miniatura z cennika (ok. 140 px) — nie rozciągamy jej na siłę,
   lepiej pokazać mniejszą i ostrą niż dużą i rozmytą */
.of-card__media.is-thumb img { max-width: 62%; max-height: 74%; }
.of-card__name { font-size: 15.5px; line-height: 1.3; }
.of-card__name a { text-decoration: none; }
.of-card__short { font-size: 13.5px; color: var(--grafit-3); }
.of-card__foot {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--alu-jasne);
  display: flex; flex-direction: column; gap: 2px;
}
.of-price { font-family: var(--f-mono); font-weight: 600; font-size: 17px; }
.of-price small { font-family: var(--f-body); font-weight: 500; font-size: 12px; color: var(--grafit-3); }
.of-price--ask { font-size: 14.5px; color: #8a6d00; }
.of-price-net { font-size: 12px; color: var(--grafit-3); }

/* ── nagłówki podkategorii ── */
.of-subhead {
  font-family: var(--f-display); text-transform: uppercase; font-weight: 700;
  font-size: 22px; line-height: 1.12; letter-spacing: .02em; margin: 34px 0 16px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.of-subhead::before { align-self: center; }
.of-subhead::before { content: ""; width: 22px; height: 3px; background: var(--zolty); flex: none; }
.of-subhead small {
  font-family: var(--f-mono); font-size: 12.5px; color: var(--grafit-3); font-weight: 500;
}
.of-grid { margin-bottom: 10px; }
.of-grid + .of-subhead { margin-top: 40px; }

/* ── okruszki ── */
.of-crumbs { font-size: 13.5px; color: var(--grafit-3); margin-bottom: 18px; }
.of-crumbs a { text-decoration: none; font-weight: 600; }
.of-crumbs a:hover { color: var(--grafit); text-decoration: underline; }
.of-crumbs span { margin: 0 6px; color: var(--aluminium); }
.of-section { padding-top: 40px; }

/* ── karta produktu (szczegóły) ── */
.of-detail {
  display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 40px;
  background: var(--biel); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px; margin-bottom: 44px;
}
@media (max-width: 860px) { .of-detail { grid-template-columns: 1fr; padding: 22px; gap: 24px; } }
.of-detail__media {
  display: flex; align-items: center; justify-content: center;
  background: var(--biel); border: 1px solid var(--stal); border-radius: var(--radius);
  min-height: 320px; padding: 18px;
}
.of-detail__media img { max-height: 420px; object-fit: contain; }
.of-detail__media.is-thumb img { max-height: 210px; max-width: 60%; }
.of-detail__media .card__icon { width: 110px; height: 110px; color: var(--aluminium); }
.of-detail__info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.of-detail__info h1 {
  font-family: var(--f-display); text-transform: uppercase; font-weight: 700;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.08; letter-spacing: .01em;
}
.of-detail__short { color: var(--grafit-3); font-size: 15.5px; max-width: 62ch; }

.of-pricebox {
  background: var(--stal); border-radius: var(--radius); padding: 16px 18px;
  border-left: 4px solid var(--zolty);
}
.of-pricebox__main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.of-pricebox__main b { font-family: var(--f-mono); font-size: 28px; }
.of-pricebox__main span { font-size: 13px; color: var(--grafit-3); }
.of-pricebox__main--ask b { font-size: 21px; color: #8a6d00; }
.of-pricebox__net { font-size: 13px; color: var(--grafit-3); margin-top: 4px; }
.of-pricebox__note { font-size: 13px; font-weight: 600; margin-top: 8px; color: #8a6d00; }

.of-params { border-collapse: collapse; font-size: 14px; max-width: 460px; }
.of-params th, .of-params td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--stal); }
.of-params th { color: var(--grafit-3); font-weight: 500; padding-right: 22px; white-space: nowrap; }
.of-params td { font-weight: 600; font-family: var(--f-mono); font-size: 13.5px; }

.of-detail__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.of-detail__hint { font-size: 13px; color: var(--grafit-3); max-width: 56ch; }
.of-related-head { margin-top: 8px; }

/* ── stopka prawna ── */
.of-disclaimer {
  margin-top: 36px; font-size: 12.5px; color: var(--grafit-3);
  border-top: 1px solid var(--alu-jasne); padding-top: 14px; max-width: 88ch;
}
