:root {
  --clr-white: #fff;
  --clr-black: #000;
  --clr-gray-300: #eaeae5;
  --clr-gray-400: #eaeae3;
  --clr-gray-700: #9e9e9e;
  --clr-green-300: #87995c;
  --clr-green-500: #38571f;
  --clr-green-700: #213b00;
  --clr-beige-5000: #eaddc6;
  --clr-beige-500: #CFC6B7;
  --clr-purple-700: #8a73a8;
  --clr-dark-800: #2b2621;
}


.iframe-container {
  position: relative;
  padding-bottom: 56.25% !important;
  padding-top: 30px !important;
  height: 0 !important;
  overflow: hidden;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.py-2 {
  padding-block: 0.5rem !important;
}

.py-3 {
  padding-block: 1rem !important;
}

.py-4 {
  padding-block: 1.5rem !important;
}

.py-5 {
  padding-block: 3rem !important;
}

.my-2 {
  margin-block: 0.5rem !important;
}

.my-3 {
  margin-block: 1rem !important;
}

.my-4 {
  margin-block: 1.5rem !important;
}

.my-5 {
  margin-block: 3rem !important;
}

.mx-auto {
  margin-inline: auto !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.w-100 {
  width: 100%;
}

.text-center {
  text-align: center !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

.column-gap-4 {
  column-gap: 1.5rem !important;
}

.row-gap-5 {
  row-gap: 3rem !important;
}

.justify-self-center {
  justify-self: center !important;
}

.d-none {
  display: none !important;
}

.d-grid {
  display: grid !important;
}

.d-inline-flex {
  display: inline-flex !important;
}

.d-flex {
  display: flex !important;
}

.flex-column {
  flex-direction: column !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between !important;
}

.p-4 {
  padding: 1.5rem !important;
}

@media (min-width: 576px) {
  .flex-sm-row {
    flex-direction: row !important;
  }

  .justify-content-sm-center {
    justify-content: center !important;
  }
}

@media (min-width: 768px) {
  .text-md-start {
    text-align: left !important;
  }

  .flex-md-row {
    flex-direction: row !important;
  }

  .align-items-md-center {
    align-items: center !important;
  }

  .justify-content-md-start {
    justify-content: start !important;
  }

  .justify-content-md-between {
    justify-content: space-between !important;
  }

  .d-md-none {
    display: none !important;
  }

  .d-md-block {
    display: block !important;
  }
}

@media (min-width: 992px) {
  .align-items-lg-start {
    align-items: start !important;
  }
}

.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl,
.archive-header:has(.woocommerce-ordering) {
  width: 100%;
  max-width: min(1360px, 100% - 2rem);
  margin-inline: auto;
}

.btn-classic,
.product .cwgstock_button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background-color: var(--clr-green-700);
  color: #fff;
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out !important;
}

.btn-classic::after {
  margin-left: 0;
  filter: brightness(0) invert(1);
}

.product .cwgstock_button {
  font-size: 0.9rem;
  font-weight: bold;
}

.btn-classic:hover,
.product .cwgstock_button:hover {
  color: #fff;
  background-color: var(--clr-green-500);
}

/* Klasy Michałowe */

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  line-height: 1.2;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.h1,
h1 {
  font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 1200px) {
  .h1,
  h1 {
    font-size: 2.5rem;
  }
}
.h2,
h2 {
  font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
  .h2,
  h2 {
    font-size: 2rem;
  }
}
.h3,
h3 {
  font-size: calc(1.3rem + 0.6vw);
}
@media (min-width: 1200px) {
  .h3,
  h3 {
    font-size: 1.75rem;
  }
}
.h4,
h4 {
  font-size: calc(1.275rem + 0.3vw);
}
@media (min-width: 1200px) {
  .h4,
  h4 {
    font-size: 1.5rem;
  }
}
.h5,
h5 {
  font-size: 1.25rem;
}
.h6,
h6 {
  font-size: 1rem;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.d-grid {
  display: grid !important;
}

.section-gap {
  gap: 2.5rem;
}

.align-items-center {
  align-items: center;
}

.rounded-2 {
  border-radius: 0.5rem !important;
}

@media (min-width: 768px) {
  .grid-md-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .grid-lg-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .grid-xxl-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.default-template__content h1,
.default-template__content h2,
.default-template__content h3,
.default-template__content h4,
.default-template__content h5,
.default-template__content h6 {
  font-weight: 600;
  margin-block: 2rem 0.75rem;
}

.default-template__content h2 {
  font-size: 1.95rem;
}

.default-template__content h3 {
  font-size: 1.85rem;
}

.default-template__content h4 {
  font-size: 1.75rem;
}

.default-template__content h5 {
  font-size: 1.65rem;
}

.default-template__content h6 {
  font-size: 1.55rem;
}

body:not(.page-id-11) .default-template__content {
  margin-block: 7rem 2rem;
}

.page-id-223 main {
  margin-block: 0;
}

.video-container {
  max-width: 100%;
  padding-top: 56.25%;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.styled-list li {
  position: relative;
  padding-left: 32px;
  line-height: 2.2em;
}

.styled-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 19px;
  height: 16px;
  background-image: url("../img/check.svg");
  background-size: cover;
  transform: translateY(-50%);
}

body.single-product .site-main {
  margin-top: 7rem;
}

/* HEADER */

.meritum-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99;
}

body:not(.single-product, .single-post, .single-media, .page-id-3, .page-id-9, .page-id-10, .page-id-11, .page-id-205, .page-id-2812, .page-id-2816, .page-id-5988) .header-nav {
  background-color: transparent;
  transition: all 0.3s
}

body:is(.single-product, .single-post, .single-media, .page-id-3, .page-id-9, .page-id-10, .page-id-11, .page-id-205, .page-id-2812, .page-id-2816, .page-id-5988) .header-nav {
  background-color: var(--clr-green-700);
}

.main-header-nav:has(li:hover > .sub-menu) {
  background-color: var(--clr-green-700);
}

.meritum-header.is-scrolled .header-nav {
  background-color: var(--clr-green-700);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.header__wrapper {
  font-weight: 500;
  text-transform: uppercase;
  color: var(--clr-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header__wrapper .logo {
  max-width: 250px;
}

.header__wrapper a {
  font-size: 0.925rem;
  color: var(--clr-white);
}

.right-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-wrapper {
  position: relative;
}

.cart-wrapper img {
  width: 36px;
  height: auto;
}

.header__cart-quantity {
  position: absolute;
  top: -8px;
  right: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--clr-purple-700);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* BANER */

.page-baner {
  color: #fff;
  background: top/cover no-repeat var(--desktop-banner-img) rgba(0, 0, 0, 0.4);
  background-blend-mode: overlay;
  height: 72dvh;
}

.blog .page-baner {
  background-position: top;
}

.page-id-225 .page-baner {
  background-position: right 0% bottom 75%;
}

.page-baner .container {
  height: 100%;
}

.page-baner__content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 1rem;
  padding-bottom: 1rem;
}

.page-baner__content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.page-baner__content p {
  font-size: 1.125rem;
}

/* Hero/baner jako slider */

.baner.single-post__banner,
.baner.single-post__banner .swiper-slide {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 55vh, 700px);
  background-image: var(--single-post-baner-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: stretch;
}

@media (max-width: 767px) {
  .baner.single-post__banner,
  .baner.single-post__banner .swiper-slide {
    background-image: var(--mobile-single-post-baner-img);
  }
}

.baner__wrapper {
  position: relative;
  z-index: 2;
}

.baner.single-post__banner .swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.baner-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  color: #fff;
}

#heroSwiper .swiper-button-prev,
#heroSwiper .swiper-button-next {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

#heroSwiper .swiper-button-prev::after,
#heroSwiper .swiper-button-next::after {
  font-size: 16px;
}

#heroSwiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  opacity: 0.6;
}

#heroSwiper .swiper-pagination-bullet-active {
  opacity: 1;
}

.home #heroSwiper,
.home #heroSwiper .swiper-slide {
  position: relative;
  min-height: 100svh;
  background: center/cover no-repeat var(--single-post-baner-img);
  background-color: transparent;
  background-position: center;
}

.home #heroSwiper .swiper-slide[aria-label="1 / 3"] {
  background-position: top center !important;
}

.swiper-pagination-bullet-active {
  background: #eee !important;
}

/* FRONT PAGE */

.baner__wrapper {
  position: relative;
}

.baner-content {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  max-width: 600px;
  color: #fff;
}

.baner-content h1 {
  font-weight: 600;
  border-bottom: 1px solid #fff;
  padding-block: 0.5rem;
  margin-bottom: 1rem;
}

.baner-content p {
  font-weight: 500;
}

.baner-content a {
  color: #fff;
  margin: 0.5rem 0 0 auto;
}

.instagram-posts__wrapper {
  background-color: var(--clr-beige-500);
  padding-block: 3rem;
}

.instagram-posts__wrapper h2 {
  font-weight: 600;
}

.single-ig-post img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.instagram-posts__wrapper .btn-classic {
  margin-inline: auto;
  margin-top: 1.5rem;
}

/* ====== Sekcja: Aktualności ====== */

.home-news__list {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.news-card__thumb {
  display: block;
}

.home-news__img {
  object-fit: cover;
  aspect-ratio: 16/9;
}

.news-card__body .btn-classic {
  margin-top: auto;
  margin-left: auto;
  color: #fff;
}

.news-card__body .btn-classic:hover {
  color: #fff;
}

.news-card__title {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.2;
  margin: 0;
}

.news-card__title a {
  color: inherit;
  text-decoration: none;
}

.news-card__excerpt {
  margin: 0 0 6px 0;
  color: #2b2b2b;
  opacity: 0.9;
}

.btn-minimal {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.625rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.85;
}

/* STRONA SKLEPU */

ul.products,
ul.you-may-like__list {
  display: grid;
  gap: 2rem 1.5rem;
}

.woocommerce-shop .baner {
  background-blend-mode: overlay;
  height: 72dvh;
}

.woocommerce-shop .baner .baner__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 1rem;
  padding-bottom: 1rem;
  height: 100%;
}

/* STRONA KATEGORII */

.tax-product_cat .woocommerce-no-products-found {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-block: 1rem;
}

.tax-product_cat .no-products-cta {
  margin-bottom: 2rem;
  margin-inline: auto;
  max-width: fit-content;
}


/* KARTA PRODUKTU */

.cwginstock-subscribe-form {
  margin-top: 2rem;
}

.cwginstock-subscribe-form .panel-primary>.panel-heading {
  background-color: var(--clr-green-700) !important;
}

.cwginstock-panel-body input[type=email] {
  margin-top: 8px !important;
  font-size: 1.1rem !important;
  padding: 0.25rem 0.5rem !important;
}


/* MOJE KONTO */

.woocommerce-MyAccount-navigation {
  max-height: fit-content;
  padding: 1.25rem 2rem 2rem;
  background-color: var(--clr-green-700);
  border-radius: 4px;
}

.woocommerce-MyAccount-navigation ul a {
  display: block;
  width: 100%;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--clr-white);
  padding: 0.75rem 0.25rem;
  min-width: 200px;
  border-bottom: 2px solid var(--clr-white);
  transition: all 0.3s;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
  color: var(--clr-beige-500);
  border-color: var(--clr-beige-500);
}

.woocommerce-MyAccount-navigation ul li a:hover {
  color: #bbbbbb;
  border-color: #bbbbbb;
}

.woocommerce-MyAccount-navigation ul li:last-child a:hover {
  color: rgb(180, 0, 0);
  border-color: rgb(180, 0, 0);
}

.woocommerce-MyAccount-content {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  margin-left: 2rem;
}

.woocommerce-MyAccount-orders th {
  text-align: start;
}

.woocommerce-MyAccount-orders .woocommerce-orders-table__cell .button {
  background-color: var(--clr-green-700);
}

.woocommerce-MyAccount-orders .woocommerce-orders-table__cell .button:hover {
  color: var(--clr-white);
  background-color: var(--clr-green-500);
}


/* FOOTER */

/* Tło, spacing, „miękkie” odcięcie nad stopką */

.footer .newsletter-bg {
  background: var(--clr-beige-500);
  padding-block: 3rem;
  border-radius: 8px 8px 0 0;
}

/* Head */

.newsletter__wrap {
  max-width: 56.25rem;
}

/* Pole e-mail */

.newsletter__body input[type="email"] {
  padding: 0.925rem 1.125rem;
  border: 1px solid #cbb8a7;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter__body input[type="email"]::placeholder {
  opacity: 0.65;
}

.newsletter__body input[type="email"]:focus {
  outline: none;
  border-color: #a9927f;
  box-shadow: 0 0 0 4px rgba(169, 146, 127, 0.18);
}

.newsletter__body .btn-classic {
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  padding-block: 0.925rem;
  border: none;
  cursor: pointer;
  transition: transform 0.06s ease, filter 0.2s ease;
}

.newsletter__body .btn-classic:active {
  transform: translateY(1px);
}

/* Disclaimer */

.newsletter__disclaimer {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  opacity: 0.9;
}

.newsletter-bg .newsletter__disclaimer > a {
  color: var(--clr-green-500);
  text-decoration: underline;
}

/* Dostępność + anty-spam */

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hp-field {
  position: absolute !important;
  left: -9999px;
}

.footer-bg {
  background: linear-gradient(
    90deg,
    var(--clr-green-500) 0%,
    var(--clr-green-700) 50%
  );
  padding-top: 3rem;
}

.footer a {
  color: var(--clr-white);
}

.footer a:hover {
  color: var(--clr-purple-700);
}

.footer__wrapper {
  display: grid;
  gap: 3rem;
}

.footer__wrapper .logo {
  width: 18.75rem;
  margin-bottom: 1rem;
}

.simple-footer .footer__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--clr-white);
}

.contact__details {
  gap: 0.75rem;
}

.contact__details a:hover svg g {
  fill: var(--clr-purple-700);
}

.contact__details p {
  margin: 0;
}

.contact__details > * {
  font-size: 1rem !important;
}

.footer-menu__wrapper--shop {
  display: grid;
  gap: 2rem;
}

.menu-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.single-menu h2 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-menu li {
  font-weight: 500;
}

.social-media a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-media a:hover svg path {
  fill: var(--clr-purple-700);
}

.footer__copyright {
  background: linear-gradient(
    90deg,
    var(--clr-green-500) 0%,
    var(--clr-green-700) 50%
  );
  padding-block: 1rem;
  margin-top: 3rem;
  border-top: 1px solid #fff;
}

.footer__copyright .container {
  font-size: 0.8125rem;
}

.footer__copyright p {
  color: #fff;
  margin-bottom: 0;
}

.footer-payment-methods img {
  height: 1.5rem;
}

/* Formularze */
.wpforms-container .wpforms-field,
.wp-core-ui div.wpforms-container .wpforms-field {
  padding: 12px 0 !important;
}

.wpforms-form {
  padding: 3rem !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  background-color: #fff !important;
  border-radius: 0.5rem !important;
}

.wpforms-form textarea,
.wpforms-form input[type="text"] {
  border: 1px solid #d5d5d5 !important;
  border-radius: 0.5rem !important;
}

.wpforms-form button[type="submit"] {
  height: auto !important;
  padding: 0.75rem 2rem !important;
  border-radius: 0.5rem !important;
  background-color: var(--clr-green-700) !important;
}

.wpforms-form button[type="submit"]:hover {
  background-color: var(--clr-green-300) !important;
}

#mlb2-36994139.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody {
  padding: 0 !important;
}

#mlb2-36994139.ml-form-embedContainer .ml-form-embedWrapper {
  background-color: vaR(--clr-beige-500) !important;
}

