/* Układ Ceny */
.ks-price-display { margin-bottom: 25px; }
.ks-price-wrapper { display: flex; align-items: center; gap: 15px; }
.ks-old-price { font-size: 18px; color: #94a3b8; text-decoration: line-through; font-weight: 500; }
.ks-new-price { font-size: 32px; color: var(--ks-blue); font-weight: 800; }
.ks-main-price { font-size: 32px; color: #1e293b; font-weight: 800; }
.ks-sale-badge { background: #ef4444; color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 14px; font-weight: 700; }

/* Przycisk Dodaj do Koszyka */
.ks-add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ks-blue);
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.ks-add-to-cart-btn:hover { background: #000; transform: translateY(-2px); }
.ks-add-to-cart-btn.wide { width: 100%; justify-content: center; }

/* Formularz Ilości */
.ks-buy-row { display: flex; gap: 15px; align-items: center; }
.quantity input.qty {
    width: 60px; height: 54px; border-radius: 12px; border: 1px solid var(--ks-border);
    background: var(--ks-bg); text-align: center; font-weight: 700;
}

/* Tabela Produktu Grupowego */
.ks-grouped-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; border: 1px solid var(--ks-border); border-radius: 15px; overflow: hidden; }
.ks-grouped-table tr { border-bottom: 1px solid var(--ks-border); }
.ks-grouped-table td { padding: 15px; vertical-align: middle; }
.ks-label-cell label { font-weight: 600; color: #1e293b; }
.ks-price-cell { text-align: right; font-weight: 700; color: var(--ks-blue); }
.ks-qty-cell .quantity input.qty { height: 40px; width: 50px; }

/* Kafelki Informacyjne */
.ks-horizontal-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 40px 0; }
.ks-info-tile { display: flex; align-items: center; gap: 20px; background: #fff; padding: 25px; border-radius: 20px; border: 1px solid var(--ks-border); }
.ks-info-tile i { font-size: 40px; color: var(--ks-blue); }
.ks-info-tile h5 { margin: 0; font-weight: 800; }
.ks-info-tile p { margin: 5px 0 0; font-size: 14px; color: var(--ks-slate); }


































.wc-block-cart .wp-block-woocommerce-cart-order-summary-block{
	background:#ec80880d;
	padding:20px;
	border-radius:19px;
}
.wp-block-woocommerce-checkout-order-summary-block{
		background:#ec80880d;
	padding:20px;
	border-radius:19px;
}


.wc-block-components-totals-footer-item .wc-block-components-totals-item__label, .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: var(--wp--preset--font-size--medium, 22px);
    line-height: 27px;
	color:black;
	font-weight:700;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-footer-item-tax{
	color:black;
	text-transform:lowercase;
	font-size:14px;
	
}
.wc-block-components-formatted-money-amount {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    color: black;
}
.wp-block-post-title :where(a) {
    display: inline-block;
    font-style: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-decoration: inherit;
	    font-family: 'Archivo', sans-serif!important;
    font-weight: 700 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
}

.wp-block-woocommerce-product-collection h2.wp-block-heading {
    font-size:20px;
    line-height: 20px;
}
.woocommerce-error, .woocommerce-info, .woocommerce-message {
    padding: 1em 2em 1em 3.5em;
    margin: 0 0 2em;
    position: relative;
    background-color: #ec80881f;
    color: #515151;
    border-top: 2px solid #ec8088;
    list-style: none outside;
    width: auto;
    word-wrap: break-word;
	border-radius:15px;
}
.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name, table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
    display: block;
    font-size: 17px;
	font-weight:700;
    line-height: 20px;
	text-decoration:none;
    line-height: 1.4;
    max-width: max-content;
}

.woocommerce table.shop_attributes th{
	width:30%;
}
.woocommerce table.shop_attributes td {
    font-style: normal!important;
    padding: 10px!important;
    border-top: 0;
    border-bottom: 1px dotted rgba(0, 0, 0, .1);
    margin: 0;
    line-height: 1.5;
}
table.shop_attributes th, table.woocommerce-product-attributes th {
    width: 30%;
    padding: 12px 15px;
    text-align: left;
    background: #ec80881f!important;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Stylizacja kontenera taba */
#ks-tab-atts {
    padding: 20px 0;
}

/* Główna tabela atrybutów */
table.shop_attributes, 
table.woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-top: 1px solid #eee; /* Delikatna linia na górze */
}

/* Stylizacja wierszy */
table.shop_attributes tr, 
table.woocommerce-product-attributes tr {
    border-bottom: 1px solid #eee;
}

/* Stylizacja lewej kolumny (Nazwa atrybutu) */
table.shop_attributes th, 
table.woocommerce-product-attributes th {
    width: 30%;
    padding: 12px 15px;
    text-align: left;
    background: #f9f9f9; /* Bardzo jasne tło dla etykiet */
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Stylizacja prawej kolumny (Wartość atrybutu) */
table.shop_attributes td, 
table.woocommerce-product-attributes td {
    padding: 12px 15px;
    font-style: normal;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Usuwamy puste akapity, jeśli WooCommerce je dodaje */
table.shop_attributes td p, 
table.woocommerce-product-attributes td p {
    margin: 0;
    padding: 0;
}

/* RWD: Responsywność dla telefonów */
@media (max-width: 600px) {
    table.shop_attributes th, 
    table.woocommerce-product-attributes th {
        width: 40%; /* Więcej miejsca na etykietę na małych ekranach */
        font-size: 0.75rem;
        padding: 10px;
    }
    
    table.shop_attributes td, 
    table.woocommerce-product-attributes td {
        padding: 10px;
        font-size: 0.85rem;
    }
}




.wc-block-components-button:not(.is-link) .wc-block-components-button__text{
background: #ec8088;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link){
   background: #ec8088;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);  
}
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-product-name{
	font-weight:700!important;
	color:#000;
	font-size:15px;
}
.wc-block-components-order-summary .wc-block-components-order-summary-item__description p{
	font-size:13px;
	line-height:1.5;
}

.wc-block-components-form .wc-block-components-text-input input[type=email], .wc-block-components-form .wc-block-components-text-input input[type=number], .wc-block-components-form .wc-block-components-text-input input[type=password], .wc-block-components-form .wc-block-components-text-input input[type=tel], .wc-block-components-form .wc-block-components-text-input input[type=text], .wc-block-components-form .wc-block-components-text-input input[type=url], .wc-block-components-text-input input[type=email], .wc-block-components-text-input input[type=number], .wc-block-components-text-input input[type=password], .wc-block-components-text-input input[type=tel], .wc-block-components-text-input input[type=text], .wc-block-components-text-input input[type=url] {
    padding: 14px;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    box-sizing: border-box;
    border-radius: 10px;
    margin-bottom: 0em;
    color: #000;
    font-family: 'Arial';
    font-size: 13px;
}
.wc-blocks-components-select .wc-blocks-components-select__select{
	    padding: 14px;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    box-sizing: border-box;
    border-radius: 10px;
    margin-bottom: 0em;
    color: #000;
    font-family: 'Arial';
    font-size: 13px;
}





/* =================================================
   WOOCOMMERCE ARCHIVE – KRYSTALSPACE PREMIUM
================================================= */

/* --- CONTAINER --- */
.ks-shop-container {
    max-width: 1400px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

/* --- GRID: SIDEBAR + CONTENT --- */
.ks-shop-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* --- BREADCRUMBS --- */
.ks-shop-breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 500;
}

/* --- SIDEBAR --- */
.ks-sidebar {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.ks-sidebar .widget {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 25px;
}

.ks-sidebar .widget-title {
    font-size: 16px;
    margin-bottom: 15px;
}

/* Kategorie */
.ks-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ks-sidebar ul li {
    margin-bottom: 8px;
}

.ks-sidebar ul li a {
    text-decoration: none;
    font-size: 14px;
    color: var(--ks-slate);
    transition: color .25s ease;
}

.ks-sidebar ul li a:hover {
    color: var(--ks-blue);
}

/* --- HEADER KATEGORII --- */
.ks-shop-header {
    margin-bottom: 45px;
}

.ks-page-title {
    margin-bottom: 15px;
}

.ks-term-description {
    color: var(--ks-slate);
    line-height: 1.7;
    max-width: 900px;
    font-size: 17px;
}

/* --- TOOLBAR --- */
.ks-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    margin-bottom: 40px;
}

.ks-result-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--ks-slate);
}

/* --- PRODUCT GRID --- */
.ks-shop-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Usunięcie floatów WooCommerce */
.ks-shop-content ul.products::before,
.ks-shop-content ul.products::after {
    display: none !important;
}

/* --- PAGINATION --- */
.ks-pagination-wrap {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.ks-pagination-wrap .page-numbers {
    display: flex;
    gap: 10px;
    list-style: none;
}

/* =================================================
   RESPONSIVE
================================================= */

@media (max-width: 1150px) {
    .ks-shop-wrapper {
        grid-template-columns: 1fr;
    }

    .ks-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 850px) {
    .ks-shop-content ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .ks-sidebar {
        grid-template-columns: 1fr;
    }

    .ks-shop-content ul.products {
        grid-template-columns: 1fr !important;
    }

    .ks-shop-toolbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        border-radius: 20px;
    }
}







/* Style dla gwiazdek na liście produktów */
.ks-card-rating .star-rating {
    font-family: 'star';
    font-size: 14px;
    position: relative;
    width: 5.4em;
    height: 1em;
    line-height: 1;
    overflow: hidden;
    display: inline-block;
}

.ks-card-rating .star-rating::before {
    content: '\73\73\73\73\73';
    color: #d3ced2;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}

.ks-card-rating .star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.ks-card-rating .star-rating span::before {
    content: '\53\53\53\53\53';
    top: 0;
    left: 0;
    position: absolute;
    color: #ffb400; /* Złoty kolor */
}