/*
Theme Name: Wolf Theme
Text Domain: wolf-theme
Version: 1.0.0
Description: Custom Enterprise WooCommerce theme for Wolf Scalper Pro MAX.
Author: Lead Full-Stack Developer
*/

:root {
    --bg-color: #0a0a0a;
    --bg-secondary: #111111;
    --text-color: #e0e0e0;
    --text-muted: #888888;
    --gold-primary: #ffc107;
    --gold-secondary: #d4af37;
    --gold-hover: #e6a800;
    --border-color: #222222;
    --font-main: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    caret-color: transparent;
}

*:focus {
    outline: none !important;
}

input, textarea, [contenteditable="true"] {
    caret-color: var(--gold-primary) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    color: #e0e0e0;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-gold {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: #000000 !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    color: #000000 !important;
}

.site-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .logo-text {
    font-family: var(--font-main);
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
}

.site-branding .logo-accent {
    color: var(--gold-primary);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: #ffffff;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.main-navigation a:hover {
    color: var(--gold-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-cart-link {
    color: #ffffff;
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle .hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.site-main {
    padding: 60px 0;
    min-height: 60vh;
}

.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.widget-title {
    color: var(--gold-primary);
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widget p {
    color: var(--text-muted);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .main-navigation ul.toggled { display: flex; }
    .header-actions { display: none; }
}

/* ==========================================================================
   WOLF THEME - WOOCOMMERCE EXTREME OVERRIDE (DARK MODE & GOLD)
   ========================================================================== */

/* --- GLOBALNE POLA FORMULARZY --- */
input[type="text"], input[type="password"], input[type="email"], input[type="tel"],
input[type="number"], input[type="url"], input[type="search"], textarea, select,
.woocommerce form input.input-text, .woocommerce form textarea,
.woocommerce-page form input.input-text, .woocommerce-page form textarea {
    background-color: var(--bg-secondary) !important;
    color: #e0e0e0 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    padding: 12px 15px !important;
    font-family: var(--font-secondary) !important;
    font-size: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: none !important;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus,
input[type="tel"]:focus, input[type="number"]:focus, input[type="url"]:focus,
input[type="search"]:focus, textarea:focus, select:focus,
body.woocommerce form .form-row input.input-text:focus, 
body.woocommerce form .form-row textarea:focus {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 0 1px var(--gold-primary) !important;
    outline: none !important;
}

::placeholder { color: var(--text-muted) !important; opacity: 1 !important; }
:-ms-input-placeholder { color: var(--text-muted) !important; }
::-ms-input-placeholder { color: var(--text-muted) !important; }

body.woocommerce form .form-row .required {
    color: var(--gold-primary) !important;
    text-decoration: none !important;
    border: none !important;
}

.woocommerce fieldset, .woocommerce-page fieldset {
    background-color: transparent !important;
    border: 1px solid var(--border-color) !important;
    padding: 20px 25px 25px !important;
    border-radius: 8px !important;
    margin: 40px 0 !important;
}

.woocommerce fieldset legend, .woocommerce-page fieldset legend {
    color: var(--gold-primary) !important;
    font-family: var(--font-main) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    padding: 0 15px !important;
    width: max-content !important;
    border: none !important;
    background: transparent !important;
    display: block !important;
    margin-bottom: 0 !important;
}

.woocommerce form button[name="save_account_details"],
.woocommerce-page form button[name="save_account_details"] {
    margin-top: 20px !important;
    clear: both !important;
    display: inline-block !important;
}

/* --- GLOBALNE PRZYCISKI WOOCOMMERCE --- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, 
.woocommerce button[type="submit"], .woocommerce input[type="submit"],
.woocommerce-page a.button, .woocommerce-page button.button, .woocommerce-page input.button, 
.woocommerce-page button[type="submit"], .woocommerce-page input[type="submit"] {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary)) !important;
    color: #000000 !important;
    font-family: var(--font-main) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    border: none !important;
    padding: 12px 24px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: inline-block !important;
    text-align: center !important;
    cursor: pointer !important;
}

.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, 
.woocommerce button[type="submit"]:hover, .woocommerce input[type="submit"]:hover,
.woocommerce-page a.button:hover, .woocommerce-page button.button:hover, .woocommerce-page input.button:hover, 
.woocommerce-page button[type="submit"]:hover, .woocommerce-page input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
    background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary)) !important;
    color: #000000 !important;
}

/* --- KONTENER SKLEPU I TYTUŁ --- */
body.woocommerce .site-main {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 20px !important;
}

body.woocommerce .woocommerce-products-header__title.page-title {
    color: #ffffff !important;
    font-family: var(--font-main) !important;
    font-size: 42px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 40px !important;
    text-align: left !important;
}

/* --- SIATKA PRODUKTÓW --- */
body.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 40px !important;
    margin-top: 40px !important;
}
body.woocommerce ul.products::before, body.woocommerce ul.products::after { display: none !important; }

body.woocommerce ul.products li.product {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 20px !important;
    text-align: center !important;
    transition: transform 0.3s ease, border-color 0.3s ease !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}
body.woocommerce ul.products li.product:hover {
    transform: translateY(-5px) !important;
    border-color: var(--gold-primary) !important;
}
body.woocommerce ul.products li.product img {
    border-radius: 4px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    height: auto !important;
}
body.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #ffffff !important;
    font-family: var(--font-main) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}
body.woocommerce ul.products li.product .price {
    color: var(--gold-primary) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    flex-grow: 1 !important;
}
body.woocommerce ul.products li.product .price del {
    color: var(--text-muted) !important;
    font-size: 14px !important;
    margin-right: 10px !important;
}
body.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
    background: transparent !important;
    color: var(--gold-primary) !important;
}

/* --- PLAKIETKA WYPRZEDAŻ --- */
body.woocommerce span.onsale {
    background-color: var(--gold-primary) !important;
    color: #000000 !important;
    font-family: var(--font-main) !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    width: auto !important;
    height: auto !important;
    padding: 6px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4) !important;
    position: absolute !important;
    z-index: 99 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* --- STRONA POJEDYNCZEGO PRODUKTU --- */
body.woocommerce div.product {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 50px !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    position: relative !important;
}

body.woocommerce div.product div.images,
body.woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
    max-width: 100% !important;
}

@media (min-width: 768px) {
    body.woocommerce div.product div.images { width: 45% !important; max-width: 45% !important; }
    body.woocommerce div.product div.summary { width: 48% !important; max-width: 48% !important; }
}

/* NAPRAWA GALERII I LUPY */
.woocommerce-product-gallery__trigger { display: none !important; }

body.woocommerce div.product div.images .woocommerce-product-gallery {
    background-color: var(--bg-color) !important;
    position: relative !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    background-color: var(--bg-color) !important;
    margin: 0 !important;
    position: relative !important;
}

body.woocommerce div.product div.images .woocommerce-product-gallery__image {
    background-color: var(--bg-color) !important;
    position: relative !important; 
    overflow: hidden !important;
    display: block !important;
    width: 100% !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    cursor: crosshair !important;
}

body.woocommerce div.product div.images .woocommerce-product-gallery__image a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

body.woocommerce div.product div.images .woocommerce-product-gallery__image img:not(.zoomImg) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

img.zoomImg {
    position: absolute !important;
    z-index: 99 !important;
    background-color: var(--bg-color) !important;
    max-width: none !important; 
    max-height: none !important;
    display: block !important;
    pointer-events: none !important;
}

body.woocommerce div.product div.images .flex-control-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
body.woocommerce div.product div.images .flex-control-nav li {
    width: calc(25% - 11.25px) !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}
body.woocommerce div.product div.images .flex-control-nav li img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    cursor: pointer !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 4px !important;
    opacity: 0.5 !important;
    transition: all 0.3s ease !important;
}
body.woocommerce div.product div.images .flex-control-nav li img.flex-active,
body.woocommerce div.product div.images .flex-control-nav li img:hover {
    border-color: var(--gold-primary) !important;
    opacity: 1 !important;
}

/* Tytuł i cena */
body.woocommerce div.product .product_title {
    color: #ffffff !important;
    font-size: 36px !important;
    margin-bottom: 15px !important;
    clear: none !important;
    line-height: 1.2 !important;
    margin-top: 0 !important;
}

body.woocommerce div.product p.price {
    color: var(--gold-primary) !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
}

body.woocommerce div.product p.price del {
    color: var(--text-muted) !important;
    font-size: 18px !important;
    margin-right: 15px !important;
}

body.woocommerce div.product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
    padding-top: 30px !important;
    border-top: 1px solid var(--border-color) !important;
}

body.woocommerce div.product form.cart div.quantity { margin: 0 !important; }

body.woocommerce .quantity .qty {
    background-color: var(--bg-secondary) !important;
    color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    height: 48px !important;
    width: 70px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-family: var(--font-secondary) !important;
}

body.woocommerce .quantity .qty:focus {
    border-color: var(--gold-primary) !important;
    outline: none !important;
}

/* --- ZAKŁADKI --- */
body.woocommerce div.product .woocommerce-tabs {
    width: 100% !important;
    margin-top: 60px !important;
    clear: both !important;
}

body.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 0 30px !important;
    border-bottom: none !important;
    list-style: none !important;
    align-items: stretch !important;
}

body.woocommerce div.product .woocommerce-tabs ul.tabs::before,
body.woocommerce div.product .woocommerce-tabs ul.tabs::after { display: none !important; content: none !important; border: none !important; }

body.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 !important;
    display: flex !important;
    transition: border-color 0.3s ease, background-color 0.3s ease !important;
}

body.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }

body.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 15px 10px !important;
    color: var(--text-muted) !important;
    font-family: var(--font-main) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

body.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background-color: var(--bg-color) !important;
    border-color: var(--gold-primary) !important;
}

body.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--gold-primary) !important; }

body.woocommerce div.product .woocommerce-tabs .panel {
    color: var(--text-color) !important;
    padding: 20px 0 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

body.woocommerce div.product .woocommerce-tabs .panel h2 {
    color: var(--gold-primary) !important;
    font-size: 24px !important;
    margin-bottom: 25px !important;
}

/* --- POWIADOMIENIA --- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
    background-color: var(--bg-secondary) !important;
    color: #e0e0e0 !important;
    border: 1px solid var(--border-color) !important;
    border-left: 4px solid var(--gold-primary) !important;
    border-radius: 4px !important;
    padding: 20px 25px !important;
    margin-bottom: 30px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    width: 100% !important;
}

.woocommerce-error { border-left-color: #dc3545 !important; }

.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
    color: var(--gold-primary) !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: inline-block !important;
}

.woocommerce-error::before { color: #dc3545 !important; }

.woocommerce-message a:not(.button), .woocommerce-info a:not(.button), .woocommerce-error a:not(.button) {
    color: var(--gold-primary) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

.woocommerce-message .button, .woocommerce-info .button { margin-left: auto !important; }

/* --- SELECT2 DROPDOWNS --- */
.select2-container--default .select2-selection--single {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e0e0e0 !important;
    line-height: 48px !important;
    padding-left: 15px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px !important; right: 10px !important; }

.select2-dropdown {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--gold-primary) !important;
    color: #e0e0e0 !important;
    z-index: 9999 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: var(--bg-color) !important;
    color: #e0e0e0 !important;
    border: 1px solid var(--border-color) !important;
    padding: 10px !important;
    border-radius: 4px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: var(--gold-primary) !important; outline: none !important; }

.select2-container--default .select2-results__option { padding: 10px 15px !important; transition: background-color 0.2s ease !important; }

.select2-container--default .select2-results__option[aria-selected=true] { background-color: var(--bg-color) !important; color: var(--gold-primary) !important; }

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[aria-selected]:hover {
    background-color: var(--gold-primary) !important;
    color: #000000 !important;
}

/* --- ORDER RECEIVED & TABLES MOBILE FIX --- */
@media (max-width: 768px) {
    ul.woocommerce-order-overview, ul.order_details {
        display: flex !important; flex-direction: column !important; gap: 15px !important; padding: 20px !important;
        background-color: var(--bg-secondary) !important; border-radius: 8px !important; border: 1px solid var(--border-color) !important; margin-bottom: 40px !important;
    }
    ul.woocommerce-order-overview li, ul.order_details li {
        width: 100% !important; border-right: none !important; border-bottom: 1px dashed var(--border-color) !important;
        padding: 0 0 15px 0 !important; margin: 0 !important; float: none !important; word-break: break-word !important; font-size: 14px !important;
    }
    ul.woocommerce-order-overview li:last-child, ul.order_details li:last-child { border-bottom: none !important; padding-bottom: 0 !important; }
    ul.woocommerce-order-overview li strong, ul.order_details li strong { display: block !important; color: var(--gold-primary) !important; font-size: 16px !important; margin-top: 5px !important; word-break: break-word !important; }

    .woocommerce table, .woocommerce-page table { display: block !important; width: 100% !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; border-collapse: collapse !important; margin-bottom: 30px !important; }
    
    /* WYMUSZENIE UKŁADU TABELI DLA POPRAWNEGO SCROLLA (NADPISANIE WC RESPONSIVE) */
    .woocommerce table thead, .woocommerce table tbody { display: table-row-group !important; }
    .woocommerce table tr { display: table-row !important; }
    .woocommerce table th, .woocommerce table td { display: table-cell !important; white-space: nowrap !important; padding: 15px !important; vertical-align: middle !important; }
    .woocommerce table td::before { display: none !important; } /* Ukrycie zepsutych etykiet WC */
    
    .woocommerce table td .button, .woocommerce table td a.button { white-space: normal !important; word-break: break-word !important; min-width: 200px !important; display: inline-block !important; text-align: center !important; }

    .woocommerce table::-webkit-scrollbar { height: 6px !important; }
    .woocommerce table::-webkit-scrollbar-track { background: var(--bg-color) !important; border-radius: 4px !important; border: 1px solid var(--border-color) !important; }
    .woocommerce table::-webkit-scrollbar-thumb { background: var(--gold-primary) !important; border-radius: 4px !important; }

    /* --- MY ACCOUNT NAVIGATION MOBILE (KAFELKI DOTYKOWE) --- */
    .woocommerce-MyAccount-navigation { margin-bottom: 30px !important; width: 100% !important; }
    .woocommerce-MyAccount-navigation ul {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 0 !important;
        list-style: none !important;
    }
    .woocommerce-MyAccount-navigation ul li {
        margin: 0 !important;
        padding: 0 !important;
    }
    .woocommerce-MyAccount-navigation ul li a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 6px !important;
        padding: 12px 5px !important;
        color: var(--text-color) !important;
        font-family: var(--font-main) !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        text-align: center !important;
        transition: all 0.3s ease !important;
        height: 100% !important;
        box-sizing: border-box !important;
    }
    .woocommerce-MyAccount-navigation ul li.is-active a {
        border-color: var(--gold-primary) !important;
        color: var(--gold-primary) !important;
        background-color: var(--bg-color) !important;
    }

    body { overflow-x: hidden !important; }
    .site-main, .woocommerce, .woocommerce-order { max-width: 100vw !important; overflow-x: hidden !important; box-sizing: border-box !important; }

    .woocommerce table.woocommerce-table--order-downloads { overflow-x: hidden !important; }
    .woocommerce table.woocommerce-table--order-downloads td { white-space: normal !important; display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: space-between !important; align-items: center !important; }
    .woocommerce table.woocommerce-table--order-downloads td.download-file, .woocommerce table.woocommerce-table--order-downloads td:last-child { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; padding-top: 20px !important; padding-bottom: 20px !important; }
    .woocommerce table.woocommerce-table--order-downloads td.download-file .button, .woocommerce table.woocommerce-table--order-downloads td:last-child .button { width: 100% !important; min-width: 100% !important; font-size: 12px !important; padding: 14px 15px !important; word-break: break-all !important; white-space: normal !important; line-height: 1.5 !important; margin: 0 !important; box-sizing: border-box !important; border-radius: 6px !important; text-align: center !important; }
}

/* ==========================================================================
   GUTENBERG CART BLOCKS (NOWY KOSZYK WOOCOMMERCE) - DARK MODE & GOLD
   ========================================================================== */

/* Główne kontenery i tła paneli */
.wc-block-cart {
    color: var(--text-color) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.wc-block-cart__items-list,
.wc-block-cart__totals {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 30px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

/* Nagłówki w koszyku */
.wc-block-cart__totals-title,
.wc-block-components-title {
    color: var(--gold-primary) !important;
    font-family: var(--font-main) !important;
    font-size: 22px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 15px !important;
}

/* Nazwa produktu */
.wc-block-components-product-name {
    color: #ffffff !important;
    font-family: var(--font-main) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}
.wc-block-components-product-name:hover {
    color: var(--gold-primary) !important;
}

/* Ceny */
.wc-block-components-product-price,
.wc-block-components-totals-item__value {
    color: var(--gold-primary) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

/* Selektor ilości (Quantity) */
.wc-block-components-quantity-selector {
    background-color: var(--bg-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
}
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
    font-family: var(--font-secondary) !important;
}
.wc-block-components-quantity-selector button {
    color: var(--gold-primary) !important;
    background: transparent !important;
    transition: background-color 0.3s ease !important;
}
.wc-block-components-quantity-selector button:hover {
    background-color: var(--border-color) !important;
}

/* Pola tekstowe (np. Kod rabatowy) - Naprawa Floating Label */
.wc-block-components-text-input input {
    background-color: var(--bg-color) !important;
    color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    /* Asymetryczny padding: dużo miejsca u góry na etykietę, tekst wpisywany na dole */
    padding: 24px 15px 8px !important; 
    min-height: 54px !important;
}
.wc-block-components-text-input input:focus {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 0 1px var(--gold-primary) !important;
}
.wc-block-components-text-input label {
    color: var(--text-muted) !important;
}

/* Przycisk usuwania (Krzyżyk) */
.wc-block-cart-item__remove-link {
    color: #dc3545 !important;
    font-size: 14px !important;
    transition: color 0.3s ease !important;
}
.wc-block-cart-item__remove-link:hover {
    color: #ff4d4d !important;
}

/* Separatory na liście produktów */
.wc-block-cart-item {
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 25px !important;
    margin-bottom: 25px !important;
}
.wc-block-cart-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Wiersze podsumowania (Subtotal, Total) */
.wc-block-components-totals-item {
    border-bottom: 1px dashed var(--border-color) !important;
    padding: 15px 0 !important;
    margin: 0 !important;
}
.wc-block-components-totals-item:last-child {
    border-bottom: none !important;
}
.wc-block-components-totals-item__label {
    color: var(--text-muted) !important;
}

/* --- AKTYWNY KUPON RABATOWY (CHIP) --- */
.wc-block-components-chip {
    background-color: var(--bg-color) !important;
    border: 1px solid var(--gold-primary) !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 10px !important;
}

.wc-block-components-chip__text {
    color: var(--gold-primary) !important;
    font-family: var(--font-main) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.wc-block-components-chip__remove {
    background: transparent !important;
    color: var(--text-muted) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: color 0.3s ease, transform 0.3s ease !important;
    min-width: auto !important;
    min-height: auto !important;
}

.wc-block-components-chip__remove svg {
    fill: currentColor !important;
    width: 18px !important;
    height: 18px !important;
}

.wc-block-components-chip__remove:hover {
    color: #dc3545 !important;
    transform: scale(1.15) !important;
    background: transparent !important;
}

/* ==========================================================================
   PRZYCISK PROCEED TO CHECKOUT (KLASYCZNY + BLOKI)
   ========================================================================== */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-button,
.wc-block-cart .wp-block-button__link {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary)) !important;
    color: #000000 !important;
    font-family: var(--font-main) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    padding: 18px 24px !important;
    margin-top: 20px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    text-decoration: none !important;
    border: none !important;
    box-sizing: border-box !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-button:hover,
.wc-block-cart .wp-block-button__link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
    background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary)) !important;
    color: #000000 !important;
}

/* ==========================================================================
   GUTENBERG EMPTY CART & PRODUCT GRID FIXES
   ========================================================================== */

/* --- PUSTY KOSZYK (EMPTY CART) --- */
.wc-block-cart__empty-cart {
    text-align: center !important;
    padding: 60px 20px !important;
    background-color: transparent !important;
    border: none !important;
    margin-top: 40px !important;
}

/* Styl nagłówków (Złoto, uppercase, luksusowy krój) */
.wc-block-cart h2.wp-block-heading {
    color: var(--gold-primary) !important;
    font-family: var(--font-main) !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

/* Styl tekstu */
.wc-block-cart__empty-cart p {
    color: var(--text-muted) !important;
    font-family: var(--font-secondary) !important;
    font-size: 16px !important;
    margin-bottom: 40px !important;
}

/* Ceny: przekreślona cena w kolorze muted, aktywna cena w złocie */
.wc-block-cart .wc-block-components-product-price del {
    color: var(--text-muted) !important;
    font-size: 14px !important;
    margin-right: 10px !important;
}

.wc-block-cart .wc-block-components-product-price ins {
    text-decoration: none !important;
    background: transparent !important;
    color: var(--gold-primary) !important;
}

/* Całkowite ukrycie plakietki wyprzedaży w całym koszyku (Gutenberg) */
.wc-block-cart .wc-block-components-sale-badge,
.wc-block-cart .wc-block-components-product-sale-badge,
.wc-block-cart .wc-block-grid__product-onsale {
    display: none !important;
}

/* --- GUTENBERG PRODUCTS GRID (KARTY, SALE BADGE & BUTTONS) --- */
.wc-block-grid__product {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 20px !important;
    text-align: center !important;
    transition: transform 0.3s ease, border-color 0.3s ease !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.wc-block-grid__product:hover {
    transform: translateY(-5px) !important;
    border-color: var(--gold-primary) !important;
}

.wc-block-grid__product-title {
    color: #ffffff !important;
    font-family: var(--font-main) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

.wc-block-grid__product-price {
    color: var(--gold-primary) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

.wc-block-grid__product-onsale,
.wc-block-components-product-sale-badge,
.wc-block-components-sale-badge {
    background-color: var(--gold-primary) !important;
    color: #000000 !important;
    font-family: var(--font-main) !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    width: auto !important;
    height: auto !important;
    padding: 6px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4) !important;
    line-height: 1 !important;
    z-index: 9 !important;
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary)) !important;
    color: #000000 !important;
    font-family: var(--font-main) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    border: none !important;
    padding: 12px 24px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: inline-block !important;
    text-align: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
    background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary)) !important;
    color: #000000 !important;
}

/* ==========================================================================
   DYNAMIC CART ICON & BADGE
   ========================================================================== */
.header-cart-link {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    color: #ffffff !important;
    transition: color 0.3s ease !important;
    text-decoration: none !important;
}

.header-cart-link:hover {
    color: var(--gold-primary) !important;
}

.header-cart-link svg {
    width: 26px !important;
    height: 26px !important;
    stroke: currentColor !important;
}

.cart-count {
    position: absolute !important;
    top: -8px !important;
    right: -12px !important;
    background-color: var(--gold-primary) !important;
    color: #000000 !important;
    font-family: var(--font-main) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    line-height: 1 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5) !important;
    /* Ukrywamy domyślnie, by zablokować mruganie zbuforowanej wartości z LiteSpeed */
    opacity: 0 !important;
    transform: scale(0) !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease !important;
}

/* Klasa dodawana przez JS po pobraniu właściwej wartości */
.cart-count.is-loaded {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Efekt "podbicia" licznika przy najechaniu na koszyk (tylko gdy jest widoczny) */
.header-cart-link:hover .cart-count.is-loaded {
    transform: scale(1.1) !important;
}