/*
Theme Name: TwojaPapiernia
Theme URI: http://twojapapiernia.pl
Author: Łukasz Dziubinski & Twój Pomocnik w programowaniu
Description: Profesjonalny, jasny motyw z efektem WOW dla usług premium.
Version: 5.1
*/

/* Reset podstawowych marginesów */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

/* Nowe tło strony pasujące idealnie do wtyczki */
body {
    background-color: #FCFBF4 !important; 
    color: #333 !important; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Luksusowy nagłówek (Header) - Ciemny fiolet z gradientem */
.site-header {
    background: linear-gradient(135deg, #1A0B2E 0%, #3B1C4A 100%);
    padding: 25px 0;
    border-bottom: 3px solid #D4AF37; /* Gruby złoty pasek na odcięcie */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); 
    position: relative;
    z-index: 10;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Luksusowe Logo Minimalistyczne */
.site-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Złoty, główny napis Drukarnia */
.logo-gold-gradient {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); 
    letter-spacing: 2px;
    line-height: 1;
}

/* Delikatny, subtelny dopisek ydi.pl */
.logo-domain {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 8px;
    color: #E2C779;
    margin-top: 2px;
    margin-left: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    opacity: 0.9;
}

/* Menu z zakładkami */
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

/* Prestiżowe przyciski 3D */
.btn-premium {
    text-decoration: none;
    color: #FDFBF4;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 25px;
    border-radius: 6px;
    background: linear-gradient(180deg, #3B1C4A 0%, #220F33 100%);
    border: 1px solid #D4AF37;
    box-shadow: inset 0px 1px 1px rgba(255, 255, 255, 0.2), 0px 4px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-premium:hover {
    background: linear-gradient(180deg, #D4AF37 0%, #AA8A2A 100%);
    color: #1A0B2E;
    border-color: #FDFBF4;
    box-shadow: inset 0px 1px 2px rgba(255, 255, 255, 0.5), 0px 6px 12px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Główny kontener strony */
.site-content {
    flex: 1;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Stopka */
.site-footer {
    background: linear-gradient(135deg, #1A0B2E 0%, #3B1C4A 100%);
    color: #D4AF37;
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
    margin-top: auto;
    border-top: 3px solid #D4AF37;
}
.site-footer small { color: #E2C779; }

/* Responsywność dla menu */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 20px; }
    .site-nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .logo-gold-gradient { font-size: 34px; }
}

/* ========================================================
   ZAKŁADKA KONTAKT - DESIGN PREMIUM
======================================================== */
.contact-page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0 60px 0;
}
.contact-hero {
    text-align: center;
    margin-bottom: 50px;
}
.contact-hero p {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: flex-start;
}
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-box {
    background: linear-gradient(135deg, #1A0B2E 0%, #3B1C4A 100%);
    padding: 40px 30px;
    border-radius: 16px;
    border-bottom: 3px solid #D4AF37;
    box-shadow: 0 15px 35px rgba(26, 11, 46, 0.3);
}
.contact-info-box h3 {
    font-family: 'Cinzel', serif;
    color: #D4AF37;
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
}
.contact-info-box p { margin-bottom: 8px; font-size: 14px; color: #E2C779; }
.contact-info-box strong { color: #D4AF37; }

.contact-form-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #E8E8E8;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
@media (max-width: 600px) { .form-row { flex-direction: column; gap: 0; } }

.contact-form-box .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.contact-form-box label {
    font-size: 13px;
    font-weight: 600;
    color: #1A0B2E;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-form-box input, .contact-form-box select, .contact-form-box textarea {
    padding: 15px;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: #FAFAFA;
    transition: 0.3s;
    color: #333;
}
.contact-form-box input:focus, .contact-form-box select:focus, .contact-form-box textarea:focus {
    outline: none;
    border-color: #D4AF37;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.btn-primary-contact {
    width: 100%; 
    background: linear-gradient(180deg, #D4AF37 0%, #AA8A2A 100%); 
    color: #1A0B2E; 
    padding: 18px; 
    font-size: 18px; 
    font-weight: 700; 
    border: 1px solid #FDFBF4; 
    border-radius: 10px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: inset 0px 1px 2px rgba(255, 255, 255, 0.5), 0px 6px 12px rgba(0, 0, 0, 0.4);
    font-family: 'Cinzel', serif;
    margin-top: 15px;
}
.btn-primary-contact:hover {
    transform: translateY(-2px);
    box-shadow: inset 0px 1px 2px rgba(255, 255, 255, 0.6), 0px 10px 20px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1);
}

.contact-success {
    background: #FCFBF4; color: #1A0B2E; padding: 20px; border-radius: 8px; border: 2px solid #D4AF37; margin-bottom: 30px; font-weight: 600; text-align: center; box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}
.contact-error {
    background: #fce8e6; color: #a50e0e; padding: 20px; border-radius: 8px; border: 2px solid #ea4335; margin-bottom: 30px; font-weight: 600; text-align: center;
}

/* ========================================================
   STYLOWANIE WOOCOMMERCE - KASA I PODSUMOWANIE
   ======================================================== */
.woocommerce-checkout .wp-block-woocommerce-checkout,
.woocommerce-order { 
    max-width: 1000px; margin: 40px auto !important; background: #ffffff; 
    padding: 40px; border-radius: 16px; 
    box-shadow: 0 20px 50px rgba(26, 11, 46, 0.08); 
    border: 2px solid #D4AF37; 
}
.woocommerce-checkout h2, .woocommerce-checkout h3, .woocommerce-checkout .wc-block-components-title,
.woocommerce-order-details__title, .woocommerce-column__title { 
    font-family: 'Cinzel', serif !important; color: #1A0B2E !important; 
}
.woocommerce-checkout .wc-block-components-checkout-place-order-button { 
    background: linear-gradient(180deg, #D4AF37 0%, #AA8A2A 100%) !important; 
    color: #1A0B2E !important; border: 1px solid #FDFBF4 !important; border-radius: 12px !important; 
    padding: 20px 30px !important; font-size: 20px !important; font-weight: 700 !important;
    font-family: 'Cinzel', serif !important; text-transform: uppercase; 
    box-shadow: inset 0px 1px 2px rgba(255, 255, 255, 0.5), 0px 6px 12px rgba(0, 0, 0, 0.5) !important; 
    transition: 0.3s !important; 
}
.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { 
    transform: translateY(-3px) !important; box-shadow: inset 0px 1px 2px rgba(255, 255, 255, 0.6), 0px 10px 20px rgba(0, 0, 0, 0.6) !important; filter: brightness(1.1) !important; 
}
.wc-block-components-notices__notice, .wc-block-components-notice-banner { display: none !important; }
.woocommerce-table--order-details { border: 1px solid #E8E8E8 !important; border-radius: 8px !important; overflow: hidden; }
.woocommerce-table--order-details th, .woocommerce-table--order-details td { padding: 15px !important; border-bottom: 1px solid #E8E8E8 !important; color: #333 !important; }
.woocommerce-customer-details { margin-top: 30px !important; border-top: 1px solid #D4AF37; padding-top: 20px; }

p.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
    font-size: 22px !important; color: #1A0B2E !important; margin-bottom: 30px !important; font-weight: 600 !important; border-bottom: 1px dashed #E8E8E8; padding-bottom: 20px; text-align: center;
}

/* ========================================================
   NAPRAWIONE, PERFEKCYJNE WYŚRODKOWANIE PODSUMOWANIA
   ======================================================== */
ul.woocommerce-order-overview {
    display: flex !important; 
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    list-style: none !important; 
    margin: 0 0 40px 0 !important; 
    padding: 30px 0 !important; 
    background: #FAFAFA !important; 
    border-radius: 8px !important; 
    border: 1px solid #E8E8E8 !important; 
    border-left: 4px solid #D4AF37 !important; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.03) !important;
}

ul.woocommerce-order-overview li {
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; /* Idealne wyśrodkowanie w pionie i poziomie */
    justify-content: center !important;
    margin: 0 !important; 
    padding: 0 15px !important; 
    flex: 1 1 0 !important; /* Wymuszenie identycznej szerokości każdej kolumny */
    box-sizing: border-box !important; 
    text-align: center !important; 
    position: relative !important; 
    font-size: 13px !important; 
    color: #888 !important; 
    text-transform: uppercase !important; 
    letter-spacing: 1px !important;
    border: none !important;
    border-right: 1px solid #E8E8E8 !important; /* Cienka pionowa kreska */
    float: none !important;
}

ul.woocommerce-order-overview li:last-child {
    border-right: none !important; /* Ukrycie linii za ostatnim elementem */
}

ul.woocommerce-order-overview li::before,
ul.woocommerce-order-overview li::after {
    display: none !important; /* Usunięcie starych separatorów WooCommerce */
}

ul.woocommerce-order-overview li strong {
    display: block !important;
    font-family: 'Cinzel', serif !important; 
    font-size: 19px !important; 
    color: #1A0B2E !important; 
    margin-top: 8px !important; 
    text-transform: none !important; 
    word-wrap: break-word !important;
    text-align: center !important;
    width: 100% !important; /* Sztywne wypełnienie bloku */
}

/* Wersja mobilna dla małych ekranów (układa w pionie) */
@media (max-width: 768px) {
    ul.woocommerce-order-overview { flex-direction: column !important; padding: 20px !important; }
    ul.woocommerce-order-overview li { 
        width: 100% !important; 
        flex: auto !important; 
        padding: 15px 0 !important; 
        border-right: none !important; 
        border-bottom: 1px solid #E8E8E8 !important; 
    }
    ul.woocommerce-order-overview li:last-child { border-bottom: none !important; }
}

/* ========================================================
   ZAKŁADKA REGULAMIN - DESIGN PREMIUM
======================================================== */
.legal-page-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 30px 20px 80px 20px;
}
.legal-hero {
    text-align: center;
    margin-bottom: 40px;
}
.legal-content {
    background: #ffffff;
    padding: 50px 60px;
    border-radius: 16px;
    border: 1px solid #E8E8E8;
    box-shadow: 0 20px 50px rgba(0,0,0,0.04);
}
.legal-content h2 {
    font-family: 'Cinzel', serif;
    color: #1A0B2E;
    font-size: 22px;
    margin-top: 45px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4); /* Złota, delikatna linia */
}
.legal-content h2:first-child {
    margin-top: 0;
}
.legal-content ol {
    padding-left: 20px;
    margin-bottom: 25px;
}
.legal-content ol li {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
    padding-left: 10px;
}
/* Magia: Złote numery na liście */
.legal-content ol li::marker {
    color: #D4AF37;
    font-weight: 700;
    font-size: 16px;
}
.legal-content strong {
    color: #1A0B2E;
    font-weight: 600;
}

/* Responsywność dla telefonów */
@media (max-width: 768px) {
    .legal-content { padding: 30px 20px; }
}