/*
Theme Name:     Storefront Child Theme
Author:         Code&
Template:       storefront
Description:    This is a blank child theme for WooThemes StoreFront theme
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    storefront
Tags:           black, white, light, two-columns, left-sidebar, right-sidebar, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, threaded-comments, accessibility-ready
This theme, like WordPress, is licensed under the GPL.
*/
:root {
  --deco: #b4fbf3;
  --deco-dark: #98e0df;
  --red: #F90000;
}

html {
  scroll-behavior: smooth;
}

/* EXTRA FONTS */
/* raleway-300 */
@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300;
  src: url('./assets/fonts/raleway-300.woff2') format('woff2');
}

/* raleway-400 */
@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  src: url('./assets/fonts/raleway-400.woff2') format('woff2');
}

/* raleway-500 */
@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  src: url('./assets/fonts/raleway-500.woff2') format('woff2');
}

/* raleway-600 */
@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  src: url('./assets/fonts/raleway-600.woff2') format('woff2');
}

/* raleway-700 */
@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  src: url('./assets/fonts/raleway-700.woff2') format('woff2');
}

/* raleway-800 */
@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 800;
  src: url('./assets/fonts/raleway-800.woff2') format('woff2');
}

/* raleway-900 */
@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 900;
  src: url('./assets/fonts/raleway-900.woff2') format('woff2');
}

body {
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .col-full {
    max-width: 1230px;
  }
}

/* Disable sidebar on sigle product page */
.single-product #primary {
  width: 100%;
}

.single-product #secondary {
  display: none;
}

nav#site-navigation li>a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
}

.wp-element-button,
.wpcf7-submit {
  border: 1px solid #000 !important;
}

.wpcf7-submit {
  border-radius: unset !important;
}



.col-holder {
  margin-top: 50px !important;

  >div {
    margin-right: 0 !important;
  }

  .col-text {
    text-align: left;
    border-bottom: none;
    padding-bottom: none;
    float: none;
    margin-top: initial;
    padding-bottom: 34px;

    >p {
      margin-top: 0;
      margin-bottom: 1rem;
      font-size: 22px;
      line-height: 36px;

      >i {
        margin-right: 12px;
        color: var(--deco);
        text-shadow: 1px 1px 3px #000;
      }
    }
  }

  .col-arrows {
    display: flex;
    justify-content: space-around;
    flex-direction: column;

    .svg-arrow {
      width: 66%;
      fill: var(--deco);
      stroke: #333;
      stroke-width: 5px;
    }

    &.top {
      align-items: flex-start;
    }

    &.bottom {
      align-items: flex-end;
    }
  }

  @media (max-width: 781px) {

    .col-arrows {
      &.top {
        display: none;
      }

      &.bottom {
        flex-direction: row;
        align-items: flex-start;

        >.wp-block-image {
          margin-top: 0 !important;
        }
      }
    }
  }
}


/* Widget smaller margin on bottom */
.widget:has(>.widget-title-no-marign) {
  margin-bottom: 10px;
}

.product.featured .woocommerce-loop-product__link>h2.woocommerce-loop-product__title {
  font-weight: 700;
  font-size: 1.1rem;
  color: red;
}

.woocommerce-Tabs-panel {
  scroll-margin-top: 40px;
}

.btn.btn-promo {
  display: block;
  width: fit-content;
  background-color: #b4fbf3;
  color: #333;
  cursor: pointer;
  padding: 16px 24px;
  font-weight: 600;
}

.single_add_to_cart_button.button {
  border: 1px solid #000;
}

.product-tab-promo-text {
  margin: 1.5rem 0;
}

.single-product {
  ul.tabs.wc-tabs {
    &>li {
      >a {
        font-weight: 700;
        font-size: 1.5rem;
      }
    }
  }

  .up-sells {
    &>h2 {
      margin-left: auto;
      margin-right: auto;
      font-size: 2.5rem;
      width: fit-content;
      text-align: center;
      font-weight: 700;
    }

    .products.columns-3 {
      display: flex;
      align-items: center;
      justify-content: center;

      >li.product {
        width: 50%;
        margin-right: unset;
      }
    }
  }

  .related.products {
    h2 {
      margin-left: auto;
      margin-right: auto;
      font-size: 2rem;
      width: fit-content;
      text-align: center;
      font-weight: 700;
    }
  }
}

.wc-block-product-template__responsive,
.wp-block-woocommerce-product-template {
  margin-left: 0;
}

/* TEMPLATES W/0 SIDEBAR + BLOCKS */
.page-template-template-fullwidth .site-content article {
  .no-margin-bottom {
    margin-bottom: 0;

    >div {
      margin-bottom: 0 !important;
    }
  }

  /*  h1.entry-title {
    display: none;
  }*/

  .custom-separator {
    margin-top: 10px;
    margin-bottom: 10px;
    height: 2px;
    position: relative;
    background: #EEE;

    &::before {
      position: absolute;
      top: 0;
      left: 0;
      width: 25%;
      height: 2px;
      background: var(--deco-dark);
      content: '';
    }
  }

  .test-justify {
    text-align: justify;

    &.img-float-right>img {
      float: right;
      margin-left: 20px;

      @media (max-width: 555px) {
        display: block;
        width: 100% !important;
        float: unset;
        margin-left: unset;
        margin-bottom: 20px;
      }
    }
  }

  .product-grid {
    margin-top: 40px;

    >h2 {
      font-weight: 700;
      font-size: 3rem;
    }

    >ul {
      margin-left: 0;
      row-gap: 80px;
    }

    &.center {
      .product {
        margin-left: auto;
        margin-right: auto;
      }
    }

    .product {
      max-width: 350px;

      h3>a {
        line-height: 1.2;
        font-weight: 400;
        text-decoration: none;
        color: #000;
        font-size: 1rem;
      }

      &.featured {
        h3>a {
          font-weight: 700;
          color: red;
        }
      }

      .button-holder {
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
  }
}

.woocommerce-tabs {
  opacity: 0;
  transition: opacity .3s ease-in-out;

  &.active {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .woocommerce-tabs {
    scroll-margin-top: -140px;
  }
}

/* CF */
.contact-form {
  width: 100%;

  .row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;

    >span {
      width: 100%;
    }

    input,
    textarea {
      width: 100%;
      padding: 8px 16px;
      font-size: 15px;
      background: transparent;
      border: 1px solid #e8e8e8;
      border-radius: 4px;
      transition-property: border-color, box-shadow;
      transition-duration: 0.15s;
      transition-timing-function: ease-in-out;
      color: #909090;

      &:focus {
        border-color: var(--deco-dark);
        box-shadow: 0 0 0 .2rem #F4F4F4;
        color: #495057;
        outline: 0;
      }
    }
  }

  input[type="submit"] {
    border-radius: 30px;
  }
}

.btn,
.button {
  border: 1px solid #000;
  text-align: center;
  padding: 8px 16px;
  color: #333;
  transition: background-color .3s ease-in-out;


  &:hover {
    background-color: var(--deco-dark);

    &:not(.somdn-download-archive, .download-not-logged>a) {
      border-color: #000 !important;

    }
  }
}

button.alt,
.button.alt {
  border: 1px solid #000;
  color: #333 !important;
}

/* 17.07.2025 - FIXES */

.lh-r {
  /* line-height - regural */
  line-height: 1.2;
}

.wp-block-button__link {
  transition: background-color .3s ease-in-out;
}

body.page-template-no-container {
  /*  #content>.col-full {
    max-width: unset !important;
    margin: 0 !important;
    padding: 0 !important;
  }*/

  .entry-header,
  .storefront-breadcrumb {
    display: none !important;
  }

  #primary {
    width: 100% !important;
    margin-right: 0 !important;
  }
}


.page-template-template-fullwidth .site-content article {
  h1.entry-title {
    font-family: "Raleway", sans-serif;
    text-align: center;
    margin-bottom: 0;
    width: 100%;
    font-weight: 500;
    color: #333;
    font-size: 3.5rem;
    text-shadow: 2px 2px 1px #666;
    line-height: 1.2;
    margin: 0;

    @media (max-width: 1024px) {
      font-size: 2.5rem;
    }
  }
}

/*.single-product .woocommerce-product-details__short-description {
  display: none !important;
}*/

.secondary-navigation {
  width: fit-content !important;
  float: right !important;
  margin: 0 !important;
}

/* HIDE "DARMOWE" FROM CAT LIST */
.wp-block-categories>li.cat-item-280 {
  display: none !important;
}

article.post .entry-content>p>img {
  display: inline-block;
  float: left;
}

.wp-block-latest-posts__list>li {
  .wp-block-latest-posts__post-title {
    display: block;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: #000;
  }

  .wp-block-latest-posts__post-author {
    text-align: center;
  }

  .wp-block-latest-posts__post-date {
    text-align: center;
  }
}

body.archive.category {
  h1.page-title {
    text-align: center;
    font-weight: 700;
  }

  article.post.type-post {
    header {
      margin-bottom: 1rem;

      >.posted-on,
      >.post-author {
        display: none;
      }

      >h2 {
        text-align: center;
        margin-bottom: 1rem;

        >a {
          font-weight: 600;
          color: #000;
        }
      }
    }
  }
}

@media (min-width: 768px) {
  .storefront-primary-navigation>.col-full {

    &::before,
    &::after {
      display: none !important;
    }

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .woocommerce-active .site-header .main-navigation {
    width: fit-content !important;
    margin-right: 0 !important;
  }

  #site-header-cart {
    width: fit-content;
    flex-shrink: 0;

    .count {
      margin-right: 1rem;
    }
  }
}

footer .site-info {
  text-align: center;
}

header .socialmedia-links {
  margin-top: -1rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;

  >a {
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;

    >svg {
      height: 24px;
      fill: #000;
      transition: transform .3s ease-in-out;
    }

    &:hover {
      >svg {
        transform: scale(1.2);
      }
    }
  }

  @media (min-width: 768px) {
    margin-top: -2rem;
  }
}

body.blog {
  article.post {
    border: 1px solid #DDD;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 3px 2px 7px rgba(0, 0, 0, 0.35);
    transition-property: border-color, background-color, box-shadow, transform;
    transition-duration: .5s;
    transition-timing-function: ease-in-out;

    &:hover {
      border-color: #AEAEAE;
      background-color: #F4F4F4;
      box-shadow: 6px 4px 14px rgba(0, 0, 0, 0.35);
      transform: scale(1.01);
    }

    .entry-title>a {
      text-decoration: none;
      background-image: linear-gradient(currentColor, currentColor);
      background-position: 0% 100%;
      background-repeat: no-repeat;
      background-size: 0% 2px;
      transition: background-size .6s;

      &:hover,
      &:focus {
        background-size: 100% 2px;
      }
    }
  }
}

/* MINI CART */
.widget.woocommerce.widget_shopping_cart {
  min-width: 280px;
  left: unset;
  right: -999em;
}

.site-header-cart:hover .widget_shopping_cart {
  right: 0;

}

.woocommerce-mini-cart__buttons>a.button {
  border: 1px solid #000 !important;
  color: #333 !important;
  transition: background-color .3s ease-in-out;
}

.js-company {
  overflow: hidden;
  max-height: 0;
  margin-bottom: 0;
  transition-property: max-height, margin-bottom;
  transition-duration: .5s, .5s;
  transition-timing-function: ease-in-out;

  &.active {
    max-height: 150px;
    margin-bottom: 1.41575em;
  }
}

.js-company-req input {
  box-shadow: unset !important;
  border: 2px solid transparent;
  outline: none;

  &.lock {
    border-color: red;
  }
}

#place_order {
  position: relative;

  &.lock {
    pointer-events: none;
    color: #0005 !important;
    background: #b1f9f855 !important;

    &::before {
      font-size: 1rem;
      line-height: 1.3;
      font-weight: 700;
      width: 100%;
      text-align: center;
      color: red;
      position: absolute;
      bottom: -30px;
      left: 0;
      content: 'Uzupełnij wymagane pola dotyczące faktury';
    }
  }
}

/* Menu mobile */
#site-navigation .handheld-navigation .dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/*BUY NOW BUTTON*/
form.cart:has(.buy-now-button) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 0;
  width: fit-content;

  span:has(+.buy-now-button) {
    margin: 0 .7rem 0 .5rem;
  }

  .buy-now-button {
    background-color: #F00;
    color: #FFF !important;
    border-color: #000;
    font-weight: 700;

    &:hover {
      background-color: #D00;
    }
  }

  @media(max-width:768px) {
    .buy-now-holder {
      width: 100%;
    }
  }
}

/* CONTENT MARGINS/PADDINGS */
.home.blog .site-header,
.home.page:not(.page-template-template-homepage) .site-header,
.home.post-type-archive-product .site-header {
  margin-bottom: 0;	
}

.storefront-breadcrumb {
  margin: 0 0 1rem;
}
@media (min-width: 768px) {
  .storefront-breadcrumb {
    margin: 0;
  }
}
.home .entry-content>.wp-block-columns:first-child {
	margin-top: 0 !important;
}
body:not(.home) .entry-content>.wp-block-columns:first-child {
	margin-top: 1rem !important;
}
/* LOGO 2026 NEGATIVE MARGINS */
.site-branding {
	margin-bottom: -2rem;
}

/* PRODUCT SLIDER ARROWS */

main>div.product {
  .woocommerce-product-gallery__image>a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  ul.flex-direction-nav {
    position: absolute;
    top: 30%;
    left: 2px;
    width: calc(100% - 4px);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
	  
    @media(max-width:768px) {
		display: none;
	  }

    >li>a {
      position: relative;
      width: 2.5rem;
      height: 2.5rem;
      display: block;
      font-size: 0.1px;
      background: #FFF;
      color: transparent;
      border-radius: 50%;
      outline: 1px solid #000 !important;
      transition: background-color .3s ease-in-out;

      &::before {
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000;
        content: '';
        background-position: center;
        background-size: 50%;
        background-repeat: no-repeat;
        transition: transform .3s ease-in-out;
      }

      &.flex-next::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 185.343 185.343'%3E%3Cpath fill='%23000000;' d='M51.707,185.343c-2.741,0-5.493-1.044-7.593-3.149c-4.194-4.194-4.194-10.981,0-15.175 l74.352-74.347L44.114,18.32c-4.194-4.194-4.194-10.987,0-15.175c4.194-4.194,10.987-4.194,15.18,0l81.934,81.934 c4.194,4.194,4.194,10.987,0,15.175l-81.934,81.939C57.201,184.293,54.454,185.343,51.707,185.343z' /%3E%3C/svg%3E");
      }

      &.flex-prev::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34.075 34.075'%3E%3Cpath fill='%23000000' d='M24.57,34.075c-0.505,0-1.011-0.191-1.396-0.577L8.11,18.432c-0.771-0.771-0.771-2.019,0-2.79 L23.174,0.578c0.771-0.771,2.02-0.771,2.791,0s0.771,2.02,0,2.79l-13.67,13.669l13.67,13.669c0.771,0.771,0.771,2.021,0,2.792 C25.58,33.883,25.075,34.075,24.57,34.075z'/%3E%3C/svg%3E");
      }

      &:hover {
        background-color: #EAEAEA;

        &::before {
          transform: scale(1.3);
        }
      }
    }
  }
}

iframe {
  border: 0;
}

footer .footer-widgets {
  .block ul.menu {
    li {
      padding-left: 0 !important;

      &::before {
        display: none;
      }

      a {
        text-decoration: none;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 1rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        display: block;

        &:hover {
          color: #747474;
        }
      }
    }
  }
}

@media (min-width: 768px) {
  footer .footer-widgets {
    .footer-widget-1 {
      width: 100% !important;
      margin-right: 0 !important;

      ul {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 2rem;
      }
    }

    .footer-widget-2,
    .footer-widget-3,
    .footer-widget-4 {
      width: calc(33% - 1rem) !important;
      margin-right: 1rem !important;
    }
  }
}


/* Navigation hover item width, except last child */
@media(min-width: 768px) {
  .main-navigation ul li:not(:last-child) ul li a,
  .secondary-navigation ul li:not(:last-child) ul li a {
    width:360px;
  }
}