/* ============================================
   u Henia szyte - WooCommerce Styles
   ============================================
   1. Single Product Page
   2. Cart
   3. Checkout
   4. My Account
   5. Notices / Messages
   6. WC Buttons overrides
   ============================================ */


/* ===========================
   1. SINGLE PRODUCT PAGE
   =========================== */
.single-product .uhs-main {
    padding: var(--uhs-space-12) 0;
}

.single-product div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--uhs-space-16);
    margin-bottom: var(--uhs-space-16);
}

.single-product div.product .woocommerce-product-gallery {
    float: none;
    width: 100% !important;
    max-width: 100%;
}

.single-product div.product .woocommerce-product-gallery__image {
    border-radius: var(--uhs-radius-lg);
    overflow: hidden;
    background: var(--uhs-cream-2);
}

.single-product div.product .flex-control-thumbs {
    display: flex;
    gap: var(--uhs-space-2);
    margin-top: var(--uhs-space-3);
    padding: 0;
    list-style: none;
}

.single-product div.product .flex-control-thumbs li {
    width: 72px;
    height: 72px;
    cursor: pointer;
}

.single-product div.product .flex-control-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--uhs-radius-sm);
    opacity: 0.7;
    transition: opacity var(--uhs-transition);
}

.single-product div.product .flex-control-thumbs img:hover,
.single-product div.product .flex-control-thumbs img.flex-active {
    opacity: 1;
    box-shadow: 0 0 0 3px var(--uhs-coral);
}

/* Summary */
.single-product div.product .summary.entry-summary {
    float: none;
    width: 100%;
    margin: 0;
    padding: var(--uhs-space-4) 0;
}

.single-product .product_title {
    font-size: var(--uhs-text-3xl);
    margin-bottom: var(--uhs-space-3);
}

.single-product .product_meta {
    font-size: var(--uhs-text-xs);
    color: var(--uhs-graphite-soft);
    margin-top: var(--uhs-space-4);
    padding-top: var(--uhs-space-4);
    border-top: 1px solid var(--uhs-border);
}

.single-product .price {
    font-family: var(--uhs-font-display);
    font-size: var(--uhs-text-2xl);
    font-weight: 700;
    color: var(--uhs-graphite);
    margin-bottom: var(--uhs-space-4);
    display: block;
}

.single-product .price del {
    opacity: 0.45;
    font-size: 0.7em;
    margin-right: 0.5rem;
}

.single-product .price ins {
    text-decoration: none;
    color: var(--uhs-coral);
}

.single-product .woocommerce-product-details__short-description {
    font-size: var(--uhs-text-base);
    color: var(--uhs-graphite-soft);
    line-height: 1.65;
    margin-bottom: var(--uhs-space-6);
}

.single-product .stock {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: var(--uhs-radius-full);
    font-size: var(--uhs-text-xs);
    font-family: var(--uhs-font-display);
    font-weight: 600;
}

.single-product .stock.in-stock {
    background: var(--uhs-mint-soft);
    color: #2B5B3A;
}

.single-product .stock.out-of-stock {
    background: var(--uhs-coral-soft);
    color: #8B3A2C;
}

/* Variations table */
.single-product .variations {
    margin: var(--uhs-space-4) 0;
}

.single-product .variations th,
.single-product .variations td {
    padding: var(--uhs-space-2) 0;
}

.single-product .variations label {
    font-weight: 600;
    font-family: var(--uhs-font-display);
}

.single-product .variations select {
    max-width: 280px;
}

.reset_variations {
    display: inline-block;
    margin-left: var(--uhs-space-2);
    font-size: var(--uhs-text-xs);
    color: var(--uhs-coral);
}

/* Cart form */
.single-product form.cart {
    display: flex;
    align-items: stretch;
    gap: var(--uhs-space-3);
    margin: var(--uhs-space-6) 0;
    flex-wrap: wrap;
}

.single-product form.cart .quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 2px solid var(--uhs-border);
    border-radius: var(--uhs-radius-full);
    padding: 0.3rem;
}

.single-product form.cart .quantity input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: none;
    background: transparent;
}

.single-product form.cart .quantity input:focus {
    box-shadow: none;
}

.single-product form.cart .single_add_to_cart_button {
    flex: 1;
    min-width: 200px;
    background: var(--uhs-yellow);
    color: var(--uhs-graphite);
    padding: 0.95rem 2rem;
    border-radius: var(--uhs-radius-full);
    font-family: var(--uhs-font-display);
    font-weight: 600;
    font-size: var(--uhs-text-base);
    border: none;
    cursor: pointer;
    box-shadow: var(--uhs-shadow-yellow);
    transition: all var(--uhs-transition);
}

.single-product form.cart .single_add_to_cart_button:hover {
    background: #F0D577;
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(235, 203, 104, 0.55);
}

/* Product tabs */
.woocommerce-tabs {
    margin-top: var(--uhs-space-16);
    padding-top: var(--uhs-space-12);
    border-top: 2px dashed var(--uhs-border);
}

.woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--uhs-space-8);
    display: flex;
    gap: var(--uhs-space-2);
    flex-wrap: wrap;
    border-bottom: 2px solid var(--uhs-border);
}

.woocommerce-tabs ul.tabs li {
    margin-bottom: -2px;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-family: var(--uhs-font-display);
    font-weight: 500;
    color: var(--uhs-graphite-soft);
    border-bottom: 3px solid transparent;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--uhs-graphite);
    border-bottom-color: var(--uhs-coral);
}

.woocommerce-Tabs-panel h2 {
    font-size: var(--uhs-text-xl);
    margin-bottom: var(--uhs-space-4);
}

/* Related products */
.related.products,
.up-sells {
    margin-top: var(--uhs-space-16);
}

.related.products h2,
.up-sells h2 {
    font-size: var(--uhs-text-2xl);
    margin-bottom: var(--uhs-space-6);
    text-align: center;
}


/* ===========================
   2. CART
   =========================== */

.woocommerce-cart .uhs-main {
    padding: var(--uhs-space-12) 0;
}

.woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--uhs-space-8);
    align-items: start;
}

.woocommerce-cart .woocommerce-cart-form {
    background: white;
    border-radius: var(--uhs-radius-lg);
    padding: var(--uhs-space-6);
    box-shadow: var(--uhs-shadow-sm);
}

.woocommerce-cart table.cart,
.woocommerce-cart .shop_table {
    border: none;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.woocommerce-cart table.cart thead {
    display: none;
}

.woocommerce-cart table.cart tr.cart_item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--uhs-space-4);
    padding: var(--uhs-space-4) 0;
    border-bottom: 1px dashed var(--uhs-border);
    align-items: center;
}

.woocommerce-cart table.cart tr.cart_item:last-child {
    border-bottom: none;
}

.woocommerce-cart table.cart tr.cart_item td {
    padding: 0;
    border: none;
}

.woocommerce-cart table.cart .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--uhs-radius-sm);
}

.woocommerce-cart table.cart .product-name {
    font-family: var(--uhs-font-display);
    font-weight: 600;
    font-size: var(--uhs-text-base);
}

.woocommerce-cart table.cart .product-name a {
    color: var(--uhs-graphite);
}

.woocommerce-cart table.cart .product-name dl.variation {
    margin-top: 0.5rem;
    font-size: var(--uhs-text-xs);
    color: var(--uhs-graphite-soft);
}

.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal {
    font-family: var(--uhs-font-display);
    font-weight: 700;
    color: var(--uhs-graphite);
    text-align: right;
}

.woocommerce-cart table.cart .product-quantity {
    grid-column: 2;
}

.woocommerce-cart table.cart .product-quantity input {
    width: 70px;
    padding: 0.5rem;
    text-align: center;
    border: 2px solid var(--uhs-border);
    border-radius: var(--uhs-radius-sm);
}

.woocommerce-cart table.cart .product-remove a {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--uhs-coral-soft);
    color: var(--uhs-coral);
    align-items: center;
    justify-content: center;
    font-size: 0;
    transition: all var(--uhs-transition);
}

.woocommerce-cart table.cart .product-remove a::before {
    content: '×';
    font-size: 1.2rem;
    line-height: 1;
}

.woocommerce-cart table.cart .product-remove a:hover {
    background: var(--uhs-coral);
    color: white;
}

/* Coupon and update cart actions */
.woocommerce-cart .actions {
    padding-top: var(--uhs-space-4);
    display: flex;
    gap: var(--uhs-space-3);
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px solid var(--uhs-border);
    margin-top: var(--uhs-space-4);
}

.woocommerce-cart .coupon {
    display: flex;
    gap: var(--uhs-space-2);
    align-items: center;
    flex: 1;
    max-width: 420px;
}

.woocommerce-cart .coupon input[type="text"] {
    width: auto;
    flex: 1;
    padding: 0.7rem 1rem;
}

.woocommerce-cart .coupon button,
.woocommerce-cart button[name="update_cart"] {
    padding: 0.7rem 1.2rem;
    background: var(--uhs-graphite);
    color: white;
    border-radius: var(--uhs-radius-full);
    border: none;
    font-family: var(--uhs-font-display);
    font-weight: 600;
    font-size: var(--uhs-text-sm);
    cursor: pointer;
    transition: all var(--uhs-transition);
}

.woocommerce-cart .coupon button:hover,
.woocommerce-cart button[name="update_cart"]:hover {
    background: var(--uhs-coral);
}

/* Cart totals */
.cart-collaterals {
    position: sticky;
    top: 120px;
}

.cart_totals {
    background: white;
    border-radius: var(--uhs-radius-lg);
    padding: var(--uhs-space-6);
    box-shadow: var(--uhs-shadow-md);
}

.cart_totals h2 {
    font-size: var(--uhs-text-xl);
    margin-bottom: var(--uhs-space-4);
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.cart_totals th,
.cart_totals td {
    padding: var(--uhs-space-3) 0;
    border-bottom: 1px dashed var(--uhs-border);
    text-align: left;
}

.cart_totals th {
    font-weight: 600;
    font-family: var(--uhs-font-display);
}

.cart_totals td {
    text-align: right;
    font-family: var(--uhs-font-display);
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: var(--uhs-text-lg);
    border-bottom: none;
    padding-top: var(--uhs-space-4);
}

.cart_totals .order-total .amount {
    color: var(--uhs-coral);
    font-weight: 700;
}

.wc-proceed-to-checkout {
    margin-top: var(--uhs-space-4);
}

.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    background: var(--uhs-yellow);
    color: var(--uhs-graphite);
    font-family: var(--uhs-font-display);
    font-weight: 600;
    border-radius: var(--uhs-radius-full);
    box-shadow: var(--uhs-shadow-yellow);
    transition: all var(--uhs-transition);
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: #F0D577;
    transform: translateY(-2px);
    color: var(--uhs-graphite);
}

/* Empty cart */
.cart-empty {
    text-align: center;
    padding: var(--uhs-space-16);
    background: white;
    border-radius: var(--uhs-radius-lg);
    font-size: var(--uhs-text-lg);
}

.return-to-shop {
    text-align: center;
    margin-top: var(--uhs-space-6);
}

.return-to-shop a {
    display: inline-block;
    padding: 0.95rem 2rem;
    background: var(--uhs-coral);
    color: white !important;
    border-radius: var(--uhs-radius-full);
    font-family: var(--uhs-font-display);
    font-weight: 600;
}


/* ===========================
   3. CHECKOUT
   =========================== */

.woocommerce-checkout .uhs-main {
    padding: var(--uhs-space-12) 0;
}

.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--uhs-space-8);
    align-items: start;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    background: white;
    padding: var(--uhs-space-6);
    border-radius: var(--uhs-radius-lg);
    box-shadow: var(--uhs-shadow-sm);
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    width: 100%;
    float: none;
    padding: 0;
}

.woocommerce-checkout h3 {
    font-size: var(--uhs-text-xl);
    margin-bottom: var(--uhs-space-4);
}

.woocommerce-checkout #order_review_heading {
    margin-top: 0 !important;
    padding-bottom: 0;
}

.woocommerce-checkout #order_review {
    margin-top: 0;
    padding-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.woocommerce-checkout #order_review_heading {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

.woocommerce-checkout .form-row {
    margin-bottom: var(--uhs-space-4);
}

.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: var(--uhs-space-2);
    font-weight: 600;
    font-family: var(--uhs-font-display);
}

.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .select2-selection {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 2px solid var(--uhs-border);
    border-radius: var(--uhs-radius-md);
    background: white;
    font-family: var(--uhs-font-body);
}

.woocommerce-checkout .select2-selection--single {
    height: auto;
}

.woocommerce-checkout .select2-selection__arrow {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.woocommerce-checkout #ship-to-different-address {
    margin-top: var(--uhs-space-6);
    padding-top: var(--uhs-space-4);
    border-top: 1px dashed var(--uhs-border);
}

/* Order review table */
#order_review table.shop_table {
    width: 100%;
    margin-bottom: var(--uhs-space-4);
}

#order_review table.shop_table th,
#order_review table.shop_table td {
    padding: var(--uhs-space-3) 0;
    border-bottom: 1px dashed var(--uhs-border);
    text-align: left;
}

#order_review table.shop_table td {
    text-align: right;
}

#order_review .order-total .amount {
    color: var(--uhs-coral);
    font-weight: 700;
    font-family: var(--uhs-font-display);
    font-size: var(--uhs-text-lg);
}

/* Payment methods */
.woocommerce-checkout-payment {
    margin-top: var(--uhs-space-4);
    padding-top: var(--uhs-space-4);
    border-top: 1px dashed var(--uhs-border);
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc_payment_method {
    padding: var(--uhs-space-3);
    margin-bottom: var(--uhs-space-2);
    background: var(--uhs-cream-2);
    border-radius: var(--uhs-radius-md);
    border: 2px solid transparent;
    transition: all var(--uhs-transition);
}

.wc_payment_method:has(input:checked) {
    border-color: var(--uhs-coral);
    background: var(--uhs-coral-soft);
}

.wc_payment_method label {
    font-family: var(--uhs-font-display);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--uhs-space-2);
    margin-bottom: 0;
}

.wc_payment_method .payment_box {
    margin-top: var(--uhs-space-3);
    padding: var(--uhs-space-3);
    background: white;
    border-radius: var(--uhs-radius-sm);
    font-size: var(--uhs-text-sm);
    color: var(--uhs-graphite-soft);
}

#place_order {
    width: 100%;
    padding: 1.1rem 2rem;
    background: var(--uhs-yellow);
    color: var(--uhs-graphite);
    font-family: var(--uhs-font-display);
    font-weight: 700;
    font-size: var(--uhs-text-lg);
    border: none;
    border-radius: var(--uhs-radius-full);
    cursor: pointer;
    box-shadow: var(--uhs-shadow-yellow);
    transition: all var(--uhs-transition);
    margin-top: var(--uhs-space-4);
}

#place_order:hover {
    background: #F0D577;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(235, 203, 104, 0.55);
}

.woocommerce-terms-and-conditions-wrapper {
    margin: var(--uhs-space-4) 0;
    font-size: var(--uhs-text-sm);
}


/* ===========================
   4. MY ACCOUNT
   =========================== */
.woocommerce-account .uhs-main {
    padding: var(--uhs-space-12) 0;
}

.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--uhs-space-8);
    align-items: start;
}

.woocommerce-MyAccount-navigation {
    background: white;
    padding: var(--uhs-space-4);
    border-radius: var(--uhs-radius-lg);
    box-shadow: var(--uhs-shadow-sm);
    position: sticky;
    top: 120px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 0.3rem;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: var(--uhs-space-3) var(--uhs-space-4);
    font-family: var(--uhs-font-display);
    font-weight: 500;
    border-radius: var(--uhs-radius-md);
    color: var(--uhs-graphite);
    transition: all var(--uhs-transition);
}

.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--uhs-coral-soft);
    color: var(--uhs-graphite);
}

.woocommerce-MyAccount-content {
    background: white;
    padding: var(--uhs-space-6);
    border-radius: var(--uhs-radius-lg);
    box-shadow: var(--uhs-shadow-sm);
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    margin-top: 0;
    margin-bottom: var(--uhs-space-4);
}

.woocommerce-MyAccount-content .woocommerce-Message {
    background: var(--uhs-yellow-soft);
    padding: var(--uhs-space-4);
    border-radius: var(--uhs-radius-md);
    margin-bottom: var(--uhs-space-6);
}

.woocommerce-MyAccount-content table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-MyAccount-content table th {
    padding: var(--uhs-space-3);
    text-align: left;
    font-family: var(--uhs-font-display);
    background: var(--uhs-cream-2);
    border-radius: var(--uhs-radius-sm);
}

.woocommerce-MyAccount-content table td {
    padding: var(--uhs-space-3);
    border-bottom: 1px dashed var(--uhs-border);
}

.woocommerce-MyAccount-content table td .button {
    padding: 0.5rem 1rem;
    background: var(--uhs-coral);
    color: white;
    border-radius: var(--uhs-radius-full);
    font-size: var(--uhs-text-xs);
}

/* Login form */
.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    background: white;
    padding: var(--uhs-space-6);
    border-radius: var(--uhs-radius-lg);
    box-shadow: var(--uhs-shadow-sm);
    margin-bottom: var(--uhs-space-6);
}

.woocommerce-account form.login,
.woocommerce-account form.register {
    border: none;
    padding: 0;
    margin: 0;
    background: none;
}


/* ===========================
   5. NOTICES / MESSAGES
   =========================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notices-wrapper > ul {
    list-style: none;
    padding: var(--uhs-space-4) var(--uhs-space-6);
    margin: 0 0 var(--uhs-space-6);
    border-radius: var(--uhs-radius-md);
    font-size: var(--uhs-text-sm);
    font-family: var(--uhs-font-body);
    display: flex;
    align-items: center;
    gap: var(--uhs-space-4);
    position: relative;
}

.woocommerce-message {
    background: var(--uhs-mint-soft);
    color: #2B5B3A;
    border-left: 4px solid var(--uhs-mint);
}

.woocommerce-info {
    background: var(--uhs-blue-soft);
    color: #2C476B;
    border-left: 4px solid var(--uhs-blue);
}

.woocommerce-error {
    background: var(--uhs-coral-soft);
    color: #8B3A2C;
    border-left: 4px solid var(--uhs-coral);
}

.woocommerce-message::before,
.woocommerce-info::before {
    content: 'ℹ️';
    font-size: 1.3rem;
}

.woocommerce-message::before { content: '✓'; font-weight: 700; font-size: 1.5rem; }

.woocommerce-error::before {
    content: '!';
    font-weight: 700;
    font-size: 1.5rem;
    width: 28px;
    height: 28px;
    background: var(--uhs-coral);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.woocommerce-message .button,
.woocommerce-info .button {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--uhs-graphite);
    border-radius: var(--uhs-radius-full);
    font-family: var(--uhs-font-display);
    font-weight: 600;
    font-size: var(--uhs-text-xs);
    border: none;
    cursor: pointer;
}


/* ===========================
   6. WC BUTTONS OVERRIDES
   =========================== */

/* Base WC button style */
.woocommerce a.button,
.woocommerce button.button:not(.single_add_to_cart_button):not([name="update_cart"]):not(#place_order),
.woocommerce input.button[type="submit"],
.woocommerce #respond input#submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: var(--uhs-graphite);
    color: white;
    border-radius: var(--uhs-radius-full);
    border: none;
    font-family: var(--uhs-font-display);
    font-weight: 600;
    font-size: var(--uhs-text-sm);
    cursor: pointer;
    transition: all var(--uhs-transition);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: var(--uhs-coral);
    color: white;
    transform: translateY(-2px);
}

/* Added to cart button (alt state) */
.woocommerce a.button.added::after {
    content: ' ✓';
    margin-left: 0.3rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .single-product div.product,
    .woocommerce-cart .woocommerce,
    .woocommerce-checkout form.checkout,
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
    }

    .woocommerce-MyAccount-navigation {
        position: static;
    }

    .cart-collaterals {
        position: static;
    }
}

@media (max-width: 768px) {
    .single-product form.cart {
        flex-direction: column;
    }

    .single-product form.cart .quantity,
    .single-product form.cart .single_add_to_cart_button {
        width: 100%;
    }

    .woocommerce-tabs ul.tabs {
        flex-direction: column;
        gap: 0;
    }

    .woocommerce-cart table.cart tr.cart_item {
        grid-template-columns: 60px 1fr;
    }

    .woocommerce-cart table.cart .product-subtotal,
    .woocommerce-cart table.cart .product-price {
        grid-column: 1 / -1;
        text-align: left;
    }

    .woocommerce-cart .actions {
        flex-direction: column;
    }

    .woocommerce-cart .coupon {
        max-width: none;
    }
}


/* ============================================
   CRITICAL FIXES — nadpisania WooCommerce defaults
   Ten blok MUSI być na końcu pliku, bo nadpisuje WC inline styles i floats.
   ============================================ */

/* ===========================
   FIX 1: Shop grid — produkty były ultra-wąskie
   WC domyślnie dodaje inline style="width: 22.05%" na li.product + floaty.
   =========================== */

.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: var(--uhs-space-6) !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    clear: both;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
    /* Zeruj WC inline styles i floaty */
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    min-width: 0;
    /* Nasze style karty */
    background: white;
    border-radius: var(--uhs-radius-lg);
    overflow: hidden;
    transition: all var(--uhs-transition);
    list-style: none;
}

.woocommerce ul.products li.product::before,
.woocommerce ul.products li.product::after {
    content: none !important;
    display: none !important;
}

/* Karta produktu — link wewnątrz li wypełnia całość */
.woocommerce ul.products li.product > a.uhs-product-link,
.woocommerce ul.products li.product > a {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Nazwa produktu - prawidłowa szerokość */
.woocommerce ul.products li.product .uhs-product-name,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: var(--uhs-text-base);
    font-family: var(--uhs-font-display);
    font-weight: 600;
    line-height: 1.3;
    padding: 0;
    margin: 0 0 var(--uhs-space-3);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Responsive columns dla shop */
@media (max-width: 1024px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: var(--uhs-space-4) !important;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products {
        grid-template-columns: 1fr !important;
    }
}


/* ===========================
   FIX 2: My Account layout — grid miał więcej dzieci niż 2 (navigation + content).
   Zmieniam na grid-template-areas z explicit placement.
   =========================== */

.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-areas:
        "nav content"
        "nav content";
    gap: var(--uhs-space-8);
    align-items: start;
}

.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation {
    grid-area: nav;
}

.woocommerce-account .woocommerce > .woocommerce-MyAccount-content {
    grid-area: content;
    min-width: 0; /* fix: zapobiega rozrastaniu grid-item ponad kolumnę */
}

/* Notices i inne elementy WC wyświetlamy nad całością */
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce > .woocommerce-message,
.woocommerce-account .woocommerce > .woocommerce-info,
.woocommerce-account .woocommerce > .woocommerce-error {
    grid-column: 1 / -1;
}


/* ===========================
   FIX 3: Widget lojalnościowy — nakładanie tekstu
   =========================== */

.uhs-loyalty-widget {
    padding: var(--uhs-space-6);
    background: linear-gradient(135deg, var(--uhs-coral-soft), var(--uhs-yellow-soft));
    border-radius: var(--uhs-radius-lg);
    margin-bottom: var(--uhs-space-6);
    min-width: 0; /* krytyczne w grid */
}

.uhs-loyalty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--uhs-space-4);
    flex-wrap: wrap;
    margin-bottom: var(--uhs-space-4);
}

.uhs-loyalty-header h3 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: var(--uhs-text-lg);
    line-height: 1.25;
}

.uhs-loyalty-header .uhs-points-big {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    white-space: nowrap;
}

.uhs-loyalty-header .uhs-points-big small {
    font-size: 0.35em;
    color: var(--uhs-graphite-soft);
    font-weight: 500;
    font-family: var(--uhs-font-body);
}

.uhs-loyalty-next {
    font-size: var(--uhs-text-sm);
    margin: var(--uhs-space-3) 0;
}

.uhs-loyalty-info {
    font-size: var(--uhs-text-xs);
    color: var(--uhs-graphite-soft);
    margin-top: var(--uhs-space-4);
    margin-bottom: 0;
}

/* Tiery — wymuś 4 kolumny na tej szerokości, bo grid w .uhs-loyalty-tiers
   z responsive main.css może być za wąski w panelu klienta */
.uhs-loyalty-widget .uhs-loyalty-tiers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--uhs-space-2);
    margin: var(--uhs-space-4) 0;
}

.uhs-loyalty-widget .uhs-tier {
    padding: var(--uhs-space-2);
    font-size: var(--uhs-text-xs);
    text-align: center;
    min-width: 0;
}

.uhs-loyalty-widget .uhs-tier strong {
    display: block;
    font-size: var(--uhs-text-sm);
    font-family: var(--uhs-font-display);
    margin-bottom: 0.15rem;
}

.uhs-loyalty-widget .uhs-tier small {
    font-size: 0.7rem;
    line-height: 1.25;
    display: block;
}

/* Na bardzo wąskich (dashboard w 1 kolumnie) — 2 kolumny */
@media (max-width: 640px) {
    .uhs-loyalty-widget .uhs-loyalty-tiers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .uhs-loyalty-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .uhs-loyalty-header .uhs-points-big {
        font-size: var(--uhs-text-3xl);
    }
}


/* ===========================
   FIX 4: Dashboard content - poprawia treść wokół widgetu lojalności
   =========================== */

.woocommerce-MyAccount-content {
    min-width: 0;
}

.woocommerce-MyAccount-content > p,
.woocommerce-MyAccount-content > h2,
.woocommerce-MyAccount-content > h3 {
    max-width: 100%;
}

.woocommerce-MyAccount-content .woocommerce-MyAccount-orders,
.woocommerce-MyAccount-content table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

@media (min-width: 769px) {
    .woocommerce-MyAccount-content table {
        display: table;
    }
}


/* ===========================
   FIX 5: Responsive my-account pod 1024px
   =========================== */

@media (max-width: 1024px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
        grid-template-areas:
            "nav"
            "content";
    }

    .woocommerce-MyAccount-navigation {
        position: static !important;
    }
}

/* ============================================================
   v1.0.4 — Dodatkowe poprawki my-account (ostateczne)
   Gwarantują że menu boczne nigdy się nie uetnie
   ============================================================ */

.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-areas: "nav content";
    gap: 32px;
    align-items: start;
    max-width: 1350px;
    margin: 40px auto;
    padding: 0 20px;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    grid-area: nav;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(45, 45, 52, 0.06);
    position: sticky;
    top: 100px;
    max-width: 100%;
    overflow: visible;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
    width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    color: #4A4A55;
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: #FDF8F2;
    color: #2D2D34;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: #2D2D34;
    color: #EBCB68;
}

.woocommerce-account .woocommerce-MyAccount-content {
    grid-area: content;
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(45, 45, 52, 0.06);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 900px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
        grid-template-areas:
            "nav"
            "content";
    }
    .woocommerce-account .woocommerce-MyAccount-navigation {
        position: static;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation li a {
        padding: 8px 12px;
    }
}

/* Breadcrumbs v2 */
.uhs-breadcrumbs-v2 {
    font-size: 13px;
    color: #7A7A85;
    padding: 16px 0;
}
.uhs-breadcrumbs-v2 a {
    color: #4A4A55;
    text-decoration: none;
}
.uhs-breadcrumbs-v2 a:hover {
    color: #2D2D34;
}
.uhs-crumb-sep {
    margin: 0 8px;
    color: #B8B8C0;
}

/* Shop hero v2 - większa strona */
.uhs-shop-hero-v2 {
    padding: 32px 0 16px;
    background: transparent;
}
.uhs-shop-hero-v2 .uhs-page-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 40px;
    margin: 0 0 12px;
}
.uhs-shop-hero-v2 .uhs-lead {
    font-size: 17px;
    color: #4A4A55;
    max-width: 680px;
    margin: 0 0 16px;
}


/* ============================================================
   v1.0.4 — CART + CHECKOUT (poprawione, użytkowane w produkcji)
   Klasy *-v2 nadpisują standardowy WC
   ============================================================ */

/* ===== CART HERO ===== */
.woocommerce-cart .uhs-main > .woocommerce,
.woocommerce-cart #primary > .woocommerce,
.woocommerce-cart .woocommerce {
    /* Reset margin, by móc używać naszych kontenerów */
    position: relative;
}

.uhs-cart-hero {
    background: linear-gradient(135deg, #F5D3CC, #F5E4B5);
    padding: 32px 28px;
    border-radius: 24px;
    margin-bottom: 24px;
}
.uhs-cart-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.uhs-cart-hero-text .uhs-eyebrow {
    color: #E8A598;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 8px;
}
.uhs-cart-hero-text h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    color: #2D2D34;
    margin: 0 0 6px;
    font-weight: 600;
}
.uhs-cart-hero-text p {
    color: #4A4A55;
    margin: 0;
    font-size: 14px;
}
.uhs-cart-hero-henio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(45, 45, 52, 0.12);
}

/* ===== FREE SHIPPING CALC ===== */
.uhs-cart-free-shipping-calc {
    background: white;
    border-radius: 16px;
    padding: 16px 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(45, 45, 52, 0.06);
}
.uhs-cart-free-shipping-calc.is-achieved {
    background: #CCE3D3;
    text-align: center;
}
.uhs-fs-achieved-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Fredoka', sans-serif;
    color: #4A8962;
    font-size: 16px;
}
.uhs-fs-achieved-msg span { font-size: 22px; }
.uhs-fs-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    color: #4A4A55;
}
.uhs-fs-emoji { font-size: 20px; }
.uhs-fs-amount {
    color: #E8A598;
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    font-weight: 700;
}
.uhs-fs-progress {
    height: 10px;
    background: #FDF8F2;
    border-radius: 99px;
    overflow: hidden;
}
.uhs-fs-fill {
    height: 100%;
    background: linear-gradient(90deg, #E8A598, #EBCB68);
    border-radius: 99px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LAYOUT CART V2 ===== */
.uhs-cart-layout-v2 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    align-items: start;
}
.uhs-cart-items-col-v2 {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(45, 45, 52, 0.05);
}

/* Tabela WC w naszym stylu */
.uhs-cart-table-v2 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.uhs-cart-table-v2 thead {
    display: none; /* Chowamy nagłówki - nie są potrzebne w naszym layoucie */
}
.uhs-cart-table-v2 tbody tr.woocommerce-cart-form__cart-item {
    display: grid;
    grid-template-columns: 30px 100px 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(45, 45, 52, 0.1);
}
.uhs-cart-table-v2 tbody tr.woocommerce-cart-form__cart-item:last-of-type {
    border-bottom: none;
}
.uhs-cart-table-v2 tbody tr.woocommerce-cart-form__cart-item td {
    padding: 0;
    border: none;
    background: transparent;
}

.uhs-cart-table-v2 .product-thumbnail img {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
}
.uhs-cart-table-v2 .product-name {
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 15px;
}
.uhs-cart-table-v2 .product-name a {
    color: #2D2D34;
    text-decoration: none;
}
.uhs-cart-table-v2 .product-name a:hover {
    color: #E8A598;
}
.uhs-cart-table-v2 .product-price {
    display: none; /* Cena jednostkowa niepotrzebna - pokazujemy subtotal */
}
.uhs-cart-table-v2 .product-quantity .quantity input {
    width: 60px;
    padding: 8px;
    border: 2px solid #FDF8F2;
    border-radius: 10px;
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 14px;
    font-weight: 600;
}
.uhs-cart-table-v2 .product-subtotal {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #2D2D34;
    white-space: nowrap;
}
.uhs-cart-remove-v2 {
    width: 30px;
    height: 30px;
    background: #FDF8F2;
    color: #7A7A85;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
}
.uhs-cart-remove-v2:hover {
    background: #E8A598;
    color: white;
    transform: rotate(90deg);
}

/* Wiersz actions (coupon + update) */
.uhs-cart-table-v2 tr:has(> td.actions),
.uhs-cart-table-v2 tr td.actions {
    display: block;
    padding: 20px 0 0;
    margin-top: 14px;
    border-top: 1px dashed rgba(45, 45, 52, 0.1);
    background: transparent;
}
.uhs-cart-table-v2 td.actions {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
}
.uhs-cart-coupon-v2 {
    background: #FDF8F2;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.uhs-cart-coupon-label {
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #2D2D34;
}
.uhs-cart-coupon-v2 input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid white;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: white;
}
.uhs-cart-coupon-v2 button[name="apply_coupon"] {
    align-self: flex-start;
    background: #2D2D34;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 99px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.uhs-cart-coupon-v2 button[name="apply_coupon"]:hover {
    background: #E8A598;
    transform: translateY(-2px);
}
.uhs-cart-coupon-hint-v2 {
    font-size: 12px;
    color: #7A7A85;
    line-height: 1.4;
    margin-top: 4px;
}
.uhs-cart-coupon-hint-v2 strong {
    background: #F5E4B5;
    padding: 1px 6px;
    border-radius: 6px;
    color: #2D2D34;
}
.uhs-cart-table-v2 button[name="update_cart"] {
    background: transparent;
    color: #4A4A55;
    border: 2px solid #FDF8F2;
    padding: 10px 20px;
    border-radius: 99px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    align-self: flex-start;
}
.uhs-cart-table-v2 button[name="update_cart"]:hover {
    background: #FDF8F2;
    color: #2D2D34;
}

/* ===== SIDEBAR STICKY ===== */
.uhs-cart-sidebar-col-v2 {
    position: relative;
}
.uhs-cart-sidebar-sticky-v2 {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.uhs-cart-collaterals-v2 {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(45, 45, 52, 0.06);
}
.uhs-cart-collaterals-v2 .cart_totals h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    margin: 0 0 14px;
    color: #2D2D34;
}
.uhs-cart-collaterals-v2 .cart_totals table {
    width: 100%;
    margin: 0 0 16px;
}
.uhs-cart-collaterals-v2 .cart_totals table tr th,
.uhs-cart-collaterals-v2 .cart_totals table tr td {
    padding: 8px 0;
    border: none;
    font-size: 14px;
    background: transparent;
}
.uhs-cart-collaterals-v2 .cart_totals table tr th {
    text-align: left;
    font-weight: 500;
    color: #4A4A55;
    font-family: inherit;
}
.uhs-cart-collaterals-v2 .cart_totals table tr td {
    text-align: right;
}
.uhs-cart-collaterals-v2 .cart_totals table tr.order-total th,
.uhs-cart-collaterals-v2 .cart_totals table tr.order-total td {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding-top: 14px;
    border-top: 2px dashed rgba(45, 45, 52, 0.1);
}
.uhs-cart-collaterals-v2 .cart_totals table tr.order-total td {
    color: #E8A598;
}
.uhs-cart-collaterals-v2 .wc-proceed-to-checkout {
    padding: 0;
    margin: 0;
}
.uhs-cart-collaterals-v2 .wc-proceed-to-checkout .checkout-button,
.uhs-cart-collaterals-v2 a.checkout-button {
    width: 100%;
    display: block;
    text-align: center;
    background: #EBCB68;
    color: #2D2D34 !important;
    padding: 16px 20px;
    border-radius: 99px;
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(235, 203, 104, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.uhs-cart-collaterals-v2 .wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(235, 203, 104, 0.55);
    background: #E8A598;
    color: white !important;
}

/* Cart totals row borders reset */
.uhs-cart-collaterals-v2 .shipping .shipping-calculator-button {
    color: #E8A598;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
}

/* ===== LICZNIK SCHRONISKA (w cart + checkout) ===== */
.uhs-cart-shelter-counter {
    background: linear-gradient(135deg, #F5E4B5, #F5D3CC);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.uhs-cart-shelter-emoji {
    font-size: 30px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(235, 203, 104, 0.5));
    animation: shelterHeart 2.5s ease-in-out infinite;
}
.uhs-cart-shelter-content {
    flex: 1;
}
.uhs-cart-shelter-content strong {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 14px;
    color: #2D2D34;
    margin-bottom: 2px;
}
.uhs-cart-shelter-big-number {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #E8A598;
    line-height: 1;
    margin: 6px 0 4px;
}
.uhs-cart-shelter-content small {
    font-size: 12px;
    color: #4A4A55;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
}
.uhs-cart-shelter-equiv {
    background: white;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #2D2D34;
    display: inline-block;
}

/* ===== TRUST BADGES ===== */
.uhs-cart-trust {
    background: white;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.uhs-cart-trust-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4A4A55;
}
.uhs-cart-trust-row span { font-size: 16px; }

/* ===== EMPTY CART ===== */
.uhs-cart-empty {
    text-align: center;
    padding: 60px 20px;
    max-width: 580px;
    margin: 40px auto;
    background: white;
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(45, 45, 52, 0.06);
}
.uhs-cart-empty-visual {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}
.uhs-cart-empty-visual img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FDF8F2;
    filter: grayscale(0.4);
}
.uhs-cart-empty-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: #E8A598;
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 3px solid white;
}
.uhs-cart-empty h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    margin: 0 0 12px;
    color: #2D2D34;
}
.uhs-cart-empty p {
    color: #4A4A55;
    font-size: 15px;
    margin: 0 0 24px;
}
.uhs-cart-empty-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.uhs-cart-empty-suggestions small {
    display: block;
    color: #7A7A85;
    font-size: 13px;
    margin-bottom: 10px;
}
.uhs-cart-empty-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.uhs-cart-empty-cat {
    background: #FDF8F2;
    color: #2D2D34;
    padding: 8px 16px;
    border-radius: 99px;
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
}
.uhs-cart-empty-cat:hover {
    background: #EBCB68;
    transform: translateY(-2px);
}

/* ===== CHECKOUT V2 ===== */
.uhs-checkout-hero {
    background: linear-gradient(135deg, #C9D9E8, #CCE3D3);
    padding: 36px 28px;
    border-radius: 24px;
    margin-bottom: 24px;
    text-align: center;
}
.uhs-checkout-hero h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    margin: 8px 0 24px;
    color: #2D2D34;
}

.uhs-checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}
.uhs-checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
}
.uhs-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: #7A7A85;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(45, 45, 52, 0.08);
    transition: all 0.3s ease;
}
.uhs-checkout-step.active .uhs-step-num {
    background: #EBCB68;
    color: #2D2D34;
    box-shadow: 0 4px 14px rgba(235, 203, 104, 0.5);
    transform: scale(1.1);
}
.uhs-checkout-step.completed .uhs-step-num {
    background: #99C7A9;
    color: white;
}
.uhs-step-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #2D2D34;
}
.uhs-checkout-step-line {
    flex: 1;
    max-width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 99px;
    margin-bottom: 20px;
}
.uhs-checkout-step-line.completed {
    background: #99C7A9;
}

.uhs-checkout-shelter-banner {
    background: linear-gradient(135deg, #F5E4B5, #F5D3CC);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}
.uhs-checkout-shelter-emoji { font-size: 28px; flex-shrink: 0; }
.uhs-checkout-shelter-banner strong {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 14px;
    color: #2D2D34;
    margin-bottom: 2px;
}
.uhs-checkout-shelter-banner small {
    font-size: 12px;
    color: #4A4A55;
}

/* Checkout layout */
.uhs-checkout-layout-v2 {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
    align-items: start;
}
.uhs-checkout-panel-v2 {
    background: white;
    border-radius: 20px;
    padding: 24px 26px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(45, 45, 52, 0.04);
}
.uhs-checkout-panel-v2 h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    margin: 0 0 16px;
    color: #2D2D34;
}
.uhs-checkout-panel-v2 .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* WC form fields */
.uhs-checkout-form-v2 .form-row {
    margin-bottom: 12px;
}
.uhs-checkout-form-v2 .form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #2D2D34;
    margin-bottom: 4px;
}
.uhs-checkout-form-v2 .form-row label .required {
    color: #E8A598;
    text-decoration: none;
}
.uhs-checkout-form-v2 .form-row .input-text,
.uhs-checkout-form-v2 .form-row select,
.uhs-checkout-form-v2 .form-row textarea,
.uhs-checkout-form-v2 .select2-container--default .select2-selection--single {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #FDF8F2;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
    height: auto;
    min-height: 42px;
}
.uhs-checkout-form-v2 .form-row .input-text:focus,
.uhs-checkout-form-v2 .form-row select:focus,
.uhs-checkout-form-v2 .form-row textarea:focus {
    outline: none;
    border-color: #E8A598;
}
.uhs-checkout-form-v2 h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    margin: 0 0 16px;
    color: #2D2D34;
}

/* Checkout sidebar */
.uhs-checkout-sidebar-v2 {
    position: relative;
}
.uhs-checkout-sidebar-sticky-v2 {
    position: sticky;
    top: 120px;
}
.uhs-checkout-review-panel #order_review .shop_table {
    width: 100%;
    border: none;
    background: transparent;
}
.uhs-checkout-review-panel .shop_table th,
.uhs-checkout-review-panel .shop_table td {
    padding: 8px 0;
    border: none;
    font-size: 14px;
    background: transparent;
}
.uhs-checkout-review-panel .shop_table tr.order-total th,
.uhs-checkout-review-panel .shop_table tr.order-total td {
    padding: 14px 10px;
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    font-weight: 700;
    border-top: 2px dashed rgba(45, 45, 52, 0.1);
}
.uhs-checkout-review-panel .shop_table tr.order-total td {
    color: #E8A598;
    text-align: right;
}
.uhs-checkout-review-panel #place_order {
    width: 100%;
    margin-top: 16px;
    padding: 16px;
    background: #EBCB68;
    color: #2D2D34;
    border: none;
    border-radius: 99px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(235, 203, 104, 0.4);
    transition: all 0.3s ease;
}
.uhs-checkout-review-panel #place_order:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(235, 203, 104, 0.55);
    background: #E8A598;
    color: white;
}

/* Metody płatności w checkoucie */
.uhs-checkout-review-panel ul.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    border-top: 1px dashed rgba(45, 45, 52, 0.1);
    padding-top: 16px;
}
.uhs-checkout-review-panel ul.wc_payment_methods li {
    background: #FDF8F2;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
}
.uhs-checkout-review-panel ul.wc_payment_methods li label {
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    cursor: pointer;
    margin-left: 6px;
}
.uhs-checkout-review-panel .payment_box {
    background: white;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 10px;
    font-size: 13px;
    color: #4A4A55;
}

.uhs-checkout-trust {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-top: 14px;
    box-shadow: 0 4px 16px rgba(45, 45, 52, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.uhs-checkout-trust-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(45, 45, 52, 0.08);
    font-size: 13px;
    color: #4A4A55;
}
.uhs-checkout-trust-row:last-child { border-bottom: none; }
.uhs-checkout-trust-row span { font-size: 18px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .uhs-cart-layout-v2,
    .uhs-checkout-layout-v2 {
        grid-template-columns: 1fr;
    }
    .uhs-cart-sidebar-sticky-v2,
    .uhs-checkout-sidebar-sticky-v2 {
        position: static;
    }
    .uhs-cart-hero-inner { flex-direction: column; text-align: center; }
    .uhs-cart-hero-henio img { width: 70px; height: 70px; }
    .uhs-checkout-panel-v2 .col2-set { grid-template-columns: 1fr; }
    .uhs-checkout-progress { flex-wrap: wrap; gap: 12px; }
    .uhs-checkout-step-line { display: none; }

    .uhs-cart-table-v2 tbody tr.woocommerce-cart-form__cart-item {
        grid-template-columns: 70px 1fr auto;
        grid-template-areas:
            "img name remove"
            "img qty subtotal";
        gap: 10px;
    }
    .uhs-cart-table-v2 .product-remove {
        grid-area: remove;
        align-self: start;
    }
    .uhs-cart-table-v2 .product-thumbnail {
        grid-area: img;
        align-self: center;
    }
    .uhs-cart-table-v2 .product-thumbnail img { width: 70px; height: 70px; }
    .uhs-cart-table-v2 .product-name { grid-area: name; }
    .uhs-cart-table-v2 .product-quantity { grid-area: qty; }
    .uhs-cart-table-v2 .product-subtotal { grid-area: subtotal; text-align: right; }
}


/* ============================================================
   v1.0.4 FIX — OSTATECZNE REGUŁY MOJE-KONTO
   (nadpisują wcześniejsze + WC default)
   Specificity: body.woocommerce-account + element + !important
   ============================================================ */

body.woocommerce-account .woocommerce {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    grid-template-areas: "nav content" !important;
    gap: 32px !important;
    align-items: start !important;
    max-width: 1350px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    float: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
    grid-area: nav !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    background: white !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 0 4px 20px rgba(45, 45, 52, 0.06) !important;
    position: sticky !important;
    top: 100px !important;
    overflow: visible !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    list-style: none !important;
    float: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    color: #4A4A55 !important;
    text-decoration: none !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: initial !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    line-height: 1.4 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #FDF8F2 !important;
    color: #2D2D34 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #2D2D34 !important;
    color: #EBCB68 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content {
    grid-area: content !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    background: white !important;
    border-radius: 20px !important;
    padding: 32px !important;
    box-shadow: 0 4px 20px rgba(45, 45, 52, 0.06) !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
    font-family: 'Fredoka', sans-serif !important;
    margin-top: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content a.button,
body.woocommerce-account .woocommerce-MyAccount-content .button {
    background: #EBCB68 !important;
    color: #2D2D34 !important;
    padding: 10px 20px !important;
    border-radius: 99px !important;
    text-decoration: none !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: inline-block !important;
    border: none !important;
    transition: all 0.25s ease !important;
}

body.woocommerce-account .woocommerce-MyAccount-content a.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .button:hover {
    background: #E8A598 !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* Responsywność pod 900px */
@media (max-width: 900px) {
    body.woocommerce-account .woocommerce {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "nav"
            "content" !important;
        gap: 20px !important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation {
        position: static !important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation ul {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
        width: auto !important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 8px 14px !important;
    }
}

/* Formularze edycji konta - pastelowe inputy */
body.woocommerce-account form .form-row {
    margin-bottom: 14px !important;
}
body.woocommerce-account form .form-row label {
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
}
body.woocommerce-account form .woocommerce-Input,
body.woocommerce-account form input[type="text"],
body.woocommerce-account form input[type="email"],
body.woocommerce-account form input[type="password"],
body.woocommerce-account form input[type="tel"],
body.woocommerce-account form select,
body.woocommerce-account form textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 2px solid #FDF8F2 !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease !important;
    background: white !important;
}
body.woocommerce-account form input:focus,
body.woocommerce-account form select:focus,
body.woocommerce-account form textarea:focus {
    outline: none !important;
    border-color: #E8A598 !important;
}

/* Tabele w my-account (zamówienia, pobrania) */
body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account .shop_table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(45, 45, 52, 0.04) !important;
}
body.woocommerce-account .woocommerce-orders-table th,
body.woocommerce-account .shop_table th {
    background: #FDF8F2 !important;
    padding: 12px 14px !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 500 !important;
    color: #2D2D34 !important;
    text-align: left !important;
    font-size: 13px !important;
    border: none !important;
}
body.woocommerce-account .woocommerce-orders-table td,
body.woocommerce-account .shop_table td {
    padding: 14px !important;
    background: white !important;
    border-top: 1px solid #FDF8F2 !important;
    font-size: 14px !important;
}


/* ============================================================
   v1.0.5 HOTFIX — CART LAYOUT
   Naprawia: zepsuty 3-kolumnowy układ, fioletowe przyciski,
   duplikat "HURRA", niestandardowe WC notices
   ============================================================ */

/* ---- HARD RESET dla strony koszyka ---- */
body.woocommerce-cart .uhs-main,
body.woocommerce-cart .uhs-wc-main,
body.woocommerce-cart #primary {
    display: block !important;
    width: 100% !important;
}

body.woocommerce-cart .uhs-container:not(.uhs-header-inner) {
    max-width: 1350px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: block !important;
    float: none !important;
}

/* Ukryj domyślne WC messages o darmowej wysyłce w koszyku
   (mamy nasz własny kalkulator w cart.php) */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info {
    display: none !important;
}

/* Ale pokazuj notyfikacje akcji (dodano kupon, usunięto produkt) */
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-message:not(:empty),
body.woocommerce-cart .wc-block-components-notice-banner {
    display: block !important;
}

/* Hero full-width */
body.woocommerce-cart .uhs-cart-hero {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 0 24px 0 !important;
    box-sizing: border-box !important;
}

body.woocommerce-cart .uhs-cart-hero-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Free shipping calc full-width */
body.woocommerce-cart .uhs-cart-free-shipping-calc {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 0 24px 0 !important;
    box-sizing: border-box !important;
}

/* Formularz koszyka (z tabelą i sidebarem) full-width */
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .uhs-cart-form-v2 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Główny 2-kolumnowy grid koszyka */
body.woocommerce-cart .uhs-cart-layout-v2 {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr !important;
    gap: 28px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
}

body.woocommerce-cart .uhs-cart-items-col-v2 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

body.woocommerce-cart .uhs-cart-sidebar-col-v2 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* Reset domyślnego .woocommerce wrappera na stronie koszyka */
body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* Sidebar (cart_totals) - reset domyślnych WC floatów */
body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart .cart_totals,
body.woocommerce-cart .cart_totals.calculated_shipping {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* Sticky sidebar */
body.woocommerce-cart .uhs-cart-sidebar-sticky-v2 {
    position: sticky !important;
    top: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ---- FIX FIOLETOWYCH PRZYCISKÓW ---- */
/* WordPress 6+ i WC 10+ używa globalnych ustawień kolorów których nie chcemy */

/* Główny przycisk "Przejdź do płatności" */
body.woocommerce-cart a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-cart .uhs-cart-collaterals-v2 .wc-proceed-to-checkout a {
    background-color: #EBCB68 !important;
    background: #EBCB68 !important;
    color: #2D2D34 !important;
    border: none !important;
    padding: 16px 24px !important;
    border-radius: 99px !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: none !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(235, 203, 104, 0.4) !important;
    transition: all 0.3s ease !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
}

body.woocommerce-cart a.checkout-button:hover,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #E8A598 !important;
    background: #E8A598 !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 14px 30px rgba(235, 203, 104, 0.55) !important;
}

/* Przycisk "Wykorzystaj kupon" */
body.woocommerce-cart button[name="apply_coupon"],
body.woocommerce-cart input[name="apply_coupon"] {
    background-color: #2D2D34 !important;
    background: #2D2D34 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 99px !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: none !important;
    cursor: pointer !important;
}

body.woocommerce-cart button[name="apply_coupon"]:hover,
body.woocommerce-cart input[name="apply_coupon"]:hover {
    background-color: #E8A598 !important;
    background: #E8A598 !important;
    transform: translateY(-2px) !important;
}

/* Przycisk "Aktualizuj koszyk" */
body.woocommerce-cart button[name="update_cart"],
body.woocommerce-cart input[name="update_cart"] {
    background-color: transparent !important;
    background: transparent !important;
    color: #4A4A55 !important;
    border: 2px solid #FDF8F2 !important;
    padding: 10px 20px !important;
    border-radius: 99px !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    text-transform: none !important;
    cursor: pointer !important;
}

body.woocommerce-cart button[name="update_cart"]:hover,
body.woocommerce-cart input[name="update_cart"]:hover {
    background-color: #FDF8F2 !important;
    background: #FDF8F2 !important;
    color: #2D2D34 !important;
}

/* Reset domyślnych styli WC buttons (te fioletowe z WordPress 6+) */
body.woocommerce-cart .woocommerce a.button,
body.woocommerce-cart .woocommerce button.button,
body.woocommerce-cart .woocommerce input.button {
    background-color: #EBCB68 !important;
    background: #EBCB68 !important;
    color: #2D2D34 !important;
    text-shadow: none !important;
    border: none !important;
    box-shadow: none !important;
}

body.woocommerce-cart .woocommerce a.button:hover,
body.woocommerce-cart .woocommerce button.button:hover,
body.woocommerce-cart .woocommerce input.button:hover {
    background-color: #E8A598 !important;
    background: #E8A598 !important;
    color: white !important;
}

/* Reset dla has-background, wp-block-button itp. w kontekście koszyka */
body.woocommerce-cart .has-background,
body.woocommerce-cart .wp-element-button {
    background-color: #EBCB68 !important;
    color: #2D2D34 !important;
}

/* Mobile */
@media (max-width: 900px) {
    body.woocommerce-cart .uhs-cart-layout-v2 {
        grid-template-columns: 1fr !important;
    }
    body.woocommerce-cart .uhs-cart-sidebar-sticky-v2 {
        position: static !important;
    }
    body.woocommerce-cart .uhs-cart-hero-inner {
        flex-direction: column !important;
        text-align: center !important;
    }
}

/* ============================================================
   v1.0.5 HOTFIX — CHECKOUT LAYOUT (podobne poprawki)
   ============================================================ */

body.woocommerce-checkout .uhs-main {
    display: block !important;
    width: 100% !important;
}

body.woocommerce-checkout .uhs-container:not(.uhs-header-inner) {
    max-width: 1350px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: block !important;
}

body.woocommerce-checkout .uhs-checkout-hero,
body.woocommerce-checkout .uhs-checkout-shelter-banner {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
}

body.woocommerce-checkout form.checkout,
body.woocommerce-checkout .uhs-checkout-form-v2 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

body.woocommerce-checkout .uhs-checkout-layout-v2 {
    display: grid !important;
    grid-template-columns: 1.3fr 1fr !important;
    gap: 28px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

body.woocommerce-checkout .uhs-checkout-main-v2,
body.woocommerce-checkout .uhs-checkout-sidebar-v2,
body.woocommerce-checkout #customer_details.col2-set,
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

body.woocommerce-checkout #customer_details {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
}

body.woocommerce-checkout #order_review {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* Fix fioletowego "Zamów i zapłać" */
body.woocommerce-checkout #place_order,
body.woocommerce-checkout button#place_order {
    background-color: #EBCB68 !important;
    background: #EBCB68 !important;
    color: #2D2D34 !important;
    border: none !important;
    padding: 16px 24px !important;
    border-radius: 99px !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    text-shadow: none !important;
    box-shadow: 0 8px 20px rgba(235, 203, 104, 0.4) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    margin-top: 16px !important;
}

body.woocommerce-checkout #place_order:hover {
    background-color: #E8A598 !important;
    background: #E8A598 !important;
    color: white !important;
    transform: translateY(-3px) !important;
}

@media (max-width: 900px) {
    body.woocommerce-checkout .uhs-checkout-layout-v2 {
        grid-template-columns: 1fr !important;
    }
    body.woocommerce-checkout #customer_details {
        grid-template-columns: 1fr !important;
    }
}


/* ============================================================
   v1.0.5 FIX 2 — PAGE.PHP override dla stron WooCommerce
   ============================================================ */

/* Full-width dla stron koszyka/checkout nawet gdy są w uhs-container-narrow */
body.woocommerce-cart .uhs-container.uhs-container-narrow,
body.woocommerce-checkout .uhs-container.uhs-container-narrow,
body.woocommerce-account .uhs-container.uhs-container-narrow {
    max-width: 1350px !important;
    width: 100% !important;
}

body.woocommerce-cart .uhs-rich-text,
body.woocommerce-checkout .uhs-rich-text,
body.woocommerce-account .uhs-rich-text {
    max-width: 100% !important;
    width: 100% !important;
}

body.woocommerce-cart .uhs-main-wc,
body.woocommerce-checkout .uhs-main-wc,
body.woocommerce-account .uhs-main-wc {
    padding-top: 30px;
}

body.woocommerce-cart .uhs-wc-content,
body.woocommerce-checkout .uhs-wc-content,
body.woocommerce-account .uhs-wc-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Usuń restriktywne max-width z artykułu WC */
body.woocommerce-cart article.uhs-page-content,
body.woocommerce-checkout article.uhs-page-content,
body.woocommerce-account article.uhs-page-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* ============================================================
   v1.0.6 FIX 3 — MEGA RESET dla WC layoutu koszyka
   Neutralizuje wszystkie floaty/widths z domyślnego WC CSS
   ============================================================ */

/* KASUJ wszystkie domyślne WC floaty na stronie koszyka */
html body.woocommerce-cart .woocommerce::before,
html body.woocommerce-cart .woocommerce::after {
    display: none !important;
    content: none !important;
}

html body.woocommerce-cart .woocommerce {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

/* Każdy bezpośredni child .woocommerce — zerowanie floatów */
html body.woocommerce-cart .woocommerce > * {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Form.woocommerce-cart-form — musi być pełnej szerokości */
html body.woocommerce-cart form.woocommerce-cart-form,
html body.woocommerce-cart .woocommerce > form {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
}

/* Cart collaterals — nie może mieć float: right 48% z domyślnego WC */
html body.woocommerce-cart .cart-collaterals,
html body.woocommerce-cart div.cart-collaterals,
html body.woocommerce-cart .woocommerce .cart-collaterals {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body.woocommerce-cart .cart_totals,
html body.woocommerce-cart div.cart_totals,
html body.woocommerce-cart .cart_totals.calculated_shipping {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* Hero + free shipping calc — 100% width zawsze */
html body.woocommerce-cart .uhs-cart-hero,
html body.woocommerce-cart .uhs-cart-free-shipping-calc {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
}

/* Main grid layout koszyka */
html body.woocommerce-cart .uhs-cart-layout-v2 {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr !important;
    gap: 28px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
}

html body.woocommerce-cart .uhs-cart-items-col-v2,
html body.woocommerce-cart .uhs-cart-sidebar-col-v2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* Mobile grid */
@media (max-width: 900px) {
    html body.woocommerce-cart .uhs-cart-layout-v2 {
        grid-template-columns: 1fr !important;
    }
}

/* Ukryj domyślny WC scroll hint (strzałka "<->") który czasami się pojawia */
html body.woocommerce-cart .woocommerce::after {
    display: none !important;
}

/* ============================================================
   Ten sam MEGA RESET dla CHECKOUT
   ============================================================ */

html body.woocommerce-checkout .woocommerce {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

html body.woocommerce-checkout .woocommerce > * {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

html body.woocommerce-checkout form.checkout,
html body.woocommerce-checkout form.woocommerce-checkout {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

html body.woocommerce-checkout .uhs-checkout-layout-v2 {
    display: grid !important;
    grid-template-columns: 1.3fr 1fr !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

html body.woocommerce-checkout .uhs-checkout-main-v2,
html body.woocommerce-checkout .uhs-checkout-sidebar-v2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

html body.woocommerce-checkout #customer_details,
html body.woocommerce-checkout .col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

html body.woocommerce-checkout #customer_details .col-1,
html body.woocommerce-checkout #customer_details .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

html body.woocommerce-checkout #order_review,
html body.woocommerce-checkout form.woocommerce-checkout #order_review {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 900px) {
    html body.woocommerce-checkout .uhs-checkout-layout-v2,
    html body.woocommerce-checkout #customer_details,
    html body.woocommerce-checkout .col2-set {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   Ten sam MEGA RESET dla MY-ACCOUNT
   ============================================================ */

html body.woocommerce-account .woocommerce {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    grid-template-areas: "nav content" !important;
    gap: 32px !important;
    align-items: start !important;
    max-width: 1350px !important;
    width: 100% !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    float: none !important;
}

html body.woocommerce-account .woocommerce-MyAccount-navigation {
    grid-area: nav !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

html body.woocommerce-account .woocommerce-MyAccount-content {
    grid-area: content !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

@media (max-width: 900px) {
    html body.woocommerce-account .woocommerce {
        grid-template-columns: 1fr !important;
        grid-template-areas: "nav" "content" !important;
    }
}


/* ============================================================
   v1.0.8 FIX — Wymuszenie gridu na headerze (safety net)
   Chroni przed !important overrides z innych miejsc
   ============================================================ */

html body .uhs-header-inner,
html body.woocommerce-cart .uhs-header-inner,
html body.woocommerce-checkout .uhs-header-inner,
html body.woocommerce-account .uhs-header-inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: var(--uhs-space-8, 32px) !important;
    float: none !important;
}

/* Wymuś że menu zajmuje środek */
html body .uhs-header-inner .uhs-nav {
    justify-self: center;
}

html body .uhs-header-inner .uhs-nav .uhs-menu,
html body .uhs-header-inner .uhs-menu-v2 {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

/* Wymuś że actions (ikony) są po prawej */
html body .uhs-header-inner .uhs-header-actions,
html body .uhs-header-inner .uhs-header-actions-v2 {
    justify-self: end;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

@media (max-width: 900px) {
    html body .uhs-header-inner {
        gap: 12px !important;
    }
}


/* ============================================================
   v1.0.8 — PASTELOWY PIESKOWY CHECKOUT FLOW
   Kompletny makeover formularza: ikony, pastele, piesio
   ============================================================ */

/* Ukryj natywny formularz kuponu (na wypadek gdyby PHP nie zadziałał) */
html body.woocommerce-checkout .woocommerce-form-coupon-toggle,
html body.woocommerce-checkout .woocommerce-form-coupon,
html body.woocommerce-checkout form.checkout_coupon,
html body.woocommerce-checkout .checkout_coupon {
    display: none !important;
}

/* Ukryj natywne WC info-bary (my mamy własne) */
html body.woocommerce-checkout .woocommerce-info:not(.payment_methods),
html body.woocommerce-checkout .uhs-free-shipping-bar {
    display: none !important;
}

/* Zachowaj jednak informacje o metodach płatności */
html body.woocommerce-checkout ul.wc_payment_methods .woocommerce-info {
    display: block !important;
}

/* === SEKCJE FORMULARZA === */

/* Dane rozliczeniowe i dostawa - sekcja cards */
html body.woocommerce-checkout .woocommerce-billing-fields,
html body.woocommerce-checkout .woocommerce-shipping-fields,
html body.woocommerce-checkout .woocommerce-additional-fields {
    background: #FDF8F2;
    border-radius: 18px;
    padding: 24px 26px;
    margin-bottom: 20px;
    border: 2px dashed rgba(232, 165, 152, 0.2);
    position: relative;
}

/* Nagłówki sekcji z pieskowymi ikonkami */
html body.woocommerce-checkout .woocommerce-billing-fields > h3,
html body.woocommerce-checkout .woocommerce-shipping-fields > h3,
html body.woocommerce-checkout .woocommerce-additional-fields > h3 {
    font-family: 'Fredoka', sans-serif !important;
    font-size: 20px !important;
    color: #2D2D34 !important;
    margin: 0 0 18px !important;
    padding-bottom: 12px;
    border-bottom: 2px dashed rgba(45, 45, 52, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dodaj ikonki do nagłówków przez ::before */
html body.woocommerce-checkout .woocommerce-billing-fields > h3::before {
    content: "📬";
    font-size: 24px;
}
html body.woocommerce-checkout .woocommerce-shipping-fields > h3::before {
    content: "🚚";
    font-size: 24px;
}
html body.woocommerce-checkout .woocommerce-additional-fields > h3::before {
    content: "💬";
    font-size: 24px;
}

/* === POLA FORMULARZA === */

html body.woocommerce-checkout .form-row {
    margin-bottom: 14px !important;
    padding: 0 !important;
}

html body.woocommerce-checkout .form-row label {
    font-family: 'Fredoka', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #2D2D34 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

html body.woocommerce-checkout .form-row label .required,
html body.woocommerce-checkout .form-row label abbr.required {
    color: #E8A598 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    border: none !important;
}

/* Inputy i selecty */
html body.woocommerce-checkout .form-row input.input-text,
html body.woocommerce-checkout .form-row input[type="text"],
html body.woocommerce-checkout .form-row input[type="email"],
html body.woocommerce-checkout .form-row input[type="tel"],
html body.woocommerce-checkout .form-row input[type="password"],
html body.woocommerce-checkout .form-row textarea,
html body.woocommerce-checkout select,
html body.woocommerce-checkout .select2-container--default .select2-selection--single {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid white !important;
    border-radius: 12px !important;
    font-family: 'Quicksand', sans-serif !important;
    font-size: 14px !important;
    color: #2D2D34 !important;
    background: white !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(45, 45, 52, 0.04) !important;
    min-height: 44px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

html body.woocommerce-checkout .form-row input.input-text:focus,
html body.woocommerce-checkout .form-row textarea:focus,
html body.woocommerce-checkout select:focus {
    outline: none !important;
    border-color: #E8A598 !important;
    box-shadow: 0 4px 14px rgba(232, 165, 152, 0.2) !important;
    transform: translateY(-1px) !important;
}

html body.woocommerce-checkout .form-row textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

/* Select2 - styling dla dropdownów WC (kraj, województwo) */
html body.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: 44px !important;
    padding-top: 4px !important;
}
html body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    padding-left: 0 !important;
    color: #2D2D34 !important;
}
html body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    right: 10px !important;
}

/* Dwuelementowe wiersze (imię + nazwisko) */
html body.woocommerce-checkout .form-row-first,
html body.woocommerce-checkout .form-row-last {
    width: calc(50% - 8px) !important;
    display: inline-block !important;
    vertical-align: top !important;
}
html body.woocommerce-checkout .form-row-first {
    margin-right: 16px !important;
}
html body.woocommerce-checkout .form-row-wide,
html body.woocommerce-checkout #billing_email_field,
html body.woocommerce-checkout #billing_phone_field {
    width: 100% !important;
}

/* Checkbox "Dostawa na inny adres" */
html body.woocommerce-checkout #ship-to-different-address {
    margin: 20px 0 14px !important;
    padding: 14px 18px !important;
    background: white !important;
    border-radius: 12px !important;
    border: 2px dashed rgba(232, 165, 152, 0.3) !important;
}
html body.woocommerce-checkout #ship-to-different-address label {
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}
html body.woocommerce-checkout #ship-to-different-address label::before {
    content: "📮";
    font-size: 20px;
}
html body.woocommerce-checkout #ship-to-different-address input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    cursor: pointer !important;
    accent-color: #E8A598 !important;
}

/* === PANEL METOD PŁATNOŚCI === */

html body.woocommerce-checkout ul.wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 !important;
    border-top: 2px dashed rgba(45, 45, 52, 0.1) !important;
    padding-top: 20px !important;
}

html body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method {
    background: #FDF8F2 !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    margin-bottom: 10px !important;
    transition: all 0.2s ease !important;
    border: 2px solid transparent !important;
}

html body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method:hover {
    background: #F5E4B5 !important;
}

html body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #E8A598 !important;
    margin-right: 8px !important;
    cursor: pointer !important;
}

html body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method label {
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    color: #2D2D34 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

html body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method .payment_box {
    background: white !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    margin-top: 12px !important;
    font-size: 13px !important;
    color: #4A4A55 !important;
    border: none !important;
}

html body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method .payment_box::before {
    display: none !important;
}

/* Gdy brak metod płatności - info */
html body.woocommerce-checkout ul.wc_payment_methods .woocommerce-info {
    background: #FFF5F1 !important;
    border: 2px dashed #E8A598 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    color: #4A4A55 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* === TERMS & CONDITIONS === */

html body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    background: #FDF8F2 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    margin: 16px 0 !important;
}
html body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row {
    margin: 0 !important;
}

/* === RECENSE ORDER TABLE (podsumowanie) === */

html body.woocommerce-checkout .woocommerce-checkout-review-order-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-bottom: 0 !important;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table thead {
    display: none !important;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr {
    border-bottom: 1px dashed rgba(45, 45, 52, 0.1);
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr td {
    padding: 12px 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: 14px !important;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody .product-name {
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 500 !important;
    color: #2D2D34 !important;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody .product-total {
    text-align: right !important;
    font-weight: 700 !important;
    color: #2D2D34 !important;
    white-space: nowrap !important;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
    padding: 10px 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: 14px !important;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total th,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total td {
    font-family: 'Fredoka', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding-top: 14px !important;
    border-top: 2px dashed rgba(45, 45, 52, 0.1) !important;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total td {
    color: #E8A598 !important;
    text-align: right !important;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .variation {
    font-size: 12px !important;
    color: #7A7A85 !important;
    margin-top: 4px !important;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .variation dt,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table .variation dd {
    display: inline !important;
    margin: 0 !important;
}

/* === PIESKOWE DEKORACJE === */

/* Mały piesek w rogu formularza (absolute positioned) */
html body.woocommerce-checkout .woocommerce-billing-fields::after {
    content: "🐾";
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 24px;
    opacity: 0.4;
}

html body.woocommerce-checkout .woocommerce-additional-fields::after {
    content: "🐶";
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 24px;
    opacity: 0.4;
}

/* Motyw "Uwagi" placeholder */
html body.woocommerce-checkout #order_comments {
    font-style: italic;
}
html body.woocommerce-checkout #order_comments::placeholder {
    color: #A0A0A0;
    font-style: italic;
}

/* Polskie tłumaczenie "Uwagi" - hint dla klienta */
html body.woocommerce-checkout .woocommerce-additional-fields > h3::after {
    content: "";
    display: block;
}

/* Info pod Uwagami - nutka o personalizacji */
html body.woocommerce-checkout #order_comments_field::after {
    content: "💡 Wpisz tu np. imię psiaka do haftu lub inne uwagi do zamówienia";
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #7A7A85;
    font-style: italic;
}

/* Padding dla całej sekcji formularza */
html body.woocommerce-checkout .uhs-checkout-main-v2 form,
html body.woocommerce-checkout .uhs-checkout-panel-v2 > *:first-child {
    margin-top: 0 !important;
}


/* ============================================================
   v1.0.9 — OSOBNY BANER WYSYŁKI na CHECKOUT
   ============================================================ */

.uhs-checkout-shipping-banner {
    background: linear-gradient(135deg, #FDF8F2, #FFF5F1);
    border-radius: 16px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    border: 2px dashed rgba(149, 178, 209, 0.4);
}

.uhs-checkout-shipping-banner.is-achieved {
    background: linear-gradient(135deg, #CCE3D3, #DCEFE0);
    border: 2px dashed rgba(153, 199, 169, 0.5);
}

.uhs-checkout-shipping-emoji {
    font-size: 28px;
    flex-shrink: 0;
}

.uhs-checkout-shipping-banner strong {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 15px;
    color: #2D2D34;
    margin-bottom: 2px;
}

.uhs-checkout-shipping-banner small {
    font-size: 12px;
    color: #4A4A55;
    display: block;
}

/* Progress bar wewnątrz banera wysyłki */
.uhs-fs-progress-checkout {
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 8px;
}

.uhs-fs-fill-checkout {
    height: 100%;
    background: linear-gradient(90deg, #E8A598, #EBCB68);
    border-radius: 99px;
    transition: width 0.6s ease;
}

/* Odstęp pomiędzy dwoma banerami */
.uhs-checkout-shipping-banner + .uhs-checkout-shelter-banner {
    margin-top: 0;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .uhs-checkout-shipping-banner,
    .uhs-checkout-shelter-banner {
        flex-direction: row;
        align-items: flex-start;
    }
}


/* ============================================================
   v1.1.0 — NOWY LAYOUT KARTY PRODUKTU (50/30/20)
   Grid z:
   - rząd 1: galeria 50% / opis 30% / buy-box 20% (sticky przez wszystkie rzędy)
   - rząd 2: personalizacja 80% (kolumny 1+2)
   - rząd 3: długi opis 80% (kolumny 1+2)
   ============================================================ */

.uhs-single-product-v3 {
    padding: 20px 0 60px;
}

.uhs-single-product-v3 .uhs-breadcrumbs-v2 {
    padding: 0 0 20px;
    font-size: 13px;
    color: #7A7A85;
}
.uhs-single-product-v3 .uhs-crumb-sep {
    margin: 0 8px;
    color: #CCCCD0;
}
.uhs-single-product-v3 .uhs-breadcrumbs-v2 a {
    color: #4A4A55;
    text-decoration: none;
}
.uhs-single-product-v3 .uhs-breadcrumbs-v2 a:hover {
    color: #E8A598;
}

/* GŁÓWNY GRID */
.uhs-product-layout-v3 {
    display: grid;
    grid-template-columns: 5fr 3fr 2fr;  /* 50% / 30% / 20% */
    grid-template-rows: auto auto auto;
    gap: 28px;
    align-items: start;
    margin-top: 16px;
}

/* Kolumna 1: Galeria */
.uhs-product-gallery-col-v3 {
    grid-column: 1;
    grid-row: 1;
    position: relative;
}

/* Kolumna 2: Info */
.uhs-product-info-col-v3 {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

/* Kolumna 3: Buy-box (STICKY, zajmuje wszystkie 3 rzędy) */
.uhs-product-buy-col-v3 {
    grid-column: 3;
    grid-row: 1 / span 3;  /* Rozciąga się przez wszystkie 3 rzędy */
    min-width: 0;
    position: relative;
    align-self: stretch;  /* Wypełnia całą wysokość rzędów */
}

/* Rząd 2: Personalizacja — kolumny 1+2 = 80% */
.uhs-product-personalization-row {
    grid-column: 1 / span 2;
    grid-row: 2;
    margin-top: 8px;
}

/* Rząd 3: Długi opis — kolumny 1+2 = 80% */
.uhs-product-full-desc-row {
    grid-column: 1 / span 2;
    grid-row: 3;
    margin-top: 24px;
}

/* === STICKY BUY-BOX (kompaktowy, bez scrolla wewnętrznego) v1.1.1 === */

.uhs-product-buy-sticky-v3 {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 18px;
    padding: 16px 16px 18px;
    box-shadow: 0 12px 40px rgba(45, 45, 52, 0.10);
    border: 2px solid rgba(235, 203, 104, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
    /* Usunięte: max-height i overflow - buy-box ma być sticky bez scrolla */
}

/* Cena - kompaktowa */
.uhs-product-buy-sticky-v3 .uhs-product-buy-price {
    font-family: 'Fredoka', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #2D2D34;
    line-height: 1;
    margin-bottom: 0;
    padding-bottom: 10px;
    border-bottom: 2px dashed rgba(45, 45, 52, 0.08);
}
.uhs-product-buy-sticky-v3 .uhs-product-buy-price .price {
    margin: 0;
}
.uhs-product-buy-sticky-v3 .uhs-product-buy-price del {
    display: block;
    font-size: 13px;
    color: #A0A0A0;
    font-weight: 500;
    margin-bottom: 2px;
}
.uhs-product-buy-sticky-v3 .uhs-product-buy-save {
    display: block;
    background: #E8A598;
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    margin-top: 6px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Stock */
.uhs-product-buy-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fredoka', sans-serif;
    font-size: 12px;
    font-weight: 500;
}
.uhs-product-buy-stock.in-stock { color: #4A8962; }
.uhs-product-buy-stock.out-of-stock { color: #C25450; }
.uhs-product-buy-stock .uhs-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #99C7A9;
    flex-shrink: 0;
    animation: stockPulse 2s ease-in-out infinite;
}
.uhs-product-buy-stock.out-of-stock .uhs-stock-dot {
    background: #E8A598;
    animation: none;
}
@keyframes stockPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(153, 199, 169, 0.8); }
    50% { box-shadow: 0 0 0 5px rgba(153, 199, 169, 0); }
}

/* Formularz: quantity + add to cart */
.uhs-product-buy-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}
.uhs-product-buy-form .quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.uhs-product-buy-form .quantity input {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 2px solid #FDF8F2 !important;
    border-radius: 10px !important;
    text-align: center !important;
    font-family: 'Fredoka', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: #FDF8F2 !important;
    transition: all 0.2s ease !important;
}
.uhs-product-buy-form .quantity input:focus {
    background: white !important;
    border-color: #E8A598 !important;
    outline: none !important;
}

/* Główny przycisk */
.uhs-buy-button {
    width: 100%;
    background: #EBCB68 !important;
    color: #2D2D34 !important;
    border: none !important;
    padding: 14px 16px !important;
    border-radius: 99px !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 18px rgba(235, 203, 104, 0.4) !important;
    transition: all 0.25s ease !important;
    text-transform: none !important;
    display: block;
    text-align: center;
    line-height: 1.2;
}
.uhs-buy-button:hover {
    background: #E8A598 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(235, 203, 104, 0.55) !important;
}

/* Mini przycisk "Zadzwoń aby zamówić" */
.uhs-buy-phone-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    color: #4A4A55;
    border: 1.5px dashed rgba(45, 45, 52, 0.15);
    border-radius: 99px;
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.2s ease;
}
.uhs-buy-phone-mini:hover {
    background: #FDF8F2;
    border-color: #E8A598;
    border-style: solid;
    color: #E8A598;
}
.uhs-buy-phone-mini > span:first-child {
    font-size: 14px;
}

/* Countdown - subtelny */
.uhs-buy-countdown {
    padding: 8px 10px;
    background: #FDF8F2;
    border-radius: 8px;
    text-align: center;
}
.uhs-buy-countdown small {
    font-size: 11px;
    color: #4A4A55;
    line-height: 1.3;
    display: block;
}
.uhs-buy-countdown small strong {
    color: #4A8962;
    font-weight: 600;
}

/* === INFO COLUMN (30%) === */

.uhs-product-info-col-v3 .uhs-product-cat-badge {
    display: inline-block;
    background: #FDF8F2;
    color: #E8A598;
    padding: 4px 12px;
    border-radius: 99px;
    font-family: 'Fredoka', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.uhs-product-info-col-v3 .uhs-product-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #2D2D34;
    line-height: 1.1;
    margin: 0 0 14px;
}

.uhs-product-info-col-v3 .uhs-product-short-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #4A4A55;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 2px dashed rgba(45, 45, 52, 0.08);
}
.uhs-product-info-col-v3 .uhs-product-short-desc p:last-child {
    margin-bottom: 0;
}

.uhs-product-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.uhs-product-highlight {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    background: #FDF8F2;
    border-radius: 12px;
}
.uhs-highlight-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}
.uhs-product-highlight strong {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
    color: #2D2D34;
    font-weight: 600;
    line-height: 1.2;
}
.uhs-product-highlight small {
    font-size: 11px;
    color: #7A7A85;
    display: block;
    margin-top: 2px;
    line-height: 1.3;
}

/* Accordions */
.uhs-product-accordions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.uhs-product-accordion {
    background: white;
    border: 2px solid #FDF8F2;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.uhs-product-accordion[open] {
    border-color: rgba(232, 165, 152, 0.3);
}
.uhs-product-accordion summary {
    padding: 12px 14px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #2D2D34;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 34px;
    transition: background 0.2s ease;
}
.uhs-product-accordion summary::-webkit-details-marker {
    display: none;
}
.uhs-product-accordion summary::after {
    content: "▼";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #A0A0A0;
    transition: transform 0.2s ease;
}
.uhs-product-accordion[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}
.uhs-product-accordion summary:hover {
    background: #FDF8F2;
}
.uhs-accordion-body {
    padding: 0 14px 14px;
    font-size: 12px;
    color: #4A4A55;
    line-height: 1.5;
}
.uhs-accordion-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.uhs-accordion-body ul li {
    padding: 4px 0;
    border-bottom: 1px dashed rgba(45, 45, 52, 0.06);
}
.uhs-accordion-body ul li:last-child {
    border-bottom: none;
}
.uhs-accordion-body strong {
    color: #2D2D34;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
}

/* === RZĄD PERSONALIZACJI — pełna szerokość kolumn 1+2 (80%) === */
.uhs-product-personalization-row .uhs-personalization {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Formularz personalizacji na szerokiej półce */
.uhs-product-personalization-row .uhs-perso-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 900px) {
    .uhs-product-personalization-row .uhs-perso-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === RZĄD DŁUGIEGO OPISU (80%) === */

.uhs-product-full-desc-row {
    padding-top: 20px;
    border-top: 2px dashed rgba(45, 45, 52, 0.08);
}
.uhs-full-desc-intro {
    margin-bottom: 20px;
}
.uhs-full-desc-intro .uhs-eyebrow {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    display: inline-block;
}
.uhs-full-desc-intro .uhs-eyebrow-mint {
    color: #4A8962;
}
.uhs-full-desc-intro h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #2D2D34;
    margin: 0;
}
.uhs-full-desc-content {
    font-size: 15px;
    line-height: 1.7;
    color: #4A4A55;
}
.uhs-full-desc-content p {
    margin-bottom: 14px;
}
.uhs-full-desc-content h2,
.uhs-full-desc-content h3 {
    font-family: 'Fredoka', sans-serif;
    color: #2D2D34;
    margin-top: 24px;
    margin-bottom: 10px;
}
.uhs-full-desc-content ul,
.uhs-full-desc-content ol {
    margin-left: 20px;
    margin-bottom: 14px;
}
.uhs-full-desc-content ul li,
.uhs-full-desc-content ol li {
    margin-bottom: 4px;
}

/* === RESPONSIVE === */

@media (max-width: 1100px) {
    .uhs-product-layout-v3 {
        grid-template-columns: 1.5fr 1fr;  /* Galeria + info, buy-box pod spodem */
        grid-template-rows: auto auto auto auto;
    }
    .uhs-product-gallery-col-v3 { grid-column: 1; grid-row: 1; }
    .uhs-product-info-col-v3 { grid-column: 2; grid-row: 1; }
    .uhs-product-buy-col-v3 {
        grid-column: 1 / span 2;
        grid-row: 2;
    }
    .uhs-product-buy-sticky-v3 {
        position: relative;  /* Nie sticky na tablecie */
        top: auto;
    }
    .uhs-product-personalization-row {
        grid-column: 1 / span 2;
        grid-row: 3;
    }
    .uhs-product-full-desc-row {
        grid-column: 1 / span 2;
        grid-row: 4;
    }
}

@media (max-width: 700px) {
    .uhs-product-layout-v3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .uhs-product-gallery-col-v3,
    .uhs-product-info-col-v3,
    .uhs-product-buy-col-v3,
    .uhs-product-personalization-row,
    .uhs-product-full-desc-row {
        grid-column: 1;
    }
    .uhs-product-gallery-col-v3 { grid-row: 1; }
    .uhs-product-info-col-v3 { grid-row: 2; }
    .uhs-product-buy-col-v3 { grid-row: 3; }
    .uhs-product-personalization-row { grid-row: 4; }
    .uhs-product-full-desc-row { grid-row: 5; }

    .uhs-product-info-col-v3 .uhs-product-title {
        font-size: 24px;
    }
    .uhs-full-desc-intro h2 {
        font-size: 22px;
    }
}


/* v1.1.1 — Schronisko pod personalizacją (szeroki pasek) */
.uhs-product-shelter-wide {
    margin-top: 16px;
}

.uhs-product-shelter-wide .uhs-shelter-product-widget,
.uhs-product-shelter-wide .uhs-shelter-widget {
    background: linear-gradient(135deg, #F5E4B5, #F5D3CC) !important;
    border-radius: 16px !important;
    padding: 18px 22px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(235, 203, 104, 0.15) !important;
}

.uhs-product-shelter-wide .uhs-shelter-product-widget > *:first-child,
.uhs-product-shelter-wide .uhs-shelter-widget > *:first-child {
    font-size: 32px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .uhs-product-shelter-wide .uhs-shelter-product-widget,
    .uhs-product-shelter-wide .uhs-shelter-widget {
        flex-direction: column !important;
        text-align: center !important;
    }
}



/* ============================================================
   KOSZYK I ZAMOWIENIE - v3 (sierpien 2026)
   Zastepuje wyglad domyslnych tabel WooCommerce.
   Sekcja jest na koncu pliku celowo: nadpisuje wczesniejszy
   "MEGA RESET", ktory wymuszal dwie kolumny w #customer_details.
   ============================================================ */

/* ---- Pasek krokow (wspolny: koszyk / zamowienie) ---- */
.uhs-steps {
    margin: 0 0 22px;
}
.uhs-steps-counter {
    font-family: var(--uhs-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6B6B76;
    margin: 0 0 10px;
}
.uhs-steps-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.uhs-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--uhs-white);
    border: 2px solid var(--uhs-border);
    font-family: var(--uhs-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #6B6B76;
    min-width: 0;
}
.uhs-step-dot {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    background: #EDEDF0;
    color: #6B6B76;
}
.uhs-step-label,
.uhs-step-label-short {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.uhs-step-label-short { display: none; }
.uhs-step.is-active {
    border-color: var(--uhs-coral);
    background: var(--uhs-cream-warm);
    color: var(--uhs-graphite);
}
.uhs-step.is-active .uhs-step-dot {
    background: var(--uhs-coral);
    color: #fff;
}
.uhs-step.is-done .uhs-step-dot {
    background: var(--uhs-mint);
    color: #fff;
}
.uhs-step.is-done { color: var(--uhs-graphite-soft); }

/* ---- Wspolna szerokosc / wyrownanie kontenerow ---- */
.uhs-cart-v3,
.uhs-checkout-v3 {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

.uhs-cart-head,
.uhs-checkout-head { margin: 0 0 18px; }

.uhs-cart-title,
.uhs-checkout-title {
    font-family: var(--uhs-font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin: 0 0 4px;
    color: var(--uhs-graphite);
}
.uhs-cart-sub,
.uhs-checkout-sub {
    margin: 0;
    color: #6B6B76;
    font-size: 1rem;
}

/* ---- Pasek darmowej wysylki ---- */
.uhs-fsbar {
    background: var(--uhs-cream-warm);
    border: 2px solid var(--uhs-border-warm);
    border-radius: 16px;
    padding: 14px 18px;
    margin: 0 0 22px;
}
.uhs-fsbar.is-achieved {
    background: var(--uhs-mint-soft);
    border-color: var(--uhs-mint);
}
.uhs-fsbar-text {
    margin: 0 0 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--uhs-graphite);
}
.uhs-fsbar.is-achieved .uhs-fsbar-text { margin-bottom: 0; }
.uhs-fsbar.is-achieved .uhs-fsbar-track { display: none; }
.uhs-fsbar-track {
    height: 8px;
    border-radius: 99px;
    background: rgba(45, 45, 52, 0.09);
    overflow: hidden;
}
.uhs-fsbar-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--uhs-coral);
    transition: width 0.4s ease;
}

/* ---- Siatka: pozycje + podsumowanie ---- */
.uhs-cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
    gap: 26px;
    align-items: start;
}
.uhs-cart-items { min-width: 0; }
.uhs-cart-aside { min-width: 0; }
.uhs-cart-aside-inner { position: sticky; top: 90px; }

/* ---- Lista pozycji (zamiast shop_table) ---- */
.uhs-cart-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    background: var(--uhs-white);
    border: 2px solid var(--uhs-border);
    border-radius: 18px;
    overflow: hidden;
}
.uhs-cart-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto auto 32px;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--uhs-border);
}
.uhs-cart-row:last-child { border-bottom: 0; }

.uhs-cart-row-media img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: var(--uhs-cream);
}
.uhs-cart-row-info { min-width: 0; }
.uhs-cart-row-name {
    font-family: var(--uhs-font-display);
    font-size: 1.0625rem;
    line-height: 1.3;
    margin: 0 0 2px;
}
.uhs-cart-row-name a {
    color: var(--uhs-graphite);
    text-decoration: none;
}
.uhs-cart-row-name a:hover { color: #C97B6A; }
.uhs-cart-row-unit {
    font-size: 0.875rem;
    color: #6B6B76;
}
.uhs-cart-row-unit-label { margin-left: 4px; }

.uhs-cart-row-qty .quantity input.qty {
    width: 68px;
    height: 42px;
    text-align: center;
    border: 2px solid var(--uhs-border);
    border-radius: 10px;
    font-family: var(--uhs-font-body);
    font-weight: 600;
    font-size: 1rem;
    background: var(--uhs-white);
    color: var(--uhs-graphite);
}
.uhs-cart-row-qty .quantity input.qty:focus {
    outline: none;
    border-color: var(--uhs-coral);
}
.uhs-cart-row-total {
    font-family: var(--uhs-font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--uhs-graphite);
    white-space: nowrap;
    text-align: right;
}
.uhs-cart-row-remove a.remove {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: transparent;
    color: #8A8A95;
    font-size: 1.375rem;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.uhs-cart-row-remove a.remove:hover {
    background: var(--uhs-coral-soft);
    color: #A6412C;
}

/* ---- Akcje: kupon + przelicz ---- */
.uhs-cart-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    background: var(--uhs-white);
    border: 2px solid var(--uhs-border);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 14px;
}
/* Specyficzność 0,2,0 — musi pobić starsze `.woocommerce-cart .coupon`,
   które narzuca display:flex i max-width:420px i rozpychało pole poza ekran. */
.uhs-cart-actions .uhs-cart-coupon {
    display: block;
    flex: 1 1 320px;
    min-width: 0;
    max-width: none;
    padding: 0;
    background: none;
}
.uhs-cart-coupon-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6B6B76;
    margin-bottom: 6px;
}
/* min-width:0 jest konieczne — bez niego pole flex nie zejdzie poniżej
   szerokości minimalnej <input> i cały blok wystaje poza ekran na telefonie. */
.uhs-cart-actions .uhs-cart-coupon-field {
    display: flex;
    gap: 8px;
    max-width: none;
    min-width: 0;
    width: 100%;
}
.uhs-cart-actions .uhs-cart-coupon-field input.input-text {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 2px solid var(--uhs-border);
    border-radius: 10px;
    font-family: var(--uhs-font-body);
    font-size: 0.9375rem;
    background: var(--uhs-white);
    color: var(--uhs-graphite);
}
/* !important zawężony do tego jednego pola — na szerokościach tabletowych
   starsza reguła `.woocommerce-cart .coupon input[type="text"]` nie pozwalała
   mu wypełnić wiersza i zostawiała ~400px pustki. */
.uhs-cart-actions .uhs-cart-coupon-field input.input-text {
    flex: 1 1 auto !important;
    width: auto !important;
}
.uhs-cart-actions .uhs-cart-coupon-field input.input-text:focus {
    outline: none;
    border-color: var(--uhs-coral);
}
/* Nadpisuje `.woocommerce-cart .coupon button` (grafitowe pigułki) */
.uhs-cart-actions .uhs-btn,
.uhs-cart-actions button[name="update_cart"],
.uhs-cart-actions .uhs-cart-coupon button {
    height: 44px;
    padding: 0 20px;
    white-space: nowrap;
    border-radius: 10px;
    background: var(--uhs-white);
    border: 2px solid var(--uhs-border);
    color: var(--uhs-graphite);
    font-family: var(--uhs-font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
}
.uhs-cart-actions .uhs-btn:hover,
.uhs-cart-actions button[name="update_cart"]:hover,
.uhs-cart-actions .uhs-cart-coupon button:hover {
    background: var(--uhs-cream-warm);
    border-color: var(--uhs-coral);
    color: var(--uhs-graphite);
}
.uhs-cart-continue {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #6B6B76;
    text-decoration: none;
}
.uhs-cart-continue:hover { color: var(--uhs-graphite); }

/* ---- Podsumowanie koszyka (rdzeniowa .cart_totals bez wygladu WP) ---- */
.uhs-cart-aside .cart_totals {
    background: var(--uhs-white);
    border: 2px solid var(--uhs-border);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 14px;
}
.uhs-cart-aside .cart_totals h2 {
    font-family: var(--uhs-font-display);
    font-size: 1.25rem;
    margin: 0 0 14px;
    color: var(--uhs-graphite);
}
.uhs-cart-aside .cart_totals table,
.uhs-cart-aside .cart_totals tbody {
    display: block;
    width: 100%;
    border: 0;
    margin: 0;
}
.uhs-cart-aside .cart_totals tr {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--uhs-border);
    width: 100%;
}
.uhs-cart-aside .cart_totals tr:last-child { border-bottom: 0; }
.uhs-cart-aside .cart_totals th,
.uhs-cart-aside .cart_totals td {
    display: block;
    border: 0;
    padding: 0;
    background: none;
    text-align: right;
    font-size: 0.9375rem;
}
.uhs-cart-aside .cart_totals th {
    text-align: left;
    font-weight: 600;
    color: #6B6B76;
}
.uhs-cart-aside .cart_totals tr.order-total {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 2px solid var(--uhs-border);
    border-bottom: 0;
}
.uhs-cart-aside .cart_totals tr.order-total th,
.uhs-cart-aside .cart_totals tr.order-total td {
    font-family: var(--uhs-font-display);
    font-size: 1.375rem;
    color: var(--uhs-graphite);
}
.uhs-cart-aside .cart_totals ul#shipping_method {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}
.uhs-cart-aside .cart_totals ul#shipping_method li { margin: 0 0 4px; }
.uhs-cart-aside .wc-proceed-to-checkout { padding: 14px 0 0; }
.uhs-cart-aside .wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    border-radius: 14px;
    background: var(--uhs-coral);
    color: #fff;
    font-family: var(--uhs-font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    border: 0;
}
.uhs-cart-aside .wc-proceed-to-checkout a.checkout-button:hover { background: #DE8B7B; }

/* ---- Kafelek schroniska + zaufanie ---- */
.uhs-cart-shelter {
    background: var(--uhs-cream);
    border: 2px solid var(--uhs-border-warm);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 14px;
}
.uhs-cart-shelter-head {
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--uhs-graphite);
}
.uhs-cart-shelter-amount {
    font-family: var(--uhs-font-display);
    font-size: 1.75rem;
    margin: 0 0 4px;
    color: #B5654F;
}
.uhs-cart-shelter-note {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6B6B76;
}
.uhs-cart-trust {
    list-style: none;
    margin: 0;
    padding: 0;
}
.uhs-cart-trust li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 0;
    font-size: 0.875rem;
    color: #6B6B76;
}

/* ============================================================
   ZAMOWIENIE - uklad pol
   ============================================================ */

/* Dane rozliczeniowe na pelna szerokosc.
   Wczesniej #customer_details mialo wymuszone 1fr 1fr, przez co przy ukrytym
   adresie wysylki prawa polowa zostawala pusta. */
html body.woocommerce-checkout #customer_details,
html body.woocommerce-checkout .col2-set {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
}
html body.woocommerce-checkout #customer_details .col-1,
html body.woocommerce-checkout #customer_details .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}
html body.woocommerce-checkout #customer_details .col-2:empty { display: none !important; }

/* Pola w dwoch kolumnach tam, gdzie WC na to pozwala */
html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}
html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row {
    grid-column: 1 / -1;
    width: 100% !important;
    float: none !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
}
html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-first { grid-column: 1 / 2; }
html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last,
html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-last  { grid-column: 2 / 3; }

html body.woocommerce-checkout .form-row .input-text,
html body.woocommerce-checkout .form-row select,
html body.woocommerce-checkout .form-row textarea,
html body.woocommerce-checkout .select2-container {
    width: 100% !important;
    box-sizing: border-box;
}
html body.woocommerce-checkout .form-row .input-text,
html body.woocommerce-checkout .form-row select {
    height: 48px;
    padding: 0 14px;
    border: 2px solid var(--uhs-border);
    border-radius: 12px;
    background: var(--uhs-white);
    font-family: var(--uhs-font-body);
    font-size: 1rem;
    color: var(--uhs-graphite);
}
html body.woocommerce-checkout .form-row textarea {
    padding: 12px 14px;
    min-height: 96px;
    border: 2px solid var(--uhs-border);
    border-radius: 12px;
}
html body.woocommerce-checkout .form-row .input-text:focus,
html body.woocommerce-checkout .form-row select:focus,
html body.woocommerce-checkout .form-row textarea:focus {
    outline: none;
    border-color: var(--uhs-coral);
}
html body.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #55555F;
}

/* ---- Podsumowanie zamowienia z miniaturami ---- */
.uhs-review-table { width: 100%; border-collapse: collapse; }
.uhs-review-table thead { display: none; }
.uhs-review-table tbody,
.uhs-review-table tfoot { display: block; width: 100%; }
.uhs-review-table tbody td,
.uhs-review-table tfoot td,
.uhs-review-table tfoot th {
    display: block;
    border: 0;
    padding: 0;
    background: none;
}
.uhs-review-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--uhs-border);
}
.uhs-review-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.uhs-review-thumb {
    position: relative;
    flex: 0 0 auto;
    display: block;
}
.uhs-review-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    background: var(--uhs-cream);
}
.uhs-review-qty-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 11px;
    background: var(--uhs-graphite);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.uhs-review-text { min-width: 0; }
.uhs-review-name {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: var(--uhs-graphite);
}
.uhs-review-qty { display: none; }
.uhs-review-table tbody td.product-total {
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}
.uhs-review-table tfoot tr {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 9px 0;
    border-bottom: 1px dashed var(--uhs-border);
}
.uhs-review-table tfoot th {
    font-weight: 600;
    color: #6B6B76;
    font-size: 0.9375rem;
    text-align: left;
}
.uhs-review-table tfoot td { text-align: right; font-size: 0.9375rem; }
.uhs-review-table tfoot tr.order-total {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 2px solid var(--uhs-border);
    border-bottom: 0;
}
.uhs-review-table tfoot tr.order-total th,
.uhs-review-table tfoot tr.order-total td {
    font-family: var(--uhs-font-display);
    font-size: 1.375rem;
    color: var(--uhs-graphite);
}
.uhs-review-table ul#shipping_method {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

/* ---- Metody platnosci ---- */
html body.woocommerce-checkout ul.wc_payment_methods {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
html body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method {
    border: 2px solid var(--uhs-border);
    border-radius: 14px;
    margin: 0 0 10px;
    padding: 0;
    background: var(--uhs-white);
    overflow: hidden;
}
html body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--uhs-graphite);
    cursor: pointer;
}
html body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #C97B6A;
    margin: 0;
}
html body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method:has(input:checked) {
    border-color: var(--uhs-coral);
    background: var(--uhs-cream-warm);
}
html body.woocommerce-checkout .payment_box {
    margin: 0;
    padding: 0 16px 14px 46px;
    background: none;
    font-size: 0.875rem;
    color: #55555F;
}
html body.woocommerce-checkout .payment_box::before { display: none; }
html body.woocommerce-checkout #place_order {
    width: 100%;
    padding: 16px 20px;
    border: 0;
    border-radius: 14px;
    background: var(--uhs-coral);
    color: #fff;
    font-family: var(--uhs-font-display);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
}
html body.woocommerce-checkout #place_order:hover { background: #DE8B7B; }

/* ============================================================
   RESPONSYWNOSC v3
   ============================================================ */
@media (max-width: 900px) {
    .uhs-cart-grid { grid-template-columns: 1fr; }
    .uhs-cart-aside-inner { position: static; }
    /* Starsza reguła dla `.actions` przestawia ten pasek w kolumnę poniżej 768px.
       Bez jawnego width:100% kupon nie rozciąga się tak jak przycisk obok. */
    .uhs-cart-actions { flex-wrap: nowrap; }
    .uhs-cart-actions .uhs-cart-coupon { width: 100%; flex: 0 0 auto; }
    html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
    html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
    html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last,
    html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-first,
    html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-last {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .uhs-steps-list { gap: 6px; }
    .uhs-step { padding: 10px; gap: 8px; font-size: 0.8125rem; }
    .uhs-step-label { display: none; }
    .uhs-step-label-short { display: block; }

    .uhs-cart-row {
        grid-template-columns: 64px minmax(0, 1fr) 32px;
        grid-template-areas:
            "media info   remove"
            "media qty    total";
        gap: 10px 12px;
        padding: 14px;
    }
    .uhs-cart-row-media   { grid-area: media; }
    .uhs-cart-row-info    { grid-area: info; }
    .uhs-cart-row-qty     { grid-area: qty; }
    .uhs-cart-row-total   { grid-area: total; text-align: right; }
    .uhs-cart-row-remove  { grid-area: remove; }
    .uhs-cart-row-media img { width: 64px; height: 64px; }
    .uhs-cart-row-qty .quantity input.qty { width: 60px; height: 38px; }

    /* flex-wrap musi zejść do nowrap: w kolumnowym kontenerze flex szerokość linii
       wyznacza najszerszy element, więc przy `wrap` blok kuponu rozpychał się
       do swojej szerokości max-content i wychodził poza ekran. */
    .uhs-cart-actions { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
    /* Tylko przycisk przeliczania na pełną szerokość — "Zastosuj" musi zostawić
       miejsce polu kuponu, które leży z nim w jednym wierszu flex. */
    .uhs-cart-actions .uhs-cart-update { width: 100%; }
    .uhs-cart-coupon-field .uhs-btn { width: auto; flex: 0 0 auto; }
}


/* ============================================================
   KARTA PRODUKTU — teaser personalizacji + mobilny pasek zakupu
   ============================================================ */

/* ---- Teaser personalizacji nad przyciskiem zakupu ---- */
.uhs-buy-perso-teaser {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 0 0 12px;
    border-radius: 14px;
    border: 2px dashed var(--uhs-coral);
    background: var(--uhs-cream-warm);
    text-decoration: none;
    color: var(--uhs-graphite);
    transition: background 0.2s, border-color 0.2s;
}
.uhs-buy-perso-teaser:hover { background: var(--uhs-coral-soft); }
.uhs-buy-perso-teaser.is-selected {
    border-style: solid;
    border-color: var(--uhs-mint);
    background: var(--uhs-mint-soft);
}
.uhs-buy-perso-icon { font-size: 1.25rem; flex: 0 0 auto; }
.uhs-buy-perso-text { display: block; min-width: 0; flex: 1 1 auto; }
.uhs-buy-perso-text strong {
    display: block;
    font-family: var(--uhs-font-display);
    font-size: 0.9375rem;
    line-height: 1.25;
}
.uhs-buy-perso-text small {
    display: block;
    font-size: 0.8125rem;
    color: #55555F;
    margin-top: 1px;
}
.uhs-buy-perso-arrow { font-size: 1.5rem; color: #C97B6A; flex: 0 0 auto; line-height: 1; }

/* Podswietlenie bloku po skoku z paska */
#uhs-personalizacja.is-highlighted .uhs-personalization {
    box-shadow: 0 0 0 4px var(--uhs-coral-soft);
    transition: box-shadow 0.3s;
}

/* ---- Mobilny sticky pasek zakupu ---- */
.uhs-buybar { display: none; }

@media (max-width: 900px) {
    .uhs-buybar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: fixed;
        left: 0;
        right: 0;
        /* nad paskiem aplikacyjnym */
        bottom: calc(58px + env(safe-area-inset-bottom, 0px));
        z-index: 8900;
        padding: 10px 14px;
        background: rgba(255, 255, 255, 0.97);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
        border-top: 1px solid var(--uhs-border);
        box-shadow: 0 -4px 18px rgba(45, 45, 52, 0.08);
        transform: translateY(0);
        transition: transform 0.25s ease, opacity 0.25s ease;
    }
    .uhs-buybar.is-hidden {
        transform: translateY(120%);
        opacity: 0;
        pointer-events: none;
    }

    .uhs-buybar-info {
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
        flex: 1 1 auto;
    }
    .uhs-buybar-price {
        font-family: var(--uhs-font-display);
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--uhs-graphite);
        line-height: 1.1;
        white-space: nowrap;
    }
    .uhs-buybar-price del { font-size: 0.875rem; opacity: 0.6; margin-right: 4px; }
    .uhs-buybar-price ins { text-decoration: none; }

    .uhs-buybar-perso {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        align-self: flex-start;
        max-width: 100%;
        padding: 3px 9px;
        border: 1px solid var(--uhs-coral);
        border-radius: 99px;
        background: var(--uhs-cream-warm);
        color: #A6412C;
        font-family: var(--uhs-font-body);
        font-size: 0.75rem;
        font-weight: 700;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .uhs-buybar-add {
        flex: 0 0 auto;
        padding: 13px 20px;
        border: 0;
        border-radius: 12px;
        background: var(--uhs-coral);
        color: #fff;
        font-family: var(--uhs-font-display);
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
    }
    .uhs-buybar-add:hover { background: #DE8B7B; }

    /* Miejsce na oba paski na karcie produktu */
    body.single-product { padding-bottom: calc(58px + 68px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 380px) {
    .uhs-buybar { gap: 8px; padding: 9px 10px; }
    .uhs-buybar-add { padding: 12px 14px; font-size: 0.9375rem; }
    .uhs-buybar-price { font-size: 1rem; }
}
