@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- RESET & BASE --- */
* { 
    box-sizing: border-box; margin: 0; padding: 0; 
    outline: none; -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* FIX DLA IPHONE */
input, select, textarea { font-size: 16px !important; }

h1, h2, h3, h4, .brand-font {
    font-family: 'Outfit', sans-serif; 
    color: #0f172a;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

.page { display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* --- NAVBAR --- */
.navbar {
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0; z-index: 1000;
    display: flex; align-items: center;
}

.nav-grid {
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 40px; align-items: center; width: 100%;
}

.logo-link { display: flex; align-items: center; }
.logo-img { height: 32px; object-fit: contain; }

.search-container { position: relative; max-width: 500px; width: 100%; margin: 0 auto; }

.search-input {
    width: 100%; padding: 12px 20px 12px 48px;
    border: 1px solid #e2e8f0; border-radius: 50px;
    background: #f1f5f9; font-size: 16px; color: #334155; transition: all 0.2s;
}
.search-input:focus { background: #fff; border-color: #cbd5e1; box-shadow: 0 0 0 4px rgba(226, 232, 240, 0.6); }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; }

/* Kontener dla ikon (Serce, Konto, Koszyk) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px; /* Odstęp między ikonami */
}

/* Uniwersalna klasa dla przycisków w nawigacji */
.nav-icon-btn { 
    position: relative; 
    padding: 10px; 
    color: #1e293b; 
    border-radius: 50%; /* Okrągły hover */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s; 
}
.nav-icon-btn:hover { 
    transform: scale(1.1); 
    background-color: #f1f5f9; 
}

.cart-badge {
    position: absolute; top: 0; right: 0;
    background: #0f172a; color: white;
    font-size: 10px; font-weight: 700;
    height: 16px; width: 16px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
    transform: translate(2px, -2px); /* Lekkie przesunięcie badge'a */
}

/* --- ANIMACJA STRON --- */
@keyframes page-enter {
    0% { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}
.page-animation-container {
    animation: page-enter 0.4s ease-out forwards;
    width: 100%; transform-origin: center top; 
}

/* --- HOME FILTERS --- */
.filters-panel {
    background: #ffffff; padding: 20px 0;
    border-bottom: 1px solid #e2e8f0; margin-bottom: 40px;
}
.filters-scroll {
    display: flex; gap: 12px; overflow-x: auto;
    padding-bottom: 5px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.filter-chip {
    padding: 8px 20px; border-radius: 30px;
    background: #ffffff; border: 1px solid #e2e8f0;
    color: #64748b; font-size: 0.9rem; font-weight: 500;
    white-space: nowrap; transition: all 0.2s;
}
.filter-chip:hover, .filter-chip.active {
    background: #0f172a; color: #ffffff; border-color: #0f172a;
}

/* --- PRODUCT CARD (HOME) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px; margin-bottom: 60px;
}

.product-card {
    background: #fff; border-radius: 20px;
    border: 1px solid #f1f5f9; overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }

.card-img-container {
    aspect-ratio: 1/1; 
    background: #f8fafc; position: relative; overflow: hidden; cursor: pointer;
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .card-img { transform: scale(1.05); }

.card-details { padding: 16px; }
.card-title { 
    font-size: 1rem; margin-bottom: 5px; font-weight: 600; color: #1e293b; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}

.plant-specs { display: flex; gap: 8px; margin: 8px 0; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
.spec-item { 
    font-size: 0.7rem; background: #f1f5f9; color: #64748b; 
    padding: 3px 6px; border-radius: 6px; font-weight: 500;
    display: flex; align-items: center; gap: 4px;
}

.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.price-tag { font-size: 1.1rem; color: #0f172a; font-weight: 700; }

.btn-add-mini {
    width: 32px; height: 32px; border-radius: 50%;
    background: #0f172a; color: white;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
}
.btn-add-mini:hover { transform: scale(1.1); background: #334155; }

/* --- PRODUCT DETAIL PAGE --- */
.product-page-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; padding: 60px 0; align-items: start;
}
.detail-gallery {
    background: transparent; border: none; padding: 0;
    display: flex; flex-direction: column; gap: 20px;
}
.gallery-main-frame {
    position: relative; width: 100%; aspect-ratio: 1/1;
    background: #fff; border-radius: 32px; border: 1px solid #f1f5f9;
    overflow: hidden;
}
.gallery-main-img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.9); color: #0f172a;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, background 0.2s;
}
.gallery-arrow:active { transform: translateY(-50%) scale(0.9); }
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }

.gallery-thumbs {
    display: flex; gap: 16px; overflow-x: auto;
    padding-bottom: 4px; scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.thumb-btn {
    width: 80px; height: 80px; border-radius: 16px;
    border: 2px solid transparent; overflow: hidden;
    cursor: pointer; opacity: 0.6; transition: all 0.2s;
    background: #fff; flex-shrink: 0;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn:hover { opacity: 1; }
.thumb-btn.active { opacity: 1; border-color: #0f172a; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.detail-info { padding: 10px 0; }
.detail-info h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 10px; }
.detail-price-lg { font-size: 2rem; color: #64748b; font-weight: 500; margin-bottom: 30px; }
.detail-desc { font-size: 1.05rem; color: #475569; margin-bottom: 40px; }
.btn-primary {
    background: #0f172a; color: white; padding: 16px 32px; border-radius: 50px;
    font-weight: 600; letter-spacing: 0.02em; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    transition: background 0.2s; width: 100%; text-transform: uppercase; font-size: 0.9rem;
}
.btn-primary:hover { background: #334155; }

/* --- CART PAGE --- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding-bottom: 60px; }
.cart-items { display: flex; flex-direction: column; gap: 20px; }
.cart-item {
    display: grid; grid-template-columns: 90px 1fr auto; 
    gap: 20px; align-items: center; background: #fff; padding: 20px;
    border-radius: 20px; border: 1px solid #f1f5f9;
}
.cart-thumb { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; background: #f8fafc; }
.cart-actions-wrapper { display: flex; align-items: center; gap: 20px; }
.qty-selector {
    display: flex; align-items: center; gap: 10px;
    background: #f8fafc; padding: 6px 12px; border-radius: 50px;
}
.qty-btn { font-weight: 700; width: 24px; text-align: center; font-size: 1.1rem; }
.remove-btn-icon {
    color: #ef4444; padding: 10px; display: flex; align-items: center; justify-content: center;
    transition: color 0.2s;
}
.remove-btn-icon:hover { color: #dc2626; background: #fee2e2; border-radius: 50%; }
.cart-summary {
    background: #fff; padding: 30px; border-radius: 24px;
    border: 1px solid #f1f5f9; position: sticky; top: 100px;
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; color: #64748b; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.5rem; font-weight: 700; color: #0f172a; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8f0; margin-bottom: 30px; }

/* --- FOOTER --- */
.main-footer { background: #fff; border-top: 1px solid #e2e8f0; padding: 60px 0 30px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; color: #64748b; font-size: 0.95rem; cursor: pointer; }
.footer-col ul li:hover { color: #0f172a; }
.footer-copy { text-align: center; margin-top: 60px; color: #94a3b8; font-size: 0.85rem; }

/* --- TYPOGRAPHY --- */
.typography { max-width: 800px; margin: 0 auto; color: #334155; }
.typography h1, .typography h2, .typography h3 { font-family: 'Outfit', sans-serif; color: #0f172a; margin-top: 2em; margin-bottom: 0.8em; line-height: 1.2; }
.typography h1 { font-size: 2.2rem; margin-top: 0; }
.typography h2 { font-size: 1.5rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; }
.typography h3 { font-size: 1.25rem; }
.typography p { margin-bottom: 1.5em; font-size: 1rem; line-height: 1.7; color: #475569; }
.typography ul, .typography ol { margin-bottom: 1.5em; padding-left: 1.5em; }
.typography li { margin-bottom: 0.5em; line-height: 1.6; }
.typography strong { color: #0f172a; font-weight: 600; }
.typography a { color: #0f172a; text-decoration: underline; text-underline-offset: 2px; }
.typography a:hover { color: #334155; }

/* --- CONTACT --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 40px; }
.contact-card { background: #fff; padding: 40px; border-radius: 24px; border: 1px solid #f1f5f9; }
.contact-item { display: flex; gap: 20px; margin-bottom: 30px; }
.contact-icon { width: 48px; height: 48px; background: #f8fafc; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #0f172a; flex-shrink: 0; }

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .product-page-layout { gap: 40px; }
}

@media (max-width: 900px) {
    .product-page-layout { grid-template-columns: 1fr; gap: 30px; }
    .cart-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .detail-info h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .navbar { height: auto; padding: 15px 0; }
    .nav-grid { grid-template-columns: 1fr auto; gap: 15px; row-gap: 15px; }
    .search-container { grid-column: 1 / -1; order: 3; margin: 0; }
    
    .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product-card { border-radius: 16px; }
    .card-details { padding: 10px; }
    .card-title { font-size: 0.9rem; }
    .price-tag { font-size: 1rem; }
    .btn-add-mini { width: 30px; height: 30px; }
    .plant-specs { display: none; }

    .cart-item { grid-template-columns: 80px 1fr; grid-template-rows: auto auto; gap: 15px; }
    .cart-thumb { grid-row: 1 / 3; width: 80px; height: 80px; }
    .cart-actions-wrapper { grid-column: 2; grid-row: 2; width: 100%; justify-content: space-between; }
    
    .detail-info h1 { font-size: 2rem; }
    
    .gallery-arrow { display: flex; }
    .gallery-thumbs { display: none; }
    .gallery-main-frame { border-radius: 24px; }
    
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-card { padding: 24px; }
}

/* --- HOME LAYOUT & BANNERS --- */

/* 1. HERO BANNER (Główny na górze) */
.hero-wrapper {
    width: 100%;
    height: 400px; /* Desktop */
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
    background-color: #f1f5f9;
}

.hero-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-wrapper:hover .hero-img { transform: scale(1.02); }

.hero-content {
    position: absolute; bottom: 40px; left: 40px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px; border-radius: 20px;
}

/* 2. UKŁAD GŁÓWNY (Sidebar + Content) */
.home-grid-layout {
    display: grid;
    grid-template-columns: 260px 1fr; /* Sidebar 260px, reszta Content */
    gap: 40px;
    align-items: start;
}

/* 3. SIDEBAR (Filtry Desktop) */
.sidebar {
    background: #fff;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    position: sticky;
    top: 100px; /* Przyklejenie przy scrollowaniu */
}

.sidebar-section { margin-bottom: 30px; border-bottom: 1px solid #f1f5f9; padding-bottom: 20px; }
.sidebar-section:last-child { border-bottom: none; margin-bottom: 0; }
.sidebar-title { font-family: 'Outfit', sans-serif; font-weight: 700; margin-bottom: 15px; font-size: 1rem; }

.filter-checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.filter-checkbox {
    display: flex; align-items: center; gap: 10px;
    color: #64748b; cursor: pointer; font-size: 0.95rem;
}
.filter-checkbox:hover { color: #0f172a; }
.filter-checkbox input { accent-color: #0f172a; width: 16px; height: 16px; }

.price-inputs { display: flex; gap: 10px; align-items: center; }
.price-input {
    width: 100%; padding: 8px; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 0.9rem; text-align: center;
}

/* 4. TWIN BANNERS (Dwa obok siebie) */
.twin-banners-wrapper {
    display: flex; gap: 24px; margin-bottom: 40px;
}
.twin-banner {
    flex: 1; /* Każdy po 50% */
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}
.twin-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.twin-banner:hover img { transform: scale(1.05); }

/* 5. BOTTOM BANNER */
.bottom-banner {
    width: 100%; height: 300px;
    border-radius: 24px; overflow: hidden;
    margin-top: 60px; position: relative;
}

/* --- MOBILE & TABLET RESPONSIVENESS --- */
/* Ukrywamy filtry mobilne na desktopie */
.mobile-filters-container { display: none; }

@media (max-width: 900px) {
    /* Reset układu Grida na jedną kolumnę */
    .home-grid-layout { display: block; }
    
    /* Ukrywamy Sidebar desktopowy */
    .sidebar { display: none; }
    
    /* Pokazujemy filtry mobilne */
    .mobile-filters-container { display: block; margin-bottom: 30px; }
    
    /* Hero mniejszy na telefonie */
    .hero-wrapper { height: 300px; margin-bottom: 24px; }
    .hero-content { left: 20px; bottom: 20px; right: 20px; padding: 20px; }
    
    /* Banery bliźniacze jeden pod drugim */
    .twin-banners-wrapper { flex-direction: column; gap: 16px; margin-bottom: 30px; }
    .twin-banner { height: 200px; }
    
    .bottom-banner { height: 200px; margin-top: 40px; }
}

/* --- POWERED BY BAR --- */
.powered-by-bar {
    background: #0f172a; /* Ciemny granat (Twój kolor akcentu) */
    color: #94a3b8;      /* Szary tekst */
    text-align: center;
    padding: 12px 0;
    font-size: 0.75rem;  /* Mały rozmiar czcionki (12px) */
    letter-spacing: 0.03em;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.powered-link {
    color: #ffffff;      /* Nazwa systemu na biało */
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.powered-link:hover {
    opacity: 0.8;
}
/* --- CHECKOUT & FORMS --- */

/* Grupowanie sekcji w lewej kolumnie */
.section-box {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    padding: 24px;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

/* Grid formularza */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-left: 10px;
}

.form-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    background: #f8fafc;
    font-size: 16px;
    color: #334155;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 0 0 4px rgba(226, 232, 240, 0.6);
}

/* Lista płatności */
.payment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.2s;
}

.payment-option:hover {
    background: #f1f5f9;
}

.payment-option.active {
    background: #fff;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.payment-name {
    font-weight: 500;
    color: #0f172a;
}

/* Custom Radio Button */
.radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: border-color 0.2s;
}

.payment-option.active .radio-circle {
    border-color: #0f172a;
}

.radio-dot {
    width: 10px;
    height: 10px;
    background: #0f172a;
    border-radius: 50%;
}

/* Responsywność dla formularza */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr; /* Jedna kolumna na mobilkach */
        gap: 15px;
    }
    .section-box {
        padding: 20px;
    }
}