/* Custom Styles Eko-industries */

:root {
  --color-1: #078304;
} 
body {
  font-size:18px;
}

.footer-copyright>a:hover {
    color: #088305;
}
.site-footer {
  background: url(/bundles/w4profront/images/custom/images/footer.jpg);
}

.site-footer p,
.site-footer a {
  color: #202020;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  text-decoration: none;
}

.site-footer ul {
  list-style-type: none;
  padding: 0 0 30px 0;
  margin: 0;
}

.w4p-subfooter {
  padding-top: 10px;
}

.logo-footer {
  max-width: 200px;
  padding: 0 0 30px 0;
}

.feature-box {
  min-height:125px;
  background-color: #F9F9F9;
  border-radius: 0px;
  border: 2px solid #078304;
  margin-bottom: 20px;
  padding: 20px;
}

.feature-box h3 {
  color: #202020;
  padding-top: 40px;
}

.feature-box:hover {
  /* background:linear-gradient(90deg, rgba(193,233,95,1) 0%, rgba(0,127,0,1) 70%); */
  background-position:10px;
}

.shadow:after {
  box-shadow: 0 10px 20px #636363;
}

@media only screen and (min-width: 992px) {
  .w4pBox2 > div > a > div.feature-box {
    min-height: 137px;
  }
}
.w4pBox2 h3 {
  font-size:22px;
}

@media (max-width: 765px) { 
  .justify-content-md-center {
    margin-right: auto;
    margin-left: auto;
  }
  .hero-slider {
    min-height: 100px;
  }
}

/* Photoswipe fix */
.pswp img {
    max-width: none;
    object-fit: contain;
}
 
/* Attribute table - smaller  */
#w4p-attributeTable th,
#w4p-attributeTable td {
  padding: 5px;
}


.chart-container {
    position: relative;
    height: 600px;
    margin: 30px 0;
}
.chart-controls {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(248, 249, 250, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.chart-controls button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    min-width: 80px;
}
.chart-controls button:hover {
    background: #0056b3;
}
.chart-controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.chart-controls button.active {
    background: #28a745;
}
.zoom-info {
    text-align: center;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    font-size: 12px;
}
.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}
.table td, .table th {
    padding: 8px;
    font-size: 14px;
}
.power-label {
    font-weight: bold;
    font-size: 11px;
    color: #333;
}

/* Style formualrza doboru urządzenia */

/* label,
input,
#result {
    display: block;
    margin: 10px 0;
} */

td:first-child {
    white-space: nowrap;
}

#w4p-productVariantTable p,
#w4p-productVariantTable th,
#w4p-productVariantTable td {
    padding: 2px 5px;
    margin: 0;
}

#w4p-productVariantTable th {
    font-weight: bold;
}

#w4p-productVariantTable thead tr,
.card-header {
    background-color: #d2d2d2;
}

/* Podswietlenie na podstawie parametrow */
.w4p-highlight {
    background-color: #8bc34a !important;
    font-weight: bold;
}

/* Podwietlenie na podstawie mocy */
.w4p-highlightKw {
    background-color: yellow !important;
    font-weight: bold;
}

.w4p-powerForm {
    padding-top:0px;
    /* padding-left: 45px; */
    border-top: 1px solid #f4f4f4;
}

#w4p-productList .shop-toolbar {
    padding: 30px 0 0 30px;
}

/* Dedykowane poprawki  */

.text-medium {
    font-weight: 600 !important;
}
.chart-controls {
    text-align: left;
    margin-top: 0;
    padding: 10px;
    background: none;
    border-radius: 8px;
    box-shadow: none;
    
}
.chart-controls button {
    padding: 5px 5px;
}
.chart-container {
    height: 450px;
    margin: 10px 0;
}

.w4p-rowChart {
  margin-top: -25px;
  margin-bottom: -20px;
}

.shop-toolbar {
  display:none;
}

#w4p-productVariantTable tr,
#w4p-productVariantTable td {
  text-align: center;
}

.w4p-skuProductShow {
  display:none;
}
#w4p-productVariantTable_filter label {
  text-align: right;
}
#w4p-productVariantTable tr td:first-child {
    text-align: left;
}

#w4p-productVariantTable tr td:last-child {
    text-align: right;
}
h3#w4p-proposedModel {
  margin-bottom:3px;
}

/* ----------------------- */
/* Kafelki custom */
/* ----------------------- */

    /* Tytuł sekcji */
.w4p-section-title {
    padding: 40px 0;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* Kontener z kafelkami - równa wysokość */
.w4p-tiles-container {
    display: flex;
    flex-wrap: wrap;
    /* gap: 20px; */
    margin: 0 -10px;
}

/* Wrapper dla każdego kafelka */
.w4p-tile-wrapper {
    display: flex;
    padding: 0 10px;
    margin-bottom: 20px;
}

/* Link kafelka */
.w4p-tile-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.w4p-tile-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
}

/* Główny kafelek */
.w4p-tile {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.w4p-tile:hover {
    border-color: #007bff;
    box-shadow: 0 8px 25px rgba(0,123,255,0.15);
}

/* Zawartość kafelka */
.w4p-tile-content {
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
    position: relative;
}

/* Tytuł kafelka */
.w4p-tile-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.w4p-tile:hover .w4p-tile-title {
    color: #007bff;
}

/* Efekt gradientu przy hover */
.w4p-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.w4p-tile:hover::before {
    transform: scaleX(1);
}

/* Responsywność */
@media (max-width: 991.98px) {
    .w4p-tiles-container {
        gap: 15px;
        margin: 0 -7.5px;
    }
    
    .w4p-tile-wrapper {
        padding: 0 7.5px;
        margin-bottom: 15px;
    }
    
    .w4p-tile-content {
        padding: 25px 15px;
    }
    
    .w4p-tile-title {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .w4p-section-title {
        padding: 30px 0;
        font-size: 1.5rem;
    }
    
    .w4p-tiles-container {
        gap: 12px;
        margin: 0 -6px;
    }
    
    .w4p-tile-wrapper {
        padding: 0 6px;
        margin-bottom: 12px;
    }
    
    .w4p-tile-content {
        padding: 20px 15px;
    }
}

/* Alternatywna wersja z flexbox dla równej wysokości w rzędach */
@media (min-width: 768px) {
    .w4p-tiles-container {
        display: flex;
        flex-wrap: wrap;
    }
    
    .w4p-tile-wrapper {
        display: flex;
    }
}

/* Dodatkowe kolory dla różnorodności (opcjonalne) */
.w4p-tile:nth-child(3n+1):hover {
    border-color: #28a745;
}

.w4p-tile:nth-child(3n+1):hover .w4p-tile-title {
    color: #28a745;
}

.w4p-tile:nth-child(3n+1)::before {
    background: linear-gradient(90deg, #28a745, #1e7e34);
}

.w4p-tile:nth-child(3n+2):hover {
    border-color: #ffc107;
}

.w4p-tile:nth-child(3n+2):hover .w4p-tile-title {
    color: #e0a800;
}

.w4p-tile:nth-child(3n+2)::before {
    background: linear-gradient(90deg, #ffc107, #e0a800);
}

/* --------------- */
/* fix na jednolitą wysokość kafelków */
.category-card {
  border: 1px solid #e9ecef;
  border-radius: .25rem;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgb(2 79 4 / 15%);
}
.category-card-info {
  flex: 1 1 auto;
  padding: 1.5rem;
}
.category-card-thumb {
  flex: 0 0 40%;
}
.object-cover {
  object-fit: cover;
}

/* Poprawki */
.product-gallery .product-thumbnails  {
  display:none!important;
}
#w4p-productShow{
  padding-bottom: 0px !important;
}


@media (max-width: 992px) {
  .category-card-thumb {
    flex: 0 0 30%;
  }
}
@media (max-width: 768px) {
  .category-card {
    flex-direction: column;
  }
  .category-card-thumb {
    flex: 0 0 auto;
    height: 200px;
  }
  .row.align-items-stretch .col-md-6.mb-30.d-flex {
    display:block!important;
  }
}