/* ===============================
   GLOBAL
================================ */

:root{
    --bs-body-bg: #e4e4e2;
    --bs-body-color: #2d2d2d;

    --bs-border-color: #e2e2de;

    --radius-main: 14px;
    --radius-small: 10px;

    --bs-primary: #3a6df0;
}

body{
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-weight: 400;
}

/* usuń wszystkie bootstrapowe cienie */

.shadow,
.shadow-sm,
.shadow-lg{
    box-shadow:none !important;
}


/* ===============================
   CONTAINERS
================================ */

.container,
.container-fluid{
    padding-top: 10px;
    padding-bottom: 10px;
}


/* ===============================
   CARDS
================================ */

.card{
    border-radius: var(--radius-main);
    border: 1px solid var(--bs-border-color);
    background:#ffffff;
}

.card-header{
    background:#fafaf8;
    border-bottom:1px solid var(--bs-border-color);
    border-radius: var(--radius-main) var(--radius-main) 0 0 !important;
}


/* ===============================
   BUTTONS
================================ */

.btn{
    border-radius: var(--radius-small);
    padding: .5rem 1rem;
    box-shadow:none !important;
}

.btn-primary{
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover{
    filter:brightness(0.95);
}

.btn-light{
    background:#f7f7f5;
    border:1px solid var(--bs-border-color);
}


/* ===============================
   FORMS
================================ */

.form-control,
.form-select{
    border-radius: var(--radius-small);
    border:1px solid var(--bs-border-color);
    background:#fff;
}

.form-control:focus,
.form-select:focus{
    border-color:#cfcfcb;
    box-shadow:none;
}


/* ===============================
   NAVBAR
================================ */

.navbar{
    background:#ffffff;
    border-bottom:1px solid var(--bs-border-color);
}

.navbar-brand{
    font-weight:600;
}


/* ===============================
   TABLES
================================ */

.table{
    border-radius: var(--radius-main);
    overflow:hidden;
    background:#fff;
}

.table thead{
    background:#f7f7f5;
}


/* ===============================
   LIST GROUP
================================ */

.list-group-item{
    border-color: var(--bs-border-color);
}


/* ===============================
   MODALS
================================ */

.modal-content{
    /*border-radius: var(--radius-main);*/
    /*border:1px solid var(--bs-border-color);*/
    box-shadow:none;
}


/* ===============================
   DROPDOWN
================================ */

.dropdown-menu{
    border-radius: var(--radius-small);
    border:1px solid var(--bs-border-color);
    box-shadow:none;
}


/* ===============================
   LINKS
================================ */

a{
    text-decoration:none;
}

a:hover{
    text-decoration:underline;
}



/* custom*/
.slick-prev:before,
.slick-next:before {
  color: #206bc4;
}
.slick-track
{
    display: flex !important;
}

.slick-slide
{
    height: inherit !important;
}

.card {
    box-shadow: none !important;
    border: none;
}

.card-header-tabs {
  margin-right: -0.625rem;
  margin-bottom: -1rem;
  margin-left: -0.625rem;
  border-bottom: 0;
}
.card-header-tabs .nav-link.active {
  background-color: #314264;
  border-color: #2c3c56;
    color: #FFFFFF;
}

.card-header-tabs .nav-link:hover {
  border-color: #2c3c56;
    background-color: #2c3c56;
}

.card-header-pills {
  margin-right: -0.625rem;
  margin-left: -0.625rem;
}

.cover-image-container {
        background: rgba(220, 220, 220, 0.9);
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        position: relative;
        overflow: hidden;
}

.cover-image-container a {
      display: block;
      height: 100%;
      width: 100%;
      position: relative;
      top: 0px;
      left: 0px;
}

.cover-title-content {
    color: #000;
    bottom:0px;
    right:0px;
    width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    padding-top:1em;
}

.cover-title-strong {
    font-size: 1em;
    font-weight: bold;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

    cursor: default;
    line-height: 1.2em;
    min-height: 2.4em;
}

.cover-title-strong:hover {
    -webkit-line-clamp: unset;
    overflow: visible;
    min-height: unset;
}


.cover-title-author {
    font-size:0.8em;
    font-weight:100;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;

    cursor: default;
    line-height: 1.2em;
    min-height: 1.2em;
}

.cover-title-author:hover {
    -webkit-line-clamp: unset;
    overflow: visible;
    min-height: unset;
}

.second-image-container {
        background: rgba(220, 220, 220, 0.9);
        height:200px;
        background-size: cover;
        background-size: 40%;
        background-position: left;
        background-repeat: no-repeat;
        position: relative;
        overflow: hidden;
        border-radius:10px;
}

.second-image-container a {
      display: block;
      height: 100%;
      width: 100%;
      position: relative;
      top: 0px;
      left: 0px;
}

.second-title-content {
    background: rgba(220, 220, 220, 0.9);
    color: #000;
    bottom:0px;
    right:0px;
    padding: 1em;
    width: 60%;
        position:absolute;
        height: 100%; /* Ustawienie wysokości kontenera z tekstem na 50% */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
}

.third-image-container {
        background: rgba(220, 220, 220, 0.9);
        height:100px;
        background-size: cover;
        background-size: 30%;
        background-position: left;
        background-repeat: no-repeat;
        position: relative;
        overflow: hidden;
        border-radius:10px;
}

.third-image-container a {
      display: block;
      height: 100%;
      width: 100%;
      position: relative;
      top: 0px;
      left: 0px;
}

.third-title-content {
    background: rgba(220, 220, 220, 0.9);
    color: #000;
    bottom:0px;
    right:0px;
    padding: 1em;
    width: 70%;
        position:absolute;
        height: 100%; /* Ustawienie wysokości kontenera z tekstem na 50% */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
}

.third {
      width: 100%;
      margin: auto;
      text-align: left;
}

.small-cover-image-container {
        background: rgba(220, 220, 220, 0.9);
        height:180px;
        background-size: cover;

        background-position: left;
        background-repeat: no-repeat;
        position: relative;
        overflow: hidden;
        border-radius:10px;
}

.small-cover-image-container a {
  display: block;
  height: 100%;
  width: 100%;
  position: relative;
  top: 0px;
  left: 0px;
}

.small-cover-title-content {
    background: rgba(220, 220, 220, 0.9);
    color: #000;
    bottom:0px;
    right:0px;
    padding: 1em;
    width: 70%;
        position:absolute;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
}

.small-cover {
  width: 100%;
  margin: auto;
  text-align: left;
}

.hline_category {
        color: #3d3d3d;
        border: 1px solid #d0d0d0;
        width: 100%;
        margin-top: 0px;
}

.hline_primary {
        color: #3d3d3d;
        border-bottom: 1px solid #d0d0d0;
        width: 100%;
        margin-top: 0px;
}

.slick-track {
    margin-left: 0;
}

.slide_container {
        margin: 0.5em;
}

body {
      margin: 0;
      font-family: Arial, sans-serif;
      display: block;
      align-items: center;
      justify-content: center;

      background-color: #f2f2f2;
}

.spinner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.spinner {
  border: 8px solid #3498db;
  border-top: 8px solid #f2f2f2;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
}

.page {
    /*display: none;*/
}

.notification {
      display: none;
      position: fixed;
      top: 40px;
      right: 10px;
      background-color: #4CAF50;
      color: #fff;
      padding: 15px;
      border-radius: 5px;
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      animation: fadeInOut 3s ease-in-out forwards;
}

@keyframes fadeInOut {
        0%, 100% {
        opacity: 0;
      }
      25%, 75% {
        opacity: 1;
      }
}

.comment {
      position: relative;
      max-width: 100%;
      padding: 10px;
      margin-bottom: 20px;
      background-color: #f0f0f0;
      border-radius: 10px;
    }

.comment::before {
  content: '„'; /* Znak otwierający cudzysłów bez odstępu przed treścią */
  position: absolute;
  top: 0;
  left: 5px; /* Odsunięcie od lewej strony */
  font-size: 64px; /* Zwiększenie rozmiaru czcionki dla znaku cudzysłowia */
  color: #333; /* Kolor czcionki */
  transform: translateY(-50%);
}

.comment p {
  margin-left: 1.5em; /* Odsunięcie tekstu od lewej strony */
}

.title_header {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height:50px;

}

.author_header_small {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height:20px;

}

.product-card .author-small {
  font-size: 12px;
  font-weight: 400;
  padding: 0;
  color: #333;
  text-transform: capitalize;
  display: block;
  margin-bottom: 5px;
}

.custom-pagination select {
    display:inline-block;
    width:90px;
    border-radius:0px;
    text-align: center;
    text-align-last: center;
    -moz-text-align-last: center;
}

.slick-track
{
    display: flex !important;
}

.slick-slide
{
    height: inherit !important;
}

.slick-prev:before, .slick-next:before {
    font-family: 'FontAwesome';
    font-size: 50px;
}
.slick-prev:before {
  content: '\f104'; /* Unicode dla fa-chevron-left w starszej wersji Font Awesome */
}
.slick-next:before {
  content: '\f105'; /* Unicode dla fa-chevron-right w starszej wersji Font Awesome */
}

.slick-slider {
    position: relative;
}

.slick-prev, .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

@media (min-width: 992px) {
  #fullScreenModal {
        display: none !important;
  }
  #desktopContent {
        display: block; !important;
  }
}

@media (max-width: 991.98px) {
  #desktopContent {
        display: none; !important;
  }
}


#results {
    margin-top: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.search-result {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.search-result img {
    margin-right: 10px;
}

.search-result div {
    max-width: 100%;
}

.search-result strong {
    font-size: 16px;
    color: #333;
}

.search-result em {
    font-size: 14px;
    color: #666;
}


body.modal-open {
    overflow: hidden;
}

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background: #e4e4e4;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    width: 80%;
    max-width: 800px;

    position: relative;
}

.search-bar {
    width: 100%;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
    padding: 20px 0;
    border-bottom: 1px solid #206bc4;
}

#modalSearch {
    width: 100%;
    font-size: 18px;
    border: none;
    outline: none;
    padding: 0 20px;
    transition: border-color 0.3s;
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: #206bc4;
    transition: width 0.3s;
}

#modalSearch:focus + .underline {
    width: 100%; /* Animacja podkreślenia */
}

.search-results {
    margin-top: 20px;
         width: 100%;
}

.close-modal {
        position: absolute;
    top: 10px;
    right: 20px;
    font-size: 34px;
    background: none;
    border: none;
    color: #206bc4;
    cursor: pointer;
        z-index:1010;
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        padding: 10px;
    }

    .search-bar {
        padding: 15px 0;
    }

    #modalSearch {
        font-size: 16px;
    }
}



@media (min-width: 768px) {

    .row-cards .col-md-2 {
        position: relative;
        padding-bottom: 16px;
    }

    .row-cards .col-md-2:not(:nth-child(6n))::after {
        content: "";
        position: absolute;
        top: 12px;
        bottom: 12px;
        right: 0;
        width: 1px;
        background: rgba(0,0,0,0.08);
    }

    .row-cards .col-md-2 {
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    #.row-cards .col-md-2:nth-last-child(-n+6) {
    #    border-bottom: none;
    #}
}

.categories {
    margin: 40px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.category-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;

    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* Backgrounds dla każdej kategorii */
.category-tile.fantasy {
    background-image: url('/img/fantasy.jpg');
}

.category-tile.powiesc-obyczajowa {
    background-image: url('/img/powiesc-obyczajowa.jpg');
}

.category-tile.thriller {
    background-image: url('/img/thriller.jpg');
}

.category-tile.romans {
    background-image: url('/img/romans.jpg');
}

.category-tile.literatura-faktu {
    background-image: url('/img/literatura-faktu.jpg');
}

.category-tile.dziecieca {
    background-image: url('/img/dziecieca.jpg');
}

.category-tile.kryminal {
    background-image: url('/img/kryminal.jpg');
}

.category-tile.horror {
    background-image: url('/img/horror.jpg');
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.dynamic-result { padding: 0.5rem 0; border-bottom: 1px solid #ddd; }
.dynamic-result img { width: 60px; height: 90px; object-fit: cover; }
.dynamic-title { font-weight: bold; text-transform: uppercase; }
.dynamic-author { font-style: italic; color: #555; }
.dynamic-price { font-weight: bold; text-align: right; white-space: nowrap; }

.shipping-icons {
    font-size: 0.85rem;
}

.ship-item {
    display: block;
    margin-top: 2px;
}

.info-icon {
    cursor: pointer;
    margin-left: 4px;
}

/* DESKTOP TOOLTIP */
@media (hover: hover) {
    .info-icon:hover::after {
        content: attr(data-note);
        position: absolute;
        background: #222;
        color: #fff;
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 0.8rem;
        width: 220px;
        z-index: 1000;
        transform: translate(-50%, -120%);
        left: 50%;
        bottom: 0;
    }
}

#mobile-note-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 9999;
}

#mobile-note-overlay .note-box {
    background: #fff;
    padding: 20px;
    margin: 20% auto;
    width: 90%;
    border-radius: 8px;
}

.close-note {
    border: none;
    background: none;
    font-size: 1.4rem;
    float: right;
}

.offer-block {
    border-top: 1px solid #dee2e6; /* linia oddzielająca oferty */
    padding: 0.5rem 0;
}

.offer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* wyrównanie do góry, wszystkie trzy w jednej linii */
    flex-wrap: wrap; /* pozwala na lekkie zawijanie przy ekstremalnie małych ekranach */
    gap: 0.5rem;
}

.seller-name {
    flex: 1 1 auto;
    min-width: 120px;
}

.price {
    flex: 0 0 auto; /* stała szerokość, nie spada pod nazwę */
    text-align: center;
    min-width: 80px;
}

.shop-link {
    flex: 0 0 auto; /* przycisk nie zawija się pod inne elementy */
    text-align: right;
    min-width: 80px;
    margin-top: 0.1em
}
.shipping-icons {
    margin-top: 0.25rem;
    font-size: 0.75em; /* mniejsza czcionka dla kosztów dostawy */
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

button.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    button.mobile-only {
        display: inline-block;
    }
}



.dynamic-result { padding: 0.5rem 0; border-bottom: 1px solid #ddd; }
.dynamic-result img { width: 60px; height: 90px; object-fit: cover; }
.dynamic-title { font-weight: bold; text-transform: uppercase; }
.dynamic-author { font-style: italic; color: #555; }
.dynamic-price { font-weight: bold; text-align: right; white-space: nowrap; }



  .mobile-only {
            display: none;
        }

        @media (max-width: 576px) {
            .mobile-only {
                display: block;
            }

            .desktop-form {
                display: none;
            }
        }

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top: 2px solid #333;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.table-row-clickable {
    cursor: pointer;
}

.thumb.border-primary {
    border: 2px solid #0d6efd !important;
}


@media (max-width: 576px) {
    .modal-fullscreen-sm-down {
        height: 100vh;
        margin: 0;
    }

    .modal-content {
        height: 100%;
        border-radius: 0;
    }

    .modal-body {
        overflow-y: auto;
    }
}


.chat-bell-icon {
    position: relative;
    transition: color 0.2s ease;
}

/* brak wiadomości */
.chat-bell-icon.idle {
    color: #6c757d;
}

/* są wiadomości */
.chat-bell-icon.has-unread {
    color: #dc3545;
}

/*.chat-bell-icon.has-unread::after {
   content: '';
    position: relative;
    top: -5px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
}
*/

.chat-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    pointer-events: auto;
}

.chat-fab svg {
    pointer-events: none;
}

.chat-fab-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.chat-fab-icon.idle {
    color: #6c757d;
}

.chat-fab-icon.has-unread {
    color: #dc3545;
}

