@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;700&display=swap');
body {
  width: 100%;
  height: 100%;
}
h1, h2, h3, h4, h5, h6 {
  color: #444;
}
legend {
  padding: 7px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}
label {
  font-size: 12px;
  font-weight: normal;
}
/* Chrome border line */
button:focus {
  outline: none !important;
}
/* container */
#container {
  width: 100%;
  min-height: 100%;
  position: absolute;
  margin-bottom: 300px;
}
/* content */
#content, #column-left, #column-right {
  padding-bottom: 730px;
}
@media (min-width: 576px) {
  #content, #column-left, #column-right {
    padding-bottom: 400px;
  }
}
#alert {
  z-index: 9999;
  position: fixed;
  top: 30%;
  left: 50%;
  width: 400px;
  margin-left: -200px;
}
@media (min-width: 992px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1140px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1320px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
#alert .alert {
  margin-bottom: 15px;
}
#alert .alert-primary {
  box-shadow: 0 0 0 5px rgb(var(--bs-primary-rgb), 0.1);
}
#alert .alert-secondary {
  box-shadow: 0 0 0 5px rgb(var(--bs-secondary-rgb), 0.1);
}
#alert .alert-success {
  box-shadow: 0 0 0 5px rgb(var(--bs-success-rgb), 0.1);
}
#alert .alert-warning {
  box-shadow: 0 0 0 5px rgb(var(--bs-warning-rgb), 0.1);
}
#alert .alert-danger {
  box-shadow: 0 0 0 5px rgb(var(--bs-danger-rgb), 0.1);
}
#alert .alert-info {
  box-shadow: 0 0 0 5px rgb(var(--bs-info-rgb), 0.1);
}
#alert .alert-light {
  box-shadow: 0 0 0 5px rgb(var(--bs-light-rgb), 0.1);
}
#alert .alert-dark {
  box-shadow: 0 0 0 5px rgb(var(--bs-dark-rgb), 0.1);
}
/* top */
#top {
  background-color: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
}
#top ul.list-inline {
  margin-bottom: 0;
}
#top .list-inline-item > a, #top .list-inline-item .dropdown > a {
  font-size: 1.1em;
  color: var(--bs-gray-600);
  line-height: 40px;
  vertical-align: middle;
  padding: 10px 0px 5px 0px;
}
/* logo */
#logo {
  text-align: center;
  margin: 7px 0 7px 0;
}
#logo img {
  max-width: 200px;
}
@media (min-width: 768px) {
  #logo {
    text-align: left;
  }
}
/* search */
#search {
  margin-bottom: 10px;
}
#search .form-control-lg {
  height: 40px;
  font-size: 12px;
  line-height: 20px;
  padding: 0 10px;
}
#search .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 0.57rem 35px;
  text-shadow: 0 1px 0 #FFF;
}
/* cart */
#cart {
  margin-bottom: 10px;
}
#cart .img-thumbnail {
  min-width: 100px;
}
#cart .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 14px 35px;
}
#cart .dropdown-menu {
  background: #eee;
}
#cart .dropdown-menu li {
  min-width: 300px;
}
@media (max-width: 768px) {
  #cart .dropdown-menu li {
    min-width: 100%;
  }
}
/* menu */
#menu {
  background-color: #229ac8;
  background-image: linear-gradient(to bottom, #23a1d1, #1f90bb);
  background-repeat: repeat-x;
  border: 1px solid #1f90bb;
  border-color: #1f90bb #1f90bb #145e7a;
  min-height: 40px;
  border-radius: 4px;
  padding: 0 1rem;
  margin-bottom: 20px;
}
#menu .navbar-nav > li > a {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 10px 15px 10px 15px;
  background-color: transparent;
}
#menu .navbar-nav > li > a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
#menu .dropdown-menu {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
#menu .dropdown-inner {
  display: flex;
  flex-direction: column;
}
#menu .dropdown-inner ul {
  width: 100%;
  min-width: 200px;
}
@media (min-width: 960px) {
  #menu .dropdown:hover .dropdown-menu {
    display: block;
  }
  #menu .dropdown-inner {
    flex-direction: row;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-2 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -600px;
  }
}
#category {
  float: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
#menu .navbar-toggler i {
  color: #fff;
  border-color: #fff;
  font-size: 0.9em;
}
/* default boostrap changes */
div.required .col-form-label:before, div.required .form-label:before {
  content: "* ";
  color: #F00;
  font-weight: bold;
}
.form-switch-lg {
  font-size: 20px;
  min-height: 30px;
  line-height: 30px;
}
.nav-tabs {
  margin-bottom: 15px;
}
.form-check .form-check-input {
  margin-top: 0.25rem;
}
@media (min-width: 768px) {
  .col-form-label {
    text-align: right;
  }
}
/* footer */
footer {
  border: 1px solid #000000;
  position: absolute;
  bottom: -1px;
  width: 100%;
  padding-top: 30px;
  background-color: #303030;
  border-top: 1px solid #ddd;
  color: #e2e2e2;
}
footer hr {
  border-top: none;
  border-bottom: 1px solid #666;
}
footer a {
  color: #ccc;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
}
footer h5 {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 10px;
}
/* breadcrumb */
.breadcrumb {
  margin: 0 0 20px 0;
  padding: 8px 0;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background-color: var(--bs-tertiary-bg);
}
.breadcrumb i {
  font-size: 15px;
}
.breadcrumb > li.breadcrumb-item {
  text-shadow: 0 1px 0 #FFF;
  padding: 0 20px;
  position: relative;
  white-space: nowrap;
}
.breadcrumb > li.breadcrumb-item > a {
  text-decoration: none;
}
.breadcrumb > li.breadcrumb-item:after {
  content: "";
  display: block;
  position: absolute;
  top: -3px;
  right: -5px;
  width: 29px;
  height: 29px;
  border-right: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
  transform: rotate(-45deg);
}
.breadcrumb > li.breadcrumb-item + li:before {
  content: "";
  padding: 0;
}
.product-thumb {
  border: 1px solid #ddd;
  position: relative;
  height: 100%;
}
.product-thumb .image {
  text-align: center;
}
.product-thumb .image a:hover {
  opacity: 0.8;
}
.product-thumb .description {
  padding: 15px;
  margin-bottom: 45px;
}
.product-thumb .button {
  display: flex;
  position: absolute;
  width: 100%;
  bottom: 0;
}
.product-thumb .button button {
  width: 33.33%;
  border: none;
  border-top: 1px solid var(--bs-border-color);
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-gray-600);
  line-height: 38px;
  text-align: center;
}
.product-thumb .button button:hover {
  color: var(--bs-gray-600);
  background-color: #ddd;
  text-decoration: none;
  cursor: pointer;
}
.product-thumb .button button + button {
  border-left: 1px solid var(--bs-border-color);
}
@media (min-width: 960px) {
  .product-list .product-thumb {
    display: flex;
  }
  .product-list .product-thumb .image {
    flex-direction: column;
    margin-bottom: 0px;
  }
  .product-list .product-thumb .content {
    flex-direction: column;
    flex: 75%;
    position: relative;
  }
  .product-list .product-thumb .button {
    border-left: 1px solid #ddd;
    width: calc(100% -  15px);
    margin-left: 15px;
  }
}
.rating .fa-stack {
  width: 20px;
}
.rating .fa-star {
  color: #999;
  font-size: 15px;
}
.rating .fa-star {
  color: #FC0;
  font-size: 15px;
}
.rating .fa-star + .fa-star {
  color: #E69500;
}
/* product list */
.price {
  color: #444;
}
.price-new {
  font-weight: 600;
}
.price-old {
  color: #dc512c;
  text-decoration: line-through;
}
.price-tax {
  color: #999;
  font-size: 12px;
  display: block;
}
/* blog */
.blog-thumb {
  border: 1px solid #ddd;
  margin-bottom: 15px;
}
.blog-thumb h4 {
  font-weight: bold;
}
.blog-thumb .image {
  text-align: center;
  margin-bottom: 15px;
}
.blog-thumb .image a:hover {
  opacity: 0.8;
}
.blog-thumb .description {
  padding: 15px;
}
/* Theme Custom CSS */
#cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 9999;
  opacity: 0.95;
  color: #ecf0f1;
  background: #343a40;
}
#cookie div {
  font-size: 16px;
  color: #FFFFFF;
}


/* ===== TerMedis - fix sticky-footer w domyslnym motywie OC 4.1 ===== */
/* Domyslny motyw OC 4.1 rezerwuje 400-730px na nieprawdopodobnie wysoka stopke
 * przez position:absolute + padding-bottom. Wracamy do normalnego flow. */
#container {
  position: static;
  min-height: 0;
  margin-bottom: 0;
}
#content, #column-left, #column-right {
  padding-bottom: 0;
}
@media (min-width: 576px) {
  #content, #column-left, #column-right { padding-bottom: 0; }
}
@media (min-width: 768px) {
  #content, #column-left, #column-right { padding-bottom: 0; }
}
@media (min-width: 992px) {
  #content, #column-left, #column-right { padding-bottom: 0; }
}
footer {
  position: static;
  bottom: auto;
  border: none;
  border-top: 1px solid #ddd;
  margin-top: 30px;
}
/* ===== koniec fix-u layoutu ===== */

/* ===== TerMedis.pl — branding (Krok 1.3 migracji OC4) ===== */
body, input, select, textarea, button {
  font-family: 'Noto Sans', Arial, Helvetica, sans-serif;
}
a {
  color: #2d62a1;
}
a:hover {
  color: #224b7d;
}
.btn-primary {
  background-color: #2d62a1;
  border-color: #2d62a1;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: #224b7d;
  border-color: #224b7d;
}
.text-primary { color: #2d62a1 !important; }
.bg-primary { background-color: #2d62a1 !important; }
.nav-tabs .nav-link.active { color: #2d62a1; }
#cart .btn-inverse { background-color: #2d62a1; border-color: #2d62a1; }
/* ===== koniec brandingu TerMedis ===== */

/* TERMEDIS — karta produktu w widoku kategorii (2026-05-18, final v4) */

/* Box karty bez paddingu, kompaktowy */
.product-thumb { padding: 0 !important; }
.product-thumb .image { margin: 0 !important; padding: 0 !important; line-height: 0; text-align: center; }
.product-thumb .image a { display: block; line-height: 0; }
.product-thumb .image img {
    width: 100%;
    height: 203px;
    object-fit: contain;     /* wpisz w box bez ucinania, zachowaj proporcje */
    object-position: center;
    background: #fff;
    vertical-align: top;
}

/* Wnętrze opisu — centrowanie tekstu */
.product-thumb .description { text-align: center; padding: 0.5rem 1rem !important; margin-bottom: 45px; }

/* Nazwa produktu — bez bold, 18px */
.product-thumb .description h4,
.product-thumb .description h4 a {
    font-weight: 400 !important;
    font-size: 1.125rem !important;
}

/* Cena — +1pt */
.product-thumb .description .price { font-size: 1.0625rem; }
.product-thumb .description .price-vat { font-size: 0.9em; color: #666; }
.product-thumb .description .price-quantity { font-size: 0.9rem; color: #444; margin-top: 0.25rem; }

/* 3 osobne form-y w pasku przycisków na dole */
.product-thumb .button {
    display: flex !important;
    position: absolute !important;
    width: 100% !important;
    bottom: 0 !important;
    left: 0;
    margin: 0 !important;
    padding: 0;
}
.product-thumb .button form {
    flex: 1 1 33.333%;
    width: 33.333%;
    margin: 0;
    padding: 0;
}
.product-thumb .button form button {
    width: 100% !important;
    border: none;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    padding: 0.15rem 0.4rem;  /* bardzo niskie */
    cursor: pointer;
    color: #555;
    font-size: 0.875rem;
    transition: background 0.15s, color 0.15s;
}
.product-thumb .button form button:hover {
    background-color: #e9ecef;
    color: #333;
}
.product-thumb .button form:not(:first-child) button {
    border-left: 1px solid var(--bs-border-color, #dee2e6);
}

/* Niebieski koszyk (główny CTA) */
.product-thumb .button form .btn-cart-primary {
    background: #2d62a1 !important;
    color: #fff !important;
    border-color: #2d62a1 !important;
}
.product-thumb .button form .btn-cart-primary i { color: #fff; }
.product-thumb .button form .btn-cart-primary:hover {
    background: #1e4a7d !important;
    color: #fff !important;
}

/* TERMEDIS — wyrównanie elementów w nagłówku (logo, search, koszyk) */
header > .container > .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
header > .container > .row > div {
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}
header > .container > .row #cart,
header > .container > .row .col-md-5 {
    margin-bottom: 0 !important;
}
header > .container > .row #cart .dropdown {
    width: 100%;
    margin-bottom: 0;
}
header > .container > .row .input-group.mb-3 {
    margin-bottom: 0 !important;
}
header #logo {
    margin: 0;
    width: 100%;
}
header #logo a, header #logo img {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

/* TERMEDIS — odstępy w nagłówku (symetryczne góra/dół) */
header {
    padding-bottom: 1rem;  /* tylko dolny margines, górny zachowany natywny */
}

/* TERMEDIS — czcionka menu o 2px większa */
#menu .nav-link,
#menu .dropdown-item {
    font-size: 1.125rem; /* 18px = 16px + 2px */
}

/* TERMEDIS — strona pojedynczego produktu (2026-05-18 v5) */
#product-info h1 { font-size: 1.6rem; color: #444; font-weight: 600; margin-bottom: 1rem; }
#product-info .product-info-list { color: #555; margin-bottom: 1rem; }
#product-info .product-info-list li { padding: 0.1rem 0; }
#product-info .product-info-list a { color: #2d62a1; text-decoration: none; }
#product-info .product-info-list a:hover { text-decoration: underline; }

/* Cena brutto + netto/VAT obok */
#product-info .product-price-block-new { margin: 1rem 0 1.5rem; }
#product-info .price-brutto {
    color: #1a8398; font-size: 2rem; font-weight: 700;
    margin-right: 0.6rem; vertical-align: middle;
}
#product-info .price-brutto strong { font-weight: 700; }
#product-info .price-netto {
    font-size: 0.9rem; color: #777; vertical-align: middle; white-space: nowrap;
}
#product-info .price-old {
    color: #888; text-decoration: line-through;
    font-size: 1.1rem; margin-right: 0.5rem;
}

/* Wishlist + compare po prawej */
#product-info .product-side-actions { margin-bottom: 1rem; display: inline-flex; gap: 0.5rem; }
#product-info .product-side-actions form { margin: 0; }

/* CTA row: qty input wąskie, button szerokie */
#product-info .product-cta-row .qty-label { background: #f3f5f8; font-weight: 500; }
#product-info .product-cta-row .qty-input-narrow { max-width: 70px; text-align: center; flex: 0 0 70px; }
#product-info .product-cta-row .btn-cta-wide {
    flex: 1 1 auto;
    background: #2d62a1; border-color: #2d62a1; color: #fff;
    font-weight: 700; padding: 0.75rem 1.5rem;
}
#product-info .product-cta-row .btn-cta-wide:hover { background: #1e4a7d; border-color: #1e4a7d; color: #fff; }

/* TERMEDIS — strona produktu: dopasowanie wysokości boxa obrazu */
#product-info .row.mb-3 {
    align-items: flex-start; /* kolumna obrazu ma własną wysokość, nie rozciąga się */
}
#product-info .image.magnific-popup > a > img.img-thumbnail {
    /* główne zdjęcie — naturalna wysokość */
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 600px;
}
/* Miniaturki w <div> wewnątrz — układ poziomy z wrappingiem */
#product-info .image.magnific-popup > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
#product-info .image.magnific-popup > div > a {
    flex: 0 0 auto;
}
#product-info .image.magnific-popup > div > a > img.img-thumbnail {
    max-width: 80px;
    height: auto;
}
