main > .container, main > .container-fluid
{
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container, .footer > .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.navbar form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .navbar form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar form > button.logout:focus,
.navbar form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.navbar form > button.logout:focus {
    outline: none;
}

/* style breadcrumb widget as in previous bootstrap versions */
.breadcrumb {
    background-color: var(--bs-gray-200);
    border-radius: .25rem;
    padding: .75rem 1rem;
}

.breadcrumb-item > a
{
    text-decoration: none;
}

/* --- CSS dla informacji flash) */

.flash-messages {
    position: fixed;
    top: 80px; /* Poniżej navbara */
    right: 20px;
    z-index: 1050; /* Nad innymi elementami */
    max-width: 350px; /* Ogranicz szerokość komunikatów */
}
.flash-messages .alert {
    margin-bottom: 10px;
}

/* KAFEL kategorii */
.category-card {
    border: 1px solid #dee2e6;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

/* OBRAZEK kategorii */
.image-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

/* ZOOM TYLKO ZDJĘCIA kategorii */
.category-card:hover .image-wrapper img {
    transform: scale(1.03);
}

.card {
    overflow: hidden; /* zabezpieczenie awaryjne */
}

.product-image {
    height: 180px;
    /* background-color: #f8f9fa; */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;           /* 🔥 KLUCZOWE */
}

.product-image img {
    display: block;             /* usuwa inline spacing */
    max-height: 100%;
    max-width: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;

    transition: transform .25s ease;
}

.card:hover .product-image img {
    transform: scale(1.05);
}

.product-card {
    border: 1px solid #dee2e6;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: 
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.product-card:hover {
    box-shadow:
        0 12px 24px rgba(0,0,0,0.15),
        0 0 0 1px rgba(0,0,0,0.05);
    transform: translateY(-4px); /* delikatne uniesienie */
}

.product-card:focus-within {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}



/* Możesz również dodać ogólne style dla body karty, jeśli chcesz */
.card-body {
    padding: 1rem; /* Zmniejsza padding, domyślnie 1.25rem */
    background-color: rgb(252, 252, 255);

}

/* Styl dla SKU w karcie produktu */
.card-body .card-title.product-sku { /* Używamy dodatkowej klasy dla precyzji */
    color: #007bff; /* Standardowy niebieski z Bootstrap 5 */
    /* Możesz użyć hexadecymalnego koloru np. #0000FF (czysty niebieski) lub nazwy 'blue' */
}

.product-tile {
    position: relative;
    border: 1px solid #dee2e6; /* Domyślna ramka */
    cursor: pointer; /* Wskazuje, że element jest klikalny */
}
.product-tile.product-in-cart {
    border-color: #007bff !important; /* Ważne, aby nadpisać inne bordery */
    border-width: 2px !important;
}


.cart-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    overflow: hidden;
    z-index: 10;
}
.cart-indicator .cart-indicator-triangle {
    position: absolute;
    top: 0;
    left: -1;
    width: 100%;
    height: 100%;
    /* transform: rotate(180deg); */
    transform-origin: top left;
}
.cart-indicator-icon {
    position: absolute;
    top: 7px;
    left: 12px;
    color: white;
    font-size: 1rem;
    z-index: 11;
}


/* --- Style dla kafla produktu (lista produktów category/view.php) --- */
.product-card-tile {
    position: relative;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* cursor: pointer; */ /* Kursor ustawiony na domyślny, bo click obsługuje JS, ale tylko poza przyciskami */
}
.product-card-tile:hover {
    box-shadow:
        0 12px 24px rgba(0,0,0,0.15),
        0 0 0 1px rgba(0,0,0,0.05);
    transform: translateY(-4px);
}
.product-card-tile.product-in-cart {
    border-color: #007bff !important;
    border-width: 2px !important;
}

/* Kontener dla całej zawartości kafla (poza footerem) */
.product-card-tile .product-card-content {
    flex-grow: 1; /* Pozwoli mu zająć całą dostępną przestrzeń */
    display: flex; /* Ustawiamy jako flex container */
    flex-direction: column; /* Zawartość ułożona kolumnowo */
    justify-content: flex-start; /* Zaczynamy od góry */
    cursor: pointer; /* <--- Kursor wskazujący, że ten obszar jest klikalny */
}


/* Style dla sekcji obrazka i body */
.product-card-tile .product-image {
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-tile .product-image img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .25s ease;
    /* border-bottom: 1px solid #dee2e6; */
}
.product-card-tile:hover .product-image img {
    transform: scale(1.05);
}

.product-card-tile .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    text-align: center;
    flex-grow: 1;
}

.product-card-tile .card-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.product-card-tile .product-sku {
    font-size: 0.9rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}
.product-card-tile strong.card-text {
    font-size: 0.9rem;
    color: #007bff;
    font-weight: 500;
    margin-top: auto;
    margin-bottom: 0;
}

.product-image {
    line-height: 0;
}

.product-image img {
    display: block;
}



.product-card-tile .product-image {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.product-card-tile .product-image img {
    display: block;
}

.product-summary-bar{
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    text-align: left;
}

.product-summary-bar .summary-line{
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.price-inline { white-space: nowrap; }

.price-old-blue {
    color: #0d6efd; /* niebieski */
}

.price-new-red {
    color: #dc3545; /* czerwony */
}

.next-delivery-inline {
    white-space: nowrap;
}

.product-summary-one-line {
    border-top: 1px solid #e5e7eb;
    padding: 10px 0;
    text-align: left;
    white-space: nowrap;
}

.product-summary-line{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
}

/* ===== WSPÓLNA BAZA PRZYCISKÓW KOSZYKA ===== */
.btn-cart {
    background-color: #fff;
    border: 1px solid;
    transition: all 0.2s ease;
    font-weight: 500;
}

/* ===== DODAJ ===== */
.btn-cart-add {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-cart-add i {
    color: var(--bs-primary);
}

.btn-cart-add:hover,
.btn-cart-add:active,
.btn-cart-add:focus {
    background-color: var(--bs-primary);
    color: #fff;
}

.btn-cart-add:hover i {
    color: #fff;
}

/* ===== USUŃ ===== */
.btn-cart-remove {
    color: var(--bs-danger);
    border-color: var(--bs-danger);
}

.btn-cart-remove i {
    color: var(--bs-danger);
}

.btn-cart-remove:hover,
.btn-cart-remove:active,
.btn-cart-remove:focus {
    background-color: var(--bs-danger);
    color: #fff;
}

.btn-cart-remove:hover i {
    color: #fff;
}

/* ===== BEZ BOOTSTRAPOWEGO GLOW ===== */
.btn-cart:focus {
    box-shadow: none;
}

/* Style dla footera karty z przyciskami */
.product-card-tile .card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0,0,0,.125);
    padding: 0.75rem 1rem;
    width: 100%;
    flex-shrink: 0;
}
.product-card-tile .card-footer .btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}
.product-card-tile.loading-state {
    opacity: 0.7;
    cursor: wait !important;
}




/* --- Specyficzne style dla tabeli wariantów w koszyku --- */
.variant-table {
    width: 100%;
    margin-bottom: 0;
    background-color: white;
}
.variant-table th, .variant-table td {
    text-align: center;
    vertical-align: middle;
    padding: 0.25rem 0.15rem; /* Zmniejszony padding */
    font-size: 0.875rem; /* font size small */
    font-weight: 400; /* font weight 400 */
}

/* Wiersz Rozmiar - pogrubiony */
.variant-table thead th {
    font-weight: bold;
}

/* Kolorowanie wiersza Stan magazynowy */
.variant-table .stock-row {
    background-color: #e0f7fa; /* Jaśniejszy yellowgreen */
}

/* Zmień kolor tła TYLKO dla komórki nagłówka wiersza "Stan magazynowy" */
.variant-table .stock-row th {
    background-color: #e0f7fa; /* Jasny błękit (light cyan) - możesz wybrać dowolny kolor */
    /* Na przykład:
        #ffe0b2 (jasny pomarańcz)
        #cfd8dc (jasny szary)
        #f0f4c3 (jasny limonkowy)
    */
    font-weight: 300; 
}

/* Wiersz Ceny - już pogrubiony z poprzednich zmian */
.variant-table .price-row {
    font-weight: bold;
    color: #007bff;
}

.variant-table .price-row th {
    font-weight: 300;
    color: rgb(0, 53, 139);
}

/* Styl dla inputa w wierszu ilości */
.variant-table .quantity-row td input {
    background-color: #fff3cd; /* Kolor tła na lightyellow */
    font-weight: bold; /* Font na bold */
    width: 100%; /* Rozciągnięcie inputa na całą szerokość komórki */
    height: 100%; /* Rozciągnięcie inputa na całą wysokość komórki */
    border: 1px solid #ccc; /* Dodano lekką ramkę */
    padding: 0; /* Usuwamy padding inputa, aby wypełnił całą komórkę */
    box-sizing: border-box; /* Upewniamy się, że padding nie wpływa na szerokość */
    text-align: center; /* Wyśrodkowanie tekstu w input */
}
.variant-table .quantity-row td {
    padding: 5; /* Usuwamy padding komórki, aby input ją wypełnił */
}

.variant-table .quantity-row th {
    font-weight: bold;
    
}

/* Suma dla produktu (footer tabeli wariantów) */
.variant-table tfoot th, .variant-table tfoot td {
    background-color: #e9ecef; /* Szare tło dla footera */
    font-weight: bold;
    padding: 0.5rem; /* Standardowy padding */
}

/* Wyśrodkuj tekst w nagłówku stopki */
.variant-table tfoot th {
    text-align: center; /* <--- DODANO TĘ LINIĘ */
}

.variant-quantity-input.is-over-stock{
  border-color: #dc3545;
  box-shadow: 0 0 0 .15rem rgba(220,53,69,.15);
  background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
}


/* --- Styl dla całkowitego podsumowania koszyka --- */
.cart-summary {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: end;
    margin-top: 20px;
}
.cart-summary h4, .cart-summary p {
    margin-bottom: 0.5rem;
}
.cart-summary .btn {
    font-size: 1.1rem;
    padding: 10px 20px;
}

/* potrzebne do zapamiętania scrola na liscie przed wyjsciem w szczegóły */
.pd-card{
  /* border: 1px solid #e5e7eb; */
  border-radius: 16px;
  background: #fff;
  /* padding: 12px; */
}

/* gallery grid: thumbs + main */
.pd-gallery{
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
}

.pd-thumbs{
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 70vh;
  overflow: auto;
  padding-right: 2px;
}

.pd-thumb{
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.pd-thumb:hover{ transform: translateY(-1px); }
.pd-thumb img{
  width: 100%;
  height: 68px;
  object-fit: contain;
  display: block;
}
.pd-thumb.is-active{
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17,24,39,.12);
}

.pd-main{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-main img{
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

/* buy box */
.pd-buybox{ position: sticky; top: 16px; }
.pd-buybox-inner{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}
.pd-title{ font-size: 1.6rem; margin: 0; }
.pd-price{ font-size: 1.4rem; font-weight: 700; margin-top: 8px; color: #1d4ed8;}
.pd-desc{ line-height: 1.55; }

/* mobile: thumbs under main */
@media (max-width: 991.98px){
  .pd-gallery{ grid-template-columns: 1fr; }
  .pd-thumbs{
    flex-direction: row;
    max-height: none;
    overflow: auto;
  }
  .pd-thumb img{
    height: 64px;
    width: 84px;
  }
  .pd-buybox{ position: static; }
}
/* ustawienie przyciskow nawigacyjnych w karcie produktowej */
.product-nav .nav-btn{
    min-width: 170px; /* dopasuj jak chcesz */
    text-align: center;
}

.product-nav .btn.disabled,
.product-nav .btn[aria-disabled="true"]{
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}


/* =========================================================
   PREMIUM ECOSYSTEM (list + product card)
   Wklej na sam dół site.css
   ========================================================= */

/* 1) TOKENS / TYPO */
:root{
  --zina-bg: #f7f8fb;
  --zina-surface: #ffffff;
  --zina-surface-2: #fbfcff;

  --zina-text: #0f172a;
  --zina-muted: #64748b;
  --zina-border: rgba(15, 23, 42, .10);

  --zina-primary: #2563eb;  /* spójne z bootstrapowym primary vibe */
  --zina-danger:  #ef4444;

  --zina-radius: 16px;
  --zina-radius-sm: 12px;

  --zina-shadow: 0 10px 30px rgba(2, 8, 23, .08);
  --zina-shadow-soft: 0 8px 18px rgba(2, 8, 23, .06);
  --zina-shadow-hover: 0 16px 40px rgba(2, 8, 23, .12);

  --zina-ring: 0 0 0 4px rgba(37, 99, 235, .18);
}

/* Jeśli już dodałeś Hanken Grotesk – super. Jeśli nie, to ta linia nic nie popsuje. */
body{
  color: var(--zina-text);
  background: var(--zina-bg);
  font-family: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main > .container, main > .container-fluid{
  /* zachowujemy Twoje paddingi, ale tło premium */
  background: transparent;
}

/* 2) GLOBAL: cards, links, focus */
a{ color: inherit; }
a:hover{ color: inherit; }

:focus-visible{
  outline: none;
  box-shadow: var(--zina-ring);
  border-radius: 10px;
}

.card{
  border-radius: var(--zina-radius);
  border: 1px solid var(--zina-border);
  box-shadow: var(--zina-shadow-soft);
  background: var(--zina-surface);
}

.card:hover{
  box-shadow: var(--zina-shadow-hover);
}

/* 3) FILTER BAR (category/view) */
.filters-row{
  position: sticky;
  top: 64px; /* pod navbar, dopasuj jeśli masz inny */
  z-index: 50;

  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;

  padding: 12px 12px;
  margin-bottom: 14px;

  background: rgba(255,255,255,.78);
  border: 1px solid var(--zina-border);
  border-radius: var(--zina-radius);
  backdrop-filter: blur(10px);
  box-shadow: var(--zina-shadow-soft);
}

.filters-group{
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label{
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--zina-muted);
  text-transform: uppercase;
  margin-right: 6px;
}

.filters-separator{
  width: 1px;
  height: 32px;
  background: var(--zina-border);
  margin: 0 4px;
}

.filter-item{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--zina-border);
  background: var(--zina-surface);
  box-shadow: 0 6px 16px rgba(2,8,23,.06);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.filter-item img{
  max-width: 76%;
  max-height: 76%;
  object-fit: contain;
  display: block;
}

.filter-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(2,8,23,.10);
  border-color: rgba(37,99,235,.35);
}

.filter-item.active{
  border-color: rgba(37,99,235,.85);
  box-shadow: 0 0 0 4px rgba(37,99,235,.16);
}

/* kolorowe kółka: zostawiamy Twoje backgroundy, tylko “premium ring” */
.filter-color{
  border: 1px solid rgba(15,23,42,.14);
}

/* 4) PRODUCT TILES (list) – premium */
.product-card-tile{
  border-radius: var(--zina-radius);
  border: 1px solid var(--zina-border);
  box-shadow: var(--zina-shadow-soft);
  background: var(--zina-surface);
  overflow: hidden;
}

.product-card-tile:hover{
  box-shadow: var(--zina-shadow-hover);
  transform: translateY(-3px);
}

.product-card-tile .card-body{
  background: linear-gradient(180deg, var(--zina-surface) 0%, var(--zina-surface-2) 100%);
}

.product-card-tile .product-image{
  height: 168px;
  background: radial-gradient(60% 120% at 50% 10%, rgba(37,99,235,.10) 0%, rgba(255,255,255,0) 70%);
}

.product-card-tile .product-sku{
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(37,99,235,.95);
}

.product-card-tile .product-name{
  font-weight: 650;
  color: var(--zina-text);
}

.product-card-tile strong.card-text{
  color: var(--zina-text);
  font-weight: 800;
}

/* footer buttons */
.product-card-tile .card-footer{
  border-top: 1px solid var(--zina-border);
  background: var(--zina-surface);
}

.product-card-tile .card-footer .btn{
  border-radius: 12px;
}

/* cart indicator – delikatniej premium */
.cart-indicator{
  width: 74px;
  height: 74px;
}
.cart-indicator-icon{
  filter: drop-shadow(0 6px 10px rgba(2,8,23,.18));
}

/* 5) BUTTONS: spójne, premium, bez łamania Bootstrapa */
.btn{
  border-radius: 12px;
  /* font-weight: 650; */
  letter-spacing: .01em;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

.btn-primary{
  box-shadow: 0 10px 22px rgba(37,99,235,.18);
}
.btn-danger{
  box-shadow: 0 10px 22px rgba(239,68,68,.18);
}
.btn-outline-secondary{
  border-color: rgba(15,23,42,.18);
}
.btn-outline-secondary:hover{
  border-color: rgba(15,23,42,.26);
}

/* Twoje btn-cart zostają, tylko podkręcamy feel */
.btn-cart{
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(2,8,23,.06);
}
.btn-cart:hover{
  box-shadow: 0 12px 26px rgba(2,8,23,.10);
}

/* 6) PRODUCT CARD (pd-*) – spójne z listą */
.pd-card{
  border-radius: var(--zina-radius);
  border: 1px solid var(--zina-border);
  box-shadow: var(--zina-shadow-soft);
  background: var(--zina-surface);
}

.pd-main{
  border: 1px solid var(--zina-border);
  border-radius: var(--zina-radius);
  background: radial-gradient(70% 120% at 50% 0%, rgba(37,99,235,.10) 0%, rgba(255,255,255,0) 60%),
              var(--zina-surface);
  box-shadow: var(--zina-shadow-soft);
}

.pd-thumb{
  border-radius: 14px;
  border: 1px solid var(--zina-border);
  box-shadow: 0 8px 18px rgba(2,8,23,.05);
}
.pd-thumb.is-active{
  border-color: rgba(37,99,235,.9);
  box-shadow: 0 0 0 4px rgba(37,99,235,.16);
}

.pd-buybox-inner{
  border-radius: var(--zina-radius);
  border: 1px solid var(--zina-border);
  box-shadow: var(--zina-shadow-soft);
  background: var(--zina-surface);
}

.pd-title{
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--zina-text);
  line-height: 1.15;
  margin-bottom: 2rem;
}

.pd-meta{
  color: var(--zina-muted) !important;
}

.pd-price{
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--zina-text);
}

.pd-desc{
  color: rgba(15,23,42,.92);
}

/* 7) PRODUCT NAV – premium row */
.product-nav{
  padding: 10px;
  border: 1px solid var(--zina-border);
  border-radius: var(--zina-radius);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  box-shadow: var(--zina-shadow-soft);
}

.product-nav .nav-btn{
  min-width: 170px;
}

/* disabled look: nie psujemy Twojego aria-disabled */
.product-nav .btn.disabled,
.product-nav .btn[aria-disabled="true"]{
  opacity: .38;
  filter: grayscale(25%);
  pointer-events: none;
  transform: none;
}

/* 8) Subtle loading state (tile + card container) */
.loading-state{
  position: relative;
}
.loading-state::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,0) 100%);
  animation: zinaShimmer 1.1s linear infinite;
}
@keyframes zinaShimmer{
  from{ transform: translateX(-20%); }
  to{ transform: translateX(20%); }
}

/* 9) Responsive polish */
@media (max-width: 991.98px){
  .filters-row{ top: 56px; }
  .product-nav .nav-btn{ min-width: auto; }
}

#vd-product-list .col-6{
  padding-left: 10px;
  padding-right: 10px;
}
#vd-product-list{
  margin-left: -10px;
  margin-right: -10px;
}

/* =========================================================
   PREMIUM ECOSYSTEM – mniej zaokrągleń (patch)
   Wklej na sam dół site.css
   ========================================================= */

:root{
  --zina-radius: 6px;
  --zina-radius-sm: 4px;
}

/* cards / tiles */
.card,
.product-card-tile,
.pd-card,
.pd-main,
.pd-buybox-inner,
.filters-row,
.product-nav{
  border-radius: var(--zina-radius) !important;
}

/* thumbs */
.pd-thumb{
  border-radius: var(--zina-radius-sm) !important;
}

/* buttons */
.btn,
.btn-cart,
.product-card-tile .card-footer .btn{
  border-radius: var(--zina-radius-sm) !important;
}


/* rozmiary na karcie produktu */
/* ===== Sizes row (product card) ===== */
.pd-sizes-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.pd-size-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border:1px solid #e5e7eb;
  border-radius: var(--zina-radius-sm, 8px);
  background:#fff;
  font-size:.9rem;
  line-height:1;
  user-select:none;
}

/* ===== Premium system (subtelne rogi + spójność) ===== */
:root{
  --pd-radius: 10px;          /* delikatne zaokrąglenie */
  --pd-border: #e5e7eb;
  --pd-shadow: 0 8px 20px rgba(0,0,0,.06);
  --pd-shadow-hover: 0 12px 28px rgba(0,0,0,.10);
  --pd-text: #111827;
  --pd-muted: #6b7280;
}

/* karta / sekcje */
.pd-card,
.pd-main,
.pd-buybox-inner,
.pd-thumb,
.product-card-tile{
  border-radius: var(--pd-radius) !important;
}

.pd-main,
.pd-buybox-inner,
.product-card-tile{
  border: 1px solid var(--pd-border);
  box-shadow: var(--pd-shadow);
}

.product-card-tile:hover{
  box-shadow: var(--pd-shadow-hover);
}

/* nagłówki sekcji */
.pd-section{
  border-top: 1px solid var(--pd-border);
  padding-top: 14px;
}

.pd-section-title{
  color: var(--pd-text);
  font-weight: 650;
  letter-spacing: .2px;
}

/* ===== Cechy produktu (USP grid) ===== */
.pd-features{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 992px){
  .pd-features{ grid-template-columns: 1fr 1fr; }
}

.pd-feature{
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius);
  padding: 12px;
  background: #fff;
}

.pd-feature-title{
  font-weight: 650;
  color: var(--pd-text);
  margin-bottom: 4px;
}

.pd-feature-desc{
  color: var(--pd-muted);
  line-height: 1.45;
  font-size: .95rem;
}

/* ===== Specyfikacja (tabela/lista jak Seeland) ===== */
.pd-spec{
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius);
  overflow: hidden;
  background: #fff;
}

.pd-spec-row{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--pd-border);
}

.pd-spec-row:first-child{ border-top: none; }

.pd-spec-key{
  color: var(--pd-muted);
  font-size: .9rem;
}

.pd-spec-val{
  color: var(--pd-text);
  font-size: .95rem;
  line-height: 1.4;
}

@media (max-width: 575.98px){
  .pd-spec-row{
    grid-template-columns: 1fr;
    gap: 4px;
  }
}




/* ===== Seeland-like grid gallery (2 cols, 2:3) ===== */
.pd-gallery-grid2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.pd-grid-item{
  border: 1px solid #e5e7eb;
  border-radius: 10px; /* delikatne zaokrąglenie */
  background: #fff;
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
  aspect-ratio: 2 / 3;
  display: block;
}

.pd-grid-item:hover{
  transform: translateY(-1px);
  border-color: #d1d5db;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.pd-grid-item img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* "hero" jak na Seeland (większe pierwsze zdjęcie) */
@media (min-width: 992px){
  .pd-grid-item.is-hero{
    grid-row: span 2;
  }
}

/* Mobile: dalej 2 kolumny, ale mniejsze odstępy */
@media (max-width: 991.98px){
  .pd-gallery-grid2{ gap: 10px; }
  .pd-grid-item{ border-radius: 10px; }
}

/* ===== Lightbox modal ===== */
.pd-modal{
  background: rgba(10,10,12,0.92);
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.pd-modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  filter: invert(1);
  opacity: .9;
  z-index: 3;
}

.pd-modal-body{
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 18px 10px;
}

#pd-modal-img{
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
}

.pd-modal-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 30px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.pd-modal-prev{ left: 14px; }
.pd-modal-next{ right: 14px; }

.pd-modal-nav:hover{
  background: rgba(255,255,255,0.14);
}

.pd-modal-counter{
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  text-align: center;
  padding: 0 0 12px;
}

/* =========================
   Gallery grid2: 1 main (2:3) + 2-col below
   Transparent background under images
   ========================= */

/* =========================
   Gallery grid2: 1 main (2:3) + 2-col below
   Transparent "pod galerią", ale neutralne tło POD OBRAZEM
   ========================= */

/* kontener galerii bez "karty" w tle */
.pd-gallery-grid2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; /*odstepy pomiędzy zdjęciami*/

  /* przezroczyste tło pod całą galerią */
  /* background: transparent; */
}

/* wspólne kafle zdjęć */
.pd-gallery-grid2 .pd-grid-item{
  border: 1px solid rgba(17, 24, 39, .10);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;

  /* lekkie premium tło pod zdjęciem */
  background: #fff; 
  

  cursor: pointer;
  transition:
    transform .12s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.pd-gallery-grid2 .pd-grid-item:hover{
  transform: translateY(-1px);
  border-color: rgba(17, 24, 39, .18);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

/* fajny detal: kliknięcie */
.pd-gallery-grid2 .pd-grid-item:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
}

/* obrazek NIE dostaje tła, bo ma być przezroczysty jeśli PNG/WebP */
.pd-gallery-grid2 img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: transparent;
}

/* główne zdjęcie: proporcja 2:3, zajmuje cały pierwszy rząd */
.pd-gallery-grid2 .pd-grid-main{
  grid-column: 1 / -1;
  aspect-ratio: 2 / 3;
}

/* pozostałe: 2 kolumny pod spodem */
.pd-gallery-grid2 .pd-grid-sub{
  aspect-ratio: 2 / 3;
}

/* Mobile: mniejsze odstępy */
@media (max-width: 991.98px){
  .pd-gallery-grid2{
    gap: 10px;
  }
}

/* ==============================
   WHITE PREMIUM LIGHTBOX
   ============================== */

.pd-lightbox .modal-dialog{
  max-width: 1100px;
}

.pd-lightbox-content{
  background: #ffffff;         /* BIAŁE TŁO */
  border: none;
  border-radius: 10px;          /* delikatne */
  box-shadow: 0 40px 80px rgba(0,0,0,.15);
  padding: 30px 30px 20px;
  position: relative;
}

.pd-lightbox-body{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  min-height: 70vh;
}

.pd-lightbox-body img{
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

/* CLOSE */
.pd-lightbox-close{
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #111;
  cursor: pointer;
  opacity: .7;
  transition: opacity .15s ease;
}
.pd-lightbox-close:hover{
  opacity: 1;
}

/* NAVIGATION */
.pd-lightbox-nav{
  background: none;
  border: none;
  font-size: 2rem;
  color: #111;
  cursor: pointer;
  opacity: .5;
  transition: opacity .15s ease;
  padding: 10px 16px;
}

.pd-lightbox-nav:hover{
  opacity: 1;
}

/* COUNTER */
.pd-lightbox-counter{
  text-align: center;
  margin-top: 14px;
  font-size: .9rem;
  color: #555;
}

/* usunięcie ciemnego bootstrapowego tła */
.pd-lightbox .modal-backdrop.show{
  opacity: .15;   /* bardzo subtelne przyciemnienie */
}


/* pd-card używana jako "karta" w innych miejscach może zostać biała,
   ale dla galerii chcemy tło przezroczyste */
.pd-card.pd-card--gallery{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;         /* żeby nie było “białej ramki” od środka */
}

/* ===== Tabela wariantów (np. w koszyku) – delikatna, czytelna, spójna ===== */

/* tabela wariantów w modalu */
.pd-variant-table{
  border-collapse: separate;
  border-spacing: 0;
}

/* nagłówek */
.pd-variant-table thead th{
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f6faf7;
  border-bottom: 1px solid #e2efe6;
  color: #1f2937;
}

/* zebra */
.pd-variant-table tbody tr:nth-child(odd){
  background: #f8fcf9;
}

.pd-variant-table tbody tr:nth-child(even){
  background: #ffffff;
}

/* hover w stylu premium */
.pd-variant-table tbody tr:hover{
  background: #eef7f1;
  transition: background .15s ease;
}

/* dostępność */
.pd-stock-available{
  color: #15803d;        /* elegancka zieleń */
  font-weight: 600;
}

.pd-stock-empty{
  color: #b91c1c;
  font-weight: 600;
}

.pd-stock-delivery{
  color: #007bff;
  font-weight: 600;
}



/* dotyczy pojawiającego sie okna dostaw */

.stock-hover-card{
  position: fixed;
  z-index: 2000;
  width: 420px;
  max-width: calc(100vw - 24px);
  pointer-events: auto;
}

.stock-hover-card-inner{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
  overflow: hidden;
}

.stock-hover-card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fbfbfc 0%, #f3f4f6 100%);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.stock-hover-card-title{
  font-weight: 600;
  font-size: .9rem;
}

.stock-hover-card-close{
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  opacity: .6;
  cursor: pointer;
}
.stock-hover-card-close:hover{ opacity: 1; }

.stock-hover-card-body{
  padding: 10px 12px;
}

.cart-uploads-list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-upload-item{
  width: 240px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfbfc 0%, #f3f4f6 100%);
  padding: 10px;
  cursor: grab;
}

.cart-upload-item:active{ cursor: grabbing; }

.cart-upload-name{
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
}

.cart-upload-meta{
  font-size: 12px;
  color: #6b7280;
}

.cart-upload-actions{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.cart-upload-badge{
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}

.cart-upload-del{
  border: 0;
  background: transparent;
  color: #dc2626;
  font-weight: 600;
}


/* =========================================
   Custom text under product subtotal
   Premium light styling
   ========================================= */

.variant-table tfoot .custom-text-row td {
  padding-top: 18px;
  padding-bottom: 8px;
  border-top: 1px solid #e9ecef; /* subtelna linia oddzielająca */
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
}

/* wrapper żeby nie było “przyklejone” do krawędzi */
.cart-custom-text-wrapper {
  max-width: 720px;
}

/* textarea premium */
.cart-custom-text {
  border: 1px solid #e5e7eb;
  border-radius: 6px;           /* delikatne zaokrąglenie */
  background: #f9fafb;
  font-size: 13px;
  line-height: 1.45;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  resize: vertical;
  min-height: 60px;
}

.cart-custom-text:focus {
  border-color: #2563eb;        /* niebieski jak ceny */
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
  outline: none;
}

/* placeholder bardziej premium */
.cart-custom-text::placeholder {
  color: #9ca3af;
  font-size: 12px;
}

/* status pod textarea */
.cart-custom-text-status {
  font-size: 11px;
  min-height: 16px;
  transition: opacity .2s ease;
}

/* gdy zapisane */
.cart-custom-text-status.text-muted {
  color: #6b7280 !important;
}

/* gdy błąd */
.cart-custom-text-status.text-danger {
  color: #dc2626 !important;
}

/* lekki hover całej sekcji */
.variant-table tfoot .custom-text-row td:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
}
/* ===== Upload card ===== */

#cartUploadPickBtn{
  border-radius: 999px;          /* pill button */
  white-space: nowrap;
}

/* jeśli nadal wychodzi "kwadratowy" to zwykle wynika z globalnego resetu */
#cartUploadPickBtn.btn{
  line-height: 1.2;
  padding: .35rem .9rem;
}

/* ===== Dropzone ===== */

.cart-dropzone{
  border: 1px dashed rgba(0,0,0,.25);
  border-radius: 12px;
  background: rgba(0,0,0,.02);
  padding: 14px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.cart-dropzone .cart-dropzone-inner{
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-dropzone .cart-dropzone-ic{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.06);
  font-size: 22px;
}

.cart-dropzone.is-drag{
  border-color: rgba(13,110,253,.55); /* bootstrap primary-ish */
  background: rgba(13,110,253,.06);
  box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}

.cart-dropzone-text .fw-semibold{
  line-height: 1.1;
}

/* ===== Progress ===== */

.cart-upload-progress .progress{
  border-radius: 999px;
  overflow: hidden;
}

/* ===== Pills list ===== */

.cart-upload-pills{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.cart-upload-pill{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: #fff;
}

.cart-upload-pill.is-loading{
  opacity: .55;
  pointer-events: none;
}

.cart-upload-pill .pill-thumb{
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.05);
  flex: 0 0 44px;
}

.cart-upload-pill .pill-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-upload-pill .pill-thumb i{
  font-size: 22px;
  opacity: .75;
}

.cart-upload-pill .pill-meta{
  min-width: 0;
  flex: 1 1 auto;
}

.cart-upload-pill .pill-name{
  font-size: .9rem;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-upload-pill .pill-sub{
  font-size: .78rem;
  line-height: 1.1;
}

.cart-upload-pill .pill-actions{
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.cart-upload-pill .pill-actions .btn{
  border-radius: 10px;
  padding: .25rem .45rem;
  line-height: 1;
}

/* ===== Custom text row ===== */

.custom-text-row .cart-custom-text-wrapper{
  text-align: left;
}

.custom-text-row label{
  text-align: left;
}

/* opcjonalnie: gdy input jest ponad stan */
.variant-quantity-input.is-over-stock{
  border-color: rgba(220,53,69,.65); /* bootstrap danger-ish */
  box-shadow: 0 0 0 .2rem rgba(220,53,69,.12);
}


/* tabele w szczegołach zamowienia */

.order-attachments-table-wrap{
    border:1px solid #d9e1ea;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
}

.order-attachments-table{
    width:100%;
    margin:0;
    border-collapse:collapse;
    border-spacing:0;
    background:#fff;
    font-size:14px;
}

.order-attachments-table thead th{
    background:#f5f7fa;
    color:#374151;
    font-weight:700;
    padding:10px 12px;
    border:1px solid #d9e1ea;
    vertical-align:middle;
    white-space:nowrap;
}

.order-attachments-table tbody td{
    padding:10px 12px;
    border:1px solid #e5e7eb;
    vertical-align:middle;
    background:#fff;
}

.order-attachments-table tbody tr:nth-child(even) td{
    background:#fafbfd;
}

.order-attachments-table tbody tr:hover td{
    background:#f3f6fb;
}

.order-attachment-thumb-cell{
    width:76px;
    text-align:center;
}

.order-attachment-icon-inline{
    width:56px;
    height:56px;
    border-radius:10px;
    border:1px solid #dbe3ee;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    margin:0 auto;
    background:#f8fafc;
}

.order-attachment-icon-inline.pdf{
    color:#c62828;
    background:#fff5f5;
}

.order-attachment-icon-inline.generic{
    color:#6b7280;
    background:#f9fafb;
}

.order-attachment-badge{
    display:inline-block;
    padding:2px 8px;
    border-radius:999px;
    background:#eef4ff;
    color:#2b5dab;
    font-size:11px;
    font-weight:700;
    letter-spacing:.02em;
}

.order-attachment-name{
    font-weight:600;
    color:#111827;
    word-break:break-word;
}

.order-attachment-actions{
    white-space:nowrap;
}

.order-attachment-actions .btn{
    padding:4px 8px;
    font-size:12px;
}

/* =========================
   ORDER TAB TABLES / PANELS
   ========================= */

.order-tab-table-wrap{
    border:1px solid #d9e1ea;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
}

.order-tab-table{
    width:100%;
    margin:0;
    border-collapse:collapse;
    border-spacing:0;
    background:#fff;
    font-size:14px;
}

.order-tab-table thead th{
    background:#f5f7fa;
    color:#374151;
    font-weight:700;
    padding:10px 12px;
    border:1px solid #d9e1ea;
    vertical-align:middle;
    white-space:nowrap;
}

.order-tab-table tbody td{
    padding:10px 12px;
    border:1px solid #e5e7eb;
    vertical-align:middle;
    background:#fff;
}

.order-tab-table tbody tr:nth-child(even) td{
    background:#fafbfd;
}

.order-tab-table tbody tr:hover td{
    background:#f3f6fb;
}

.order-tab-thumb-cell{
    width:76px;
    text-align:center;
}

.order-tab-thumb{
    display:inline-block;
    width:56px;
    height:56px;
    overflow:hidden;
    border-radius:10px;
    border:1px solid #dbe3ee;
    background:#fff;
}

.order-tab-thumb img{
    display:block;
    width:56px !important;
    height:56px !important;
    object-fit:cover !important;
    margin:0;
    padding:0;
    border:0;
}

.order-tab-thumb-empty{
    width:56px;
    height:56px;
    border-radius:10px;
    border:1px solid #dbe3ee;
    background:#f8fafc;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto;
    color:#94a3b8;
    font-size:12px;
}

.order-tab-name{
    font-weight:600;
    color:#111827;
    word-break:break-word;
}

.order-tab-sub{
    font-size:12px;
    color:#6b7280;
}

.order-tab-note-row td{
    background:#fcfcfd !important;
}

.order-tab-note-box{
    font-size:12px;
    color:#4b5563;
    line-height:1.5;
}

.order-history-wrap{
    border:1px solid #d9e1ea;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
}

.order-history-table{
    width:100%;
    margin:0;
    border-collapse:collapse;
    background:#fff;
    font-size:14px;
}

.order-history-table tbody td{
    padding:12px 14px;
    border-bottom:1px solid #e5e7eb;
    vertical-align:top;
    background:#fff;
}

.order-history-table tbody tr:last-child td{
    border-bottom:none;
}

.order-history-table tbody tr:nth-child(even) td{
    background:#fafbfd;
}

.order-history-table tbody tr:hover td{
    background:#f3f6fb;
}

.order-history-comment{
    font-size:13px;
    line-height:1.5;
    white-space:pre-wrap;
    color:#111827;
}

.order-history-comment.system{
    color:#6b7280;
    font-style:italic;
}

.order-history-comment.manual{
    color:#111827;
}

.order-history-comment-empty{
    color:#9ca3af;
}

.order-history-user{
    font-size:12px;
    color:#6b7280;
}

.order-history-empty{
    padding:14px;
    color:#6b7280;
    background:#fff;
    border:1px solid #d9e1ea;
    border-radius:10px;
}

.order-history-user-inline{
    font-size:12px;
    color:#6b7280;
}

.copy-icon{
    opacity:.6;
    transition:.15s;
}

.copy-icon:hover{
    opacity:1;
}



/* ===== Podsumowanie tabeli pozycji zamówienia ===== */

.order-tab-table tfoot tr {
  border-top: 2px solid #dee2e6;
  background: #f8f9fa;
}

.order-tab-table tfoot th,
.order-tab-table tfoot td {
  padding: 10px 12px;
  font-weight: 600;
}

.order-tab-table tfoot th {
  text-align: right;
}

.order-tab-table tfoot td {
  text-align: right;
}

.order-tab-table tfoot td:last-child {
  font-size: 15px;
  font-weight: 700;
  color: #212529;
}

/* liczby */
.order-tab-table .text-end {
  text-align: right;
}

/* uwagi pod wariantem */
.order-tab-note-row td {
  background: #fafafa;
  border-top: none;
}

.order-tab-note-box {
  font-size: 13px;
  color: #555;
  padding: 6px 0;
}

/* miniatury */
.order-tab-thumb {
  display: inline-block;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
}

.order-tab-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-tab-thumb-empty {
  width: 56px;
  height: 56px;
  background: #f1f3f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #999;
}

/* ===== PODSUMOWANIE ZAMÓWIENIA ===== */

.order-items-summary td {
  padding: 16px 12px !important;
  background: #f8f9fa;
  border-top: 2px solid #dee2e6;
}

.order-summary-box {
  max-width: 420px;
  margin-left: auto;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
}

.order-summary-row span:last-child {
  font-weight: 500;
}

.order-summary-total {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #dee2e6;
  font-size: 16px;
  font-weight: 700;
}

.order-summary-total span:last-child {
  font-size: 17px;
}

.order-items-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 992px) {
  .order-items-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.order-summary-panel {
  border: 1px solid #d9e1ea;
  border-radius: 10px;
  background: #fff;
  padding: 14px 16px;
}

.order-summary-panel-title {
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  margin-bottom: 10px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 5px 0;
  font-size: 14px;
}

.order-summary-row span {
  color: #4b5563;
}

.order-summary-row strong {
  color: #111827;
  font-weight: 600;
  white-space: nowrap;
}

.order-summary-row-final {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.order-summary-row-final strong {
  font-size: 16px;
}

/* =========================
   Product tile footer actions
   ========================= */

.product-card-footer{
    padding: 0.75rem 1rem;
}

.product-card-actions{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    grid-template-areas:
        "main main"
        "details stock";
    gap: 6px;
    width: 100%;
}

.product-card-actions .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    white-space: nowrap;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-actions .btn i{
    font-size: 14px;
    flex: 0 0 auto;
}

.product-card-actions .btn span{
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dodaj / Usuń */
.product-action-main{
    grid-area: main;
    width: 100%;
    min-width: 0;
}

/* Szczegóły */
.product-action-details{
    grid-area: details;
    width: 100%;
    min-width: 0;
}

/* Stany */
.product-action-stock{
    grid-area: stock;
    width: 42px;
    min-width: 42px;
    padding: 0 !important;     /* usuwa bootstrapowy padding */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.product-action-stock span{
    display: none;
}

/* przycisk nie może mieć left/right padding */
.product-action-stock.btn{
    padding: 0 !important;
}

/* ikona dokładnie w środku */
.product-action-stock i{
    font-size: 15px;
    line-height: 1;
    margin: 0;
}

/* małe ekrany */
@media (max-width: 575.98px){
    .product-card-footer{
        padding: 0.6rem 0.75rem;
    }

    .product-card-actions .btn{
        min-height: 34px;
        padding: 0.45rem 0.75rem;
        font-size: 13px;
    }

    .product-card-actions .btn i{
        font-size: 13px;
    }
}