/*
Theme Name: NBP (Kolekcjoner)
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** VARIABLES ***************/
:root {
  --primary-blue-dark: #072143 !important;
  --secondary-gold: #c5ac75 !important;
  --success-green: #58873e !important;
}


/*************** GENERAL LAYOUT ***************/
.container {
  max-width: 1440px !important;
}

#content {
  padding-left: 0px;
  padding-right: 0px;
}

input:hover {
  cursor: pointer;
}

.toggle i {
  font-size: 1.2rem;
}

div.col-no-padding {
  padding: 0px !important;
}

.slider .flickity-prev-next-button:hover svg,
.slider .flickity-prev-next-button:hover .arrow {
  fill: var(--secondary-gold) !important;
}

.success-color {
  color: var(--success-green) !important;
}

.box-image {
  margin-top: auto !important;
}

.box-image img {
  height: 100%;
  width: revert-layer !important;
}

body.home .box-image img,
.upsells .box-image img {
  width: 80% !important;
}

body.term-nbp-banknoty-kolekcjonerskie .box-image img.back-image {
  object-fit: contain !important;
}

/*************** RESPONSIVE VISIBILITY ***************/
@media (min-width: 850px) {
  .content-hidden-desktop {
    display: none !important;
  }

  .site-title-description {
    display: block !important;
  }

  .footer-wrapper .social-icons.content-hidden-desktop {
    display: none !important;
  }

  .footer-wrapper .social-icons.content-hidden-mobile {
    display: flex !important;
  }

  .col-lg-4 {
    width: 33.3333%;
    float: left;
  }

  .col-lg-8 {
    width: 66.6667%;
    float: left;
  }

  .product-info {
    padding-top: 20px;
    padding-right: 20px;
  }

  .product-main .row {
    padding: 0 10px !important;
  }

  .footer-wrapper .social-icons a.icon {
    margin-right: 20px !important;
  }
}

@media (max-width: 849px) {
  .content-hidden-mobile {
    display: none !important;
  }

  .footer-wrapper .social-icons.content-hidden-mobile {
    display: none !important;
  }

  .footer-wrapper .social-icons.content-hidden-desktop {
    display: flex !important;
  }

  .off-canvas-left .mfp-content,
  .off-canvas-right .mfp-content {
    background-color: var(--primary-blue-dark) !important;
    width: 100% !important;
    padding-top: 50px;
  }

  .off-canvas-left .mfp-content li a:not(.searchform button[type="submit"]),
  .off-canvas-left .mfp-content li i:not(.icon-search),
  .off-canvas-right .mfp-content li a:not(.searchform button[type="submit"]),
  .off-canvas-right .mfp-content li i:not(.icon-search),
  .mfp-ready .mfp-close {
    color: #fff !important;
  }

  .mfp-close svg {
    width: 35px;
    height: 35px;
  }

  .col-lg-4,
  .col-lg-8 {
    width: 100%;
    float: none;
  }

  .product-info {
    margin-top: 1rem;
    order: 2;
    padding: 10px;
  }

  .product-info .product-title {
    text-align: left;
  }

  .btn-add-cart {
    width: 100% !important;
    padding: 5px !important;
  }

  .product-main form.cart .quantity input.button {
    width: 25%;
  }

  .product-main form.cart .quantity input.qty {
    width: 100%;
    max-width: 100%;
  }
}

/*************** HEADER ***************/

/* Shadow dla header-main tylko na desktopie - zwiększona specyficzność */
body div#masthead.header-main {
  position: relative !important;
}

body div#masthead.header-main::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./assets/images/header_overlay.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  pointer-events: none;
  display: block;
  z-index: 1;
}

/* Ukryj shadow na mobile */
@media (max-width: 849px) {
  body div#masthead.header-main::after {
    background-size: cover;
  }
}

body div#masthead.header-main * {
  z-index: 2;
}

.header-language-switch a {
  font-size: 1rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.1rem !important;
}

.site-title-description {
  color: #fff !important;
  font-size: 1.1rem !important;
  display: none;
}

.header-news-link {
  display: inline-flex;
  align-items: center;
  margin: 0 10px;
  font-weight: 500;
}

.header-news-link svg {
  margin-right: 5px;
}

span.site-title {
  font-family: "Brygada 1918", serif !important;
  font-weight: 400 !important;
  font-size: 1rem;
}

.header-bottom-nav {
  height: 60px !important;
}

/* Navigation underline effect for entire li - poprawiony */
.header-bottom-nav.nav-line-grow > li:not(.header-search-form) {
  position: relative;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  height: inherit;
}

.header-bottom-nav.nav-line-grow > li:not(.header-search-form) a {
  color: #fff;
  font-family: 'Libre Franklin', sans-serif !important;
  font-weight: 400;
  font-style: "normal";
  font-size: 15px;
  line-height: 140%;
  letter-spacing: 7%;
  vertical-align: middle;
  padding: 10px 5px;
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

/* Usunięcie niepotrzebnych pseudo-elementów */
.header-bottom-nav.nav-line-grow > li:not(.header-search-form) a::before {
  content: none !important;
  display: none !important;
}

/* Tło animowane od dołu */
.header-bottom-nav.nav-line-grow > li:not(.header-search-form)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
  pointer-events: none;
}

/* Efekty hover/focus */
.header-bottom-nav.nav-line-grow > li:not(.header-search-form):hover::after,
.header-bottom-nav.nav-line-grow
  > li:not(.header-search-form):focus-within::after {
  transform: scaleY(1);
}

/* Pokazanie górnej kreski podczas hovera */
.header-bottom-nav.nav-line-grow > li:not(.header-search-form):hover::before,
.header-bottom-nav.nav-line-grow
  > li:not(.header-search-form):focus-within::before {
  transform: scaleX(1);
}

/* Zmiana koloru tekstu na primary blue podczas hovera */
.header-bottom-nav.nav-line-grow > li:not(.header-search-form):hover > a,
.header-bottom-nav.nav-line-grow
  > li:not(.header-search-form):focus-within
  > a {
  color: var(--primary-blue-dark) !important;
}

/* info o ilości wrzuconych do koszyka produktów */
.icon-shopping-cart::after {
  background-color: var(--secondary-gold) !important;
}

/*dropdown w menu górnym*/
.nav-dropdown-has-border .nav-dropdown {
  top: 60px;
}
.menu-item.has-dropdown {
  overflow: inherit !important;
}
ul.sub-menu.nav-dropdown.nav-dropdown-simple {
  background: #bdad7d;
}
.header-bottom-nav.nav-line-grow > li:not(.header-search-form):hover::after {
  margin-left: 0;
}


.nav-dropdown.dropdown-uppercase > li > a {
  text-transform: unset !important;
}

/*************** SEARCH FORM ***************/
li.search-form {
  width: 80%;
}

.searchform button[type="submit"] {
  margin-left: -10px !important;
  background-color: #fff !important;
  border-top-right-radius: 5px !important;
  border-bottom-right-radius: 5px !important;
}

.searchform .button.loading::after {
  border: 2px dashed var(--primary-blue-dark) !important;
  animation: spin 1.5s linear infinite !important;
  margin-left: -50px !important;
}

.searchform button[type="submit"],
.searchform button[type="submit"] i.icon-search {
  color: var(--primary-blue-dark) !important;
  transition: all 0.3s ease-in-out !important;
}

.searchform button[type="submit"]:hover {
  background-color: var(--primary-blue-dark) !important;
  color: #fff;
}

.searchform button[type="submit"]:hover i.icon-search {
  color: #fff !important;
}

.searchform input[type="search"] {
  padding: 8px 12px;
  font-family: 'Libre Franklin', sans-serif !important;
  font-weight: 400 !important;
  border-radius: 5px !important;
}

/*************** FOOTER ***************/
.footer-wrapper {
  background-color: var(--primary-blue-dark) !important;
  padding-top: 4.26rem !important;
  padding-bottom: 2.13rem !important;
}

.footer-wrapper a {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.footer-wrapper a.ux-logo-link {
  padding-top: 0 !important;
}

/* Social Icons */
.footer-wrapper .social-icons {
  display: flex !important;
  justify-content: left;
  flex-wrap: wrap;
}

.footer-wrapper .social-icons a.icon {
  margin: 0 10px 5px 0 !important;
  border: 1px solid var(--secondary-gold) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out !important;
}

.footer-wrapper .social-icons a.icon:hover {
  background-color: var(--secondary-gold) !important;
  border-color: var(--secondary-gold) !important;
}

.footer-wrapper .social-icons a.icon i {
  color: var(--secondary-gold) !important;
  transition: all 0.3s ease-in-out !important;
}

/* Copyright */
div.col-copyright {
  margin-top: 50px !important;
}

.col-copyright p {
  opacity: 0.8 !important;
  font-weight: 400 !important;
}

/*************** HOMEPAGE NEWS SECTION ***************/

.home-news-section h5.post-title {
  font-family: "Brygada 1918", serif !important;
  font-weight: 400 !important;
  color: var(--primary-blue-dark) !important;
}

.home-news-section p {
  color: #6f6f6f !important;
}

.home-news-section-title {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.home-news-section-title a {
  margin: 0 15px -2px 0 !important;
  padding: 0 0 7.5px 0 !important;
  border-bottom: 2px solid var(--secondary-gold) !important;
  animation: mymove 3s forwards !important;
  white-space: nowrap !important;
}

.section-title-normal span {
  border-bottom: 2px solid var(--secondary-gold) !important;
}

.section-title span,
.home-news-section-title a {
  text-transform: unset !important;
  font-weight: 400 !important;
  color: #6f6f6f !important;
}

@keyframes mymove {
  from {
    top: 0px;
  }

  to {
    top: 200px;
  }
}

/*************** PRODUCT PAGE ***************/

/*************** PRODUCT PAGE ***************/
.product-lightbox h1 {
  font-family: "Brygada 1918", serif !important;
}

.product-lightbox .product-gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-main .product-title {
  font-size: 32px;
  font-family: "Brygada 1918", serif;
  color: var(--primary-blue-dark);
  margin-bottom: 0px;
}

@media(max-width: 849px) {
  .product-main .product-title {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.single_add_to_cart_button {
  width: 100% !important;
  background-color: var(--secondary-gold) !important;
  text-transform: unset !important;
}


.btn-add-cart {
  margin-top: 1rem !important;
  text-transform: unset !important;
}

.product-page-category {
  font-size: 1rem !important;
  color: #6f6f6f;
  margin-bottom: 0;
}

.product-page-category a {
  color: var(--secondary-gold) !important;
  transition: all 0.3s;
}

.product-page-category a:hover {
  color: var(--primary-blue-dark) !important;
}

.product-page-price {
  font-weight: 400 !important;
}

.product-page-price span {
  color: var(--primary-blue-dark) !important;
  font-weight: 400 !important;
}

.product-info .price-gross {
  font-size: 24px !important;
}
.product-info .price-net {
  font-size: 24px !important;
}

.product-page-short-desription-wrapper p {
  color: #6f6f6f !important;
}

form.cart {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

form.cart .quantity {
  margin-bottom: 1rem;
  width: 100%;
}

form.cart .quantity input.button {
  background-color: var(--primary-blue-dark);
  color: #fff;
  border: 1px solid var(--secondary-gold);
  text-shadow: none;
  font-weight: 700;
  transition: all 0.3s;
  width: 15%;
}

form.cart .quantity input.button:hover {
  background-color: var(--secondary-gold);
}

form.cart .quantity input.qty {
  background-color: #fff;
  color: var(--primary-blue-dark);
  border-top: 1px solid #f3f3f3;
  border-bottom: 1px solid #f3f3f3;
  padding: 5px 10px;
  width: 100% !important;
  max-width: 100% !important;
  box-shadow: none !important;
  outline: none !important;
}

form.cart .quantity input.qty:active,
form.cart .quantity input.qty:focus {
  outline: none;
  box-shadow: none;
}

/*************** ACCORDION ***************/
.product-page-accordian {
  margin-bottom: 50px;
}

.product-page-accordian .accordion .toggle {
  left: unset;
  right: 0;
}

.product-page-accordian .accordion-title,
.product-page-accordian .accordion-inner {
  padding-left: 10px;
  padding-right: 10px;
}

a.accordion-title.active {
  border-color: var(--secondary-gold) !important;
}

a.accordion-title.active,
a.accordion-title button {
  color: var(--secondary-gold) !important;
}

.product-page-accordian .woocommerce-product-attributes th {
  text-transform: unset !important;
}

/*************** PODSTRONA WIADOMOŚCI ***************/
.wiadomosci-boxes {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.wiadomosci-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.wiadomosc-box {
  border: 1px solid #ddd;
  padding: 15px;
  background-color: #fff;
}

.wiadomosc-box img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1/1;
}

@media screen and (max-width: 849px) {
  .wiadomosci-row {
    grid-template-columns: 1fr;
  }
}

.pagination {
  text-align: center;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  margin: 0 5px;
  padding: 8px 12px;
  border: 0px !important;
  border-radius: 5px;
  color: var(--primary-blue-dark);
  text-decoration: none;
  transition: all 0.3s;
}

.pagination a:hover,
.pagination a:focus {
  background-color: var(--secondary-gold) !important;
  color: #fff !important;
  border-color: var(--secondary-gold) !important;
}

.pagination .current {
  background-color: var(--secondary-gold);
  color: #fff;
  border-color: var(--secondary-gold);
}

/*************** STRONA KATEGORII ***************/
@media (min-width: 850px) {
  #shop-sidebar {
    padding-top: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 849px) {
  .category-page-row {
    padding: 10px;
  }
}

.shop-container {
  margin-bottom: 50px;
}

.custom-product-info {
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}

.custom-product-category {
  font-weight: 400;
  color: var(--secondary-gold);
  margin-bottom: 3px;
}

.custom-product-category-cat-name,
.custom-product-price-price-label {
  color: #6f6f6f;
}

.custom-product-title {
  font-family: "Brygada 1918", serif;
  font-size: 16px;
  color: var(--primary-blue-dark);
  margin-bottom: 3px;
}

.custom-product-price, 
.custom-product-price span.amount {
  color: var(--primary-blue-dark) !important;
  font-size: 15px;
  font-weight: 400 !important;
}

.shop-container .products {
  padding-left: 10px !important;
  padding-right: 10px !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
}

.shop-container .products > .product-small{
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid #f3f3f3 !important;
  padding: 10px !important;
}

.shop-container .product-small {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.shop-container .product-small .box-text {
  margin-top: auto;
  padding-top: 10px;
  padding-bottom: 0;
}

@media (max-width: 849px) {
  .shop-container .products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

a.quick-view {
  background-color: var(--secondary-gold) !important;
  text-transform: none !important;
}

/* LOGIN / REGISTER / MY ACCOUNT */

button[name="login"],
button[name="register"] {
  background-color: var(--secondary-gold) !important;
}

/* CART */

.woocommerce-mini-cart__buttons .button {
  background-color: var(--secondary-gold) !important;
  color: #fff !important;
  border: 1px solid var(--secondary-gold) !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}

button[name="update_cart"],
a.checkout-button,
button#place_order {
  background-color: var(--secondary-gold) !important;
}

a.button-continue-shopping {
  color: var(--secondary-gold) !important;
  border: 1px solid var(--secondary-gold) !important;
}

a.button-continue-shopping:hover {
  background-color: var(--secondary-gold) !important;
  color: #fff !important;
  border-color: var(--secondary-gold) !important;
}

/* THE EVENTS CALENDAR */
.home
  .tribe-common.tribe-events.tribe-events-widget.tribe-events-view--shortcode.tribe-events-widget-events-month,
.home .tribe-common-l-container.tribe-events-l-container {
  padding: 0px !important;
}

.home .tribe-events-widget-events-month__view-more {
  display: none !important;
}

.home .tribe-events-calendar-month__day-cell {
  display: flex;
  justify-content: center;
  width: 50% !important;
  height: 50% !important;
  border-radius: 50% !important;
  transition: all 0.3s;
}

/* Styling dla komórek kalendarza - wersja mobilna */
@media (max-width: 849px) {
  .home .tribe-events-calendar-month__day-cell {
    width: 30px !important;
    /* stała szerokość */
    height: 30px !important;
    /* stała wysokość - taka sama jak szerokość */
    min-width: 30px !important;
    /* zapewnienie minimalnej szerokości */
    min-height: 30px !important;
    /* zapewnienie minimalnej wysokości */
    max-width: 30px !important;
    /* ograniczenie maksymalnej szerokości */
    max-height: 30px !important;
    /* ograniczenie maksymalnej wysokości */
    padding: 0 !important;
    /* usunięcie paddingów */
    align-items: center;
    /* wycentrowanie zawartości w pionie */
  }

  /* Popraw rozmiar czcionki dla numerów dni na urządzeniach mobilnych */
  .home .tribe-events-calendar-month__day-date-daynum {
    font-size: 12px !important;
  }

  /* Dostosuj centrowanie komórek kalendarza */
  .home .tribe-events .tribe-events-calendar-month__day {
    min-height: 40px !important;
  }
}

.home
  .tribe-events-calendar-month__day-cell:not(
    .tribe-events-calendar-month__day-cell--has-events
  ):hover {
  cursor: initial;
  background-color: unset !important;
}

.home .tribe-events-calendar-month__day-cell--has-events {
  cursor: pointer !important;
  background-color: var(--secondary-gold) !important;
  color: #fff !important;
}

.home .tribe-events-calendar-month__day-cell--has-events:hover {
  background-color: var(--primary-blue-dark) !important;
  color: #fff !important;
}

.home .tribe-events-calendar-month__day-cell--has-events h3 time {
  color: #fff !important;
}

.home .tribe-events-calendar-month__day-cell h3 time,
.home .tribe-events .tribe-events-calendar-month__header-column-title {
  font-size: 1.2rem;
  font-family: "Brygada 1918", serif;
}

.home .tribe-events .tribe-events-calendar-month__day {
  display: flex !important; 
  justify-content: center !important;
  align-items: center !important;
}

.home
  .tribe-common.tribe-events.tribe-events-widget-shortcode.tribe-events-widget-shortcode-events-month {
  background-color: unset !important;
  color: unset !important;
}


.home .tribe-events-c-top-bar__nav-link--prev,
.home .tribe-events-c-top-bar__nav-link--next{
  border: 1px solid var(--secondary-gold) !important;
  border-radius: 0.25rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  height: 30px !important;
  width: 40px !important;
  transition: all 0.3s;
}

.home .tribe-events-c-top-bar__nav-link--prev:hover,
.home .tribe-events-c-top-bar__nav-link--next:hover {
  background-color: var(--secondary-gold) !important;
  border-color: var(--secondary-gold) !important;
}

.home .tribe-events-c-top-bar__nav-link--prev svg,
.home .tribe-events-c-top-bar__nav-link--next svg {
  display: none !important;
}

.home .tribe-events-c-top-bar__nav-link--prev.tribe-common-c-btn-icon::before,
.home .tribe-events-c-top-bar__nav-link--next.tribe-common-c-btn-icon::before {
  width: 0.9rem;
  height: 0.6rem;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: block;
}

.home .tribe-events-c-top-bar__nav-link--prev.tribe-common-c-btn-icon::before {
  background-image: url("./assets/images/icons/carousel-arrow-prev.svg");
}

.home .tribe-events-c-top-bar__nav-link--next.tribe-common-c-btn-icon::before {
  background-image: url("./assets/images/icons/carousel-arrow-next.svg");
}

.home .tribe-events-c-top-bar__nav-list-date {
  color: var(--primary-blue-dark) !important;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 28px;
  font-family: "Brygada 1918", serif;
  letter-spacing: 0;
  text-transform: capitalize;
}

.home
  .tribe-events
  .tribe-events-calendar-month__day-cell--selected:not(
    .tribe-events-calendar-month__day-cell--has-events
  ) {
  background-color: transparent !important;
}

.home .tribe-events .tribe-events-calendar-month__day--current time {
  font-weight: normal !important;
}

.home
  .tribe-events
  .tribe-events-calendar-month__day-cell--selected:not(
    .tribe-events-calendar-month__day-cell--has-events
  ):hover {
  background-color: transparent !important;
}

.home
  .tribe-events
  .tribe-events-calendar-month__day--past
  .tribe-events-calendar-month__day-date {
  opacity: unset !important;
}

.home .tribe-common a:not(.tribe-common-anchor--unstyle):focus {
  outline: none !important;
}

/* Stylizacja sekcji dnia */

#events-day-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
}

.modal-content {
  background: white;
  padding: 20px;
  max-width: 600px;
  margin: 100px auto;
  position: relative;
  border-radius: 8px;
}

.home .tribe-events-calendar-month-mobile-events__mobile-day.day-has-events {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  border-left: 5px solid var(--secondary-gold);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.home .tribe-events-calendar-month-mobile-events__mobile-day.day-has-events a {
  transition: all 0.3s;
}

.home
  .tribe-events-calendar-month-mobile-events__mobile-day.day-has-events
  a:hover {
  color: var(--secondary-gold) !important;
  border-bottom: 2px solid transparent !important;
}

/* Data (góra karty) */
.home .tribe-events-c-day-marker__date {
  font-family: "Brygada 1918", serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-blue-dark);
  margin-bottom: 10px;
  display: block;
}

/* Pojedyncze wydarzenie */
.home .tribe-events-calendar-month-mobile-events__mobile-event {
  padding: 10px 0;
  border-top: 1px solid #e2e2e2;
}

.home .tribe-events-calendar-month-mobile-events__mobile-event:first-of-type {
  border-top: none;
}

/* Tytuł wydarzenia */
.home .tribe-events-calendar-month-mobile-events__mobile-event-title {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

.home .tribe-events-calendar-month-mobile-events__mobile-event-title-link {
  text-decoration: none;
  color: var(--primary-blue-dark);
  transition: color 0.3s ease;
}

.home
  .tribe-events-calendar-month-mobile-events__mobile-event-title-link:hover {
  color: var(--secondary-gold);
}

/* Modal backdrop */
.events-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.events-modal.open {
  display: block;
  opacity: 1;
  pointer-events: all;
}

.events-modal.closing {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (max-width: 849px) {
  .events-modal {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Modal box */
.modal-box {
  position: relative;
  max-width: 600px;
  margin: 10% auto;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  border-left: 5px solid var(--secondary-gold);
  transform: scale(0.97);
  transition: transform 0.3s ease;
}

.events-modal.open .modal-box {
  transform: scale(1);
}

/* Close button */
.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-blue-dark);
}

/* Preloader */
.modal-loader {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.spinner {
  border: 4px solid #eee;
  border-top: 4px solid var(--secondary-gold);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

/* Styl wydarzenia */
.tribe-events-calendar-month-mobile-events__mobile-event {
  padding: 1rem 0;
  border-bottom: 1px solid var(--primary-blue-dark);
}

.tribe-events-calendar-month-mobile-events__mobile-event-title a {
  text-decoration: none;
  color: var(--primary-blue-dark);
  font-weight: 500;
  font-size: 1rem;
}

.tnp-submit,
.woocommerce-orders-table .button,
.woocommerce-pagination .button,
.btn-add-cart,
.nav-line > li > a::before {
  background-color: var(--secondary-gold) !important;
}

/* Filters & sorting sidebar */
div.category-page-row {
  display: grid !important;
  grid-template-columns: 1fr 3fr;
  grid-template-rows: 1fr;
  grid-column-gap: 20px;
}

div.category-page-row .col-12.col-lg-4 {
  width: 100% !important;
  grid-area: 1 / 1 / 2 / 2;
}

div.category-page-row .col-12.col-lg-8 {
  width: 100% !important;
  grid-area: 1 / 2 / 2 / 3;
}

#shop-sidebar {
  border: 1px solid #f3f3f3 !important;
  padding: 20px;
  margin-top: 20px;
}

#shop-sidebar .widget-title {
  color: var(--primary-blue-dark) !important;
  margin-bottom: 0.5rem;
  text-transform: none;
  display: block;
  width: 100%;
  text-align: center;
}

/* Stylizacja selecta sortowania WooCommerce */
.woocommerce-ordering-widget select[name="orderby"],
.wpc-filters-widget-select {
  color: var(--primary-blue-dark);
  border: 1px solid var(--secondary-gold) !important;
  border-radius: 4px;
  padding: 8px 32px 8px 12px;
  font-size: 1rem;
  font-family: "Brygada 1918", serif;
  font-weight: 500;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  box-shadow: none;
  min-width: 180px;
  margin: 0 0 10px 0;
  transition: all 0.3s ease;
}

.wpc-posts-found {
  display: none;
}

@media (max-width: 849px) {
  div.category-page-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  div.category-page-row .col-12.col-lg-4 {
    width: 100% !important;
    grid-area: 1 / 1 / 2 / 2;
  }

  div.category-page-row .col-12.col-lg-8 {
    width: 100% !important;
    grid-area: 2 / 1 / 3 / 2;
  }

  .shop-sidebar-wrapper {
    margin-bottom: 20px;
  }
}

.wcml-cart-dialog-buttons button {
  background-color: var(--secondary-gold) !important;
  color: #fff !important;
}

span.wpc-icon-line-1::after,
span.wpc-icon-line-2::after,
span.wpc-icon-line-3::after {
  background-color: var(--secondary-gold) !important;
  border: 1px solid var(--secondary-gold) !important;
}

.wpc-icon-html-wrapper span,
body .wpc-filters-open-button-container a.wpc-filters-open-widget {
  color: var(--primary-blue-dark) !important;
}

body .wpc-filters-open-button-container a.wpc-filters-open-widget {
  border: 1px solid var(--primary-blue-dark) !important;
}

@media (max-width: 849px) {
  #shop-sidebar {
    border: none !important;
    position: absolute;
    bottom: 0;
  }

  .category-page-row {
    padding-top: 0;
  }

  .shop-container .wpc-filters-open-button-container {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 1em !important;
    margin-bottom: 1em !important;
  }

  .wpc_show_bottom_widget .wpc-filters-widget-content {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    top: 5%;
    z-index: 999999;
    padding: 0;
    background-color: #fff;
    margin: 0;
    box-sizing: border-box;
    border-radius: 7px 7px 0 0;
    transition: transform 0.25s;
    transform: translate3d(0, 120%, 0);
    -webkit-overflow-scrolling: touch;
    height: auto;
  }

  .wpc_show_bottom_widget .wpc-filters-widget-wrapper {
    padding: 20px 20px 15px;
  }

  .wpc-filters-widget-opened {
    transform: translate3d(0, 0, 0) !important;
    display: block !important;
  }

  .wpc-filters-widget-opened div.wpc-widget-close-container,
  div.wpc-filters-widget-top-container,
  div.wpc-filters-widget-controls-container {
    display: block !important;
  }

  .wpc-overlay-visible .wpc_show_bottom_widget .wpc-filters-overlay,
  .sorting-overlay-visible .wpc_show_bottom_widget .wpc-filters-overlay {
    top: 0;
    opacity: 0.4;
  }
}

.order-actions-button {
  background-color: var(--secondary-gold) !important;
}

#footer strong {
  font-weight: 400 !important;
}

.category-wiadomosci .entry-header-text {
  padding-left: 0;
  padding-right: 0;
}

.category-wiadomosci h1 {
  font-size: 32px;
  font-family: "Brygada 1918", serif;
  color: var(--primary-blue-dark);
  margin-bottom: 0px;
  text-align: left;
}

.category-wiadomosci .entry-content {
  color: #6f6f6f !important;
}

body.single-post #nav-below .nav-previous a,
body.single-post #nav-below .nav-next a {
  display: flex !important;
  align-items: center;
}

body.single-post #nav-below .nav-next a {
  justify-content: flex-end;
}

body.single-post #nav-below .nav-previous a {
  justify-content: flex-start;
}


.wpc-filter-title {
  display: none !important;
}

.product-lightbox h1 {
  color: var(--primary-blue-dark) !important;
}

body.home #content p.has-block:first-child,
body.home #content p:not(.emission-product-name):first-child {
    display: none !important;
}


body.wp-singular:not(.home):not(.is_cp_page) #content {
  padding-top: 40px !important;
}

body.is_cp_page  .shop-sidebar-wrapper {
  display: none !important;
}




@media(min-width: 850px) {
  body.is_cp_page div.category-page-row {
    grid-template-columns: 4fr !important;
  }

  body.is_cp_page div.category-page-row .col-12.col-lg-8 {
    width: 100% !important;
    grid-area: 1/1/1/1 !important;
  }
}


body.is_cp_page .header-search-form-wrapper {
  display: none !important;
}


body.is_cp_page form.cart,
body.is_cp_page a.quick-view {
  display: none !important;
}

body.is_cp_page div.wpc-custom-selected-terms,
body.is_cp_page div.wpc-filters-open-button-container {
  display: none !important;
}

body.home .flickity-viewport,
.upsells .flickity-viewport {
  margin-bottom: 50px !important;
  overflow-y: hidden;
}

/* GŁÓWNE ROZWIĄZANIE - Równe wysokości obrazów na stronie głównej */

body.home .product-small,
.upsells .product-small {
  margin-top: 10px !important;
}

body.home .product-small .box-image,
.upsells .product-small .box-image {
  height: 250px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  position: relative !important;
}

.box-image > div > a,
.upsells .box-image > div > a:not(.quick-view) {
  position: relative !important;
}

body.home .box-image > div > a,
.upsells .box-image > div > a:not(.quick-view) {
  display: flex !important;
}

/* Fix dla obrazów hover (back-image) */
body.home .product-small .box-image .back-image,
.upsells .product-small .box-image .back-image {
  position: absolute !important;
  top: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Wyrównanie kontenerów produktów */
body.home .flickity-slider .product-small,
.upsells .flickity-slider .product-small {
  display: flex !important;
  flex-direction: column !important;
}

body.home .flickity-slider .product-small .col-inner,
.upsells .flickity-slider .product-small .col-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

body.home .flickity-slider .product-small .box,
.upsells .flickity-slider .product-small .box {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

/* Równomierne rozłożenie tekstów produktów */
body.home .product-small .box-text,
.upsells .product-small .box-text {
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: end;
  padding: 15px !important;
}

/* Tytuły produktów - minimalna wysokość dla spójności */
body.home .custom-product-title,
.upsells .custom-product-title {
  display: flex !important;
  align-items: flex-start !important;
}

body.home .custom-product-title a,
.upsells .custom-product-title a {
  line-height: 1.3 !important;
  display: block !important;
}

/* Kategorie produktów */
body.home .custom-product-category,
.upsells .custom-product-category {
  font-size: 0.9em !important;
}

/* Fix dla badge'ów i etykiet */
body.home .product-small .badge-container,
.upsells .product-small .badge-container {
  position: absolute !important;
  z-index: 10 !important;
}

/* Narzędzia obrazów (tools) - pozycjonowanie */
body.home .product-small .image-tools,
.upsells .product-small .image-tools {
  position: absolute !important;
  z-index: 5 !important;
}


/* Opcjonalne: Lekkie cienie dla lepszego wyglądu */
body.home .product-small .box,
.upsells .product-small .box {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}


/* Centowanie zawartości flickity */
body.home .flickity-viewport,
.upsells .flickity-viewport {
  display: flex !important;
}

body.home .flickity-slider,
.upsells .flickity-slider {
  align-items: stretch !important;
}

body.home .custom-product-info,
.upsells .custom-product-info {
  min-height: 100px !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}



body.home .section,  
body.home .section .col.small-12.large-12 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.home #nbpHomeSlider {
  margin-bottom: 50px !important;
}

@media(max-width: 849px) {
  .wpc-widget-popup-title {
    display: none !important;
  }
}

.wpc-filters-apply-button {
  color: #fff !important;
  background-color: var(--primary-blue-dark) !important;
}

.wpc-filters-close-button {
  color: #6f6f6f !important;
}

input[type="checkbox"].gdpr-service-switch:checked {
  border: 1px solid var(--secondary-gold) !important;
  box-shadow: inset 20px 0 0 0 rgba(197, 172, 117, .9) !important;
}

input[type="checkbox"].gdpr-service-switch:disabled {
  box-shadow: inset 20px 0 0 0 rgba(197, 172, 117, .6) !important;
}


.entry-header-text.text-center {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (max-width: 849px) {
  .is-large {
    font-size: 1rem !important;
  }
}


#main button.ux-search-submit {
  font-size: unset !important;
}

body .wpc-filter-chips-list li.wpc-filter-chip:not(.wpc-chip-reset-all) a {
  border-color: var(--primary-blue-dark) !important;
}

body div#masthead a:not(.header-logo-link),
footer a {
  background-color: var(--primary-blue-dark) !important;
}


body div#masthead li.woocommerce-MyAccount-navigation-link a {
  background-color: transparent !important;
}


/*************** MOBILE ONLY ***************/
@media only screen and (max-width: 48em) {
  /*************** ADD MOBILE ONLY CSS HERE ***************/
}
