/* === Ogólny wrapper === */
.cpw-products-widget {
    margin: 20px 0;
}
.product-filter-form {
  
    margin-bottom: 30px;
    
}
/* Formularz sortowania i wyboru układu */
 .product-filter-form form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.product-filter-form select:first-of-type {
    margin-right: 15px;
  }
  
/* === Layout: Grid === */
.cpw-products-widget .cpw-products-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.cpw-products-widget .product-tile .add-to-cart-form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Wyśrodkuje zawartość w pionie */
    gap: 10px; /* Odstęp między ilością a koszykiem */
}
/* === Kafelki === */
.cpw-products-widget .product-tile {
    border: 1px solid #ccc;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 450px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cpw-products-widget .product-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cpw-products-widget .product-tile > div:nth-child(1) {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.cpw-products-widget .product-tile > div:nth-child(1) img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
}

.cpw-products-widget .product-tile > p {
    height: 70px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 15px;
    font-weight: bold;
}







/* === Lista === */
.cpw-products-widget .cpw-products-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cpw-products-widget .product-list {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    padding: 10px;
    gap: 20px;
    flex-wrap: nowrap;
    
}


.cpw-products-widget .product-list-image {
    flex: 0 0 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cpw-products-widget .product-list-right {
    display: flex;
    flex: 1 1 80%;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.cpw-products-widget .product-list-title {
    flex: 0 0 36%;
}

.cpw-products-widget .product-list-price-stock {
    flex: 0 0 20%;
    text-align: center;
}

.cpw-products-widget .product-list-cart {
    flex: 0 0 24%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    padding-right: 50px;
    
    
}
.cpw-products-widget .product-list-cart .add-to-cart-form{
    display: flex;
flex-direction: column;
align-items: center;
gap: 10px;

}

/* === Tabela === */
.cpw-products-widget .cpw-products-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cpw-products-widget .product-table-row {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 10px;
    gap: 20px;
    flex-wrap: nowrap;
}

.cpw-products-widget .product-table-row > .table-title {
    flex: 0 0 30%;
}

.cpw-products-widget .product-table-row > .table-price {
    flex: 0 0 20%;
    text-align: center;
}

.cpw-products-widget .product-table-row > .table-stock {
    flex: 0 0 20%;
    text-align: center;
}

.cpw-products-widget .product-table-row > .table-cart {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cpw-products-widget .product-table-row>.table-cart .add-to-cart-form{
    display: flex;
flex-direction: column;
align-items: center;
gap: 10px;

}

/* === Formularz: Ilość + Koszyk === */
.cpw-products-widget .quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.cpw-products-widget .quantity button.minus,
.cpw-products-widget .quantity button.plus {
    width: 24px;
    height: 24px;
    font-size: 14px;
    background: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 5px;
    line-height: 1;
}

.cpw-products-widget .quantity input.qty {
    width: 40px;
    height: 30px;
    font-size: 14px;
    text-align: center;
    padding: 2px;
}

.cpw-products-widget .add-to-cart-button {
    margin-top: 5px;
    padding: 6px 12px;
    background-color: black;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cpw-products-widget .add-to-cart-button:hover {
    background-color: #C4B583;
    color: white;
}


/* === RESPONSYWNOŚĆ === */

/* Telefon: max 768px */
@media (max-width: 768px) {
    .cpw-products-widget .product-list {
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: nowrap;
    }

    .cpw-products-widget .product-list-image {
        flex: 0 0 30%;
        max-width: 100px;
        margin-right: 10px;
    }

    .cpw-products-widget .product-list-right {
        flex: 1 1 70%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .cpw-products-widget .product-list-title,
    .cpw-products-widget .product-list-price-stock,
    .cpw-products-widget .product-list-cart {
        width: 100%;
    }

    .cpw-products-widget .product-list-cart {
        align-items: flex-start;
    }

    .cpw-products-widget .product-table-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cpw-products-widget .product-table-row > div {
        width: 100%;
        margin-bottom: 10px;
    }

    .cpw-products-widget .product-table-row > .table-cart {
        align-items: center;
    }

    .cpw-products-widget .product-filter-form form {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Tablet: 769–1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    .cpw-products-widget .product-table-row {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .cpw-products-widget .product-table-row > .table-title,
    .cpw-products-widget .product-table-row > .table-price,
    .cpw-products-widget .product-table-row > .table-stock {
        flex: 1 1 30%;
    }

    .cpw-products-widget .product-table-row > .table-cart {
        flex: 1 1 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }

    .cpw-products-widget .add-to-cart-form {
        flex-direction: row;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
}
/* === Tytuł === */

/* Widok kafelkowy (grid) */
.cpw-products-grid .product-title  {
    color: black !important;
    font-weight: bold !important;
}
.cpw-products-grid .product-title:hover  {
    color: #C4B583 !important;
    font-weight: bold !important;
}

/* Widok listy (list) */
.cpw-products-list .product-title a{
    color: black !important;
    font-weight: bold !important;
}
.cpw-products-list  .product-title a:hover  {
    color: #C4B583 !important;
    font-weight: bold !important;
}
.cpw-products-table .product-title {
    color: black !important;
    font-weight: bold !important;
}
.cpw-products-table  .product-title:hover  {
    color: #C4B583 !important;
    font-weight: bold !important;
}


/* Stylizacja ceny */
.cpw-products-widget .product-price {
    font-size: 18px;
    font-weight: bold;
    color: green; /* Kolor ceny, mo�na dostosowa� */
    margin-bottom: 10px; /* Dodanie odst�pu poni�ej ceny */
}



  /* === Animacja dla listy === */
.product-list {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .product-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  
  /* === Animacja dla tabeli === */
  .product-table-row {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .product-table-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  .cpw-no-results {
    padding: 20px;
    background-color: #fdfaf2; /* bardzo jasny odcień tła pasujący do złota */
    border: 1px solid #C4B583;
    color: #C4B583;
    font-size: 1.1em;
    border-radius: 6px;
    text-align: center;
    margin: 20px 0;
    font-weight: 500;
}






/* G��wny kontener produktu */
.product-single {
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    padding: 20px; 
    border: 1px solid #ccc;
}

.product-single .product-price {
    display: flex; 
    justify-content: space-between; 
    align-items: center;}


.product-stock {
    display: flex; 
    justify-content: space-between; 
    align-items: center;}

.kontener_koszyk_ilosc_single {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%;}
    /* Zmiana koloru napisu "Cena" */
div.cen {
    color: black; /* np. pomarańczowy */
    font-weight: bold;
}

/* Zmiana koloru kwoty netto */
div.c_netto .woocommerce-Price-amount {
    color: green; /* np. niebieski */
    font-weight: normal;
}

/* Zmiana koloru słowa "netto" */
div.c_netto {
    color: black;
    font-weight: normal;
}

/* Zmiana koloru kwoty brutto */
div.c_brutto .woocommerce-Price-amount {
    color: green; /* np. zielony */
    font-weight: normal;
}

/* Zmiana koloru słowa "brutto" */
div.c_brutto {
    color: black;
    font-weight: normal;
}
    .dostepnosc{
color: #000;
font-weight: bold;
    }
    .mag{
color: #000;
    }
   .koszyk_prod_poj{
color: #000;
   }




   .product-single .quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.product-single .quantity button.minus,
.product-single .quantity button.plus {
    width: 24px;
    height: 24px;
    font-size: 14px;
    background: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 5px;
    line-height: 1;
}

.product-single .quantity input.qty {
    width: 40px;
    height: 30px;
    font-size: 14px;
    text-align: center;
    padding: 2px;
}

.product-single .add-to-cart-button {
    margin-top: 5px;
    padding: 6px 12px;
    background-color: black;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-single .add-to-cart-button:hover {
    background-color: #C4B583;
    color: white;
}

.product-single .kontener_koszyk_ilosc_single .koszyk_prod_poj .add-to-cart-form{
    display: flex;
flex-direction: column;
align-items: center;
gap: 10px;

}