/*
 * Theme Name: Farma Uroczysko
 * Theme URI: https://barmstudio.pl
 * Description: Motyw dla Farmy Uroczysko — aromaterapia, zioła, sklep, blog, koło roku.
 * Author: barmSTUDIO.pl
 * Author URI: https://barmstudio.pl
 * Version: 2.0.0
 * Text Domain: farma-uroczysko
 *
 * Art direction: farma ziołowa / aromaterapia → tajemnica, natura, magia
 */

/* ============================================================
   1. DESIGN TOKENS (CSS Variables) - Jasna Magia Lasu
   ============================================================ */
:root {
    --bg-main:        #1a201c;  /* Mszysta czerń (głęboki, ciepły zielony) */
    --bg-surface:     #232a25;  /* Powierzchnia kart (jaśniejszy las) */
    --bg-card:        #2c352e;  /* Tło elementów / border */
    
    --border-subtle:  rgba(255, 255, 255, 0.08); /* Delikatniejsze obramowania */
    --divider:        rgba(193, 161, 98, 0.2);   /* Złote przerywniki ciut mocniejsze */
    
    --text-primary:   #E6E4DD;  /* Ciepły, kremowy pergamin zamiast chłodnej bieli */
    --text-muted:     #A5A296;  /* Bardziej ziemisty tekst poboczny */
    --text-faint:     #737166;  
    --text-inverse:   #1a201c;

    --gold:           #C1A162;  /* Cieplejsze złoto */
    --gold-light:     #E2CFA0;
    
    --font-display:   'Cormorant Garamond', serif;
    --font-body:      'Montserrat', sans-serif;

/* ============================================================
   BEZWZGLĘDNE UKRYCIE DUBEL-KOMENTARZY Z GUTENBERGA
   ============================================================ */
.wp-block-post-comments-link,
.wp-block-post-comments-count,
.wp-block-comments,
.wp-block-post-comments-form {
    display: none !important;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
html {
    -webkit-text-size-adjust: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

::selection {
    background: rgba(184, 151, 88, 0.22);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ============================================================
   3. UTILITIES & ANIMATIONS
   ============================================================ */
.magic-canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: auto; z-index: 1;
}
.z-content {
    position: relative; z-index: 10; pointer-events: none;
}
.z-content a, .z-content button {
    pointer-events: auto;
}

.gold-gradient-text {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Twój efekt grain (ziarna) na tła */
.grain-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.035;
    pointer-events: none;
    mix-blend-mode: overlay;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #4A5D4E; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============================================================
   HARD RESET WOOCOMMERCE LAYOUT - USUNIĘCIE MARGINESÓW
   ============================================================ */

/* Wycięcie pustej przestrzeni generowanej przez domyślne shortcody WooCommerce */
.woocommerce,
.woocommerce-page {
    width: 100%;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Fix dla strony koszyka - usunięcie przerw przed tabelą */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Odsunięcie i stylowanie komunikatów by nie przyklejały się do nagłówka */
.woocommerce-notices-wrapper:not(:empty) {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* Modernizacja tabeli koszyka w mrocznym stylu */
.woocommerce table.shop_table {
    border-collapse: collapse !important;
    width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 0 2rem 0 !important;
}

.woocommerce table.shop_table th {
    background: transparent !important;
    color: var(--gold-light) !important;
    font-family: var(--font-body) !important;
    font-size: 10px !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400 !important;
    border: none !important;
    border-bottom: 1px solid var(--gold) !important;
    padding: 1rem !important;
}

.woocommerce table.shop_table td {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    padding: 1.5rem 1rem !important;
    color: var(--text-primary) !important;
}

/* Stylowanie przycisków w tabeli i kuponach */
.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button {
    background: transparent !important;
    border: 1px solid var(--divider) !important;
    color: var(--gold) !important;
    font-family: var(--font-body) !important;
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    padding: 0.75rem 1.5rem !important;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast) !important;
}

.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover {
    background: var(--gold) !important;
    color: var(--bg-main) !important;
    border-color: var(--gold) !important;
}

/* Wyróżnienie przycisków głównych (Checkout) */
.woocommerce #respond input#submit.alt, 
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt {
    background: var(--gold) !important;
    color: var(--bg-main) !important;
    border-color: var(--gold) !important;
}

.woocommerce #respond input#submit.alt:hover, 
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover {
    background: var(--gold-light) !important;
    color: var(--bg-main) !important;
}

/* Formularze z kuponami i wysyłką w Koszyku */
.woocommerce-cart table.cart td.actions .coupon .input-text {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: white;
    padding: 0.75rem 1rem;
    font-size: var(--text-sm);
    outline: none;
}
.woocommerce-cart table.cart td.actions .coupon .input-text:focus {
    border-color: var(--gold);
}

/* ============================================================
   FORMS & CHECKOUT - LUKSUSOWY CIEMNY MOTYW (A24 Style)
   ============================================================ */
   
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce .quantity input.qty {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    color: white !important;
    padding: 16px 18px !important;
    font-size: var(--text-sm) !important;
    font-family: var(--font-body) !important;
    border-radius: 0 !important;
    outline: none !important;
    transition: border-color var(--t-fast), box-shadow var(--t-fast) !important;
    width: 100%;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce .quantity input.qty:focus {
    border-color: var(--gold) !important;
    background: var(--bg-main) !important;
    box-shadow: 0 0 15px rgba(193, 161, 98, 0.1) !important;
}

.woocommerce form .form-row label {
    color: var(--gold) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 9px !important;
    letter-spacing: 0.2em !important;
    margin-bottom: 8px !important;
    display: block !important;
    font-family: var(--font-body) !important;
}

/* Stylizacja specjalna dla przycisków w formularzach płatności (Kasa) */
#add_payment_method #payment, 
.woocommerce-cart #payment, 
.woocommerce-checkout #payment {
    background: var(--bg-surface) !important;
    border-radius: 0 !important;
    border: 1px solid var(--border-subtle) !important;
}

#add_payment_method #payment div.payment_box, 
.woocommerce-cart #payment div.payment_box, 
.woocommerce-checkout #payment div.payment_box {
    background: var(--bg-main) !important;
    color: var(--text-muted) !important;
    border-top: 1px solid var(--gold) !important;
    font-family: var(--font-serif) !important;
    font-style: italic;
    font-size: var(--text-base);
}

#add_payment_method #payment div.payment_box::before, 
.woocommerce-cart #payment div.payment_box::before, 
.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: var(--gold) !important;
}

/* ============================================================
   WOOCOMMERCE - MOJE KONTO, KOSZYK, KASA I ZAMÓWIENIA
   Adaptacja "Uroczysko Premium"
   ============================================================ */

/* ── 1. MOJE KONTO: LOGOWANIE I REJESTRACJA ── */
.woocommerce-account .u-columns.col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3rem !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 1000px !important;
    margin: 4rem auto !important;
}

@media (max-width: 768px) {
    .woocommerce-account .u-columns.col2-set {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

.woocommerce-form-login,
.woocommerce-form-register {
    background: #232a25 !important; /* uro-surface */
    border: 1px solid rgba(193, 161, 98, 0.15) !important;
    padding: 3rem !important;
    margin: 0 !important;
}

.woocommerce-account .u-column1 h2,
.woocommerce-account .u-column2 h2 {
    font-family: var(--font-display) !important;
    font-size: 1.5rem !important;
    color: #C1A162 !important; /* uro-gold */
    font-weight: 300 !important;
    border-bottom: 1px solid rgba(193, 161, 98, 0.15) !important;
    padding-bottom: 1rem !important;
    margin-bottom: 2rem !important;
}

/* ── 2. MOJE KONTO: PANEL GŁÓWNY I NAWIGACJA ── */
.woocommerce-account .woocommerce:not(.login) {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 3rem !important;
    align-items: start !important;
    max-width: 1200px !important;
    margin: 3rem auto !important;
}

@media (max-width: 900px) {
    .woocommerce-account .woocommerce:not(.login) {
        grid-template-columns: 1fr !important;
    }
}

/* Menu boczne */
.woocommerce-MyAccount-navigation {
    background: #232a25 !important;
    border: 1px solid rgba(193, 161, 98, 0.15) !important;
    position: sticky !important;
    top: 6rem !important;
}

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

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid rgba(193, 161, 98, 0.1) !important;
    margin: 0 !important;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    font-family: var(--font-body) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    color: rgba(230, 228, 221, 0.5) !important; /* uro-text muted */
    text-decoration: none !important;
    padding: 1.2rem 1.5rem !important;
    transition: all 0.3s ease !important;
    border-left: 2px solid transparent !important;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    color: #C1A162 !important;
    background: rgba(193, 161, 98, 0.05) !important;
    border-left-color: #C1A162 !important;
    padding-left: 1.8rem !important;
}

/* Treść konta */
.woocommerce-MyAccount-content {
    background: #232a25 !important;
    border: 1px solid rgba(193, 161, 98, 0.15) !important;
    padding: 3rem !important;
    color: rgba(230, 228, 221, 0.8) !important;
    font-family: var(--font-body) !important;
    line-height: 1.8 !important;
}

.woocommerce-MyAccount-content h3, 
.woocommerce-MyAccount-content h2 {
    font-family: var(--font-display) !important;
    font-size: 1.8rem !important;
    color: #fff !important;
    font-weight: 300 !important;
    border-bottom: 1px solid rgba(193, 161, 98, 0.15) !important;
    padding-bottom: 1rem !important;
    margin-bottom: 2rem !important;
}

.woocommerce-MyAccount-content a {
    color: #C1A162 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(193, 161, 98, 0.3) !important;
    transition: border-color 0.2s !important;
}

.woocommerce-MyAccount-content a:hover {
    border-color: #C1A162 !important;
}

/* ── 3. TABELE ZAMÓWIEŃ ── */
.woocommerce-orders-table, 
.woocommerce-table--order-details {
    width: 100% !important;
    border-collapse: collapse !important;
}

.woocommerce-orders-table thead th,
.woocommerce-table--order-details thead th {
    font-family: var(--font-body) !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    color: #C1A162 !important;
    padding: 1rem !important;
    border-bottom: 1px solid rgba(193, 161, 98, 0.25) !important;
    text-align: left !important;
}

.woocommerce-orders-table tbody td,
.woocommerce-table--order-details tbody td {
    padding: 1.2rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: rgba(230, 228, 221, 0.8) !important;
    vertical-align: middle !important;
    font-size: 0.9rem !important;
}

.woocommerce-orders-table tbody tr:hover td {
    background: rgba(193, 161, 98, 0.04) !important;
}

/* Statusy (Złote badge) */
mark.order-status,
.woocommerce-orders-table__cell-order-status mark {
    font-size: 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    padding: 0.4rem 0.8rem !important;
    background: rgba(193, 161, 98, 0.1) !important;
    color: #C1A162 !important;
    border: 1px solid rgba(193, 161, 98, 0.2) !important;
    border-radius: 0 !important;
}

/* ── 4. BLOKI KOSZYKA I KASY (Gutenberg Blocks) ── */
.wc-block-cart__main, 
.wc-block-cart__sidebar,
.wc-block-checkout__main, 
.wc-block-checkout__sidebar,
.wc-block-components-checkout-step {
    background: #232a25 !important;
    border: 1px solid rgba(193, 161, 98, 0.15) !important;
    padding: 2.5rem !important;
    border-radius: 0 !important;
    margin-bottom: 2rem;
}

/* Tytuły w koszyku */
.wc-block-components-title, 
.wc-block-components-checkout-step__title {
    font-family: var(--font-display) !important;
    color: #fff !important;
    font-size: 1.8rem !important;
    font-weight: 300 !important;
    border-bottom: 1px solid rgba(193, 161, 98, 0.15) !important;
    padding-bottom: 1rem !important;
    margin-bottom: 2rem !important;
}

/* Pojedynczy produkt w koszyku */
.wc-block-cart-items__row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-bottom: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.wc-block-components-product-name {
    font-family: var(--font-display) !important;
    font-size: 1.2rem !important;
    color: #C1A162 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
}

.wc-block-cart-item__total .wc-block-formatted-money-amount {
    font-family: var(--font-display) !important;
    font-size: 1.4rem !important;
    color: #fff !important;
    font-style: italic !important;
}

/* Główna suma (Totals) */
.wc-block-components-totals-footer-item-tax-value {
    font-family: var(--font-display) !important;
    font-size: 2.5rem !important;
    color: #fff !important;
    text-shadow: 0 0 15px rgba(193, 161, 98, 0.2) !important;
}

/* ── 5. WSZYSTKIE PRZYCISKI WOOCOMMERCE ── */
.woocommerce button.button,
.woocommerce-MyAccount-content .button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
    background: transparent !important;
    color: #C1A162 !important;
    border: 1px solid #C1A162 !important;
    font-family: var(--font-body) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    padding: 1rem 2.5rem !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.woocommerce button.button:hover,
.woocommerce-MyAccount-content .button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
    background: #C1A162 !important;
    color: #1a201c !important; /* uro-bg */
}

/* ============================================================
   NAPRAWA CZARNEGO TEKSTU W KARTACH ADRESOWYCH (Konto / Kasa)
   ============================================================ */
.wc-block-components-address-card,
.wc-block-components-address-card__address-section,
.wc-block-components-address-card__address-section--secondary {
    color: rgba(230, 228, 221, 0.8) !important; /* Jasny, stonowany kolor pergaminu (uro-text) */
    font-family: var(--font-body) !important;
    line-height: 1.8 !important;
}

/* Przy okazji zabezpieczmy imię i nazwisko (główną sekcję karty), żeby też nie zniknęły */
.wc-block-components-address-card__address-section--primary {
    color: #fff !important;
    font-weight: 700 !important;
}

/* ============================================================
   NAPRAWA BIAŁYCH PÓL FORMULARZA (BLOKI CHECKOUT)
   ============================================================ */

/* Reset przezroczystości dla głównego kontenera pola */
.wc-block-components-text-input {
    background: transparent !important;
}

/* Tło, ramki i tekst dla wpisywania */
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="password"],
.wc-block-components-text-input textarea {
    background-color: #1a201c !important; /* Ciemne tło lasu (uro-bg) */
    color: #ffffff !important; /* Czysta biel tekstu */
    border: 1px solid rgba(193, 161, 98, 0.3) !important; /* Delikatne złoto */
    border-radius: 0 !important;
    font-family: var(--font-body) !important;
    box-shadow: none !important;
}

/* Reakcja na kliknięcie (Focus) */
.wc-block-components-text-input input:focus,
.wc-block-components-text-input textarea:focus {
    border-color: #C1A162 !important; /* Pełne złoto (uro-gold) */
    background-color: #070908 !important; /* Pogłębienie czerni przy pisaniu */
    outline: none !important;
    box-shadow: 0 0 15px rgba(193, 161, 98, 0.1) !important;
}

/* Etykiety "pływające" (np. Adres e-mail) wewnątrz pól */
.wc-block-components-text-input label {
    color: rgba(230, 228, 221, 0.5) !important; /* Zgaszony pergamin */
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    font-family: var(--font-body) !important;
}

/* Gdy klikniemy pole lub je wypełnimy, etykieta jedzie do góry i zapala się na złoto */
.wc-block-components-text-input.is-active label {
    color: #C1A162 !important;
}

/* Zabijamy brzydkie, biało-żółte tło autouzupełniania Chrome'a */
.wc-block-components-text-input input:-webkit-autofill,
.wc-block-components-text-input input:-webkit-autofill:hover,
.wc-block-components-text-input input:-webkit-autofill:focus,
.wc-block-components-text-input input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 100px #1a201c inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* ============================================================
   KUŹNIA – kolory dla lewego panelu
   ============================================================ */
[data-theme="kuznia"] {
    --pane-bg:           #1a1410;
    --pane-surface:      #2a211a;
    --pane-text:         #E6D7C2;
    --pane-muted:        #A69888;
    --pane-accent:       #D97B3A;
    --pane-accent-light: #F0B27A;
    --pane-border:       rgba(217, 123, 58, 0.25);
    --pane-font-display: 'Cormorant Garamond', serif;
    --pane-font-body:    'Montserrat', sans-serif;
}

/* ============================================================
   SPLIT HERO – podział ekranu na pół (mobile first)
   ============================================================ */
.split-hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .split-hero {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
    }
}

.split-pane {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.split-pane:hover {
    transform: scale(1.03);
    z-index: 2;
}

.pane-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45) contrast(1.2);
    transition: filter 1.5s ease;
}

.split-pane:hover .pane-bg {
    filter: brightness(0.6) contrast(1.1);
}

.pane-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--pane-bg, #1a201c) 40%,
        transparent 90%
    );
    opacity: 0.9;
}

.pane-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--pane-text, #E6E4DD);
    padding: 2rem;
    width: 100%;
}

/* LOGOTYP – duży, wyśrodkowany, odwrócony kolor */
.pane-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pane-logo {
    max-height: 120px;
    width: auto;
    height: auto;
    filter: invert(1) drop-shadow(0 0 15px currentColor);
    transition: filter 0.3s ease;
    display: block;
}

.split-pane:hover .pane-logo {
    filter: invert(1) drop-shadow(0 0 25px var(--pane-accent, #C1A162));
}

.pane-title {
    font-family: var(--pane-font-display, 'Cormorant Garamond', serif);
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pane-accent-light, #E2CFA0);
}

.pane-subtitle {
    font-family: var(--pane-font-body, 'Montserrat', sans-serif);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pane-muted, #A5A296);
    margin-bottom: 2.5rem;
}

.pane-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--pane-accent, #C1A162);
    color: var(--pane-accent, #C1A162);
    font-family: var(--pane-font-body, 'Montserrat', sans-serif);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    background: rgba(0,0,0,0.3);
}

.pane-btn:hover {
    background: var(--pane-accent, #C1A162);
    color: #0a0a0a;
}

.pane-moon {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    opacity: 0.3;
    pointer-events: none;
}

/* ============================================================
   SEKCJA SKIERKA (pod hero)
   ============================================================ */
.skierka-signature {
    padding: 4rem 1.5rem;
    background-color: #1a201c;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.signature-content {
    max-width: 600px;
    margin: 0 auto;
}

.signature-logo {
    max-height: 60px;
    width: auto;
    margin: 0 auto 1.5rem;
    filter: invert(1);
    display: block;
}

.signature-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: #A5A296;
    font-style: italic;
    font-weight: 300;
}

/* ============================================================
   DWIE KOLUMNY TREŚCI
   ============================================================ */
.dual-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    .dual-content {
        grid-template-columns: 1fr 1fr;
    }
}

.brand-column {
    padding: 3rem 1.5rem;
}

.brand-column--kuznia {
    background-color: #1e1a17;
    color: #E6D7C2;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-column--farma {
    background-color: #1a201c;
    color: #E6E4DD;
}

@media (min-width: 768px) {
    .brand-column {
        padding: 4rem 3rem;
    }
    .brand-column--kuznia {
        border-right: 1px solid rgba(255,255,255,0.08);
        border-bottom: none;
    }
}

.brand-section {
    margin-bottom: 5rem;
}

.brand-section:last-child {
    margin-bottom: 0;
}

.brand-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    color: #D97B3A;
    margin-bottom: 1.5rem;
    border-left: 3px solid #D97B3A;
    padding-left: 1rem;
}

.brand-column--farma .brand-heading {
    color: #C1A162;
    border-color: #C1A162;
}

/* ============================================================
   MOBILNE USTAWIENIA SZCZEGÓŁOWE
   ============================================================ */
@media (max-width: 767px) {
    .pane-logo {
        max-height: 80px;
    }
    .pane-title {
        font-size: 1.8rem;
    }
    .pane-subtitle {
        font-size: 0.7rem;
    }
    .brand-column {
        padding: 2.5rem 1.2rem;
    }
    .brand-heading {
        font-size: 1.6rem;
    }
}

/* ============================================================
   BRAND CONTENT SWITCHER
   ============================================================ */
.brand-content-wrapper {
    background-color: #1a201c;
    min-height: 50vh;
}

.brand-content {
    display: none;
    animation: fadeSlideIn 0.5s ease;
}

.brand-content.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
    .brand-content-inner {
        padding: 5rem 3rem;
    }
}

/* Styl dla treści Kuźni */
.brand-content--kuznia {
    background-color: #1e1a17;
    color: #E6D7C2;
}

.brand-content--kuznia .brand-heading {
    color: #D97B3A;
    border-color: #D97B3A;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid #D97B3A;
}

/* Karty rzemiosła (Kuźnia) */
.craft-card {
    background: #2a211a;
    border: 1px solid rgba(217, 123, 58, 0.15);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.craft-card:hover {
    border-color: #D97B3A;
    background: #322820;
}

.craft-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.craft-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #F0B27A;
    margin-bottom: 0.8rem;
}

/* Cytat kuźni */
.kuznia-quote {
    text-align: center;
    padding: 2rem;
    background: rgba(217, 123, 58, 0.05);
    border: 1px solid rgba(217, 123, 58, 0.2);
    position: relative;
}

.quote-mark {
    font-size: 5rem;
    color: #D97B3A;
    opacity: 0.2;
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-family: serif;
    line-height: 1;
}

.kuznia-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: #E6D7C2;
    margin-bottom: 0.5rem;
}

.kuznia-quote footer {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #D97B3A;
}

/* Powiększone logo Skierki */
.skierka-signature .signature-logo {
    max-height: 100px;
    width: auto;
}

/* Domyślne przyciski (do kontaktu) */
.pane-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--pane-accent, #C1A162);
    color: var(--pane-accent, #C1A162);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    background: rgba(0,0,0,0.3);
    cursor: pointer;
}

/* ============================================================
   ELEGANCKA SEKCJA LOGOTYPÓW – ZAWSZE W JEDNEJ LINII
   ============================================================ */
.brands-strip {
    background-color: #232a25;
    padding: 2rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(193, 161, 98, 0.15);
    overflow: hidden; /* zapobiega wychodzeniu poza ekran */
}

.brands-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 3rem); /* płynny odstęp – mniejszy na telefonach */
    flex-wrap: nowrap; /* BEZWZGLĘDNIE bez zawijania */
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.brand-logo-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
    flex-shrink: 1; /* pozwala na kurczenie */
    min-width: 0;    /* potrzebne, by flexbox mógł zmniejszyć element */
}

.brand-logo-btn:hover {
    transform: scale(1.08);
}

.brand-logo-img {
    height: auto;
    width: auto;
    max-height: 160px; /* domyślnie (desktop) */
    filter: invert(1) drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    display: block;
}

.brand-logo-center {
    margin: 0 clamp(0.2rem, 1vw, 1rem);
    flex-shrink: 1;
    min-width: 0;
}

.brand-logo-main {
    height: auto;
    width: auto;
    max-height: 190px; /* domyślnie */
    filter: invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    display: block;
}

.brands-strip-text {
    color: #A5A296;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    margin-top: 1rem;
    padding: 0 0.5rem;
}

/* ============================================================
   MOBILE – skalowanie, by zmieścić w jednej linii
   ============================================================ */
@media (max-width: 480px) {
    .brand-logo-img {
        max-height: 80px;
    }
    .brand-logo-main {
        max-height: 100px;
    }
    .brands-strip-inner {
        gap: 2.0rem;
    }
    .brands-strip-text {
        font-size: 0.9rem;
    }
}
/* ============================================================
   ZAKŁADKI PRZEŁĄCZAJĄCE
   ============================================================ */
.brand-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    background-color: #1a201c;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand-tab {
    background: none;
    border: none;
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A5A296;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}
.brand-tab.active {
    color: #C1A162;
    border-bottom-color: #C1A162;
}
.brand-tab:hover {
    color: #E6E4DD;
}

/* ============================================================
   PRZEŁĄCZANIE TREŚCI
   ============================================================ */
.brand-content {
    display: none;
    animation: fadeSlideIn 0.5s ease;
}
.brand-content.active {
    display: block;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.brand-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Kuźnia tło */
.brand-content--kuznia {
    background-color: #1e1a17;
    color: #E6D7C2;
}

/* Strzałka w przycisku */
.pane-btn-arrow {
    display: inline-block;
    margin-left: 0.5rem;
    animation: bounce 1.5s infinite;
    font-size: 1.2em;
    line-height: 0;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Karty rzemiosła */
.craft-card {
    background: #2a211a;
    border: 1px solid rgba(217, 123, 58, 0.15);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}
.craft-card:hover {
    border-color: #D97B3A;
    background: #322820;
}
.craft-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}
.craft-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #F0B27A;
    margin-bottom: 0.8rem;
}

/* Cytat Kuźni */
.kuznia-quote {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(217, 123, 58, 0.03);
    border: 1px solid rgba(217, 123, 58, 0.15);
}
.kuznia-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-style: italic;
    color: #E6D7C2;
    margin-bottom: 0.5rem;
}
.kuznia-quote footer {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #D97B3A;
}

/* ============================================================
   HEADER – DOPRACOWANE LOGO I MOBILE
   ============================================================ */

/* Wspólne dla headera */
nav#navbar.glass-panel {
    padding-top: 20px;
    padding-bottom: 20px;
    transition: padding 0.4s ease, background 0.4s ease, transform 0.3s ease;
}
@media (min-width: 768px) {
    nav#navbar.glass-panel {
        padding-top: 28px;
        padding-bottom: 28px;
    }
}
nav#navbar.glass-panel.scrolled {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
nav#navbar.nav-hidden {
    transform: translateY(-100%);
}

/* Logo tekstowe – podstawowe style */
.brand-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    color: #C1A162;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    display: inline-block;
    padding: 0 1.5rem;
    letter-spacing: 0.35em;
    transition: font-size 0.4s ease, color 0.3s ease;
    text-shadow: 0 0 20px rgba(193, 161, 98, 0.3);
}
.brand-logo-text:hover {
    color: #E2CFA0;
    text-shadow: 0 0 30px rgba(193, 161, 98, 0.5);
}

/* Linie ozdobne – domyślnie włączone */
.brand-logo-text::before,
.brand-logo-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: rgba(193, 161, 98, 0.4);
    transition: width 0.4s ease, background 0.3s ease;
}
.brand-logo-text::before {
    right: 100%;
    margin-right: 1rem;
}
.brand-logo-text::after {
    left: 100%;
    margin-left: 1rem;
}
.brand-logo-text:hover::before,
.brand-logo-text:hover::after {
    background: rgba(193, 161, 98, 0.7);
    width: 40px;
}

/* Rozmiary responsywne logo */
@media (max-width: 479px) {
    .brand-logo-text {
        font-size: 0.85rem;
        letter-spacing: 0.2em;
        padding: 0 0.8rem;
    }
    .brand-logo-text::before,
    .brand-logo-text::after {
        display: none; /* oszczędzamy miejsce */
    }
}
@media (min-width: 480px) and (max-width: 767px) {
    .brand-logo-text {
        font-size: 1.1rem;
        letter-spacing: 0.3em;
        padding: 0 1rem;
    }
    .brand-logo-text::before,
    .brand-logo-text::after {
        width: 20px;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .brand-logo-text {
        font-size: 1.7rem;
        letter-spacing: 0.45em;
    }
    .brand-logo-text::before,
    .brand-logo-text::after {
        width: 45px;
    }
}
@media (min-width: 1024px) {
    .brand-logo-text {
        font-size: 2.2rem;
        letter-spacing: 0.5em;
    }
    .brand-logo-text::before,
    .brand-logo-text::after {
        width: 55px;
    }
}

/* Zmniejszenie logo przy scrolled */
nav#navbar.glass-panel.scrolled .brand-logo-text {
    font-size: 0.85rem !important;
    letter-spacing: 0.25em !important;
}
@media (min-width: 768px) {
    nav#navbar.glass-panel.scrolled .brand-logo-text {
        font-size: 1.2rem !important;
    }
}
nav#navbar.glass-panel.scrolled .brand-logo-text::before,
nav#navbar.glass-panel.scrolled .brand-logo-text::after {
    width: 20px !important;
}

/* Przyciski marek – dopasowanie do mobili */
.brand-pill {
    background: transparent;
    border: 1px solid rgba(193, 161, 98, 0.3);
    color: #C1A162;
    padding: 0.4rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
@media (max-width: 479px) {
    .brand-pill {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
}
.brand-pill:hover,
.brand-pill.active {
    background: #C1A162;
    color: #1a201c;
    border-color: #C1A162;
}
.brand-pill-icon {
    width: 18px;
    height: 18px;
}
@media (max-width: 479px) {
    .brand-pill-icon {
        width: 16px;
        height: 16px;
    }
}

/* Ikony (konto, koszyk) – nieco mniejsze na mobile */
.header-icon-link svg {
    width: 18px;
    height: 18px;
}
@media (min-width: 480px) {
    .header-icon-link svg {
        width: 20px;
        height: 20px;
    }
}

/* Hamburger – bez zmian */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 70;
}
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #C1A162;
    transition: all 0.3s ease;
}
.hamburger-btn:hover .hamburger-line {
    background: #ffffff;
}

/* Menu pełnoekranowe */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    background: rgba(26, 32, 28, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}
.fullscreen-menu.open {
    opacity: 1;
    visibility: visible;
}
.menu-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    font-size: 1.2rem;
}
.menu-link:hover {
    color: #C1A162;
}