/*
Theme Name: Storefront Child
Template: storefront
*/

/* ---------------------------- */
/* UNIWERSALNY STYL FORMULARZY */
/* ---------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select,
textarea.input-text {
    background-color: #fffefc;
    border: 1px solid #c9ac74;
    color: #2a2a2a;
    border-radius: 14px;
    padding: 6px 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #d6b85b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(218, 185, 0, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

/* ---------------------------- */
/* PRZYCISKI */
/* ---------------------------- */
input[type="submit"],
button[type="submit"],
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: linear-gradient(135deg, #1e1f26, #3d3f4e); /* ciemny gradient */
    color: #ffffff;
    border: 1px solid #565874;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

input[type="submit"]::before,
button[type="submit"]::before,
.woocommerce #respond input#submit::before,
.woocommerce a.button::before,
.woocommerce button.button::before,
.woocommerce input.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

input[type="submit"]:hover::before,
button[type="submit"]:hover::before,
.woocommerce #respond input#submit:hover::before,
.woocommerce a.button:hover::before,
.woocommerce button.button:hover::before,
.woocommerce input.button:hover::before {
    left: 125%;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: linear-gradient(135deg, #2d2e37, #4d4f61);
    border-color: #777a9e;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}


/* ---------------------------- */
/* Contact Form 7 styl ogólny */
/* ---------------------------- */
.wpcf7 form {
    background: #ffffff;
    border: 1px solid #e8e1d2;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.04);
    color: #333;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    background-color: #fffefc;
    color: #2a2a2a;
    border: 1px solid #d6b85b;
    border-radius: 14px;
    padding: 7px 9px;
    max-width: 100%;
    width: 500px;
    font-size: 16px;
    box-sizing: border-box;
}

.wpcf7 textarea {
    height: 100px; /* lub np. 80px, jeśli chcesz jeszcze mniej */
    resize: vertical; /* lub "none", jeśli chcesz zablokować zmianę wysokości przez użytkownika */
}

.wpcf7 input[type="submit"] {
    background: linear-gradient(135deg, #8e44ad, #3498db);
            color: white !important;
            border: none;
            border-radius: 10px;
            padding: 12px 20px;
            font-size: 16px;
            font-weight: bold;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            transition: transform 0.5s ease;

}

.wpcf7 input[type="submit"]:hover {
    transform: scale(1.05);
}

.wpcf7-response-output {
    background-color: #f6fdf4;
    color: #228b22;
    padding: 12px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: bold;
}

/* ---------------------------- */
/* RÓŻNE */
/* ---------------------------- */
.demo_store {
    background-color: #d23d3d;
}
.delivery-time {
    font-weight: bold;
    color: #ff6600;
}
.woocommerce .quantity input[type="number"]::-webkit-inner-spin-button,
.woocommerce .quantity input[type="number"]::-webkit-outer-spin-button,
.woocommerce .quantity input[type="number"]::-webkit-clear-button,
.woocommerce .quantity input[type="number"] {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
.single-product div.product .woocommerce-product-rating {
    margin-top: 0 !important;
}
.woocommerce .star-rating span::before {
    color: #FFD700 !important;
}

/* ---------------------------- */
/* SLIDERY I RESPONSYWNOŚĆ */
/* ---------------------------- */
@media only screen and (max-width: 768px) {
    .widget-area {
        display: none !important;
    }
}

.banner-slider {
  width: 100%;
  max-width: 1240px;
  height: auto;
  aspect-ratio: 1240 / 200;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  background: #fff;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  width: 100%;
}

.banner-slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.slideshow-pikto {
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.slide-track {
  display: flex;
  width: calc(150px * 12);
  animation: scrollSlideshow 15s linear infinite;
  height: 150px;
}

.slide-track img {
  height: 100%;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  margin-right: 0px;
}

@keyframes scrollSlideshow {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ---------------------------- */
/* KAFELKI PRODUKTÓW W SKLEPIE */
/* ---------------------------- */
ul.products li.product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Link z zawartością (obrazek, tytuł, gwiazdki, cena) */
ul.products li.product .woocommerce-loop-product__link {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Tytuł – max 4 linie */
ul.products li.product .woocommerce-loop-product__title {
    min-height: 96px; /* 24px x 4 linijki */
    font-size: 16px;
    line-height: 1.2;
    overflow: hidden;
}

/* Gwiazdki ocen */
ul.products li.product .star-rating {
    min-height: 22px;
    margin-bottom: 8px;
}

/* Cena – stała wysokość */
ul.products li.product .price {
    min-height: 40px;
    margin-bottom: 10px;
}

/* Znaczniki promocyjne – np. "obniżka ceny" */
ul.products li.product .woocommerce-badge,
ul.products li.product .onsale {
    min-height: 20px;
}

/* Styl przycisku + równa wysokość */
ul.products li.product .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 600;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
    margin-top: auto;

    /* Styl WOW 🔥 */
    background: linear-gradient(135deg, #2c3e50, #4b79a1);
    color: #fff !important;
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

/* Hover efekt */
ul.products li.product .button:hover {
    background: linear-gradient(135deg, #1e2a36, #39506b);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* ---------------------------- */
/* PRZYCISK ZOBACZ KOSZYK */
/* ---------------------------- */
.woocommerce-mini-cart__buttons a.button {
    background: linear-gradient(135deg, #1e1f26, #3d3f4e); /* ciemny gradient */
    color: #ffffff;
    border: 1px solid #565874;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.woocommerce-mini-cart__buttons a.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.woocommerce-mini-cart__buttons a.button:hover::before {
    left: 125%;
}

.woocommerce-mini-cart__buttons a.button:hover {
    background: linear-gradient(135deg, #2d2e37, #4d4f61);
    border-color: #777a9e;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}
