/* Theme tokens (values measured from the original) */
:root {
  --red: #df1100;
  --red-dark: #bd0e00;
  --brand: #c42a63;
  --brand-dark: #a21f50;
  --price: #20242b;
  --text: #4a4a4a;
  --body: #212529;
  --body-75: #212529bf;
  --body-50: #21252980;
  --green: #11b009;
  --muted-blue: #8f9eaf;
  --bg: #ffffff;
  --bg-tertiary: #f8f9fa;
  --bg-secondary: #e9ecef;
  --secondary: #6c757d;
  --border: #dee2e6;
  --input-border: #dee2e6;
  --check-border: #c8c8c8;
  --link-blue: #337ab7;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);
  --font: Roboto, sans-serif;
  --font-alt: "Open Sans", sans-serif;
  --font-logo: Rubik, sans-serif;
  --header-bg: #ffffff;
  --logo: #000000;
  color-scheme: light;
}

[data-bs-theme="dark"] {
  --text: #c9ced4;
  --body: #dee2e6;
  --body-75: #dee2e6bf;
  --body-50: #dee2e680;
  --bg: #212529;
  --bg-tertiary: #2b3035;
  --bg-secondary: #343a40;
  --border: #495057;
  --input-border: #495057;
  --check-border: #6c757d;
  --header-bg: #212529;
  --logo: #ffffff;
  --link-blue: #6ea8fe;
  --price: #f1f3f5;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, h5, h6 { margin: 0; font-weight: 500; line-height: 1.2; }
p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex-shrink: 0; }
.d-flex { display: flex; }
.center { text-align: center; }

.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- header */
.page-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 30;
}
.navbar {
  display: grid;
  grid-template-columns: 1fr 600px 1fr;
  column-gap: 40px;
  align-items: center;
  height: 80px;
  padding: 0 40px;
  max-width: 1600px;
  margin: 0 auto;
}
.navbar-brand {
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: 30px;
  line-height: 43px;
  color: var(--logo);
  white-space: nowrap;
  justify-self: start;
  letter-spacing: 0;
}
.navbar-brand span { color: var(--brand); }

#search-bar { position: relative; width: 100%; }
.input-group { display: flex; }
#search-bar .form-control {
  flex: 1;
  height: 44px;
  border-radius: 0;
  border: 1px solid var(--input-border);
  border-right: 0;
  padding: 6px 12px;
  font-size: 16px;
  min-width: 0;
}
.btn-search {
  width: 42px;
  height: 44px;
  border: 0;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 0;
}
.btn-search:hover { background: var(--brand-dark); }
.suggestions {
  position: absolute;
  left: 0; right: 42px; top: 44px;
  margin: 0; padding: 0;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  z-index: 60;
}
.suggestions a { display: block; padding: 8px 12px; font-size: 14px; color: var(--body); }
.suggestions a:hover, .suggestions a.active { background: var(--bg-tertiary); }
.suggestions small { color: var(--body-50); }

.header-actions { justify-self: end; display: flex; align-items: center; }
.header-nav { display: flex; align-items: center; gap: 24px; margin-right: 28px; }
.header-nav-link { font-size: 13px; line-height: 20px; text-transform: uppercase; color: var(--body); }
.header-nav-link:hover { color: var(--brand); }
.header-icons { display: flex; align-items: center; }
.theme-toggle-icon {
  width: 44px; height: 44px;
  border: 0; background: transparent; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--body);
  margin-right: 12px;
}
.i-sun { display: none; }
[data-bs-theme="dark"] .i-sun { display: inline-block; }
[data-bs-theme="dark"] .i-moon { display: none; }
.user-link { display: flex; align-items: center; font-size: 24px; width: 24px; height: 24px; color: var(--body); }
.burger-dropdown { display: none; }
.burger-link { display: flex; align-items: center; width: 28px; height: 35px; font-size: 28px; color: var(--body); }

/* dropdowns */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 50;
  min-width: 160px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, .175);
  border-radius: var(--radius);
  text-align: left;
}
[data-bs-theme="dark"] .dropdown-menu { border-color: var(--border); }
.dropdown-menu.show { display: block; }
.dropdown-menu-end { left: auto; right: 0; }
.dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 4px 16px;
  border: 0;
  background: transparent;
  color: var(--body);
  font-size: 16px;
  white-space: nowrap;
  text-align: left;
}
.dropdown-item:hover { background: var(--bg-secondary); }
.dropdown-divider { height: 0; margin: 8px 0; border: 0; border-top: 1px solid rgba(0, 0, 0, .175); }
.user-dropdown .dropdown-menu, .burger-dropdown .dropdown-menu { top: 100%; padding: 8px 0; min-width: 158px; }
.user-dropdown .dropdown-item, .burger-dropdown .dropdown-item {
  font-family: var(--font-alt); font-size: 13px; line-height: 20px; font-weight: 700; color: var(--text); text-transform: uppercase; padding: 10.5px 16px; gap: 12px;
}
.user-dropdown .dropdown-divider, .burger-dropdown .dropdown-divider { margin: 6.5px 0; }
.user-dropdown .dropdown-item .ic, .burger-dropdown .dropdown-item .ic { font-size: 15px; width: 16px; stroke-width: 1.3; }
.burger-dropdown .dropdown-menu { min-width: 191px; right: calc(100% + 2px); top: -1px; }

/* ---------------------------------------------------------------- forms */
.form-control, .form-select {
  display: block;
  width: 100%;
  height: 38px;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  background: var(--bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.form-control::placeholder { color: var(--body-75); opacity: 1; }
.form-control:focus, .form-select:focus { border-color: #ef8880; box-shadow: 0 0 0 .25rem rgba(223, 17, 0, .15); }
.form-control.is-invalid { border-color: #dc3545; }
.invalid-feedback { display: none; font-size: 14px; color: #dc3545; margin-top: 4px; }
.is-invalid ~ .invalid-feedback, .invalid-feedback.show { display: block; }
.form-label { display: inline-block; font-size: 14px; margin-bottom: 8px; color: var(--body); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--body);
  white-space: nowrap;
}
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-primary:disabled { opacity: .65; }
.btn-secondary { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #5c636a; }
.btn-block { width: 100%; margin-top: 16px; }

/* custom checkbox */
.icheck { position: relative; display: flex; align-items: center; min-height: 22px; }
.icheck input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; left: 0; cursor: pointer; }
.icheck label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding-left: 29px;
  font-size: 14px;
  line-height: 22px;
  color: var(--body);
  cursor: pointer;
  margin: 0;
}
.icheck label::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  border: 1px solid var(--check-border);
  border-radius: 0;
  background: var(--bg);
}
.icheck label::after {
  content: "";
  position: absolute;
  left: 8px; top: 4px;
  width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
}
.icheck input:checked + label::before { background: var(--brand); border-color: var(--brand); }
.icheck input:checked + label::after { display: block; }
.icheck input:focus-visible + label::before { box-shadow: 0 0 0 3px rgba(223, 17, 0, .25); }

/* ---------------------------------------------------------------- home layout */
.main { flex: 1 0 auto; width: 100%; }
#main-content { max-width: 1320px; margin: 0 auto; padding: 60px 12px 166px; }
.main-row { display: flex; align-items: flex-start; }
#form-filters-container { width: 244px; flex: 0 0 244px; margin-right: 34px; }
.products-column { flex: 1 1 auto; min-width: 0; margin-right: -2px; }

/* sidebar */
.side-h2 { font-size: 21px; font-weight: 500; line-height: 25px; color: var(--body); }
#form-filters > h2.side-h2 { margin-bottom: 16px; }
#categories { margin-bottom: 60px; }
#categories a { display: block; font-size: 14px; line-height: 21px; padding: 5px 0; color: var(--body); }
#categories a:hover, #categories a.active { color: var(--brand); }
#categories a.active { font-weight: 500; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
#reset-filters {
  font-size: 13px; text-transform: uppercase; color: var(--muted-blue);
  text-decoration: underline; cursor: pointer; line-height: 20px;
}
#form-filters fieldset { margin-bottom: 24px; }
#form-filters fieldset.filters-head { margin-bottom: 16px; }
#form-filters h3 {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: 8px;
}
#filter-brand { margin-top: 34px; }
#form-filters #filter-brand { margin-bottom: 31px; }
#filter-brand h3 { margin-bottom: 0; }
#filter-brand .chev { margin-left: auto; display: flex; align-items: center; justify-content: center; width: 21px; height: 18px; font-size: 18px; color: var(--body); }
#filter-brand .chev .ic { transition: transform .2s; }
#filter-brand .chev.open .ic { transform: rotate(180deg); }
#collapse-filter-brand { padding-top: 12px; }
#collapse-filter-brand .form-control { margin-bottom: 10px; font-size: 14px; }
.brand-checkbox-container { max-height: 230px; overflow-y: auto; display: grid; gap: 8px; padding: 2px 0; }
.collapse { display: none; }
.collapse.show { display: block; }
.check-grid { display: grid; grid-auto-rows: 38px; align-items: center; }
.check-grid .icheck { height: 38px; }
.range { display: flex; align-items: center; }
.range .form-control { width: 112px; flex: 0 0 auto; }
.range span { flex: 1; text-align: center; font-size: 16px; }
.price-drop .form-control, .price-margin .form-control { width: 110px; }
.price-margin { margin-left: auto; }
#filter-lowest-price-hist .d-flex { align-items: center; }
.info-btn {
  border: 0; background: transparent; padding: 0; margin-left: 7px;
  display: inline-flex; font-size: 14px; color: var(--body); position: relative;
}
.popover {
  position: absolute;
  z-index: 70;
  max-width: 276px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  text-transform: none;
  font-weight: 400;
  color: var(--body);
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, .175);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}
.shop-row { gap: 4px; }
.shop-dropdown { flex: 0 0 160px; width: 160px; }
.form-select {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
}
.shop-menu { width: 260px; max-height: 340px; overflow-y: auto; padding: 4px 0; }
.shop-menu .dropdown-item { font-size: 14px; padding: 5px 16px; white-space: normal; }
.shop-menu .dropdown-item.active { background: var(--brand); color: #fff; }
.shop-menu .dropdown-item.sub { padding-left: 28px; font-size: 13px; }
.dropdown-header { display: block; padding: 8px 16px 4px; margin-top: 8px; font-size: 13px; color: var(--secondary); font-weight: 400; }
.shop-group { display: flex; align-items: center; }
.collapse-trigger { border: 0; background: transparent; padding: 4px 16px; color: var(--secondary); font-size: 14px; display: flex; }
.price-margin-shop { width: 80px; flex: 0 0 80px; }

/* toolbar */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 2px 16px;
}
.btn-white { background: var(--bg); border: 1px solid var(--border); color: var(--body); }
.sort-btn {
  width: 200px;
  height: 38px;
  justify-content: space-between;
  font-size: 14.4px;
  border-radius: 0;
  padding: 6px 12px;
}
.caret { width: 0; height: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 5px solid currentColor; margin-right: 2px; }
.sort-menu { width: 200px; padding: 8px 0; box-shadow: var(--shadow-sm); }
.sort-menu .dropdown-item { font-size: 14.4px; padding: 9.5px 20px; }
.sort-menu .dropdown-item.active { font-weight: 700; background: transparent; color: var(--body); }
.sort-menu .dropdown-item:hover { background: var(--bg-secondary); }
.toggles { display: flex; align-items: center; gap: 8px; }
.btn-desktop-toggle {
  height: 38px;
  font-size: 14.4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 6px 12px 6px 11px;
  gap: 7px;
  color: var(--body);
}
.btn-desktop-toggle .ic { font-size: 17px; color: var(--secondary); }
.btn-desktop-toggle.active, .btn-minimal.active { border-color: var(--brand); color: var(--brand); }
.btn-desktop-toggle.active .ic, .btn-minimal.active .ic { color: var(--brand); }
.mobile-toolbar { display: none; }
#price-context-info {
  text-align: right;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted-blue);
  margin: 10px 2px 25px;
}
#active-query {
  font-size: 14px;
  color: var(--text);
  margin: -6px 2px 16px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
#active-query button { border: 1px solid var(--border); background: var(--bg); border-radius: 14px; font-size: 13px; padding: 2px 10px; }

/* product grid */
.prow { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.pcol { width: 25%; padding: 0 10px; margin-bottom: 40px; }
.pcard { display: flex; flex-direction: column; height: 100%; text-align: center; color: var(--text); }
.price-change {
  display: flex;
  align-items: center;
  height: 20px;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  padding-left: 9px;
}
.price-change .ic { font-size: 14px; margin-right: 1px; }
.price-change.green { color: var(--green); }
.price-change.red { color: var(--red); }
.image-container { height: 160px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.image-container img { height: 160px; width: auto; max-width: 100%; object-fit: contain; }
.card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 16px 0 16px; }
.card-title { font-size: 16px; font-weight: 400; line-height: 1.2; color: var(--text); margin-bottom: 5px; }
.card-title strong { font-weight: 700; }
.card-subtitle { font-size: 12px; font-weight: 400; line-height: 1.2; color: var(--text); margin-bottom: 8px; }
.price { margin-top: auto; padding-top: 11px; font-size: 14px; line-height: 21px; color: var(--text); }
.price b { font-size: 16px; font-weight: 700; color: var(--price); }
.price .zl { font-size: 14px; }
.pcard:hover .card-title strong { color: var(--brand); }
.empty-grid { padding: 40px 0 60px; text-align: center; color: var(--text); width: 100%; }
.empty-grid button { margin-top: 12px; }

/* pagination */
.pager { margin-top: 16px; }
.pagination { display: flex; justify-content: center; list-style: none; padding: 0; margin: 0; }
.page-link {
  display: block;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  margin-left: -1px;
}
.page-item:first-child .page-link { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.page-item:last-child .page-link { border-radius: 0 var(--radius) var(--radius) 0; }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; position: relative; z-index: 1; }
.page-item.disabled .page-link { background: var(--bg-secondary); color: var(--body-50); pointer-events: none; }
.page-link:hover { background: var(--bg-secondary); }
.page-item.ellipsis .page-link { pointer-events: none; }

/* offcanvas */
.offcanvas-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 80; }
.offcanvas {
  position: fixed;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 24px rgba(0, 0, 0, .15);
}
.offcanvas-start { top: 0; left: 0; bottom: 0; width: 400px; max-width: 100%; }
.offcanvas-bottom { left: 0; right: 0; bottom: 0; max-height: 80vh; border-radius: 16px 16px 0 0; }
.offcanvas-header { display: flex; align-items: center; justify-content: flex-end; padding: 16px 16px 0; }
.offcanvas-header.center { justify-content: center; position: relative; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.offcanvas-header.center .btn-close { position: absolute; right: 16px; }
.offcanvas-title { font-size: 16px; font-weight: 700; }
.offcanvas-body { flex: 1 1 auto; overflow-y: auto; padding: 0 16px 16px; }
.offcanvas-footer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.offcanvas-footer .btn { flex: 1; }
.btn-outline { border: 1px solid var(--secondary); color: var(--secondary); background: transparent; }
.btn-close { border: 0; background: transparent; padding: 6px; font-size: 18px; display: flex; color: var(--body); }
.oc-h3 { font-size: 21px; font-weight: 500; margin: 0 0 16px; }
.cat-tiles { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 24px; padding-bottom: 4px; }
.category-tile { flex: 0 0 auto; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 14px; font-size: 14px; }
.category-tile.active { border-color: var(--brand); color: var(--brand); }
.sort-list { padding: 0; }
.sort-option-label { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 15px; cursor: pointer; }
.sort-option-label input { position: absolute; opacity: 0; }
.sort-check-icon { color: var(--brand); font-size: 18px; visibility: hidden; }
.sort-option-label input:checked ~ .sort-check-icon { visibility: visible; }
.sort-option-label input:checked + span { font-weight: 700; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .5); display: flex; align-items: flex-start; justify-content: center; padding: 28px 12px; overflow-y: auto; }
.modal-dialog { width: 500px; max-width: 100%; }
.modal-content { background: var(--bg); border-radius: var(--radius-lg); border: 1px solid rgba(0, 0, 0, .175); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 20px; font-weight: 500; }
.modal-body { padding: 16px; font-size: 15px; }
.modal-body p + p { margin-top: 10px; }
.offers { list-style: none; margin: 12px 0 0; padding: 0; }
.offers li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.offers li:first-child b { color: var(--green); }
.offer-head { display: flex; gap: 14px; align-items: center; }
.offer-head img { height: 90px; width: auto; }
.offer-head small { display: block; color: var(--text); font-size: 13px; }

/* ---------------------------------------------------------------- footer */
footer {
  width: 100%;
  max-width: 1320px;
  margin: auto auto 0;
  padding: 16px 24px;
  background: var(--bg);
  color: #acb4c2;
  text-align: center;
}
.footer-links { display: flex; justify-content: center; }
.footer-links a { font-family: var(--font-alt); font-size: 15px; line-height: 23px; color: var(--body-75); }
.footer-links a:not(:last-child) { margin-right: 8px; }
.footer-links a:hover { color: var(--brand); }
.copy { margin-top: 8px; font-family: var(--font-alt); font-size: 13px; line-height: 20px; color: var(--body-50); }

/* cookie bar */
.cookie-consent {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 75;
  background: var(--bg-tertiary);
  padding: 16px 0;
}
.show-cc .cookie-consent { display: block; }
.cc-inner { max-width: 1320px; margin: 0 auto; padding: 0; display: flex; align-items: center; }
.cc-text { flex: 0 0 66.6667%; max-width: 66.6667%; padding: 0 12px; font-family: var(--font-alt); font-size: 13px; line-height: 19.5px; color: var(--body); }
.cc-text a { font-size: 15px; color: var(--body-75); }
.cc-buttons { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 0 12px; text-align: right; }
.cc-buttons .btn { font-family: var(--font-alt); min-height: 36px; padding: 5px 11px; white-space: normal; vertical-align: middle; margin-top: 2px; }
#cookies-reject-button { margin-right: 8px; }

/* ---------------------------------------------------------------- directory pages */
.dir-page { max-width: 1320px; margin: 0 auto; padding: 70px 12px 150px; }
.page-title { font-size: 38px; font-weight: 300; line-height: 46px; text-align: center; color: var(--body); }
.letters { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.letters a { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: var(--text); }
.letters a:hover { color: var(--brand); }
.dir-search { width: 300px; max-width: 100%; margin: 46px auto 0; }
.dir-list { margin-top: 62px; }
.dir-section { scroll-margin-top: 20px; }
.dir-letter { font-size: 28px; font-weight: 300; line-height: 34px; margin-bottom: 38px; color: var(--body); }
.dir-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; margin-bottom: 30px; }
.dir-item { font-size: 14px; line-height: 16px; padding: 9.5px 0; color: var(--text); padding-right: 6px; min-width: 0; overflow-wrap: anywhere; }
.dir-item a { color: var(--text); }
.dir-item a.popular { font-weight: 700; }
.dir-item a:hover { color: var(--brand); }
.dir-grid.shops .dir-item { padding: 7.5px 6px 7.5px 0; line-height: 21px; }
.shop-st { display: inline-flex; align-items: center; height: 21px; font-size: 20px; margin-left: 8px; vertical-align: top; }
.shop-st.ok { color: #20c997; }
.shop-st.warn { color: #ffc107; }
.shop-st.bad { color: #dc3545; }
.dir-empty { text-align: center; color: var(--text); margin: 40px 0; }
.suggest-row { border-top: 1px solid #c4c4c4; margin-top: 2px; padding-top: 16px; text-align: right; }
.suggest-shop { border: 0; background: transparent; font-size: 16px; color: var(--body); display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.suggest-shop .ic { font-size: 16px; }

/* ---------------------------------------------------------------- account pages */
.account-page { max-width: 550px; margin: 0 auto; padding: 41px 12px 60px; font-family: var(--font-alt); }
.account-page .page-title { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.page-title.small { font-size: 32px; line-height: 38px; }
.standard-form { margin-top: 48px; }
.standard-form .field { margin-bottom: 24px; }
.standard-form .field .form-label { margin-bottom: 8px; line-height: 16px; display: block; }
.btn-submit {
  width: 100%;
  height: 44px;
  margin-top: 32px;
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-size: 16px;
}
.btn-submit:hover { background: var(--brand-dark); }
#registration-form .btn-submit { margin-top: 24px; }
#registration-form .field:nth-of-type(3) { margin-bottom: 38px; }
.consent label { font-size: 14px; }
.consent a { color: var(--link-blue); }
.consent-fb { margin-top: 6px; }
.account-links { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 14px; line-height: 21px; color: #808080; }
.account-links a { color: var(--body); }
.account-links a:hover { color: var(--brand); }
.form-note { margin-top: 12px; font-size: 14px; color: var(--green); text-align: center; }
.form-note.err { color: #dc3545; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1399.98px) {
  .cc-inner { max-width: 1140px; }
  .dir-page, #main-content { max-width: 1140px; }
}
@media (max-width: 1351px) {
  footer { width: auto; margin-left: 16px; margin-right: 16px; }
}
@media (max-width: 1199.98px) {
  .cc-inner { max-width: 960px; }
  #main-content, .dir-page { max-width: 960px; }
  .pcol { width: 33.3333%; }
}
@media (max-width: 991.98px) {
  .header-nav, .theme-toggle-icon, .user-dropdown { display: none; }
  .burger-dropdown { display: block; }
  #main-content { max-width: 753px; padding: 76px 21px 166px; }
  #form-filters-container { display: none; }
  .only-lg { display: none !important; }
  .products-toolbar { display: none; }
  .products-column { margin-right: 0; }
  .mobile-toolbar { display: block; }
  .btn-group {
    display: flex;
    width: 100%;
    height: 66px;
    margin-bottom: 8px;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
  }
  .btn-group .btn {
    width: 50%;
    flex-direction: column;
    gap: 4px;
    border: 0;
    border-radius: 0;
    padding: 0 4px;
    font-size: 12.6px;
    font-weight: 500;
    background: var(--bg);
  }
  .btn-group .btn + .btn { border-left: 1px solid var(--border); }
  .btn-group .btn .ic { font-size: 14.4px; }
  .chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 8px; margin-bottom: 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .btn-minimal {
    flex: 0 0 auto;
    height: 56px;
    padding: 8px 12px;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 14px;
    color: var(--body-75);
    background: var(--bg);
  }
  .btn-minimal .ic { font-size: 20px; }
  #price-context-info { margin: 0 0 13px; }
  .prow { margin: 0 -5px; }
  .pcol { width: 33.3333%; padding: 0 10px; }
  .dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dir-page { max-width: none; width: auto; margin: 0 16px; }
  .dir-list { margin-top: 57px; }
  .dir-letter { margin-bottom: 34px; }
  .cc-inner { max-width: 720px; }
  .account-page .standard-form { max-width: 282px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 767.98px) {
  .cc-inner { max-width: 540px; }
  .account-page { padding-top: 31px; }
  .account-page .standard-form { max-width: none; }
  .navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    height: auto;
    padding: 8px;
  }
  .navbar-brand { order: 1; font-size: 28px; line-height: 41px; }
  .header-actions { order: 2; }
  #search-bar { order: 4; width: 100%; margin-top: 8px; }
  #main-content { padding: 46px 5px 116px; }
  .pcol { width: 50%; padding: 0 5px; margin-bottom: 10px; }
  #price-context-info { margin: 0 0 6px; }
  .price-change { font-size: 14px; padding-left: 0; }
  .image-container { height: 140px; padding: 0 10px; align-items: flex-start; }
  .image-container img { height: auto; max-height: 130px; }
  .card-subtitle { font-size: 12px; padding: 0 9px; }
  .price { font-size: 14px; line-height: 30px; padding-top: 9px; }
  .price b { font-size: 20px; }
  .price .zl { font-size: 12px; }
  .page-item.num { display: none; }
  .pagination { gap: 49px; }
  .page-item .page-link { margin-left: 0; }
  .page-item.prev .page-link { border-radius: var(--radius) 0 0 var(--radius); }
  .page-item.next .page-link { border-radius: 0 var(--radius) var(--radius) 0; }
  .cc-inner { display: block; }
  .cc-text, .cc-buttons { max-width: none; }
  .cc-text a { font-size: 14px; }
  .cc-buttons { text-align: left; margin-top: 8px; }
  .dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; }
  .page-title { font-size: 32px; line-height: 38px; }
  .dir-page { padding-top: 58px; max-width: 540px; margin: 0 auto; }
  .letters { max-width: 360px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar { display: flex; justify-content: space-between; height: 60px; padding: 8px 16px; }
  .navbar-brand { line-height: 43px; margin-top: 1px; }
  #search-bar { width: 361px; }
}
@media (max-width: 575.98px) {
  footer { padding: 16px 24px; }
  .footer-links { padding: 0 12px; text-align: left; }
  .footer-links a { font-size: 14px; line-height: 21px; }
  .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir-page { max-width: none; }
  .cc-inner { max-width: none; }
}
@media (max-width: 359.98px) {
  .navbar-brand { font-size: 24px; }
}

/* ---------------------------------------------------------------- product page */
#product-page { max-width: 1320px; margin: 0 auto; padding: 40px 12px 150px; }
#sidebar-toggle {
  position: absolute; left: 0; top: 252px; width: 30px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--body); border-left: 0; border-radius: 0 25px 25px 0;
  background: var(--bg); color: var(--body); font-size: 22px; z-index: 5;
}
#sidebar-toggle .chev-r { transform: rotate(-90deg); }
#sidebar-toggle .chev-l { transform: rotate(90deg); display: none; }
.pd-row { display: flex; gap: 24px; align-items: flex-start; }
.pd-left { flex: 0 0 calc((100% + 24px) / 3 - 24px); min-width: 0; text-align: center; }
.pd-right { flex: 1 1 auto; min-width: 0; }
.only-sm { display: none; }
.image-wrapper { height: 300px; display: flex; align-items: center; justify-content: center; }
.image-wrapper img { height: 300px; width: auto; max-width: 100%; object-fit: contain; }
.notification-buttons { display: inline-flex; margin-top: 10px; border: 1px solid var(--border); }
.nb {
  height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px;
  border: 0; border-right: 1px solid var(--border); background: var(--bg); color: var(--body);
  font-family: Quicksand, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .6px; text-transform: uppercase;
}
.nb:last-child { border-right: 0; }
.nb .ic { font-size: 16px; }
.nb-cart { width: 43px; justify-content: center; padding: 0; }
.nb:hover { background: var(--bg-tertiary); }
.pd-title { font-size: 24px; font-weight: 300; line-height: 29px; color: var(--body); }
.pd-title .brand { color: inherit; }
.pd-title .line { font-weight: 500; }
.pd-subtitle { font-size: 17.6px; font-weight: 300; line-height: 21px; margin-top: 8px; color: var(--body); }
.variants-container hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.variant-tiles { display: flex; flex-wrap: wrap; gap: 4px 3.5px; max-width: 700px; }
.variant-tile {
  display: block; width: 136px; min-height: 58px; padding: 9px 10px; background: var(--bg-tertiary);
  border: 1px solid transparent; border-radius: 2px; color: var(--body); text-align: left;
}
.variant-tile:hover { border-color: var(--border); }
.variant-tile.active { background: var(--bg); border-color: #ced4da; }
.variant-tile.active .vt-price { font-weight: 700; }
.vt-title { font-size: 12.8px; line-height: 17px; }
.vt-price { font-size: 14.4px; line-height: 20px; margin-top: 3px; }
.vt-special { display: flex; align-items: center; }
.vt-special .vt-title { text-transform: uppercase; letter-spacing: .3px; }
.vt-special.active { background: var(--bg); border-color: #ced4da; }
.variant-tile.unavailable { opacity: .55; cursor: default; }

#offers-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px;
  margin-top: 49px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.btn-sm-outline {
  height: 31px; padding: 4px 8px; font-size: 14px; color: var(--secondary); background: var(--bg);
  border: 1px solid var(--secondary); border-radius: 4px; gap: 4px;
}
.btn-sm-outline .ic { font-size: 13px; }
#dropdown-sort-offers .dropdown-menu { min-width: 170px; }
#dropdown-sort-offers .dropdown-item, .price-min .dropdown-item { font-size: 14px; padding: 6px 16px; }
#dropdown-sort-offers .dropdown-item.active, .price-min .dropdown-item.active { background: var(--brand); color: #fff; }
.offer-toggles { display: flex; gap: 8px; }
.btn-pd-toggle {
  height: 31px; padding: 4px 8px; font-size: 14px; color: var(--secondary); background: var(--bg);
  border: 1px solid var(--border); border-radius: 4px; gap: 6px; flex-shrink: 0;
}
.btn-pd-toggle .ic { font-size: 14px; }
.btn-pd-toggle.active { border-color: var(--brand); color: var(--brand); }
.price-history-group { margin-left: auto; display: flex; align-items: center; }
.price-min-trigger { border: 0; background: transparent; font-size: 14px; color: var(--secondary); padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.price-min-trigger .caret { border-top-color: #adb5bd; }
.label-mobile { display: none; }
.history-separator { width: 1px; height: 26px; background: var(--border); margin: 0 18px; }
.sparkline-wrapper { border: 0; background: transparent; padding: 0; width: 80px; height: 39px; cursor: pointer; }
.sparkline-wrapper svg { display: block; }
#offers-body { margin-top: 16px; }
.offer {
  display: grid; grid-template-columns: 25% 33.3333% 25% 16.6667%; align-items: center;
  min-height: 83px; padding: 10px 0; border-top: 1px solid var(--border);
}
.offer:last-child { border-bottom: 1px solid var(--border); }
.shop-name { padding-left: 16px; }
.shop-link { display: block; font-size: 14px; font-weight: 500; line-height: 16px; color: var(--link-blue); }
.shop-reviews-link { display: inline-block; margin-top: 5px; font-size: 12px; line-height: 14px; color: #606060; }
[data-bs-theme="dark"] .shop-reviews-link { color: #adb5bd; }
.foreign-badge { display: inline-block; font-size: 11px; color: var(--secondary); margin: 2px 8px 0 0; }
.shop-title { font-family: Arial, "Liberation Sans", Helvetica, sans-serif; font-size: 14px; line-height: 21px; padding-right: 24px; color: var(--body); }
.variant-badge { display: inline-block; font-family: var(--font); font-size: 11px; padding: 1px 6px; margin-right: 4px; background: var(--bg-tertiary); border-radius: 2px; }
.offer-price { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.price-history-trigger { border: 0; background: transparent; padding: 0; font-size: 22px; color: var(--text); display: flex; }
.price-link { display: inline-flex; flex-direction: column; align-items: flex-end; text-align: right; }
.price-link .price-change { font-size: 10px; line-height: 12px; height: auto; color: var(--secondary); padding: 0; justify-content: flex-end; }
.price-link .price-change.up { color: #c9001a; }
.price-link .price-change.down { color: var(--green); }
.price-link .price-change .ic { font-size: 10px; }
.price-value { font-size: 20px; font-weight: 600; line-height: 24px; color: var(--price); }
.price-unit { font-size: 10px; line-height: 12px; color: var(--body); }
.with-code { font-size: 11px; color: var(--body); }
.free-delivery { font-size: 13px; line-height: 16px; color: var(--green); }
.price-with-delivery { font-size: 11px; color: var(--secondary); }
.offer-go { text-align: right; padding-right: 16px; }
.btn-go-to {
  display: inline-block; padding: 10px 13px; font-size: 14px; font-weight: 500; line-height: 20px;
  color: #fff; background: var(--brand); border-radius: 4px;
}
.btn-go-to:hover { background: var(--brand-dark); }
.no-offers { padding: 30px 0; text-align: center; color: var(--text); border-top: 1px solid var(--border); }
.report-row { padding-top: 14px; }
.report-row a { font-size: 10px; text-transform: uppercase; color: var(--body); letter-spacing: .2px; }
.modal-lg { width: 760px; }
.period-tabs { display: flex; justify-content: flex-end; border-bottom: 1px solid var(--border); padding-bottom: 4px; margin-bottom: 10px; }
.period-tab { border: 0; background: transparent; font-size: 14px; padding: 2px 8px; color: var(--secondary); }
.period-tab.active { color: var(--brand); font-weight: 500; }
#history-chart { color: var(--body); }
.history-note { font-size: 13px; color: var(--secondary); margin-top: 8px; }
textarea.form-control { height: auto; }
.offcanvas-header.between { justify-content: space-between; }
#brand-letters-header { text-align: center; font-size: 14px; color: var(--secondary); margin: 8px 0; }
#brand-letters { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 20px; }
.bl-letter { width: 32px; height: 32px; border: 0; background: transparent; font-weight: 700; color: var(--text); }
.bl-letter.active, .bl-letter:hover { color: var(--brand); }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: block; padding: 9px 4px; border-bottom: 1px solid var(--border); font-size: 15px; text-transform: capitalize; }
.side-list a.active, .side-list a:hover { color: var(--brand); }
.side-list .muted { color: var(--secondary); font-size: 14px; padding: 8px 4px; }
#change-brand-toggle { text-transform: capitalize; }

@media (max-width: 991.98px) {
  #product-page { max-width: 753px; padding: 40px 28px 150px; }
  #sidebar-toggle { left: auto; right: 0; top: 398px; border-left: 1px solid var(--body); border-right: 0; border-radius: 25px 0 0 25px; }
  #sidebar-toggle .chev-r { display: none; }
  #sidebar-toggle .chev-l { display: block; }
  .pd-title { font-size: 24px; }
  .notification-buttons { margin-left: -24px; margin-right: -24px; }
  #offers-header { margin-top: 48px; }
  .offer-price { gap: 12px; }
}
@media (max-width: 767.98px) {
  #product-page { padding: 24px 12px 116px; }
  #sidebar-toggle { top: 545px; }
  .pd-row { display: block; }
  .only-sm { display: block; }
  .only-md { display: none; }
  .pd-left { text-align: center; }
  .pd-title { font-size: 17.6px; line-height: 24px; text-align: left; }
  .pd-subtitle { font-size: 13px; line-height: 18px; margin-top: 4px; text-align: left; }
  .image-wrapper { margin-top: 10px; height: 300px; }
  .notification-buttons { margin: 10px 0 0; }
  .variants-container hr { margin: 24px 0 16px; }
  .variant-tiles { max-width: none; }
  #offers-header { margin-top: 30px; border-bottom: 1px solid var(--border); }
  .price-history-group { order: -1; width: 100%; margin-left: 0; justify-content: space-between; margin-bottom: 14px; }
  .history-separator { display: none; }
  .label-desktop { display: none; }
  .label-mobile { display: inline; }
  .offer-toggles { flex: 1 1 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .offer-toggles::-webkit-scrollbar { display: none; }
  .btn-pd-toggle { min-width: 171px; }
  .offer {
    grid-template-columns: 1fr auto; grid-template-areas: "title title" "shop price";
    row-gap: 14px; padding: 16px 0;
  }
  .shop-title { grid-area: title; padding-right: 0; }
  .shop-name { grid-area: shop; padding-left: 0; }
  .offer-price { grid-area: price; }
  .offer-go { display: none; }
}

/* ---- strony kategorii / rankingowe + strony prawne ---------------------- */
.category-intro { margin: 0 0 14px; }
.category-intro .cat-h1 { font-family: var(--font-alt); font-size: 1.55rem; font-weight: 700; margin: 0 0 2px; color: var(--text); }
.category-intro .cat-count { font-size: .82rem; color: var(--secondary); margin: 0 0 8px; }
.category-intro p { font-size: .92rem; line-height: 1.55; color: var(--body); margin: 0 0 8px; max-width: 70ch; }
.cat-related { font-size: .88rem; margin-top: 4px; }
.cat-related span { color: var(--secondary); }
.cat-related a { color: var(--link-blue); margin: 0 10px 4px 0; display: inline-block; }
.footer-cats { font-size: .85rem; margin-bottom: 10px; text-align: center; }
.footer-cats span { color: var(--secondary); }
.footer-cats a { color: var(--link-blue); margin: 0 8px; display: inline-block; }
.affiliate-note { max-width: 80ch; margin-left: auto; margin-right: auto; font-size: .78rem; color: var(--secondary); line-height: 1.5; }
.legal-page .legal { max-width: 75ch; margin: 0 auto; }
.legal-page .legal h1 { margin-bottom: 14px; }
.legal-page .legal h2 { font-family: var(--font-alt); font-size: 1.15rem; margin: 22px 0 8px; color: var(--text); }
.legal-page .legal p { line-height: 1.6; color: var(--body); margin: 0 0 10px; }
.legal-page .legal .legal-intro { font-size: 1.02rem; color: var(--text); }
.legal-page .legal .legal-updated { font-size: .8rem; color: var(--secondary); margin-top: 24px; }
