/*
Theme Name: Modaoptica
Author: Fabian
Description: Nowoczesny motyw butikowy dla Modaoptica.
Version: 5.9
*/

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

body { 
    font-family: 'Montserrat', sans-serif; 
    color: #1a1a1a; 
    background: #faf9f6; 
    line-height: 1.6; 
}

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

/* Minimalistyczny Header */
.boutique-header { background: #faf9f6; border-bottom: 1px solid #e6e4dc; padding: 20px 0; position: sticky; top: 0; z-index: 100; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.left-nav ul, .right-nav ul { list-style: none; display: flex; gap: 25px; align-items: center; }

.left-nav a, .right-nav a { 
    text-decoration: none; 
    color: #333; 
    font-size: 12px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-weight: 500; 
    transition: opacity 0.2s; 
}

.left-nav a:hover, .right-nav a:hover { opacity: 0.6; }

/* LOGO */
.logo a { font-size: 26px; font-weight: 700; text-decoration: none; color: #111; letter-spacing: -1px; }
.logo span { color: #111; font-weight: 300; } 

.nav-cta { border: 1px solid #111; padding: 8px 18px; border-radius: 20px; }

/* Ikony FB i Koszyka */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 15px;
    border-left: 1px solid #e6e4dc;
    padding-left: 20px;
}

.social-icon, .cart-icon-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.social-icon:hover, .cart-icon-link:hover { opacity: 0.6; }

.cart-icon-link svg, .social-icon svg {
    width: 18px;
    height: 18px;
    stroke: #111;
}

.cart-total-text {
    font-size: 12px;
    color: #111;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* TWARDE FIXY DLA EDYTORA WORDPRESSA */
.page-content-text .wp-block-cover {
    width: 100vw !important;
    min-height: 70vh !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: 100vw !important;
    background-size: cover !important;
    background-position: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 40px !important;
}

.page-content-text .wp-block-cover-text, 
.page-content-text .wp-block-cover p, 
.page-content-text .wp-block-cover h1, 
.page-content-text .wp-block-cover h2 {
    color: #fff !important;
    position: relative !important;
    z-index: 10 !important;
}

.page-content-text .wp-block-columns {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

.page-content-text .wp-block-column {
    flex: 1 1 0% !important;
    background: #fff !important;
    padding: 30px !important;
    border: 1px solid #e6e4dc !important;
    border-radius: 12px !important;
}

@media (max-width: 768px) {
    .page-content-text .wp-block-columns { flex-direction: column !important; }
}

.page-content-text .wp-block-button__link {
    background-color: transparent !important;
    color: #111 !important;
    border: 1px solid #111 !important;
    padding: 12px 28px !important;
    border-radius: 30px !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.page-content-text .wp-block-button__link:hover {
    background-color: #111 !important;
    color: #fff !important;
}

.page-content-text .wp-block-html iframe,
.page-content-text .wp-block-embed iframe {
    width: 100% !important;
    height: 400px !important;
    border: 1px solid #e6e4dc !important;
    border-radius: 12px !important;
}

/* STYLE DLA PODSTRON */
.editorial-hero { 
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('salon.jpg') center/cover no-repeat; 
    height: 75vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
    padding: 0 20px; 
}
.editorial-content { max-width: 700px; }
.sub-title { text-transform: uppercase; letter-spacing: 3px; font-size: 11px; margin-bottom: 15px; display: block; color: #ddd; font-weight: 600; }
.editorial-hero h1 { font-size: 48px; font-weight: 300; margin-bottom: 20px; letter-spacing: -1px; line-height: 1.2; }
.editorial-hero p { font-size: 16px; margin-bottom: 35px; color: #f0f0f0; font-weight: 300; }
.hero-actions { display: flex; justify-content: center; gap: 15px; }

/* Przyciski */
.btn-solid { background: #111; color: white; padding: 14px 30px; text-decoration: none; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; border-radius: 30px; transition: background 0.3s; display: inline-block; cursor: pointer; }
.btn-solid:hover { background: #444; }
.btn-solid-light { background: #fff; color: #111; padding: 14px 30px; text-decoration: none; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; border-radius: 30px; transition: background 0.3s; display: inline-block; }
.btn-solid-light:hover { background: #e0e0e0; }
.btn-outline { background: transparent; color: white; border: 1px solid white; padding: 14px 30px; text-decoration: none; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; border-radius: 30px; transition: all 0.3s; display: inline-block; }
.btn-outline:hover { background: white; color: #111; }

/* Siatka Sklepu 3x3 */
.shop-grid-3x3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.product-card { background: #fff; border: 1px solid #e6e4dc; border-radius: 12px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; height: 100%; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.product-placeholder { background: #f4f3ef; height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; padding: 20px; text-align: center; border-bottom: 1px solid #e6e4dc; }
.product-placeholder .tag { position: absolute; top: 15px; left: 15px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; background: #111; color: #fff; padding: 4px 10px; border-radius: 20px; }
.product-placeholder h3 { font-size: 20px; font-weight: 300; color: #333; letter-spacing: -0.5px; }
.product-info { padding: 25px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.product-info h4 { font-size: 16px; font-weight: 500; color: #111; }
.product-info .price { font-size: 18px; font-weight: 600; color: #111; margin-bottom: 5px; }
.btn-solid-small { background: #111; color: #fff; padding: 10px 20px; text-decoration: none; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; border-radius: 20px; text-align: center; transition: background 0.3s; margin-top: auto; }
.btn-solid-small:hover { background: #444; }

/* Pasek paginacji */
.shop-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; }
.shop-pagination a, .shop-pagination span { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; background: #fff; border: 1px solid #e6e4dc; border-radius: 50%; text-decoration: none; color: #111; font-size: 13px; font-weight: 500; transition: all 0.2s; }
.shop-pagination .current { background: #111; color: #fff; border-color: #111; }
.shop-pagination a:hover { background: #111; color: #fff; border-color: #111; }

.exam-hero-box { background: #fff; border: 1px solid #e6e4dc; border-radius: 12px; padding: 50px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.exam-hero-box h2 { font-size: 28px; font-weight: 400; margin-bottom: 15px; color: #111; letter-spacing: -0.5px; }
.exam-hero-box p { color: #666; font-size: 15px; font-weight: 300; line-height: 1.7; margin-bottom: 25px; }
.exam-perks { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 20px; }
.perk-item { background: #faf9f6; border: 1px solid #e6e4dc; padding: 10px 20px; border-radius: 30px; font-size: 13px; font-weight: 500; color: #111; }
.exam-feature-tile { background: #111; color: #fff; border-radius: 12px; padding: 50px; margin-bottom: 30px; text-align: center; }
.sub-title-small { text-transform: uppercase; letter-spacing: 2px; font-size: 10px; color: #aaa; display: block; margin-bottom: 10px; font-weight: 600; }
.exam-feature-tile h3 { font-size: 26px; font-weight: 400; margin-bottom: 15px; color: #fff; }
.exam-feature-tile p { color: #ccc; font-size: 15px; font-weight: 300; max-width: 700px; margin: 0 auto; line-height: 1.6; }
.exam-feature-tile strong { color: #fff; font-weight: 600; }

/* FORMULARZE WSPÓLNE */
.booking-form-box h3 { font-size: 26px; font-weight: 400; margin-bottom: 10px; color: #111; }
.booking-form-box > p { color: #666; font-size: 14px; margin-bottom: 45px !important; font-weight: 300; line-height: 1.6; }
.exam-booking-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: flex-end; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full-width { grid-column: span 2; }
.form-group label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: #333; }
.form-group input, .form-group textarea, .form-group select { padding: 14px 18px; border: 1px solid #e6e4dc; border-radius: 8px; background: #faf9f6; font-family: 'Montserrat', sans-serif; font-size: 14px; color: #111; outline: none; transition: border-color 0.2s; width: 100%; cursor: pointer; }
.form-group input:not([type="checkbox"]):not([type="radio"]), .form-group select { height: 50px; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #111; background: #fff; }
.exam-booking-form .btn-solid { align-self: flex-start; cursor: pointer; border: none; margin-top: 10px; }
.form-success-message { background: #f4f3ef; border-left: 4px solid #111; padding: 30px; border-radius: 8px; }
.form-success-message h4 { font-size: 18px; font-weight: 500; color: #111; margin-bottom: 8px; }
.form-success-message p { color: #555; font-size: 14px; font-weight: 300; }

/* UKŁAD: FORMULARZ I ZDJĘCIE */
.booking-split-layout { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 30px !important; margin-bottom: 40px !important; }
.booking-form-column { display: flex !important; flex-direction: column !important; height: 100% !important; }
.booking-form-box { background: #fff; border: 1px solid #e6e4dc; border-radius: 12px !important; padding: 50px; height: 100% !important; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.booking-image-column { display: flex !important; flex-direction: column !important; height: 100% !important; }
.booking-image-column img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 12px !important; border: 1px solid #e6e4dc !important; display: block !important; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }

/* UKŁAD: O NAS I KONTAKT */
.about-split-layout, .contact-split-layout { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 30px !important; margin-bottom: 40px !important; }
.about-text-column { display: flex !important; flex-direction: column !important; height: 100% !important; }
.about-text-box { background: #fff; border: 1px solid #e6e4dc; border-radius: 12px !important; padding: 50px; height: 100% !important; box-shadow: 0 10px 30px rgba(0,0,0,0.02); display: flex; flex-direction: column; justify-content: center; }
.about-text-box h3 { font-size: 28px; font-weight: 400; margin-bottom: 20px; color: #111; letter-spacing: -0.5px; }
.about-text-box p { color: #666; font-size: 15px; font-weight: 300; line-height: 1.7; margin-bottom: 15px; }
.about-image-column { display: flex !important; flex-direction: column !important; height: 100% !important; }
.about-image-column img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 12px !important; border: 1px solid #e6e4dc !important; display: block !important; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }

/* FAQ GRID */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.faq-item { background: #faf9f6; padding: 30px; border-radius: 8px; border: 1px solid #e6e4dc; }

@media (max-width: 900px) {
    .booking-split-layout, .about-split-layout, .contact-split-layout, .faq-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .booking-image-column, .about-image-column { height: 400px !important; }
}

.booking-section-box { background: #fff; border: 1px solid #e6e4dc; border-radius: 12px; padding: 50px; text-align: center; }
.booking-section-box h3 { font-size: 24px; font-weight: 400; margin-bottom: 10px; color: #111; }
.booking-section-box > p { color: #666; font-size: 14px; margin-bottom: 35px; font-weight: 300; }
.booking-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.booking-option { background: #faf9f6; border: 1px solid #e6e4dc; border-radius: 8px; padding: 30px; text-align: center; }
.booking-option h4 { font-size: 16px; font-weight: 500; margin-bottom: 10px; color: #111; }
.booking-phone, .booking-address { font-size: 16px; font-weight: 600; color: #111; margin-bottom: 8px; }
.booking-sub { font-size: 12px; color: #666; font-weight: 300; }

.subpage { padding: 80px 0; background: #faf9f6; min-height: 60vh; }
.subpage-content h1 { font-size: 38px; font-weight: 300; margin-bottom: 15px; color: #111; letter-spacing: -0.5px; }
.lead-text { font-size: 16px; color: #666; margin-bottom: 40px; font-weight: 300; }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.service-card { background: #fff; border: 1px solid #e6e4dc; border-radius: 12px; padding: 40px 30px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.service-card h4 { font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #111; margin-bottom: 15px; }
.service-card p { font-size: 14px; color: #666; font-weight: 300; margin-bottom: 25px; line-height: 1.6; }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

.parallax-divider { background: linear-gradient(rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.7)), url('salon.jpg'); background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; padding: 120px 20px; text-align: center; color: #fff; margin: 80px 0; }
.parallax-content { max-width: 800px; margin: 0 auto; }
.parallax-content h2 { font-size: 38px; font-weight: 300; margin-bottom: 20px; letter-spacing: -0.5px; }
.parallax-content p { font-size: 16px; font-weight: 300; margin-bottom: 35px; color: #ddd; line-height: 1.6; }

.boutique-footer { background-color: #111; color: #fff; padding: 50px 0 20px; margin-top: 60px; }
.footer-flex { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; border-bottom: 1px solid #333; padding-bottom: 30px; margin-bottom: 20px; }
.footer-brand h3 { font-size: 24px; font-weight: 700; letter-spacing: -1px; margin-bottom: 10px; }
.footer-brand p, .footer-info p { font-size: 13px; color: #aaa; font-weight: 300; }
.footer-info { text-align: right; }
.footer-copy p { font-size: 11px; color: #666; text-align: center; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   PŁYWAJĄCY WIDŻET KONTAKTOWY (CZAT) - POPRAWIONE STYLE
   ========================================= */
.moda-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
}
.moda-chat-btn {
    background-color: #111;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, background-color 0.2s;
    font-family: 'Montserrat', sans-serif;
}
.moda-chat-btn:hover { background-color: #333; transform: translateY(-2px); }
.moda-chat-btn svg { width: 20px; height: 20px; }
.moda-chat-box {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    overflow: hidden;
    border: 1px solid #e6e4dc;
}
.moda-chat-header { background: #111; color: #fff; padding: 20px; display: flex; justify-content: space-between; align-items: flex-start; }
.moda-chat-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.moda-chat-subtitle { font-size: 11px; color: #aaa; font-weight: 400; }
.moda-chat-close { background: transparent; border: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; }
.moda-chat-close:hover { opacity: 1; }
.moda-chat-body { padding: 20px; background: #faf9f6; }
.moda-chat-input, .moda-chat-textarea { width: 100%; padding: 12px 15px; border: 1px solid #e6e4dc; border-radius: 8px; font-family: 'Montserrat', sans-serif; font-size: 13px; margin-bottom: 15px; outline: none; }
.moda-chat-input:focus, .moda-chat-textarea:focus { border-color: #111; background: #fff; }
.moda-chat-textarea { resize: none; }
.moda-chat-submit { width: 100%; background: #111; color: #fff; border: none; padding: 12px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; transition: background 0.2s; font-family: 'Montserrat', sans-serif; }
.moda-chat-submit:hover { background: #333; }
@media (max-width: 768px) {
    .moda-chat-widget { bottom: 20px; right: 20px; }
    .moda-chat-box { width: 300px; right: -10px; }
}

/* =========================================
   NAPRAWA RESPONSYWNOŚCI NA TELEFONACH I TABLETACH
   ========================================= */
@media (max-width: 900px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .header-flex {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        padding: 15px 10px !important;
    }
    .logo {
        order: -1 !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 5px !important;
    }
    .left-nav, .right-nav {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    .left-nav ul, .right-nav ul {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .shop-grid-3x3 { grid-template-columns: 1fr !important; }
    .contact-split-layout, .about-split-layout, .booking-split-layout { display: flex !important; flex-direction: column !important; gap: 20px !important; }
    .booking-form-column, .booking-image-column, .about-text-column, .about-image-column { width: 100% !important; max-width: 100% !important; }
}

/* --- PROFESJONALNY BANER DOSTAWY --- */
.vip-shipping-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.vip-shipping-badge:hover {
    border-color: #d1122a;
    box-shadow: 0 5px 15px rgba(209, 18, 42, 0.06);
    transform: translateY(-2px);
}
.vip-shipping-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(209, 18, 42, 0.08);
    color: #d1122a;
    border-radius: 50%;
    flex-shrink: 0;
}
.vip-shipping-text {
    font-size: 13px;
    color: #555;
    letter-spacing: 0.3px;
}
.vip-shipping-text strong {
    color: #111;
    font-weight: 600;
}
.vip-shipping-text .kwota {
    color: #d1122a;
    font-weight: 700;
    font-size: 14px;
}