/*
Theme Name:   	Storefront Child Theme
Theme URI:    	https://github.com/stuartduff/storefront-child-theme
Author:       	Stuart Duff
Author URI:     http://stuartduff.com
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
*/

/* Glogal */

body,
button,
input,
textarea {
  font-family: "Bahnschrift", "HelveticaNeue-Light", "Helvetica Neue Light",
    "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  color: #000;
}

.site-header {
  background-color: transparent;
  border-bottom-color: transparent;
}
.site-footer {
  background-color: transparent;
}
.site-search {
  display: none;
}
.storefront-full-width-content.single-product div.product .summary {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 3%;
}
.single-product div.product .product_meta {
  display: none;
}
.content-area {
  padding: 30px 20px 0px 20px;
}
.entry-title {
  color: #000;
  font-weight: 400;
}


table.cart td.actions {
  border-top: 0;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
.input-text {
  background-color: #fff;
}
.storefront-sorting {
  display: none;
}
.stock.in-stock {
  color: #0f834d;
  display: none;
}
/* SG Product Cart */

.wc-block-grid__products .wc-block-grid__product .price {
  display: block;
  color: #000;
  font-weight: 400;
  margin-bottom: 1rem;
  font-size: 18px;
}
.wc-block-grid__products
  .wc-block-grid__product
  .wc-block-grid__product-title
  > a:not(.has-font-size) {
  color: #000;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 18px;
  text-transform: uppercase;
  text-decoration: none;
}
.wc-block-components-product-stock-indicator {
  color: #000;
  font-weight: 400;
  margin-bottom: 1rem;
  font-size: 18px;
  text-transform: uppercase;
}
.home.page-template-template-fullwidth
  .hentry
  .entry-content
  h2
  + [class*="wp-block-woocommerce-"] {
  margin-top: 1rem;
}
ul.products li.product .woocommerce-loop-product__title {
  color: #000;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 18px;
  text-transform: uppercase;
  text-decoration: none;
}
ul.products li.product .price {
  color: #000;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 18px;
  text-transform: uppercase;
  text-decoration: none;
}
/* Variation swatches */

.woo-variation-swatches
  .wvs-style-squared.variable-items-wrapper
  .variable-item:not(.radio-variable-item) {
  border-radius: 0px;
}
.woo-variation-swatches
  .variable-items-wrapper
  .variable-item:not(.radio-variable-item).selected {
  -webkit-box-shadow: var(--wvs-selected-item-box-shadow, 0 0 0 2px #12ff00);
  box-shadow: var(--wvs-selected-item-box-shadow, 0 0 0 2px #12ff00);
  color: #12ff00;
}
.woo-variation-swatches
  .variable-items-wrapper
  .variable-item:not(.radio-variable-item) {
  background-color: transparent;
  padding: 0;
  margin-right: 40px;
}
@media (max-width: 768px) {
  .woo-variation-swatches
    .variable-items-wrapper
    .variable-item:not(.radio-variable-item) {
    margin-right: 10px;
  }
}
.woo-variation-swatches
  .variable-items-wrapper
  .variable-item:not(.radio-variable-item):hover {
  background-color: transparent;
}
.woo-variation-swatches
  .variable-items-wrapper
  .variable-item:not(.radio-variable-item).image-variable-item.selected:not(
    .no-stock
  )
  .variable-item-contents:before {
  display: none;
}
.woo-variation-swatches.wvs-show-label .variations th label {
  display: none !important;
}

.reset_variations {
  display: none !important;
}

.button-wrapper .md-size-chart-btn {
  color: #000;
}

.chart-container {
  padding: 0;
  overflow-y: auto;
}

/* Desktop Styles */

@media (min-width: 768px) {
  .site-header-cart .cart-contents {
    padding: 0;
    margin-top: -45px;
  }
  .site-header-cart .cart-contents::after {
    font-size: 2em;
    color: #000;
    margin-top: -16px;
  }
  .site-header-cart .cart-contents .count {
    font-weight: 400;
    opacity: 1;
    font-size: 0.875em;
    color: #000;
  }
  .wc-block-grid.has-3-columns .wc-block-grid__product {
    flex: 1 0 33.3333333333% !important;
    max-width: 28% !important;
  }
  .wc-block-grid__product {
    border: 0px solid #000 !important;
    box-sizing: border-box;
    float: none;
    list-style: none;
    margin: 0 23px 0px 27px !important;
    padding: 0;
    position: relative;
    text-align: center;
    width: auto;
    background-color: #fff;
  }
  .wc-block-grid__products .wc-block-grid__product img {
    margin: 0;
  }
  .wc-block-grid__products .wc-block-grid__product-image img {
    width: 100%;
  }
  .storefront-full-width-content .site-main ul.products.columns-3 li.product {
    width: 28%;
    float: left;
    border: 0px solid #000;
    box-sizing: border-box;
    list-style: none;
    margin: 0 23px 0px 27px !important;
    padding: 0;
    position: relative;
    text-align: center;
    background-color: #fff;
  }
  .storefront-full-width-content.single-product
    div.product
    .woocommerce-product-gallery.woocommerce-product-gallery--columns-5
    .flex-control-thumbs
    li {
    width: 25%;
    float: left;
    margin-right: 5%;
  }
  .md-size-chart-modal-body {
    background: #fff;
    color: #000;
    border-radius: 0px;
    height: 450px;
    padding-bottom: 0px;
  }
}

/* Mobile Styles */
@media (max-width: 828px) {
  .wc-block-grid__product {
    border: 0px solid #000 !important;
    background-color: #fff;
    margin: 0 0 30px 0 !important;
  }
}
@media (max-width: 828px) {
  .storefront-full-width-content .site-main ul.products.columns-3 li.product {
    border: 0px solid #000 !important;
    background-color: #fff;
  }
}
/* USUNIĘTY BŁĘDNY STYL:
@media (max-width: 828px) {
  .wc-block-grid__products .wc-block-grid__product-image img {
    width: 900px !important;
  }
}
*/
@media (max-width: 828px) {
  .wc-block-grid__products .wc-block-grid__product-image img {
    width: 100% !important;
    height: auto !important;
  }
}
@media (max-width: 828px) {
  .storefront-full-width-content.single-product
    div.product
    .woocommerce-product-gallery.woocommerce-product-gallery--columns-5
    .flex-control-thumbs
    li {
    width: 25%;
    float: left;
    margin-right: 5%;
  }
}
@media (max-width: 768px) {
  .md-size-chart-modal-body {
    background: #fff;
    color: #000;
    border-radius: 0px;
    height: 200px;
    padding-bottom: 0px;
  }
}
.footer-social-icons {
  display: flex;
}
.footer-social-icons img {
  width: 26px;
  margin: 0 10px 10px 0;
}
@media (max-width: 768px) {
  body.custom-background {
    background-color: #bdbdbd;
    background-image: none;
    background-size: cover;
    background-position: left top;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
}

/* ========== 2 kolumny dla produktów na mobile ========== */
@media (max-width: 768px) {
  .produkty-2kolumny ul.wc-block-grid__products {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .produkty-2kolumny ul.wc-block-grid__products > li.wc-block-grid__product {
    float: left !important;
    width: 48% !important;
    margin: 0 1% 20px 1% !important;
    box-sizing: border-box !important;
    clear: none !important;
  }

  /* Na wszelki wypadek — wyczyść style blokujące */
  .produkty-2kolumny .wc-block-grid__product img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}
@media (max-width: 768px) {
  .produkty-2kolumny .wc-block-grid__product {
    min-height: 100% !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    border: 0px solid #ccc;
    border-radius: 0px;
  }

  /* Obrazek */
  .produkty-2kolumny .wc-block-grid__product-image {
    margin-bottom: 10px;
  }

  /* Cena */
  .produkty-2kolumny .wc-block-grid__product-price {
    font-size: 14px !important;
    margin-bottom: 6px;
  }

  /* Tytuł */
  .produkty-2kolumny .wc-block-grid__product-title {
    font-size: 13px !important;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
  }
  .wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title > a:not(.has-font-size) {
    color: #000;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
}

  /* Dostępność */
  .produkty-2kolumny .wc-block-components-product-stock-indicator {
    font-size: 11px !important;
    text-align: center;
    color: #555;
  }

  /* Centrowanie całej zawartości */
  .produkty-2kolumny .wc-block-grid__product * {
    text-align: center !important;
  }

  .content-area {
    padding: 0 !important;
}
}

@media (max-width: 768px) {
  .produkty-2kolumny ul.wc-block-grid__products::after {
    content: "";
    display: table;
    clear: both;
  }

  .produkty-2kolumny .wc-block-pagination {
    clear: both;
    margin-top: 20px;
    text-align: center;
  }

  .produkty-2kolumny .wc-block-pagination .wc-block-pagination-page {
    margin: 0 5px;
  }
}



@media (max-width: 768px) {
  /* Dwie kolumny dla klasycznego loopa WooCommerce */
  ul.products.columns-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
    margin: 0;
  }

  ul.products.columns-3 > li.product {
    width: 48% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box;
    background-color: #fff;
    border: 0px solid #ccc;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  ul.products.columns-3 > li.product img {
    width: 100% !important;
    height: auto !important;
    display: block;
    margin-bottom: 10px;
  }

  ul.products.columns-3 > li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    text-transform: uppercase;
  }

  ul.products.columns-3 > li.product .price {
    font-size: 14px !important;
    text-align: center;
    margin-bottom: 6px;
  }

  ul.products.columns-3 > li.product * {
    text-align: center;
  }


}

@media (max-width: 768px) {
  /* Wyśrodkowanie kontenera z logo */
  .site-branding {
    text-align: center;
    margin: 0 auto;
  }

  /* Wyśrodkowanie linku z logo */
  .custom-logo-link {
    display: inline-block;
  }

  /* Zmniejszenie rozmiaru samego logo */
  .site-header .custom-logo-link img {
    width: 100%;
    max-width: 160px;
}
.site-branding {
  text-align: center;
  margin: 0px 0px 0px 23%;
}

  /* Zmniejszenie odstępu pod headerem */
  header.site-header {
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
  }

  /* Dociągnięcie siatki produktów bliżej pod logo */
  .site-main {
    margin-top: 20px !important;
    padding-top: 0 !important;
  }

  ul.products {
    margin-top: 10px !important;
  }
  /* marginesy */
  .wc-block-grid__product .wc-block-grid__product-price {
    margin: 0 auto 5px !important;
  }
  .wc-block-components-product-stock-indicator {
    margin-bottom: 5px !important;
  }
  .home.page-template-template-fullwidth .hentry .entry-content h2 + [class*="wp-block-woocommerce-"] {
    margin-top: 0px !important;
}
.wc-block-grid__products .wc-block-grid__product img {
  margin: 0 auto 0px !important;
}
}

.wc-block-grid__product {      
margin: 0 23px 10px 27px !important;
}

