/*
Theme Name: P.W. Olmag
Theme URI: https://pwolmag.com.pl/
Author: Patryk Romaldowski
Description: pwolmag - Odzież ochronna i robocza
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pwolmag
*/

html {
	font-size: 14px;
  background: #00A79D;
  background: linear-gradient(90deg, #00A79D 0%, #303642 100%);
}

body {
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: "Rubik", "Helvetica", "Arial", sans-serif;
	line-height: 1.5;
	background: #00A79D;
  background: linear-gradient(90deg, #00A79D 0%, #303642 100%);
	color: #ffffff;
	-webkit-text-size-adjust: 100%;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	word-wrap: break-word;
	font-feature-settings: "kern";
	font-kerning: normal;
	text-rendering: optimizeSpeed;
	word-break: break-word;
}

h1, h2, h3, h4, h5, h6, figure {
	margin: 0;
}

a {
	color: inherit;
}

.custom-logo-link {
  display: flex;
}

.custom-logo {
  width: 210px;
  max-width: 100%;
  height: auto;
}

.primary-content {
	background-image: linear-gradient(113deg, #dbfffd 1%, #9afff9 82%);
	background-color: #61ddd7;
	color: #fff;
}

.full-page-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100vh - 340px);
  padding: 20px 0;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #fff;
}

.homepage-content,
.category-content,
.product-page-content {
  min-height: auto;
}

.category-content aside {
  margin-bottom: 2rem;
}

.homepage-content aside,
.product-page-content aside {
  order: 2;
}

.catalog-categories,
.product-page-links {
  background: #ffffff;
  padding: 10px 16px;
  box-sizing: border-box;
  border-width: 2px;
  border-style: solid;
  border-image: linear-gradient(90deg, #00A79D 0%, #303642 100%) 1;
}

.product-page-links {
  margin-top: 1rem;
}

.catalog-categories header {
  font-weight: 700;
  color: #303642;
}

.catalog-categories ul,
.product-page-links ul {
  padding-left: 0;
}

.catalog-categories ul.sub,
.product-page-links ul.sub {
  padding-left: 1rem;
}

.catalog-categories ul li,
.product-page-links ul li {
  list-style-type: none;
  border-bottom: 1px dotted #00A79D;
}

.catalog-categories ul li:last-of-type,
.product-page-links ul li:last-of-type {
  border-bottom: none;
}

.catalog-categories a,
.product-page-links a {
  font-weight: 500;
  color: #00A79D;
  text-decoration: none;
}

.homepage-content .text-content {
  text-align: justify;
}

.homepage-content .text-content h1 {
  color: #303642;
  text-transform: uppercase;
}

.homepage-content .text-content p:first-of-type {
  color: #00A79D;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.4rem;
}

.homepage-content .text-content p + p {
  font-size: 1.1rem;
}

.product-page-content .product-description {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #f9f9f9;
}

.product-page-content .product-gallery {
  margin-bottom: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}

.product-page-content .product-gallery img {
  max-width: 100%;
  height: auto;
}

.product-page-content .product-message {
  padding: 0.5rem 1rem;
  background-color: #dbfffd;
  font-weight: 500;
}

.page-content {
  display: flex;
  flex-direction: column;
  width: calc(100% - 20px);
  margin: auto;
  flex: 1 1 100%;
  color: #303642;
}

.page-content header h1 {
  font-size: 2.4rem;
  font-weight: 700;
}

.secondary-content {
	background: #303642;
	color: #fff;
}

.secondary-content .page-content {
  color: #ffffff;
}

.seo-content {
  min-height: auto;
}

.seo-content p {
  margin-bottom: 0;
}

.breadcrumb {
  margin-bottom: 0.5rem;
}

.pwolmag-header .menu-header-menu-container ul li a {
  color: #00A79D;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
}

.pwolmag-header .menu-header-menu-container ul li a img {
  margin-right: 0.5rem;
}

.pwolmag-contact-map {
  max-width: 100%;
  border-width: 2px !important;
  border-style: solid !important;
  border-image: linear-gradient(90deg, #00A79D 0%, #303642 100%) 1 !important;
}

.wp-block-columns.is-layout-flex {
  flex-direction: column;
  align-items: flex-start;
}

@supports (
  (
      (background-clip: text) or (-webkit-background-clip: text) or
          (-moz-background-clip: text)
  )
  and
  (
      (-webkit-text-fill-color: transparent) or
          (-moz-text-fill-color: transparent)
  )
) {
  .pwolmag-header .menu-header-menu-container ul li a,
  .catalog-categories a,
  .product-page-links a {
      background-image: linear-gradient(90deg, #00A79D 0%, #303642 100%);
      background-clip: text;
      -webkit-background-clip: text;
      -moz-background-clip: text;
      -webkit-text-fill-color: transparent;
      -moz-text-fill-color: transparent;
      background-size: 202% 100%;
      background-position: 100% 0;
      transition: background-position 0.5s;
  }

  .pwolmag-header .menu-header-menu-container ul li a:hover,
  .catalog-categories a:hover,
  .product-page-links a:hover {
      background-position: 0 0;
  }
}

.contact-bar {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  background: #00A79D;
  background: linear-gradient(90deg, #00A79D 0%, #303642 100%);
  color: #ffffff;
  padding: 3px 0;
}

.contact-bar .content {
  display: flex;
  flex-direction: column;
  width: calc(100% - 20px);
  margin: auto;
}

.contact-bar .phone-number {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.contact-bar .phone-icon {
  width: 12px;
  height: 12px;
  margin-right: 5px;
}

.contact-bar .phone-number a {
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

.contact-bar .phone-number:first-of-type {
  margin-right: 1rem;
}

.pwolmag-header {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  color: #303642;
}

.pwolmag-header .content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 20px);
  margin: auto;
}

.pwolmag-header .logo-hamburger-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
}

.pwolmag-header .logo-link {
  display: flex;
}

.pwolmag-header .logo {
  width: 210px;
  max-width: 100%;
}

.pwolmag-header .menu-header-menu-container {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clear: both;
  max-height: 0;
  transition: max-height 0.2s ease-out;
}

.pwolmag-header .menu-header-menu-container ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pwolmag-header .menu-header-menu-container ul li {
  border-top: 1px solid #E2E6EC;
}

.pwolmag-header .menu-header-menu-container ul li:first-of-type {
  border-top: none;
}

.pwolmag-header .menu-header-menu-container ul li a {
  display: block;
  padding: 1rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
}

.pwolmag-header .menu-icon {
  width: 80px;
  height: 48px;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  transition: all 0.5s ease-in-out;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

.pwolmag-header .menu-btn-burger,
.pwolmag-header .menu-btn-burger::before,
.pwolmag-header .menu-btn-burger::after {
  width: 36px;
  height: 2px;
  border-radius: 5px;
  background-color: #303642;
  transition: all 0.5s ease-in-out;
}

.pwolmag-header .menu-btn-burger::before,
.pwolmag-header .menu-btn-burger::after {
  content: " ";
  position: absolute;
}

.pwolmag-header .menu-btn-burger::before {
  transform: translateY(-12px);
}

.pwolmag-header .menu-btn-burger::after {
  transform: translateY(12px);
}

.pwolmag-header .menu-btn:checked ~ .logo-hamburger-container .menu-btn-burger {
  transform: translateX(-50px);
  background-color: transparent;
  box-shadow: none;
}

.pwolmag-header .menu-btn:checked ~ .logo-hamburger-container .menu-btn-burger::before {
  transform: rotate(45deg) translate(35px, -35px);
}

.pwolmag-header .menu-btn:checked ~ .logo-hamburger-container .menu-btn-burger::after {
  transform: rotate(-45deg) translate(35px, 35px);
}

.pwolmag-header .menu-btn {
  display: none;
}

.pwolmag-header .menu-btn:checked ~ .menu-header-menu-container {
  padding-bottom: 1rem;
  max-height: 340px;
}

.pwolmag-footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  background: #00A79D;
  background: linear-gradient(90deg, #00A79D 0%, #303642 100%);
  color: #ffffff;
}

.pwolmag-footer .content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 20px);
  margin: auto;
  padding: 2rem 0;
  flex: 1 1 100%;
}

.pwolmag-footer .logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 25%;
}

.pwolmag-footer .logo-container img {
  max-width: 160px;
}

.pwolmag-footer .logo-container span {
  font-size: 0.9rem;
  padding-top: 1rem;
}

.pwolmag-footer .address {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  flex: 0 0 50%;
  margin-bottom: 2rem;
}

.pwolmag-footer .address header {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.pwolmag-footer .address .info-row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.pwolmag-footer .address .icon {
  width: 12px;
  height: 12px;
  margin-right: 10px;
}

.pwolmag-footer .address .info-row a {
  text-decoration: none;
}

section.products-container {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 2rem;
  grid-template-columns: 1fr;
}

article.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #f9f9f9;
  padding: 20px;
  text-align: center;
}

article.product .thumbnail img {
  max-width: 100%;
  height: auto;
}

article.product h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

article.product h3 a {
  text-decoration: none;
}

article.product h3 + div {
  margin-bottom: 1rem;
}

article.product footer a {
  display: inline-block;
  padding: 5px 10px;
  background: #303642;
  color: #fff;
  text-decoration: none;
}

.homepage-content-background {
  background-size: 0;
  background-repeat: no-repeat;
  margin: auto;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin-right: 4px;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #333;
  text-decoration: none;
}

.pagination .page-numbers:hover {
  background-color: #e0e0e0;
}

.pagination .page-numbers.current {
  background: #303642;
  color: #fff;
}

.pagination .prev,
.pagination .next {
  padding: 8px 12px;
  margin-right: 4px;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #333;
  text-decoration: none;
}

.pagination .prev:hover,
.pagination .next:hover {
  background-color: #e0e0e0;
}

.pagination .prev.disabled,
.pagination .next.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.alert-info {
  background-color: #c3e3ff;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px !important;
}

.wp-block-image img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: unset;
}

@media (min-width: 320px) {
  .page-content, .homepage-content-background {
    width: calc(100% - 40px);
  }

  .contact-bar .content {
    width: calc(100% - 40px);
    flex-direction: row;
  }

  .pwolmag-header .content,
  .pwolmag-footer .content {
      width: calc(100% - 40px);
  }

  .wp-block-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) {
  section.products-container,
  .product-page-content .product-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .wp-block-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
	html {
		font-size: 16px;
	}

  .full-page-content {
    padding: 40px 0;
  }

  .homepage-content {
    padding: 0;
  }

  .homepage-content-background {
    margin-top: 40px;
    padding: 0 0 40px 0;
    min-height: calc(100vh - 340px);
    background-size: contain;
    background-position: 100% 100%;
  }

  .homepage-content .text-content {
    padding-right: 20%;
  }

  .catalog-categories {
    min-height: calc(100vh - 340px);
  }

  .homepage-content .page-content,
  .category-content .page-content,
  .product-page-content .page-content {
    flex-direction: row;
  }

  .homepage-content .page-content {
    align-items: center;
  }

  .homepage-content aside,
  .category-content aside,
  .product-page-content aside {
    order: unset;
    margin-right: 3%;
    flex: 0 0 22%;
  }
  
  .category-content aside,
  .product-page-content aside {
    margin-bottom: 0;
  }

  .category-content .catalog-content,
  .product-page-content .catalog-content {
    flex: 0 0 75%;
  }

  section.products-container,
  .product-page-content .product-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-bar {
    padding: 6px 0;
  }

  .pwolmag-header {
    padding: 20px 0;
  }

  .pwolmag-header .content {
    flex-direction: row;
  }

  .pwolmag-header .logo-hamburger-container {
    width: auto;
    padding: 0;
  }

  .pwolmag-header .menu-header-menu-container {
    width: auto;
    clear: none;
    max-height: none;
  }

  .pwolmag-header .menu-header-menu-container ul {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .pwolmag-header .menu-header-menu-container ul li {
    border-top: none;
  }

  .pwolmag-header .menu-header-menu-container ul li a {
    padding: 1rem 1.2rem;
  }

  .pwolmag-header .menu-icon {
    display: none;
  }

  .pwolmag-footer .content {
    flex-direction: row-reverse;
  }

  .pwolmag-footer .logo-container {
    align-items: flex-start;
  }

  .pwolmag-footer .address {
    align-items: flex-end;
    margin-bottom: 0;
  }

  .wp-block-columns.is-layout-flex {
    flex-direction: row;
    justify-content: space-between;
  }

  .wp-block-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .page-content, .homepage-content-background {
    width: 1160px;
  }

  .contact-bar .content,
  .pwolmag-header .content {
    width: calc(100% - 60px);
  }

  .pwolmag-footer .content {
      width: 1160px;
  }
}

@media (min-width: 1480px) {
  .page-content, .homepage-content-background {
    width: 1360px;
  }

  .contact-bar .content,
  .pwolmag-header .content {
    width: calc(100% - 80px);
  }

  .pwolmag-footer .content {
      width: 1360px;
  }
}

@media (min-width: 1920px) {
	html {
		font-size: 20px;
	}

  .page-content, .homepage-content-background  {
    width: 1600px;
  }

  section.products-container,
  .product-page-content .product-gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-bar .content,
  .pwolmag-header .content {
    width: calc(100% - 100px);
  }

  .pwolmag-footer .content {
    width: 1600px;
  }
}
