/*
Theme Name: dp Theme
Theme URI: http://dreampixel.pl/
Author: DreamPixel
Author URI: http://dreampixel.pl/
Description: Motyw jest prawnie zastrzeżony i jest własnością DreamPixel Agencja Interaktywna
Requires at least: 6.4
Tested up to: 6.4
Requires PHP: 7.0
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dptheme
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/* Importujemy plik ze stałymi */
@import url("assets/css/variables.css");

/* Ukrywamy strzałki dla pola wprowadzania liczby */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* BASE */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font--family__primary);
  font-size: var(--font--size__default);
  background-color: var(--body__color);
  color: var(--default__color);
}

textarea {
  resize: none;
}

html {
  scroll-behavior: smooth;
}

a {
  transition: ease 0.3s;
  text-decoration: none;
  color: var(--link__color);
}

a:hover {
  color: var(--link__hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.1em;
}

p,
a {
  line-height: 1.4em;
}

h1 {
  font-size: clamp(1.75em, 3.5vw, 3.375rem);
  margin: 0.75em 0;
}

h1:after {
  content: "";
  width: 2.5em;
  display: block;
  background: #000;
  height: 1px;
  margin: 0.3em 0 0 0.2em;
}

h2 {
  font-size: clamp(1.5em, 4vw, 3rem);
  margin: 1em 0;
}

h3 {
  font-size: clamp(1.25em, 4.5vw, 2.75rem);
  margin: 1em 0;
}

p {
  margin: 1em 0;
}

ol {
  padding-inline-start: revert;
  margin-block-start: revert;
  margin-block-end: revert;
}

ol>li::marker {
  font-weight: bold;
}

ul {
  list-style-position: inside;
}

footer a {
  display: flex;
  align-items: center;
  gap: .5rem;
}

@media (min-width:1240px){

  #dp__body div.footer__copyright {
    justify-content: space-between;
  }
  #dp__body div.footer__copyright > div {
    display: flex;
    gap: .3rem;
    align-items: center;
}
}

#dp__body .text--shadowed {
  text-shadow: 0 0 20px #393939;
}

#dp__body .fw--500 {
  font-weight: 500;
}

#dp__body .font--secondary {
  font-family: var(--font--family__secondary);
}

#dp__body .d--flex {
  display: flex;
}

#dp__body .fd--column {
  flex-direction: column;
}

#dp__body .d--block {
  display: block;
}

#dp__body .d--grid {
  display: grid;
}

#dp__body .d--none {
  display: none;
}

#dp__body .flex--row {
  flex-direction: row;
}

#dp__body .flex-wrap--wrap {
  flex-wrap: wrap;
}

#dp__body .jc--sb {
  justify-content: space-between;
}

#dp__body .jc--c {
  justify-content: center;
}

#dp__body .ai--center {
  align-items: center;
}

#dp__body .m--auto {
  margin: auto;
}

#dp__body .m--0 {
  margin: 0;
}

#dp__body .mt--1 {
  margin-top: 1rem;
}


#dp__body .mt--2 {
  margin-top: 2rem;
}

#dp__body .mt--4 {
  margin-top: 4rem;
}

#dp__body .mb--1 {
  margin-bottom: 1rem;
}

#dp__body .mb--2 {
  margin-bottom: 2em;
}

#dp__body .mb--4 {
  margin-bottom: 4rem;
}

#dp__body .bg--light {
  background-color: var(--body__color);
}

/* Okładka (blok Gutenbergu) */

.wp-block-cover .wp-block-cover__inner-container {
  position: inherit;
  width: min(70em, 100%);
  margin: 130px auto 0;
}

@media only screen and (max-width: 1240px) {
  .wp-block-cover .wp-block-cover__inner-container {
    margin: 60px auto 0;

  }
}

p.dp__slider__heading {
  font-size: clamp(2rem, 5vw, 3.5em);
  font-weight: 700;
  width: min(750px, 100%);
  margin-bottom: .5em;
}

p.slide__text--left {
  margin-left: initial !important;
}

p.slide__text--right {
  margin-right: initial !important;
  width: unset;
}

/* Przycisk */

.wp-block-button__link,
.wp-block-buttons>.wp-block-button,
.wpcf7-submit {
  background-color: var(--color__primary);
  font-size: var(--font--size__button);
  border-radius: var(--border__radius__btn);
}

.wp-block-button__link:hover,
.wp-block-buttons>.wp-block-button:hover,
.wpcf7-submit:hover {
  background-color: var(--link__hover);
  color: #fff;
}

/* Style główne */

#dp__body .container {
  width: min(var(--container__width), 100%);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width:1240px) {
  .container {
    padding: 0 1rem;
  }
}

#dp__body.home .main__wrapper>.container {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Zagłówek */

header {
  padding: 10px;
  position: fixed;
  top: 0;
  width: 100%;
  /* margin-bottom: 100px; */
  background-color: var(--body__color);
  z-index: 100;
}

body:has(div#wpadminbar) header {
  top: 32px;
}

.header__nav__wrapper {
  position: absolute;
  width: 100%;
  top: var(--header__height);
  right: -100%;
  transition: ease 0.3s;
  padding-top: 16px;
  height: 100vh;
}

.header__nav__wrapper ul {
  list-style: none;
}

@media only screen and (min-width: 1240px) {
  .header__nav__wrapper {
    height: initial;
    position: static;
    display: flex;
    justify-content: center;
    padding-top: initial;
  }
}

.header__nav__wrapper.active {
  right: 0;
}

.header__logo {
  height: 50px;
  transition: .3s;
  width: 190px;
  min-width: 190px;
}

.header__logo img {
  transition: ease 0.3s;
  object-fit: contain;
  object-position: left;
  height: 100%;
}

.header__logo a {
  text-wrap: nowrap;
}

.header__soc__wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

@media (max-width:1240px) {
  .header__soc__wrapper {
    margin-left: auto;
  }
}

.header__soc__wrapper>li>a {
  display: block;
}

#header__toggler {
  width: 30px;
  height: 30px;
  background: url("assets/img/ico-hamburger.svg") no-repeat center;
  background-size: contain;
}

@media only screen and (min-width: 1240px) {
  #header__toggler {
    display: none;
  }
}

#header__toggler.active {
  background: url("assets/img/ico-x.svg") no-repeat center;
  background-size: 100%;
}

#search__toggler {
  width: 25px;
  height: 25px;
  background: url("assets/img/ico-search.svg") no-repeat center;
  background-size: contain;
  cursor: pointer;
}

@media only screen and (max-width: 1240px) {
  #search__toggler {
    display: none;
  }
}

#search__toggler.active {
  display: none;
}

#cart__toggler {
  width: 30px;
  height: 30px;
  background: url("assets/img/ico-star.png") no-repeat center;
  background-size: contain;
  cursor: pointer;
}

@media only screen and (max-width: 1240px) {
  #cart__toggler {
    margin-right: .5rem;
  }
}

.header__menu li {
  text-transform: uppercase;
  font-weight: 700;
  padding: 0 15px;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
  list-style: none;
}

@media only screen and (max-width: 1240px) {
  .header__menu li {
    padding: 15px;
  }
}

.header__menu li a {
  color: inherit;
}

@media only screen and (min-width: 1240px) {
  .header__menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
  }

  .header__menu li {
    border: none;
  }

  .header__menu li:hover a {
    color: var(--color__primary);
  }
}

.header__menu li.active {
  font-weight: 800;
  color: var(--color__primary);
}

/* Wyszukiwarka w zagłówku */

#header__search__form {
  position: absolute;
  width: 100%;
  left: 0;
  background-color: var(--body__color);
  top: -6rem;
  transition: 0.3s;
  z-index: 10;
}

@media (max-width:1240px) {
  #header__search__form {
    position: static;
    display: block;
    background: transparent;
    margin-top: 1rem;
  }

  .header-inner #header__search__form {
    display: none;
  }
}

#header__search__form.active {
  top: var(--header__height);
}

@media only screen and (max-width: 1240px) {
  #header__search__form.active {
    top: 10rem;
  }

  .header__search {
    max-width: 90%;
    margin: auto;
  }
}

.header__search__form__wrapper {
  width: min(1140px, 100%);
  margin: auto;
  padding: 1rem 0;
}

@media only screen and (max-width: 1240px) {
  .header__search__form__wrapper {
    padding: 0;
  }
}

.header__search__form__wrapper>form {
  gap: 2rem;
}

@media only screen and (max-width: 1240px) {
  .header__search__form__wrapper>form {
    flex-direction: column;
    gap: 1rem;
  }
}

.header__search__form__wrapper>form>label {
  width: 100%;
}

.header__search__form__wrapper>form>label>input:focus-visible,
.header__search__form__wrapper>form>input:focus-visible {
  outline: none;
}

.header__search__form__wrapper>form>input {
  border-radius: var(--border__radius__btn);
}

.header__search__form__wrapper>form>input[type='text'] {
  color: #222;
  width: 100%;
  padding: .75rem 1.5rem;
  border: 1px solid #222;
}

.header__search__form__wrapper input[type="submit"] {
  background-color: var(--color__primary);
  padding: .5rem 2rem;
  transition: .3s;
  font-size: 1rem;
  font-family: var(--font--family__primary);
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
  color: #fff;
}

.header__search__form__wrapper input[type="submit"]:hover {
  background-color: var(--color__secondary);
}

/* Breadcrumbs */

@media only screen and (max-width:1240px) {

  nav.woocommerce-breadcrumb,
  #dp_breadcrumbs {
    margin-bottom: 0.5em;
  }
}

/* Footer */

.footer__cols {
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media only screen and (min-width: 1240px) {
  .footer__cols {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    margin-bottom: 60px;
  }
}

.footer__col {
  background-color: #eee;
  padding: 10px 20px;
}

.footer__col p {
  margin: 0 0 0.2em;
}

p.footer__col__title {
  font-weight: 700;
  font-size: 1.25em;
  margin: 0 0 1.2rem;
}

.footer__copyright {
  padding: 10px 5px;
  gap: 1em;
}

@media only screen and (min-width: 1240px) {
  .footer__copyright.jc--c {
    justify-content: space-between;
  }
}

.footer__copyright img {
  width: 30px;
}

.footer__copyright div:nth-of-type(2) {
  gap: 10px;
}

@media only screen and (min-width: 1240px) {
  .footer__copyright>div.m-auto:nth-of-type(2) {
    margin: 0 0 0 auto;
  }
}

/* Sekcja główna */

.main__wrapper {
  margin-top: var(--header__height);
}

@media only screen and (max-width: 1240px) {
  .main__wrapper {

    margin-top: 50px;
  }
}

/* Sekcja z treścią ( np. Gutenberg ) */

.content {
  margin-bottom: 3em;
}

@media only screen and (max-width: 1240px) {
  .content {
    margin-bottom: 1.5em;
  }
}

/* BLOG */

.posts__wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
}

@media only screen and (max-width:1240px) {
  #dp__body .posts__wrapper {
    grid-template-columns: repeat(1, 1fr);
  }
}

.posts__wrapper>.post>.media {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

/* Kafelki wpisów blogu */

#dp__Page>.wp-block-latest-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2em;
}

#dp__Page>.wp-block-latest-posts>li {
  width: 100%;
  text-align: center;
  text-wrap: balance;
  margin: 0 0 1em;
  box-shadow: 0px 0px 5px 0px #d7d7d7;
  border-radius: var(--border__radius);
}

#dp__Page>.wp-block-latest-posts>li img {
  max-height: 210px;
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  margin-bottom: 1em;
}

#dp__Page>.wp-block-latest-posts>li a {
  font-size: 1.25rem;
  font-weight: 700;
}

#dp__Page>.wp-block-latest-posts>li a:hover {
  color: var(--color__primary);
}

#dp__Page>.wp-block-latest-posts>li .wp-block-latest-posts__post-excerpt {
  padding: 0.75em 1em 2.5em;
  line-height: 24px;
}

/* Paginacja */

div.nav-links {
  text-align: center;
  margin-top: 3em;
}

@media only screen and (max-width:1240px) {
  div.nav-links {
    margin-top: 2em;
  }
}

div.nav-links>.page-numbers {
  font-weight: 700;
  color: #000;
  border-radius: 100px;
  padding: 10px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

div.nav-links .page-numbers.current,
div.nav-links .page-numbers:hover {
  color: #fff;
  background-color: var(--color__primary);
}

/* Slick */

#dp__body .slick-dots {
  bottom: 50px;

  li {
    margin: 0 1px;
  }

  li button:before,
  li.slick-active button:before {
    color: transparent;
    opacity: 1;
  }

  li button:before {
    background-color: #fff;
    border: 2.5px solid #fff;
    border-radius: 50%;
    display: inline-block;
    height: 11px;
    width: 11px;

  }

  li.slick-active button:before {
    background-color: var(--color__primary);
  }

}

.slick-slide>div>div {
  height: var(--slide--height);
}

.slick-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width:1240px) {
  .slick-slide>div>div {
    min-height: var(--slide--height--rwd);
  }
}

/* BLOG */

.post {
  border-radius: var(--border__radius);
  box-shadow: #cfcfcf 0 0 4px 0px;
}

.post .media {
  height: 100%;
  justify-content: flex-start;
}

.post .media-body {
  padding: 0 2em 2em;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post .media-body a {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.post .media-body a:hover {
  color: var(--color__primary);
}

.post img {
  width: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  max-height: 205px;
  margin-bottom: 1.6em;
  object-fit: cover;
}

.post h3.title a {
  color: #000;
}

.post .intro p {
  line-height: 1.5em;
}

/* Formularz contactform na stronie kontakt */

#dp__body .wpcf7-list-item {
  margin-left: 0;
}

input.wpcf7-form-control.wpcf7-text,
textarea.wpcf7-form-control.wpcf7-textarea,
#dp__body .woocommerce form .form-row .input-text,
#dp__body .woocommerce form .form-row .ywraq-datepicker-type,
.wpcf7-select {
  width: 100%;
  border: none;
  border-bottom: 1px solid #d9d9d9;
  padding: .75rem 0;
  font-family: inherit;
}

.wpcf7-form.init label,
input.wpcf7-form-control.wpcf7-text,
textarea.wpcf7-form-control.wpcf7-textarea {
  font-size: 18px;
}

.wpcf7-submit {
  padding: .75rem 1.5rem;
  border: none;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  transition: .3s;
  cursor: pointer;
  font-family: var(--font--family__primary);
}

/* Strona 404 */

#dp__404 {
  text-align: center;
}

#dp__404 div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#dp__404 h1 {
  color: var(--color__primary);
  margin: 0;
}

#dp__404 h2 {
  margin-top: 1rem;
}

#dp__404 h1::after {
  content: initial;
}

#dp__404 a {
  padding: 1em;
}

@media (min-width:1240px) {
  #dp__404 {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Strona search.php */
