/*
Theme Name: LunArt
Theme URI: https://lunart.pl
Author: LunArt Team
Description: Motyw "Modern Mystic" - Ciemny, elegancki, z miedzianymi akcentami.
Version: 1.4 (FINAL Cleaned & Fixed)
Text Domain: lunart
*/

/* =========================================
   1. ZMIENNE (DESIGN SYSTEM)
   ========================================= */
:root {
    --bg-color: #0e0e0e;       /* Czerń */
    --card-bg: #161616;        /* Ciemny grafit */
    --text-main: #e5e5e5;      /* Biel */
    --text-muted: #999999;     /* Szary */
    --accent: #cd7f32;         /* Miedź */
    --border-color: #333333;
    --input-bg: #1a1a1a;
    
    --font-magic: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
    
    --header-height: 90px;     
    --grid-gap: 20px;
    --container-width: 1600px;
}

/* =========================================
   2. RESET & BAZA
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

a { color: inherit; text-decoration: none; transition: 0.3s ease; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* Noise Overlay */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

main, .container, article, .entry-content, .woocommerce {
    position: relative; z-index: 10;
}

/* =========================================
   3. HEADER & LOGO
   ========================================= */
header {
    position: fixed !important;
    top: 0 !important; left: 0; width: 100%;
    height: var(--header-height);
    background-color: #0e0e0e !important;
    border-bottom: 1px solid #333;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%;
    z-index: 99999 !important;
    transform: translate3d(0,0,0);
}

/* Logo */
.site-logo img, .logo-hybrid img {
    max-height: 70px; width: auto; mix-blend-mode: screen;
}
.logo {
    font-family: var(--font-magic); font-size: 2rem; font-weight: 700;
    color: var(--text-main); letter-spacing: 2px; cursor: pointer;
}
.logo span { color: var(--accent); }

/* Menu Desktop */
.main-navigation ul {
    list-style: none; display: flex; gap: 30px; margin: 0; padding: 0;
}
.main-navigation ul li a {
    text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px;
    color: var(--text-muted); font-weight: 700;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    color: var(--accent);
}

/* Ikony Prawa Strona */
.nav-right { display: flex; align-items: center; gap: 20px; }
.account-link { text-transform: uppercase; font-size: 0.85rem; font-weight: 700; color: var(--text-main); }
.cart-link-btn {
    font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2); padding: 8px 20px;
    border-radius: 50px; display: flex; align-items: center; gap: 5px;
}
.cart-link-btn:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================
   4. HAMBURGER MENU (MOBILE)
   ========================================= */
.menu-toggle { display: none; } 

@media (max-width: 768px) {
    .menu-toggle {
        display: block; background: none; border: none; cursor: pointer;
        width: 30px; height: 25px; position: relative; z-index: 10001; padding: 0;
    }
    .menu-toggle span {
        display: block; width: 100%; height: 2px; background-color: var(--text-main);
        position: absolute; left: 0; transition: 0.3s;
    }
    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 10px; }
    .menu-toggle span:nth-child(3) { top: 20px; }

    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 10px; background: var(--accent); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 10px; background: var(--accent); }

    .main-navigation {
        display: block !important; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background-color: rgba(14, 14, 14, 0.98); backdrop-filter: blur(10px);
        padding-top: 120px; transform: translateX(100%); transition: transform 0.4s ease-in-out;
        z-index: 10000;
    }
    .main-navigation.active { transform: translateX(0); }
    .main-navigation ul { flex-direction: column; align-items: center; gap: 40px; }
    .main-navigation ul li a { font-family: var(--font-magic); font-size: 1.8rem; color: var(--text-main); }
    
    body.menu-open { overflow: hidden; }
    .nav-right .account-link { display: none; } 
    .nav-right .cart-link-btn { border: none; padding: 0; }
    .nav-right .cart-link-btn span { display: none; }
    .site-logo img { max-height: 50px; }
    header { padding: 0 20px; }
}

/* =========================================
   5. LAYOUT & BENTO GRID
   ========================================= */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 5%; margin-top: 40px; }
.hero { margin-top: -40px; padding-top: 60px; }

h1, h2, h3 { font-family: var(--font-magic); color: var(--text-main); margin-bottom: 1rem; }
h1 { font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.1; }
p { color: var(--text-muted); margin-bottom: 1.5rem; }

.btn-lunart {
    display: inline-block; padding: 15px 35px; background-color: var(--accent); color: #000;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    border: 1px solid var(--accent); transition: 0.3s;
}
.btn-lunart:hover { background: transparent; color: var(--accent); }

.bento-grid {
    display: grid; gap: var(--grid-gap); grid-template-columns: 1fr; grid-auto-rows: 300px;
}
.lunart-card {
    background-color: var(--card-bg); border: 1px solid #222; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 30px;
}
.lunart-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.card-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0.5; filter: grayscale(100%); transition: 0.5s; z-index: 1;
}
.lunart-card:hover .card-bg { filter: grayscale(0%); opacity: 0.7; transform: scale(1.05); }
.card-content { position: relative; z-index: 2; pointer-events: none; }

.lunart-card .slideshow-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.lunart-card .slide-item {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0;
    animation: slideAnimation 15s infinite linear; transition: transform 6s ease;
}
@keyframes slideAnimation {
    0%, 100% { opacity: 0; } 10% { opacity: 1; } 33% { opacity: 1; } 43% { opacity: 0; }
}
.lunart-card:hover .slide-item { transform: scale(1.1); }

@media (min-width: 768px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 350px; }
    .span-2 { grid-column: span 2; }
    .span-row-2 { grid-row: span 2; }
}
@media (min-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================
   6. WOOCOMMERCE (SKLEP)
   ========================================= */
.woocommerce-products-header__title.page-title {
    font-family: var(--font-magic); font-size: 3rem; color: var(--accent);
    text-align: center; margin: 0 0 40px 0;
}
.woocommerce-account .woocommerce { margin-top: 40px; }

ul.products li.product {
    background: var(--card-bg) !important; border: 1px solid var(--border-color);
    padding: 20px !important; transition: 0.3s;
}
ul.products li.product:hover { border-color: var(--accent); transform: translateY(-5px); }
ul.products li.product h2 {
    color: var(--text-main); font-family: var(--font-body) !important; font-size: 1.1rem !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; height: 2.6em; line-height: 1.3; margin-bottom: 10px;
}
ul.products li.product .price { color: var(--accent) !important; font-weight: 700; font-size: 1rem; }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    background-color: var(--accent) !important; color: #000 !important;
    font-weight: 700 !important; text-transform: uppercase;
    border-radius: 0 !important; padding: 12px 25px !important; margin-top: auto; width: 100%;
}
.woocommerce a.button:hover { background-color: #fff !important; }

.category-nav { display: inline-flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-bottom: 20px; }
.cat-link {
    display: inline-block; padding: 12px 30px;
    background: rgba(205, 127, 50, 0.05); border: 1px solid rgba(205, 127, 50, 0.3);
    color: var(--accent); font-family: var(--font-magic); text-transform: uppercase;
    font-size: 0.9rem; font-weight: 700; letter-spacing: 2px; border-radius: 2px;
    transition: all 0.4s ease;
}
.cat-link:hover {
    background: rgba(205, 127, 50, 0.2); border-color: var(--accent); color: #fff;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.3); transform: translateY(-2px);
}
.cat-link.active {
    background: var(--accent); border-color: var(--accent); color: #0e0e0e;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.5);
}

.woocommerce-cart, .woocommerce-checkout, .woocommerce-account { background-color: var(--bg-color); }
input, textarea, select {
    background: var(--input-bg); border: 1px solid #333; color: var(--text-main); padding: 15px;
}
.woocommerce table.shop_table { background: #161616; border: 1px solid #333 !important; }
.woocommerce table.shop_table th { background: #222; color: var(--text-main); }
.woocommerce-message, .woocommerce-info { 
    background: #222 !important; color: var(--text-main) !important; border-top-color: var(--accent) !important; 
}

@media (max-width: 480px) {
    ul.products { display: grid !important; grid-template-columns: 1fr !important; gap: 20px !important; }
    ul.products li.product { width: 100% !important; margin: 0 !important; }
}

/* =========================================
   7. FORMULARZ KONTAKTOWY
   ========================================= */
.lunart-form {
    margin-top: 40px; max-width: 600px; margin-left: auto; margin-right: auto; text-align: left;
}
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea {
    width: 100%; background-color: #1a1a1a; border: 1px solid #333; color: #e5e5e5;
    padding: 15px; margin-bottom: 20px; font-family: var(--font-body); outline: none; transition: 0.3s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--accent); box-shadow: 0 0 10px rgba(205, 127, 50, 0.1); }
.wpcf7 input[type="submit"] {
    background-color: var(--accent); color: #000; font-family: var(--font-magic);
    font-weight: 700; text-transform: uppercase; letter-spacing: 2px; border: 1px solid var(--accent);
    padding: 15px 40px; cursor: pointer; transition: 0.3s; width: 100%; margin-top: 10px;
}

/* =========================================
   8. KOMPATYBILNOŚĆ (WIDGETY, COOKIES)
   ========================================= */
.widget input[type="email"], .widget input[type="text"], .newsletter-email {
    background-color: #1a1a1a !important; border: 1px solid #333 !important; color: #e5e5e5 !important;
}
.widget button, .widget input[type="submit"], .newsletter-submit {
    background-color: var(--accent) !important; color: #000 !important; text-transform: uppercase;
}
#cookie-law-info-bar, .cookie-notice-container, .cc-window {
    background-color: #0e0e0e !important; border-top: 1px solid var(--accent) !important; color: #ccc !important;
}
#cookie-law-info-bar .cli-plugin-button, .cookie-notice-container .cn-set-cookie {
    background-color: var(--accent) !important; color: #000 !important; text-transform: uppercase !important;
}

/* =========================================
   9. MASTER FIX: YITH WISHLIST (SCALONE)
   ========================================= */

/* --- A. UKRYCIE CHMURKI I ZBĘDNYCH ELEMENTÓW --- */
.yith-wcwl-feedback-messages-container,
.yith-wcwl-add-to-wishlist_feedback,
.wishlist_feedback--error,
.wishlist_feedback--success,
#yith-wcwl-popup-message,
div.wishlist-title.wishlist-title-with-form,
a.show-title-form,
button.show-title-form,
.wishlist-title h2,
.yith-wcwl-wishlist-new-name {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* --- B. STRONA PRODUKTU: PRZYCISK --- */
/* Kontener z marginesem */
.yith-wcwl-add-to-wishlist {
    margin-bottom: 50px !important; 
    margin-top: 20px !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
}
/* Odpychanie kategorii w dół */
.product_meta {
    margin-top: 30px !important;
    display: block !important;
    padding-top: 20px !important;
}

/* Wygląd przycisku (ramka + serce) */
body.single-product button.yith-wcwl-add-to-wishlist-button {
    border: 1px solid #333 !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    padding: 12px 20px !important;
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    color: #ccc !important;
}
.yith-wcwl-add-to-wishlist-button__label { display: none !important; }

body.single-product button.yith-wcwl-add-to-wishlist-button::before {
    content: '\2764'; font-size: 18px !important; color: #cd7f32 !important; margin-right: 12px !important;
}
body.single-product button.yith-wcwl-add-to-wishlist-button::after {
    content: "DODAJ DO OBSERWOWANYCH" !important;
    font-family: -apple-system, Arial, sans-serif !important; font-size: 12px !important;
    font-weight: 600 !important; text-transform: uppercase; letter-spacing: 1.5px !important; padding-top: 2px !important;
}
/* Stan "Już na liście" */
body.single-product button.yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--added {
    border-color: #cd7f32 !important;
}
body.single-product button.yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--added::after {
    content: "JUŻ NA LIŚCIE" !important; color: #cd7f32 !important;
}

/* --- C. STRONA "OBSERWOWANE" (TABELA) --- */
/* Ciemne tło */
.woocommerce table.wishlist_table, .wishlist_table tbody, .wishlist_table tr, .wishlist_table td {
    background-color: #161616 !important; color: #e5e5e5 !important; border-color: #333 !important;
}
/* Tłumaczenie przycisku koszyka */
.wishlist_table a.add_to_cart_button {
    font-size: 0 !important; display: inline-block !important;
    background-color: #cd7f32 !important; border: none !important; padding: 10px 15px !important;
}
.wishlist_table a.add_to_cart_button::after {
    content: "DO KOSZYKA" !important; font-size: 14px !important; font-weight: bold !important; color: #000 !important; display: block !important;
}
/* Pusta lista */
.wishlist_table tr td.wishlist-empty { font-size: 0 !important; padding: 40px 0 !important; }
.wishlist_table tr td.wishlist-empty::after {
    content: "Twoja lista obserwowanych jest pusta." !important; font-size: 16px !important; color: #ccc !important; display: block !important;
}


/* =========================================
   10. MASTER FIX: KOSZYK I KASA (BLOKI)
   ========================================= */

/* A. Przycisk "PRZEJDŹ DO PŁATNOŚCI" */
.wc-block-components-button__text { display: none !important; }
.wc-block-cart__submit-button, .wc-block-components-checkout-button {
    background-color: #cd7f32 !important; color: #000 !important;
    display: flex !important; justify-content: center !important;
}
.wc-block-cart__submit-button::after, .wc-block-components-checkout-button::after {
    content: "PRZEJDŹ DO PŁATNOŚCI" !important; font-size: 16px !important; font-weight: bold !important; text-transform: uppercase !important; color: #000 !important;
}

/* B. Podsumowanie "ŁĄCZNIE DO ZAPŁATY" (Bez dublowania) */
.wc-block-components-totals-item__label { font-size: inherit !important; color: inherit !important; }
.wc-block-components-totals-item__label::after { display: none !important; }

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: 0 !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label::after {
    content: "ŁĄCZNIE DO ZAPŁATY" !important; font-size: 20px !important; color: #cd7f32 !important; font-weight: bold !important; display: block !important;
}

/* C. Tłumaczenia Kasa i Koszyk */
.wc-block-checkout__contact-information .wc-block-components-title { font-size: 0 !important; }
.wc-block-checkout__contact-information .wc-block-components-title::after {
    content: "DANE KONTAKTOWE" !important; font-size: 24px !important; color: #cd7f32 !important; font-family: 'Cinzel', serif !important; display: block !important; margin-bottom: 10px !important;
}
.wc-block-components-checkout-return-to-cart-button { font-size: 0 !important; }
.wc-block-components-checkout-return-to-cart-button::before {
    content: "← WRÓĆ DO KOSZYKA" !important; font-size: 16px !important; color: #fff !important; font-weight: 500 !important;
}

/* "Add coupons" */
.wc-block-components-panel__button { font-size: 0 !important; display: flex !important; align-items: center !important; }
.wc-block-components-panel__button svg { fill: #cd7f32 !important; width: 24px !important; }
.wc-block-components-panel__button::after {
    content: "MASZ KUPON RABATOWY?" !important; font-size: 16px !important; color: #cd7f32 !important; margin-left: 10px !important; font-weight: 600 !important;
}

/* Pola formularzy w kasie */
.wc-block-components-text-input input, 
.wc-block-components-combobox .wc-block-components-combobox-control input {
    background-color: #222 !important; color: #fff !important; border: 1px solid #444 !important;
}