/* Wycentrowanie głównych kontenerów WooCommerce */
.woocommerce,
.woocommerce-page {
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}

.woocommerce #content,
.woocommerce-page #content {
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    padding-left: 4%;
    padding-right: 4%;
    margin-top: 10rem;
}

/* Strona checkout - podstawowe style */
.woocommerce-checkout,
.woocommerce-page.woocommerce-checkout {
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}

.woocommerce-checkout #content,
.woocommerce-page.woocommerce-checkout #content {
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    padding-left: 0;
    padding-right: 4%;
    margin-top: 10rem;
}

/* Kontener checkout - upewnij się że nie psuje layoutu */
.woocommerce-checkout .kontener-sz {
    width: 100%;
    max-width: 100%;
}

/* Formularz checkout */
form.checkout.woocommerce-checkout {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    flex-wrap: wrap;
    width: 100%;
}

/* Kolumna z danymi klienta */
.woocommerce-checkout #customer_details {
    flex: 1 1 65%;
    min-width: 0;
}

/* Kolumna z podsumowaniem zamówienia */
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
    flex: 1 1 30%;
    min-width: 300px;
}

/* Tabela podsumowania zamówienia */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.woocommerce-checkout-review-order-table th {
    text-align: left;
    font-weight: 600;
}

/* Pola formularza checkout */
.woocommerce-checkout .form-row {
    margin-bottom: 1.5rem;
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100%;
    padding: 0.8rem;
    border: 0;
    border-bottom: 1px solid var(--color-black);
    font-size: 1.4rem;
}

/* Usunięto display: none dla label - blokowało widoczność modułów płatności i wysyłki */
/* .woocommerce-checkout label {
    display: none;
} */

.woocommerce-checkout input::placeholder,
.woocommerce-checkout textarea::placeholder {
    opacity: 1;
    color: var(--grey);
    text-transform: uppercase;
}

/* Przycisk zamówienia */
.woocommerce-checkout #place_order {
    width: 100%;
    padding: 1.2rem;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    font-size: 1.4rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
}

.woocommerce-checkout #place_order:hover {
    opacity: 0.9;
}

/* Blokowy checkout WooCommerce */
.wc-block-components-sidebar-layout.wc-block-checkout {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.wc-block-components-sidebar.wc-block-checkout__sidebar.wp-block-woocommerce-checkout-totals-block {
    width: 30%;
}

.wc-block-components-main.wc-block-checkout__main.wp-block-woocommerce-checkout-fields-block {
    width: 60%;
}

/* Tytuł kroku checkout - zaktualizowany */
h2.wc-block-components-title.wc-block-components-checkout-step__title {
    font-size: 7.2rem;
    font-family: var(--font-family-gracia);
    max-width: 1920px;
    padding-left: 4%;
    border-bottom: 1px solid black;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    padding-right: 10rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}

/* Numer kroku w kółku */
h2.wc-block-components-title.wc-block-components-checkout-step__title::after {
    content: attr(data-step-number);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid var(--color-black);
    background: transparent;
    color: var(--color-black);
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Montserrat';
    flex-shrink: 0;
    margin-left: 2rem;
    transition: all 0.3s ease;
}

/* Krok ukończony - czarne tło z ptaszkiem */
h2.wc-block-components-title.wc-block-components-checkout-step__title.step-completed::after {
    content: "✓";
    background: var(--color-black);
    border-color: var(--color-black);
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Kontener kroku - domyślnie zwinięty */
.wc-block-components-checkout-step {
    margin-bottom: 2rem;
}

.wc-block-components-checkout-step .wc-block-components-checkout-step__container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding-top: 0;
    padding-bottom: 0;
}

/* Krok rozwinięty */
.wc-block-components-checkout-step.step-expanded .wc-block-components-checkout-step__container {
    max-height: 5000px;
    padding: 5rem;
}

/* Pierwszy krok domyślnie rozwinięty */
.wc-block-components-checkout-step:first-of-type.step-expanded .wc-block-components-checkout-step__container {
    padding: 5rem;
}

/* Krok zwinięty - można kliknąć */
.wc-block-components-checkout-step:not(.step-expanded) h2.wc-block-components-title.wc-block-components-checkout-step__title {
    cursor: pointer;
}

/* Pola formularza blokowego checkout */
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout input[type="password"],
.wc-block-checkout input[type="number"],
.wc-block-checkout select,
.wc-block-checkout textarea {
    border: 0;
    border-bottom: 1px solid var(--color-grey);
    padding-left: 0;
    border-radius: 0;
}

/* Focus na inputach checkout */
.woocommerce-checkout .wc-block-checkout input:focus-visible {
    outline: none;
    border-bottom: 1px solid black;
}

.wc-block-checkout input::placeholder,
.wc-block-checkout textarea::placeholder {
    opacity: 1;
    color: var(--grey);
    text-transform: uppercase;
}

.wp-block-woocommerce-checkout input::placeholder,
.wp-block-woocommerce-checkout textarea::placeholder {
    opacity: 1;
    color: var(--grey);
    text-transform: uppercase;
}

/* Usunięto display: none dla label - blokowało widoczność modułów płatności i wysyłki */
/* .wc-block-checkout label {
    display: none;
} */

/* Ukryj label tylko w sekcjach adres do wysyłki i dane kontaktowe */
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Dane kontaktowe")) .wc-block-components-text-input label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Contact")) .wc-block-components-text-input label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Adres")) .wc-block-components-text-input label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Address")) .wc-block-components-text-input label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Shipping")) .wc-block-components-text-input label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Wysyłka")) .wc-block-components-text-input label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Dane kontaktowe")) .wc-block-components-select-wrapper label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Contact")) .wc-block-components-select-wrapper label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Adres")) .wc-block-components-select-wrapper label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Address")) .wc-block-components-select-wrapper label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Shipping")) .wc-block-components-select-wrapper label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Wysyłka")) .wc-block-components-select-wrapper label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Dane kontaktowe")) .wc-block-components-textarea label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Contact")) .wc-block-components-textarea label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Adres")) .wc-block-components-textarea label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Address")) .wc-block-components-textarea label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Shipping")) .wc-block-components-textarea label,
.wc-block-components-checkout-step:has(.wc-block-components-checkout-step__title:contains("Wysyłka")) .wc-block-components-textarea label {
    display: none;
}

/* Alternatywnie - użyj JavaScript do dodania klas do sekcji i ukryj label w tych sekcjach */
.wc-block-checkout-step-contact .wc-block-components-text-input label,
.wc-block-checkout-step-contact .wc-block-components-select-wrapper label,
.wc-block-checkout-step-contact .wc-block-components-textarea label,
.wc-block-checkout-step-shipping .wc-block-components-text-input label,
.wc-block-checkout-step-shipping .wc-block-components-select-wrapper label,
.wc-block-checkout-step-shipping .wc-block-components-textarea label {
    display: none;
}

/* Ukryj tytuł h1 na stronie checkout */
.woocommerce-checkout h1.entry-title {
    display: none;
}

/* Tytuł podsumowania zamówienia */
p.wc-block-components-checkout-order-summary__title-text {
    font-size: 1.6rem;
    color: var(--color-black);
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
}

/* Blok podsumowania zamówienia */
.wp-block-woocommerce-checkout-order-summary-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
    padding-bottom: 5rem;
    padding-top: 0;
    border-bottom: 1px solid var(--color-black);
    font-size: 1.6rem;
}

/* Pozycje w podsumowaniu zamówienia */
.wc-block-components-order-summary-item {
    display: flex;
    gap: 1rem;
    font-size: 1.2rem;
    justify-content: space-around;
}

span.wc-block-components-order-summary-item__individual-prices.price.wc-block-components-product-price {
    display: none;
}

.wc-block-components-order-summary-item__image {
    width: 25%;
    position: relative;
}

.wc-block-components-order-summary-item__image img {
    height: auto;
    max-width: 100%;
    width: 100%;
}

.wc-block-components-order-summary-item__quantity {
    width: fit-content;
    background: #000000;
    padding: .4rem;
    border-radius: 50%;
    color: white;
    position: absolute;
    top: -8px;
    left: -8px;
    min-width: 20px;
    min-height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wc-block-components-order-summary__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.wc-block-components-order-summary-item__total-price {
    width: 25%;
    display: flex;
    justify-content: flex-end;
}

h3.wc-block-components-product-name {
    font-weight: 600;
}

.wc-block-components-order-summary-item__description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 60%;
}

/* Formularz kuponu w checkout */
.wp-block-woocommerce-checkout-order-summary-coupon-form-block.wc-block-components-totals-wrapper {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

/* Bloki podsumowania zamówienia w checkout */
.wp-block-woocommerce-checkout-order-summary-subtotal-block.wc-block-components-totals-wrapper {
    padding-bottom: 2rem;
}

.wp-block-woocommerce-checkout-order-summary-shipping-block.wc-block-components-totals-wrapper {
    padding-bottom: 2rem;
}

.wp-block-woocommerce-checkout-order-summary-taxes-block.wc-block-components-totals-wrapper {
    padding-bottom: 2rem;
}

/* Lista szczegółów produktu w checkout */
ul.wc-block-components-product-details {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

ul.wc-block-components-product-details li {
    display: flex;
    flex-direction: column;
}

form#wc-block-components-totals-coupon__form {
    width: 100%;
    display: flex;
    margin-top: 1rem;
}

/* Ukryj ikonę i cenę w tytule podsumowania */
span.wc-block-components-checkout-order-summary__title-icon,
span.wc-block-formatted-money-amount.wc-block-components-formatted-money-amount.wc-block-components-checkout-order-summary__title-price {
    display: none;
}

/* Kontener kroku checkout */
.wc-block-components-checkout-step__container {
    padding: 5rem;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 3rem;
}

/* Kontener shipping */
div#shipping {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 3rem;
}

/* Kontener danych kontaktowych */
div#contact {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Opis kroku checkout */
p.wc-block-components-checkout-step__description {
    font-size: 1.2rem;
}

/* Opcje radiowe - label */
label.wc-block-components-radio-control__option {
    display: flex;
    font-size: 1.2rem;
    text-transform: uppercase;
    gap: .5rem;
    line-height: 2;
}

/* Grupa labeli w opcjach radiowych */
.wc-block-components-radio-control__label-group {
    display: flex;
    gap: 1rem;
}

/* Wiersz z akcjami checkout */
.wc-block-checkout__actions_row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 5rem;
    margin-bottom: 5rem;
    padding-left: 4%;
}

/* Przycisk "Złóż zamówienie" */
button.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-top: 5rem;
    width: fit-content;
}

/* Tytuł kroku checkout - zaktualizowany */
h2.wc-block-components-title.wc-block-components-checkout-step__title {
    font-size: 6.2rem;
    font-family: var(--font-family-gracia);
    max-width: 1920px;
    padding-left: 4%;
    border-bottom: 1px solid black;
    margin-bottom: 3rem;
}

/* Content checkout - zaktualizowany */
.woocommerce-checkout #content,
.woocommerce-page.woocommerce-checkout #content {
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    padding-left: 0;
    padding-right: 4%;
    margin-top: 10rem;
}

/* Wycentrowanie listy produktów */
.woocommerce ul.products,
.woocommerce-page ul.products {
    max-width: 1920px;
    margin: 0 auto;
    padding-left: 4%;
    padding-right: 4%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

/* Wycentrowanie nagłówków sklepu */
.woocommerce-products-header {
    max-width: 1920px;
    margin: 0 auto;
    padding-left: 4%;
    padding-right: 4%;
}

/* Wycentrowanie przed i po pętli produktów */
.woocommerce-before-shop-loop,
.woocommerce-after-shop-loop {
    max-width: 1920px;
    margin: 0 auto;
    padding-left: 4%;
    padding-right: 4%;
}

ul.woocommerce-mini-cart.cart_list.product_list_widget {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

a.link-fotka {
    width: 40%;
}

a.link-fotka img {
    width: 100%;
    height: auto;
}

ul.woocommerce-mini-cart .content-produkt {
    width: 50%;
    font-size: 1.2rem;
    gap: .8rem;
    display: flex;
    flex-direction: column;
}

a.remove-mini {
    width: 5%;
    color: var(--color-black);
    text-decoration: none;
    font-size: 2rem;
    padding: 0;
    margin: 0;
    font-family: fangsong;
}

ul.woocommerce-mini-cart .content-produkt a {
    color: var(--color-black);
    text-decoration: none;
}

ul.woocommerce-mini-cart .content-produkt dd {
    margin-left: 0;
}

span.mini-cart-item-price {
    width: 100%;
    display: flex;
    font-weight: 700;
    text-transform: uppercase;
}

p.woocommerce-mini-cart__total.total {
    display: flex;
    width: 100%;
    text-transform: uppercase;
    font-size: 1.2rem;
    justify-content: space-between;
    font-weight: 600;
    margin: 0;
    margin-top: 5rem;
    padding: 3rem;
    border-top: 1px solid black;
}

.offcanvas-footer {
    width: fit-content;
    text-transform: uppercase;
    border-radius: 0;
    font-size: 1.2rem;
}

.offcanvas-footer .btn {
    padding: 0.4rem 2.4rem;
    border-radius: 0;
    background-color: var(--color-black);
}

div#cartOffcanvas {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wc-collection-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--color-grey);
}

h1.product_title.entry-title {
    font-size: 2rem;
    font-weight: 500;
    width: 50%;
}

.woocommerce-product-details__short-description {
    font-size: 1.2rem;
    color: var(--color-grey);
    width: 50%;
}

p.price span, span.woocommerce-Price-amount.amount {
    font-size: 1.4rem;
    color: var(--color-black);
    font-weight: 500;
}

.wc-variation-radios {
    flex-direction: row;
    display:flex; 
    flex-wrap:wrap; 
    gap:12px; 
}

label.wc-variation-radio-item {
    width: fit-content;
}

table.variations tr {
    display: flex;
    flex-direction: column;
}

/* Ukryj selecty wariacji natychmiast - zapobiega migotaniu (FOUC) */
table.variations select,
form.variations_form table.variations select,
.woocommerce div.product form.cart table.variations select {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

table.variations th.label {
    width: 100%;
    font-weight: 700;
    font-size: 1.2rem;
}

#main table.variations fieldset.wc-variation-radios label {
    font-weight: 400;
}

.woocommerce div.product form.cart .variations {
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.summary.entry-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

nav.woocommerce-breadcrumb, .product_meta {
    display: none;
}

.wc-variation-radio-item { display:inline-flex; align-items:center; gap:6px; cursor:pointer; }

input[type=radio] {
    accent-color: var(--color-black);
}

.wc-under-atc {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-top: 5rem;
    gap: 2rem;
}

.woocommerce div.product form.cart .reset_variations {
    color: var(--color-black);
    font-size: 1.2rem;
}

.wc-variation-wrapper label {
    font-size: 1.2rem;
}

#main button.single_add_to_cart_button {
    background: black;
    border-radius: 0;
    font-size: 1.4rem;
    font-weight: 400;
    text-transform: uppercase;
    padding: 0.4rem 2.4rem;
    height: 36px;
    margin-top: 1rem;
}

.woocommerce .quantity .qty {
    width: 7rem;
    text-align: center;
    height: 36px;
    border-radius: 0;
    border: 1px solid black;
}

.woocommerce-variation-add-to-cart.variations_button {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid black;
    padding-top: 3rem;
}

.wc-under-atc__row svg {
    vertical-align: middle;
    height: 32px;
    width: 32px;
}

.wc-under-atc__row {
    max-width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.woocommerce div.product {
    margin-bottom: 0;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 10rem;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 4%;
    padding-right: 4%;
}

.wc-under-atc__lead {
    line-height: 1.3;
}

.woocommerce #content div.product div.images, .woocommerce div.product div.images, .woocommerce-page #content div.product div.images, .woocommerce-page div.product div.images {
    width: 50%;
}

.woocommerce #content div.product div.summary, .woocommerce div.product div.summary, .woocommerce-page #content div.product div.summary, .woocommerce-page div.product div.summary {
    width: 40%;
    text-align: left;
}

.woocommerce div.product div.images img {
    max-height: 70vh;
    object-fit: cover;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    justify-content: center;
    gap: 5rem;
        margin-bottom: 10rem;
    margin-top: 5rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    font-size: 1.4rem;
    text-transform: uppercase;
    border: 0;
    border-radius: 0;
    list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-weight: 400;
    color: var(--color-black);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    text-decoration: underline;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    border-bottom: 0;
}

.woocommerce-tabs.wc-tabs-wrapper {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding-left: 4%;
    padding-right: 4%;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
    display: none;
}

.product-desc-two-col {
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 300;
    display: flex;
    flex-direction: row;
    gap: 5rem;
}

.product-desc-two-col .col-left {
    width: 45%;
}

.product-desc-two-col .col-right {
    width: 55%;
}


.product-desc-two-col .col-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: justify;
}

.product-desc-two-col .col-right {
    display: flex;
    flex-direction: row;
}

.product-desc-two-col .desc-gallery {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-desc-two-col figure.desc-gallery__item {
    width: 49%;
}

.product-desc-two-col img.desc-gallery__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-desc-two-col strong {
    font-weight: 600;
}

table.woocommerce-product-attributes.shop_attributes {
    font-size: 1.4rem;
}

.woocommerce table.shop_attributes th {
    width: 150px;
    font-weight: 700;
    padding: 8px;
    border-top: 0;
    border-bottom: 1px dotted rgba(0, 0, 0, .1);
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

.woocommerce table.shop_attributes tr:nth-child(even) td, .woocommerce table.shop_attributes tr:nth-child(even) th {
    background: transparent;
}

div#tab-o_kolekcji {
    font-size: 1.4rem;
    line-height: 1.3;
}

section.related.products h2 {
    text-align: center;
    margin: 0 0 1rem;
    font-family: var(--font-family-gracia);
    font-size: 7.2rem;
}

.related.products {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 4%;
    padding-right: 4%;
}

.woocommerce #main ul.products li.product a img {
    height: 30rem;
    object-fit: contain;
}

.wc-block-components-totals-item__description {
    font-size: 1.2rem;
    font-weight: 400;
}

td.wc-block-cart-item__image {
    width: 50%;
}

td.wc-block-cart-item__product {
    width: 40%;
}

.woocommerce ul.products li.product .button {
    font-weight: 400;
}

.woocommerce-error {
    border-top-color: #e8cca7;
    background: transparent;
    color: var(--color-black);
    font-size: 1.2rem;
}

.woocommerce-error a { 
    color: var(--color-black);
}

.woocommerce-error::before {
    display: none;
}

.guaven_woos_showallli {
    text-align: center;
    border-top: 1px solid #efefef;
    padding-top: 1rem;
}

.guaven_woos_showallli a{
    color: var(--color-black);
    font-size: 1.2rem;
}

.guaven_woos_suggestion_list .guaven_woos_div {
    width: 40%;
}

.woocommerce-message {
    border: 1px solid var(--color-black);
    font-size: 1.2rem;
    color: var(--color-black);
    background: transparent;
    padding: 1rem;
}

.woocommerce-message::before {
    display: none;
}

.woocommerce-message a {
    color: var(--color-black);
    text-transform: uppercase;
}

.p24-payment-container, .p24-checkbox {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::after, .woocommerce div.product .woocommerce-tabs ul.tabs li::before {
    border: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::after, 
.woocommerce div.product .woocommerce-tabs ul.tabs li::before {
    right: 0;
    border-bottom-left-radius: 0;
    left: 0;
    border-bottom-right-radius: 0;
    border-width: 0;
    box-shadow: none;
}

ul.products.columns-3 .product-card a.button {
    border: 1px solid var(--color-black);
    border-radius: 0;
    transition: all 0.3s ease;
}

ul.products.columns-3 .product-card a.button:hover {
    background: var(--color-white);
    color: var(--color-black);
}
/* Koszyk */
.wc-block-cart {
    position: relative;
    visibility: hidden; /* 🔴 ZAMIANA z opacity */
    transition: all 1.3s ease;
}

/* Gdy gotowy */
.wc-block-cart.is-loaded {
    visibility: visible;
}

/* Loader jako overlay */
.cart-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.6);
    z-index: 999;
    visibility: visible; /* zawsze widoczny */
}

/* Spinner */
.cart-loader .spinner {
    width: 42px;
    height: 42px;
    border: 3px solid #e5e5e5;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.woocommerce ul.cart_list li dl dd, .woocommerce ul.cart_list li dl dt, .woocommerce ul.product_list_widget li dl dd, .woocommerce ul.product_list_widget li dl dt {
    margin-bottom: .5rem;
}

.woocommerce ul.cart_list li dl dd, .woocommerce ul.product_list_widget li dl dd {
    padding: 0;
}

.woocommerce ul.cart_list li dl dt, .woocommerce ul.product_list_widget li dl dt {
    padding: 0;
}

a.added_to_cart.wc-forward {
    display: none;
}

.wc-block-components-checkbox.has-error {
    border: 1px solid red;
    padding: 1rem;
}

.wc-block-checkout__terms.wc-block-checkout__terms--with-separator.wp-block-woocommerce-checkout-terms-block a {
    color: var(--color-black);
}


/* Na mobile - karuzele produktów potrzebują dodatkowego paddingu */
@media (max-width: 768px) {
    /* Padding dla karuzeli produktów na mobile - używamy margin zamiast padding */
    .carousel,
    .related.products .carousel,
    section.related.products .carousel {
        margin-left: 4%;
        margin-right: 4%;
        width: calc(100% - 8%);
        box-sizing: border-box;
    }

    .wc-block-cart {
        position: relative;
        visibility: visible;
        transition: all 1.3s ease;
    }
}
.related h2 { 
    text-align:center; 
}

.related .lead {
    text-align: center;
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    font-size: 1.2rem;
    width: 30%;
}

form.wp-block-search__button-outside.wp-block-search__text-button.wp-block-search {
    display: none;
}

.kontener-sz.opis-kate {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-top: 10rem;
    text-align: justify;
}

.offcanvas-body.cart-content li img, .woocommerce ul.product_list_widget li img {
    width: 100%;
}

.offcanvas-body.cart-content li dl, .woocommerce ul.product_list_widget li dl {
    padding-left: 0;
    border-left: 0;
}

/* Chrome, Safari, Edge (Blink/WebKit) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; /* usuń strzałki */
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield; /* usuń strzałki */
}

/* Opcjonalnie: tylko dla pola ilości WooCommerce */
.woocommerce .quantity input[type="number"]::-webkit-outer-spin-button,
.woocommerce .quantity input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.woocommerce .quantity input[type="number"] {
  -moz-appearance: textfield;
}

#main form.woocommerce-ordering.kontener-sz, #main p.woocommerce-result-count.kontener-sz {
    width: fit-content;
}

.woocommerce_short_description.product-loop-excerpt p {
    font-size: 1.2rem;
    color: var(--color-grey);
}

.woocommerce div.product section.related.products.kontener-sz {
    padding-left: 0;
    padding-right: 0;
}

.woocommerce div.product img.ornament {
    max-width: 20rem;
    object-fit: contain;
}

h1.woocommerce-products-header__title.page-title {
    font-size: 7.2rem;
    font-family: var(--font-family-gracia);
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 4%;
    padding-right: 4%;
    text-align: center;
    margin-bottom: 5rem;
    margin-top: 10rem;
}

/* Style dla h1 w koszyku */
.woocommerce-cart h1.entry-title,
.woocommerce-page.woocommerce-cart h1.entry-title {
    text-align: left;
    margin: 0 0 1rem;
    font-family: var(--font-family-gracia);
    font-size: 7.2rem;
}

.term-description {
    margin-bottom: 10rem;
}

.term-description p {
    text-align: center;
    line-height: 1.5;
    font-size: 1.2rem;
}

.kontener-sz.shop-header-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
}

select.orderby {
    border: 1px solid black;
    padding: .5rem;
}

p.woocommerce-result-count.kontener-sz {
    font-size: 1.2rem;
    margin-top: .5rem;
}

/* Strona koszyka - przyciski ilości */
.cart-qty-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.cart-qty-wrapper .cart-qty-btn {
    background: transparent;
    border: 1px solid var(--color-black);
    font-size: 1.4rem;
    line-height: 1;
    width: 3.6rem;
    height: 3.6rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cart-qty-wrapper .cart-qty-btn:hover {
    background: rgba(0,0,0,.1);
}

.cart-qty-wrapper .cart-qty-input {
    width: 6rem;
    text-align: center;
    border: 1px solid var(--color-black);
    border-left: none;
    border-right: none;
    height: 3.6rem;
    padding: 0;
    font-size: 1.4rem;
}

.cart-qty-wrapper .cart-qty-minus {
    border-radius: 0;
    border-right: none;
}

.cart-qty-wrapper .cart-qty-plus {
    border-radius: 0;
    border-left: none;
}

/* Strona koszyka - przycisk usuwania */
.woocommerce-cart-form__contents .product-remove .cart-remove-btn {
    color: var(--color-black);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 400;
    font-family: sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border: 1px solid var(--color-black);
    transition: background 0.2s;
}

.woocommerce-cart-form__contents .product-remove .cart-remove-btn:hover {
    background: rgba(0,0,0,.1);
}

/* Ukryj nagłówki tabeli koszyka */
.woocommerce-cart-form__contents thead {
    display: none;
}

/* ============================================
   BLOKOWY KOSZYK WOOCOMMERCE (WooCommerce Blocks)
   ============================================ */

/* Ukryj nagłówki tabeli w blokowym koszyku */
body .wc-block-cart__table thead,
body .wp-block-woocommerce-cart thead,
body .wc-block-cart-items thead {
    display: none;
}

/* Przycisk usuwania - zmień na X w blokowym koszyku */
.wc-block-cart-item__remove-link,
.wp-block-woocommerce-cart-item__remove-link {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important; /* Safari/WebKit: hard-hide visible label text */
    text-decoration: none;
    font-size: 0 !important;
    line-height: 0 !important;
    font-weight: 400;
    font-family: sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    transition: font-weight 0.2s ease;
    background: transparent;
    text-indent: -9999px;
    overflow: hidden;
    position: relative;
    width: 2rem;
    height: 2rem;
}

.wc-block-cart-item__remove-link:hover,
.wp-block-woocommerce-cart-item__remove-link:hover {
    font-weight: 700;
}

button.wc-block-cart-item__remove-link {
    position: absolute;
    top: 3rem;
    right: 3rem;
}

.wc-block-cart-item__wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wc-block-cart-item__wrap a {
    color: var(--color-black);
    text-decoration: none;
}

/* Zmień tekst przycisku usuwania na X */
body .wc-block-cart-item__remove-link::before,
body .wp-block-woocommerce-cart-item__remove-link::before {
    content: "X";
    display: block;
    text-indent: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem !important;
    line-height: 1 !important;
    color: var(--color-black) !important;
    -webkit-text-fill-color: var(--color-black) !important; /* Safari/WebKit */
    font-weight: 400;
    font-family: sans-serif;
}

body .wc-block-cart-item__remove-link svg,
body .wp-block-woocommerce-cart-item__remove-link svg {
    display: none;
}

/* Ukryj tekst "usuń" w przycisku - również dla Safari/Mac */
body .wc-block-cart-item__remove-link .screen-reader-text,
body .wp-block-woocommerce-cart-item__remove-link .screen-reader-text,
body .wc-block-cart-item__remove-link span:not(.screen-reader-text),
body .wp-block-woocommerce-cart-item__remove-link span:not(.screen-reader-text),
body .wc-block-cart-item__remove-link > *,
body .wp-block-woocommerce-cart-item__remove-link > * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    text-indent: -9999px !important;
}

/* Ukryj bezpośredni tekst w przycisku (dla Safari/Mac) */
body button.wc-block-cart-item__remove-link,
body button.wp-block-woocommerce-cart-item__remove-link {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important; /* Safari/WebKit */
    text-indent: -9999px !important;
}

/* Upewnij się, że tekst nie jest widoczny w Safari */
@supports (-webkit-appearance: none) {
    body .wc-block-cart-item__remove-link,
    body .wp-block-woocommerce-cart-item__remove-link {
        font-size: 0 !important;
        line-height: 0 !important;
        color: transparent !important;
        -webkit-text-fill-color: transparent !important;
    }
    
    body .wc-block-cart-item__remove-link::before,
    body .wp-block-woocommerce-cart-item__remove-link::before {
        font-size: 1.2rem !important;
        line-height: 1 !important;
        color: var(--color-black) !important;
        -webkit-text-fill-color: var(--color-black) !important;
    }
}

/* Przyciski ilości w blokowym koszyku - minus z lewej, plus z prawej */
body .wc-block-components-quantity-selector,
body .wp-block-woocommerce-cart-item__quantity {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-direction: row;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button--minus,
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button--plus,
.wp-block-woocommerce-cart-item__quantity button {
    background: transparent;
    border: 1px solid var(--color-black);
    font-size: 1rem;
    line-height: 1;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    order: 0;
}

body .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button--minus,
body .wp-block-woocommerce-cart-item__quantity button:first-child {
    border-radius: 0;
    border-right: none;
    order: 1;
}

body .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button--plus,
body .wp-block-woocommerce-cart-item__quantity button:last-child {
    border-radius: 0;
    border-left: none;
    order: 3;
}

.wc-block-components-quantity-selector input[type="number"],
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__input,
.wp-block-woocommerce-cart-item__quantity input {
    width: 3rem;
    text-align: center;
    border: 1px solid var(--color-black);
    border-left: none;
    border-right: none;
    height: 2rem;
    padding: 0;
    font-size: 1rem;
    order: 2;
    border-radius: 0;
}

body .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button--minus:hover,
body .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button--plus:hover,
body .wp-block-woocommerce-cart-item__quantity button:hover {
    background: rgba(0,0,0,.1);
}

/* ============================================
   UKŁAD DWUKOLUMNOWY KOSZYKA
   ============================================ */

/* Tradycyjny koszyk WooCommerce - dwukolumnowy layout */
.woocommerce-cart-form {
    width: 70%;
    float: left;
    padding-right: 3rem;
}

.cart-collaterals {
    width: 30%;
    float: right;
}

.woocommerce-cart-form::after,
.cart-collaterals::after {
    content: "";
    display: table;
    clear: both;
}

/* Blokowy koszyk WooCommerce - dwukolumnowy layout */
.wp-block-woocommerce-cart,
.wc-block-cart {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 10rem;
}

.wp-block-woocommerce-cart-items-block,
.wc-block-cart__main {
    flex: 1 1 65%;
    min-width: 0;
}

.wc-block-components-main.wc-block-cart__main.wp-block-woocommerce-cart-items-block {
    border-top: 1px solid var(--color-black);
    padding-top: 3rem;
    transition: all 1.3s ease;
}

table.wc-block-cart-items.wp-block-woocommerce-cart-line-items-block {
    width: 100%;
}

tr.wc-block-cart-items__row {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
    font-size: 1.6rem;
    position: relative;
    padding: 3rem;
    gap: 3rem;
}

.is-loaded tr.wc-block-cart-items__row {
    border-bottom: 1px solid var(--color-grey);
}

td.wc-block-cart-item__total {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    font-weight: 600;
}

.wp-block-woocommerce-cart-order-summary-block,
.wc-block-cart__sidebar,
.wc-block-cart__totals-title {
    flex: 1 1 30%;
    min-width: 300px;
}

.wp-block-woocommerce-cart-order-summary-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem;
    padding-bottom: 5rem;
    padding-top: 0;
    border-bottom: 1px solid var(--color-black);
}

/* Style dla nagłówka podsumowania koszyka */
h2.wp-block-woocommerce-cart-order-summary-heading-block.wc-block-cart__totals-title {
    font-size: 1.6rem;
    color: var(--color-black);
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
}

/* Style dla bloku podsumowania koszyka */
.wp-block-woocommerce-cart-order-summary-totals-block {
    font-size: 1.6rem;
    color: var(--color-black);
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.wc-block-components-totals-item.wc-block-components-totals-footer-item {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    font-weight: 600;
    font-size: 1.6rem;
    flex-wrap: wrap;
}

/* Style dla kontenera przycisku "Przejdź do płatności" */
.wc-block-cart__submit-container {
    display: flex;
    justify-content: center;
}

/* Style dla przycisku "Przejdź do płatności" */
a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-top: 5rem;
    width: fit-content;
}

/* Style dla formularza kuponu - koszyk i checkout */
.wp-block-woocommerce-cart-order-summary-coupon-form-block.wc-block-components-totals-wrapper {
    display: none;
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block.wc-block-components-totals-wrapper {
    font-size: 1.3rem;
    text-transform: uppercase;
    display: flex;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

form#wc-block-components-totals-coupon__form {
    width: 100%;
    display: flex;
}

/* Style dla inputa kuponu - koszyk i checkout */
.wc-block-components-text-input.wc-block-components-totals-coupon__input {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.wc-block-components-totals-coupon.wc-block-components-panel {
    width: 100%;
}

label[for="wc-block-components-totals-coupon__input-coupon"] {
    display: none;
}

input#wc-block-components-totals-coupon__input-coupon {
    width: 90%;
    padding: 0.4rem .8rem;
    border-radius: 0;
    font-size: 1.2rem;
}

input#wc-block-components-totals-coupon__input-coupon:focus-visible {
    outline: none;
}

/* Formularz kuponu - koszyk i checkout */
form#wc-block-components-totals-coupon__form {
    width: 100%;
    display: flex;
    margin-top: 1rem;
}

/* Ukryj pole wyboru kraju i wrapper adresu */
.wc-block-components-address-form__country.wc-block-components-country-input,
.wc-block-components-address-card-wrapper {
    display: none;
}

/* Style dla komunikatów błędów walidacji */
.wc-block-components-validation-error svg {
    display: none;
}

.wc-block-components-validation-error {
    font-size: 1rem;
    margin-top: .5rem;
    text-transform: uppercase;
    color: red;
}

/* Warunki i zasady checkout */
.wc-block-checkout__terms.wc-block-checkout__terms--with-separator.wp-block-woocommerce-checkout-terms-block {
    padding-left: 4%;
    padding-right: 4%;
}

/* Checkbox label */
.wc-block-components-checkbox label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.2rem;
    accent-color: var(--color-black);
}

/* Checkbox użycia tego samego adresu do rozliczeń */
.wc-block-components-checkbox.wc-block-checkout__use-address-for-billing {
    margin-top: 5rem;
}

/* Przycisk powrotu do koszyka */
a.wc-block-components-checkout-return-to-cart-button {
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-black);
}

/* Ukryj ikonę SVG w checkboxach */
svg.wc-block-components-checkbox__mark {
    display: none;
}

button.wc-block-components-button.wp-element-button.wc-block-components-totals-coupon__button.contained {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 50%;
}

/* Ukryj tekst przycisku kuponu i pokaż tylko "+" */
button.wc-block-components-button.wp-element-button.wc-block-components-totals-coupon__button.contained,
.woocommerce-cart-form .coupon button.button,
.woocommerce-checkout .checkout_coupon button.button {
    position: relative;
    text-indent: -9999px;
    overflow: hidden;
}

button.wc-block-components-button.wp-element-button.wc-block-components-totals-coupon__button.contained::after,
.woocommerce-cart-form .coupon button.button::after,
.woocommerce-checkout .checkout_coupon button.button::after {
    content: "+";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
    font-size: 1.6rem;
    font-weight: 400;
}

/* Style dla pojedynczych pozycji w podsumowaniu */
.wc-block-components-totals-item {
    display: flex;
    justify-content: space-between;
}

/* Style dla wartości w podsumowaniu */
.wc-block-components-totals-item__value {
    width: 50%;
    display: flex;
    justify-content: flex-end;
}

/* Style dla kwoty w podsumowaniu */
span.wc-block-formatted-money-amount.wc-block-components-formatted-money-amount.wc-block-components-totals-item__value {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

/* Style dla etykiety w podsumowaniu */
span.wc-block-components-totals-item__label {
    width: 50%;
}

.wp-block-woocommerce-checkout {
    padding-left: 4%;
    padding-right: 4%;
}

/* ============================================
   MEDIA QUERIES - wszystkie zebrane na końcu
   ============================================ */

/* Tablet - max-width: 1025px */
@media (max-width: 1025px) {
    .woocommerce-checkout #content,
    .woocommerce-page.woocommerce-checkout #content {
        margin-top: 6rem;
    }

    .woocommerce-cart h1.entry-title,
    .woocommerce-page.woocommerce-cart h1.entry-title {
        font-size: 4.2rem;
    }

    .woocommerce #content,
    .woocommerce-page #content {
        margin-top: 6rem;
    }

    .woocommerce #content div.product div.images, .woocommerce div.product div.images, .woocommerce-page #content div.product div.images, .woocommerce-page div.product div.images {
        width: 45%;
    }
    .woocommerce #content div.product div.summary, .woocommerce div.product div.summary, .woocommerce-page #content div.product div.summary, .woocommerce-page div.product div.summary {
        width: 48%;
    }

    .woocommerce div.product {
        column-gap: 5rem;
        justify-content: space-between;
    }

    .product-desc-two-col img.desc-gallery__img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    .product-desc-two-col figure.desc-gallery__item {
        width: 48%;
    }

    .woocommerce-checkout #content, .woocommerce-page.woocommerce-checkout #content {
        padding-right: 0;
    }

    .wp-block-woocommerce-checkout-order-summary-block {
        padding: 3rem;
    }
}

/* Tablet - min-width: 769px and max-width: 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Tytuł kroku checkout - tablet */
    h2.wc-block-components-title.wc-block-components-checkout-step__title {
        font-size: 6rem;
        padding-right: 6rem;
    }
    
    /* Kółko z numerem kroku - tablet */
    h2.wc-block-components-title.wc-block-components-checkout-step__title::after {
        width: 2rem;
        height: 2rem;
        font-size: 1.4rem;
    }
    
    /* Krok ukończony - tablet */
    h2.wc-block-components-title.wc-block-components-checkout-step__title.step-completed::after {
        font-size: 1.4rem;
    }
    
    /* Kontener kroku rozwiniętego - tablet */
    .wc-block-components-checkout-step.step-expanded .wc-block-components-checkout-step__container {
        padding: 3rem;
    }
    
    .wc-block-components-checkout-step:first-of-type.step-expanded .wc-block-components-checkout-step__container {
        padding: 3rem;
    }
    
    /* Sidebar checkout - tablet */
    .wc-block-components-sidebar.wc-block-checkout__sidebar.wp-block-woocommerce-checkout-totals-block {
        width: 50%;
    }
    
    /* Opis pozycji w podsumowaniu - tablet */
    .wc-block-components-order-summary-item__description {
        width: 50%;
    }
}

/* Mobile/Tablet - max-width: 768px */
@media (max-width: 768px) {
    .woocommerce-checkout #content,
    .woocommerce-page.woocommerce-checkout #content {
        margin-top: 5rem;
    }

    /* Responsywność checkout */
    form.checkout.woocommerce-checkout {
        flex-direction: column;
        gap: 2rem;
    }

    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .woocommerce #content,
    .woocommerce-page #content {
        margin-top: 5rem;
    }
    
    /* Layout checkout - mobile */
    .wc-block-components-sidebar-layout.wc-block-checkout {
        display: flex;
        width: 100%;
        justify-content: space-between;
        flex-direction: column;
    }
    
    .wc-block-components-main.wc-block-checkout__main.wp-block-woocommerce-checkout-fields-block {
        width: 100%;
    }
    
    /* Tytuł kroku checkout - mobile */
    h2.wc-block-components-title.wc-block-components-checkout-step__title {
        font-size: 5.2rem;
        padding-right: 4%;
    }
    
    /* Kółko z numerem kroku - mobile */
    h2.wc-block-components-title.wc-block-components-checkout-step__title::after {
        width: 2rem;
        height: 2rem;
        font-size: 1.4rem;
    }
    
    /* Krok ukończony - mobile */
    h2.wc-block-components-title.wc-block-components-checkout-step__title.step-completed::after {
        font-size: 1.2rem;
    }
    
    /* Kontener kroku rozwiniętego - mobile */
    .wc-block-components-checkout-step.step-expanded .wc-block-components-checkout-step__container {
        padding: 4%;
    }
    
    .wc-block-components-checkout-step:first-of-type.step-expanded .wc-block-components-checkout-step__container {
        padding: 4%;
    }
    
    /* Blok podsumowania zamówienia - mobile */
    .wp-block-woocommerce-checkout-order-summary-block {
        padding: 0;
        font-size: 1.4rem;
    }
    
    /* Bloki w podsumowaniu zamówienia - mobile */
    .wp-block-woocommerce-checkout-order-summary-cart-items-block.wc-block-components-totals-wrapper {
        padding: 4%;
    }
    
    .wp-block-woocommerce-checkout-order-summary-coupon-form-block.wc-block-components-totals-wrapper {
        font-size: 1.2rem;
        margin-top: 3rem;
        margin-bottom: 3rem;
        padding: 0;
    }
    
    .wp-block-woocommerce-checkout-order-summary-totals-block {
        padding: 0;
    }
    
    .wc-block-components-totals-item.wc-block-components-totals-footer-item {
        padding: 0;
        padding-bottom: 8%;
    }
    
    /* Pozycje w podsumowaniu zamówienia - mobile */
    .wc-block-components-order-summary-item {
        display: flex;
        gap: 1rem;
        font-size: 1.2rem;
        justify-content: space-between;
    }
    
    .wc-block-components-order-summary-item__description {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 50%;
    }
    
    /* Sidebar checkout - mobile (ukryty) */
    .wc-block-components-sidebar.wc-block-checkout__sidebar.wp-block-woocommerce-checkout-totals-block {
        width: 30%;
        display: none;
    }
    
    /* Akcje checkout - mobile */
    .wc-block-checkout__actions.wp-block-woocommerce-checkout-actions-block {
        margin-top: 5rem;
    }
    
    .wc-block-checkout__actions_row {
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-top: 0rem;
        margin-bottom: 5rem;
        padding-left: 4%;
        align-items: flex-end;
        flex-direction: column-reverse;
        gap: 1rem;
    }
    
    .woocommerce-cart-form {
        width: 100%;
        float: none;
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .cart-collaterals {
        width: 100%;
        float: none;
    }

    .wp-block-woocommerce-cart,
    .wc-block-cart {
        flex-direction: column;
        gap: 0;
    }

    .wc-block-components-sidebar.wc-block-cart__sidebar.wp-block-woocommerce-cart-totals-block {
        margin-top: 10rem;
        margin-bottom: 5rem;
    }

    .wp-block-woocommerce-cart-items-block,
    .wc-block-cart__main {
        flex: 1 1 100%;
    }

    .wp-block-woocommerce-cart-order-summary-block,
    .wc-block-cart__sidebar {
        flex: 1 1 100%;
    }

    tr.wc-block-cart-items__row {
        padding: 0;
        gap: 1rem;
        font-size: 1.4rem;
    }

    td.wc-block-cart-item__image {
        width: 50%;
        max-width: 30%;
    }

    button.wc-block-cart-item__remove-link {
        top: 0;
        right: 0;
    }

    .wp-block-woocommerce-cart-order-summary-block {
        padding: 0;
        padding-bottom: 5rem;
        padding-top: 0;
    }

    .wc-block-components-main.wc-block-cart__main.wp-block-woocommerce-cart-items-block tbody {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    td.wc-block-cart-item__total {
        bottom: 2rem;
        right: 0;
    }
    
    /* Related products h2 - mobile */
    section.related.products h2 {
        text-align: center;
        margin: 0 0 1rem;
        font-family: var(--font-family-gracia);
        font-size: 5.2rem;
        line-height: .6;
    }
    
    /* Related lead - mobile */
    .related .lead {
        width: 80%;
        margin-top: 1rem;
    }
    
    /* Globalne zmniejszenie nagłówków z 7.2rem do 5.2rem na mobile */
    h2.wc-block-components-title.wc-block-components-checkout-step__title,
    section.related.products h2,
    h1.woocommerce-products-header__title.page-title,
    .woocommerce-cart h1.entry-title {
        font-size: 5.2rem;
    }

    /* Galeria produktów - mobile */
    .product-desc-two-col figure.desc-gallery__item {
        width: 100%;
    }
    
    /* Shop header controls - mobile */
    .kontener-sz.shop-header-controls {
        width: 100%;
        display: flex;
        justify-content: space-between;
        font-size: 1.2rem;
        gap: 3rem;
    }

    h2.wc-block-components-title.wc-block-components-checkout-step__title {
        line-height: 0.6;
    }
}

@media (max-width: 678px) {
    /* Padding dla karuzeli produktów na mobile - używamy margin zamiast padding */
    .carousel,
    .related.products .carousel,
    section.related.products .carousel {
        margin-left: 4%;
        margin-right: 4%;
        width: calc(100% - 8%);
        box-sizing: border-box;
    }
    
    .product-desc-two-col {
    flex-direction: column;
}

.product-desc-two-col .col-left, .product-desc-two-col .col-right {
    width: 100%;
}

.product-desc-two-col img.desc-gallery__img {
    height: 250px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    gap: 1rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    flex-direction: column;
    text-align: left;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    padding: 0;
}

    .woocommerce #content div.product div.images, .woocommerce div.product div.images, 
    .woocommerce-page #content div.product div.images, .woocommerce-page div.product div.images, .woocommerce #content div.product div.summary, .woocommerce div.product div.summary, 
    .woocommerce-page #content div.product div.summary, .woocommerce-page div.product div.summary {
        width: 100%;
    }

.related .lead {
    width: 60%;
}

.woocommerce #main ul.products li.product a img {
    height: 120px;
}

td.wc-block-cart-item__product {
    width: 50%;
    margin-bottom: 2rem;
}

tr.wc-block-cart-items__row {
    flex-direction: row;
    align-items: flex-start;
}

tr.wc-block-cart-items__row img {
    height: 150px;
    object-fit: cover;
}

.wc-block-components-totals-item__description {
    margin-top: .4rem;
}

.product-desc-two-col .desc-gallery {
    gap: 0;
}

.products.columns-3 .product-card {
    flex: 0 0 50%; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-footer {
    margin-bottom: 10rem;
}

.offcanvas-header .btn-close {
    padding: calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);
    margin: calc(-0.5 * var(--bs-offcanvas-padding-y)) calc(0.5 * var(--bs-offcanvas-padding-x)) calc(-.5 * var(--bs-offcanvas-padding-y)) auto;
}

ul.woocommerce-mini-cart .content-produkt a {
    width: 75%;
}

}