/*
Theme Name: Elevar Press B2B
Theme URI: https://twojportal.pl
Author: Twój Portal
Description: Dedykowany motyw B2B dla platformy publikacyjnej.
Version: 41.0
Text Domain: elevar-press
*/

:root {
    --primary: #0066cc; 
    --primary-dark: #004c99;
    --yellow: #ffd024; 
    --yellow-hover: #eec220;
    --bg-body: #f4f8fb;
    --bg-white: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --radius: 12px;
    --btn-radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body { background-color: var(--bg-body); font-family: var(--font-main); color: var(--text-main); line-height: 1.6; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: var(--primary); transition: 0.3s; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1198px !important; margin: 0 auto !important; padding: 0 20px; width: 100%; box-sizing: border-box; }
.site-main { flex: 1; width: 100%; display: block; padding-top: 0 !important; }

/* Header */
.site-header { background: #0f2842 !important; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; padding: 15px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; position: relative; }
.site-logo img { display: block; max-width: 100%; height: auto; }

/* Wrapper dla menu i przycisków */
.header-content-wrapper { display: flex; align-items: center; gap: 30px; }

/* Menu */
.main-navigation ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-navigation a { color: #ffffff !important; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.main-navigation a:hover { color: var(--yellow) !important; }

/* IKONY W MENU */
.menu-icon-catalog a::before { content: '\f0ac'; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--yellow); font-size: 14px; }
.menu-icon-cart a::before { content: '\f07a'; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--yellow); font-size: 14px; }
.menu-icon-user a::before { content: '\f007'; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--yellow); font-size: 14px; }

/* Ukrycie szukania */
.search-toggle, .search-item, .header-search, .header-search-button, button.search-submit, .widget_search, form.search-form { display: none !important; }
#wp-admin-bar-search { display: none !important; }

/* HAMBURGER (DESKTOP: UKRYTY) */
.mobile-menu-toggle { display: none !important; }

/* Buttony (Żółte) */
button:not(.mce-btn button):not(.qt-btn):not(.show-password-input):not(.mobile-menu-toggle):not(.evc-select-btn), 
input[type="submit"], .button, .spc-btn, .wp-block-button__link, .woocommerce-message .button.wc-forward, .single_add_to_cart_button {
    background: var(--yellow) !important; color: #000 !important; font-weight: 700 !important; border: none !important;
    border-radius: var(--btn-radius) !important; padding: 12px 25px !important; font-size: 15px !important;
    box-shadow: 0 4px 10px rgba(255, 208, 36, 0.3) !important; transition: all 0.3s ease !important; cursor: pointer !important;
    display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; text-decoration: none !important; line-height: normal !important;
}
button:not(.mce-btn button):not(.qt-btn):not(.show-password-input):not(.mobile-menu-toggle):not(.evc-select-btn):hover, 
input[type="submit"]:hover, .button:hover, .spc-btn:hover, .wp-block-button__link:hover, .woocommerce-message .button.wc-forward:hover {
    background: var(--yellow-hover) !important; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(255, 208, 36, 0.4) !important; color: #000 !important;
}

/* Header CTA */
.header-cta { background: var(--yellow) !important; color: #ffffff !important; font-weight: 700 !important; border-radius: var(--btn-radius) !important; padding: 10px 24px !important; font-size: 15px !important; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important; transition: all 0.3s ease !important; text-decoration: none !important; display: inline-flex !important; align-items: center; gap: 8px; }
.header-cta:hover { background: var(--yellow-hover) !important; color: #ffffff !important; transform: translateY(-2px); }
.header-cta.login-btn { color: #0f2842 !important; }
.header-cta.login-btn:hover { color: #0f2842 !important; }

/* Hasło */
.woocommerce-form-row { position: relative; }
.show-password-input { background: transparent !important; box-shadow: none !important; padding: 0 10px !important; border: none !important; font-size: 14px !important; color: #999 !important; position: absolute !important; top: 50% !important; right: 10px !important; transform: translateY(-50%) !important; height: auto !important; width: auto !important; min-width: auto !important; cursor: pointer; z-index: 10; }
.show-password-input:hover { background: transparent !important; color: var(--primary) !important; transform: translateY(-50%) !important; }

/* Notices */
.woocommerce-notices-wrapper { max-width: 1198px; margin: 20px auto; padding: 0 20px; box-sizing: border-box; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background-color: #fff !important; border-radius: 16px !important; box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important; border: none !important; border-top: 5px solid var(--primary) !important; color: #333 !important; padding: 25px 35px !important; margin-bottom: 30px !important; display: flex !important; align-items: center !important; flex-wrap: wrap !important; position: relative !important; }
.woocommerce-error { border-top-color: #dc3545 !important; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { position: static !important; content: '\2713' !important; font-family: inherit !important; font-size: 28px !important; line-height: 1 !important; margin-right: 20px !important; color: #28a745 !important; }
.woocommerce-error::before { content: '\00d7' !important; color: #dc3545 !important; }
.woocommerce-message .button.wc-forward { margin-left: auto !important; float: none !important; }

/* Panel Klienta */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 15px 20px; border-bottom: 1px solid var(--border-color); color: var(--text-main); font-weight: 500; transition: 0.3s; }
.woocommerce-MyAccount-navigation li a:hover { background-color: #fff8d6; color: #000; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--yellow) !important; color: #000 !important; font-weight: 700 !important; }
.woocommerce-MyAccount-orders .button { padding: 6px 12px !important; font-size: 13px !important; margin: 2px !important; min-width: auto !important; white-space: nowrap !important; }
.woocommerce-MyAccount-navigation-link--downloads { display: none !important; }

/* Karta Produktu */
.single-product .product { background: #fff; border: 1px solid #e9ecef; border-radius: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); padding: 40px !important; width: 100%; max-width: 1198px !important; margin: 40px auto 60px auto !important; display: block !important; box-sizing: border-box; }
.single-product div.product .summary.entry-summary { width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important; max-width: 100% !important; clear: both !important; }
.woocommerce-product-gallery { display: none !important; }
.single-product .product_title { font-size: 2.2rem; font-weight: 800; color: #212529; margin-bottom: 20px; border-bottom: 2px solid #e9ecef; padding-bottom: 20px; margin-top: 0; }
.single-product .price { display: none !important; } /* CENA W KARTACH WARIANTÓW */
.single-product .woocommerce-product-details__short-description { font-size: 1.05rem; color: #6c757d; margin-bottom: 30px; line-height: 1.6; }
.single_add_to_cart_button { width: 100% !important; margin-top: 25px; font-size: 18px !important; padding: 18px !important; }

/* UKRYCIE STARYCH VARIATIONS (Bo są teraz w kartach) */
.variations, .reset_variations { display: none !important; }

/* Podziękowanie */
.woocommerce-order { background: #fff; border: 1px solid #e9ecef; border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); padding: 50px; margin-top: 30px; margin-bottom: 50px; }
.woocommerce-thankyou-order-received { font-size: 1.5rem; color: #155724; font-weight: 700; margin-bottom: 30px; text-align: left; background: #d4edda; padding: 20px; border-radius: 12px; border: 1px solid #c3e6cb; display: flex; align-items: center; gap: 10px; }
.woocommerce-thankyou-order-received::before { content: '\2713'; background: #155724; color: #fff; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
ul.woocommerce-order-overview { list-style: none; padding: 0 30px; margin: 0 0 40px 0; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 12px; display: flex; flex-direction: column; gap: 0; }
ul.woocommerce-order-overview li { border: none; border-bottom: 1px solid #e9ecef; padding: 20px 0; margin: 0; text-align: left !important; width: 100%; font-size: 0.85rem; text-transform: uppercase; color: #6c757d; font-weight: 600; line-height: 1.4; letter-spacing: 0.5px; }
ul.woocommerce-order-overview li:last-child { border-bottom: none; }
ul.woocommerce-order-overview li strong { display: block; font-size: 1.15rem; font-weight: 700; color: #212529; margin-top: 6px; text-transform: none; word-break: break-word; }
ul.woocommerce-order-overview li.total strong { color: var(--primary); }

/* Pozostałe */
.ppu-custom-fields { width: 100% !important; box-sizing: border-box !important; max-width: 100% !important; }
#secondary, .widget-area, .sidebar, .widget_search, .widget_pages, .widget_archive, .widget_categories, .widget_meta, .widget_recent_entries, .widget_recent_comments, .woocommerce-breadcrumb { display: none !important; width: 0 !important; height: 0 !important; overflow: hidden !important; }
.content-area, .site-main, .elevar-shop-wrapper { float: none !important; width: 100%; }
.woocommerce-tabs { display: none !important; }
.elevar-seo-metrics { margin-top: 40px; padding-top: 30px; border-top: 2px solid var(--border-color); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.seo-metric-box { background: var(--bg-body); padding: 20px; border-radius: var(--radius); text-align: center; }
.wc-block-components-order-summary-item__individual-price, .product-name .woocommerce-Price-amount { display: none !important; }
td.product-total .woocommerce-Price-amount { display: block !important; }
.elevar-dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.elevar-chart-wrapper { background: var(--bg-white); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; }
.site-footer { background: #fff; padding: 40px 0; margin-top: auto; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 14px; width: 100%; }

/* FIX TINYMCE */
.mce-btn button, .qt-btn { background: transparent !important; box-shadow: none !important; padding: 4px !important; border-radius: 0 !important; color: #333 !important; font-weight: normal !important; }
.mce-btn button:hover { background: #e5e5e5 !important; transform: none !important; }

/* HOME B2B */
.hero-section { background: #0f2842; color: #fff; padding: 80px 0 100px 0; text-align: center; position: relative; overflow: hidden; }
.hero-section::after { content: ''; position: absolute; bottom: -50px; left: 0; width: 100%; height: 100px; background: #f4f8fb; transform: skewY(-2deg); }
.hero-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.hero-title span { color: var(--yellow); }
.hero-subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto 40px auto; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }
.btn-outline { background: transparent !important; border: 2px solid #fff !important; color: #fff !important; }
.btn-outline:hover { background: #fff !important; color: #0f2842 !important; }
.features-section { padding: 60px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-card { background: #fff; padding: 30px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; text-align: center; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.feature-icon { font-size: 2.5rem; color: var(--yellow); margin-bottom: 20px; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: #212529; font-weight: 700; }
.feature-card p { color: #6c757d; font-size: 0.95rem; }
.stats-section { background: #fff; padding: 60px 0; border-top: 1px solid #e9ecef; border-bottom: 1px solid #e9ecef; margin: 60px 0; }
.stats-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; text-align: center; }
.stat-item { flex: 1; min-width: 200px; }
.stat-item h3 { font-size: 2.5rem; color: var(--primary); margin: 0; font-weight: 800; line-height: 1.2; }
.stat-item p { color: #6c757d; font-size: 1rem; text-transform: none; font-weight: 500; margin-top: 10px; line-height: 1.4; }
.cta-section { background: linear-gradient(135deg, #0066cc 0%, #004c99 100%); color: #fff; padding: 80px 0; text-align: center; border-radius: 20px; margin-bottom: 60px; }
.cta-section h2 { font-size: 2.5rem; margin-bottom: 20px; color: #fff; }
.cta-section p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }

/* RESPONSYWNOŚĆ (MOBILE MENU) */
@media (max-width: 992px) {
    .mobile-menu-toggle { display: block !important; background: transparent !important; color: var(--yellow) !important; font-size: 28px !important; border: none !important; box-shadow: none !important; padding: 5px !important; margin-left: auto; cursor: pointer; }
    .header-content-wrapper { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0f2842; padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); flex-direction: column; align-items: flex-start; gap: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
    .site-header.toggled .header-content-wrapper { display: flex; }
    .main-navigation ul { flex-direction: column; align-items: flex-start; gap: 15px; width: 100%; }
    .main-navigation a { font-size: 16px; width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .header-actions { width: 100%; margin-top: 20px; display: flex; justify-content: center; }
    .header-cta { width: 100%; max-width: 80%; justify-content: center; margin: 0 auto; }
}