/* ==========================================================================
   ZMIENNE KOLORYSTYCZNE & BAZA
   ========================================================================== */
:root {
    --bg-body: #121212;
    --bg-header: rgba(24, 24, 24, 0.96);
    --bg-card: #1c1c1c;
    --bg-card-hover: #242424;
    --bg-input: #262626;
    --bg-light: #161616;
    --text-main: #f0f0f0;
    --text-muted: #9e9e9e;
    --border-color: #303030;
    --border-light: #424242;
    
    /* Główny czerwony motyw */
    --primary: #ff5252;
    --primary-hover: #ff6b6b;
    --primary-dark: #d32f2f;
    --primary-glow: rgba(255, 82, 82, 0.25);
    
    /* Przyciski portali i akcji */
    --accent-olx: #002f34;
    --accent-olx-hover: #00474f;
    --accent-allegro: #ff5a00;
    --accent-allegro-hover: #e04f00;
    --accent-phone: #252525;
    --accent-phone-hover: #2e2e2e;
    
    --success-bg: #14291e;
    --success-text: #4ade80;
    --error-bg: #381616;
    --error-text: #f87171;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

body.light-mode {
    --bg-body: #f8f9fa;
    --bg-header: rgba(255, 255, 255, 0.96);
    --bg-card: #ffffff;
    --bg-card-hover: #f1f3f5;
    --bg-input: #f1f3f5;
    --bg-light: #e9ecef;
    --text-main: #1f2429;
    --text-muted: #6a737d;
    --border-color: #e1e4e8;
    --border-light: #d1d5da;
    --primary: #d32f2f;
    --primary-hover: #b71c1c;
    --primary-glow: rgba(211, 47, 47, 0.15);
    --accent-phone: #f1f3f5;
    --accent-phone-hover: #e4e7eb;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.25s ease, color 0.25s ease;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
    background-color: #0a0a0a;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.top-bar-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 12px; 
    flex-wrap: nowrap;
}
.top-info { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    flex-wrap: nowrap;
    overflow: hidden;
}
.top-info span, .top-info a { 
    display: inline-flex; 
    align-items: center; 
    gap: 5px; 
}
.top-info i { color: var(--primary); }
.top-info a:hover { color: var(--primary-hover); }
.top-socials { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    flex-shrink: 0;
}
.top-socials a {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
}
.top-socials a:hover { color: var(--primary); }

/* ==========================================================================
   HEADER & NAWIGACJA
   ========================================================================== */
header {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}
.nav-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 0; 
    gap: 16px; 
    position: relative;
}
.nav-left { display: flex; align-items: center; gap: 32px; }
.logo img { height: 44px; width: auto; object-fit: contain; vertical-align: middle; }

.main-menu ul { display: flex; gap: 24px; }
.main-menu a {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}
.main-menu a:hover, .main-menu a.active { color: var(--text-main); }
.main-menu a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    margin-top: 4px;
    border-radius: 2px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}

.search-container { position: relative; width: 240px; }
.search-input {
    width: 100%;
    padding: 8px 36px 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    font-family: inherit;
    font-size: 0.85rem;
    background-color: var(--bg-input);
    color: var(--text-main);
    transition: all 0.2s ease;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-glow); }
.search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

/* Breadcrumb */
.breadcrumb {
    padding: 16px 0 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-main); font-weight: 600; }

/* ==========================================================================
   STRONA GŁÓWNA (INDEX.HTML)
   ========================================================================== */
.hero-section {
    padding: 50px 0 40px;
    background: radial-gradient(circle at 80% 20%, rgba(255, 82, 82, 0.08) 0%, transparent 60%);
    border-bottom: 1px solid var(--border-color);
}
.hero-container { max-width: 900px; text-align: left; }
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.hero-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 26px;
    max-width: 750px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--primary);
    color: #ffffff;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: transform 0.2s, background-color 0.2s;
}
.btn-hero-primary:hover { transform: translateY(-2px); background: var(--primary-hover); }
.btn-hero-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 13px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-hero-secondary:hover { border-color: var(--primary); transform: translateY(-2px); }

/* Pasek zalet (Features Bar) */
.features-bar {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
}
.feature-card i {
    font-size: 1.6rem;
    color: var(--primary);
    flex-shrink: 0;
}
.feature-card strong { display: block; font-size: 0.9rem; color: var(--text-main); }
.feature-card span { font-size: 0.78rem; color: var(--text-muted); line-height: 1.35; display: block; }

/* Sekcje Strony Głównej */
.home-section { padding: 46px 0; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 26px;
    gap: 14px;
    flex-wrap: wrap;
}
.section-title { font-size: 1.45rem; font-weight: 800; color: var(--text-main); }
.section-subtitle { font-size: 0.88rem; color: var(--text-muted); margin-top: 4px; }
.section-link { font-size: 0.88rem; font-weight: 700; color: var(--primary); }
.section-link:hover { text-decoration: underline; }

/* Jak Kupować (3 Kroki) */
.how-it-works-section {
    padding: 46px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 10px;
}
.step-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    position: relative;
}
.step-num {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 14px;
    font-size: 1.05rem;
}
.step-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}
.step-box p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* O projekcie DoSkładaka (Snippet) */
.about-snippet-section { padding: 46px 0 10px; }
.about-snippet-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
}
.about-snippet-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 12px;
}
.about-snippet-text strong { color: var(--text-main); }
.about-cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.btn-secondary-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
}
.btn-secondary-link:hover { text-decoration: underline; }

/* ==========================================================================
   WSPÓLNA SIATKA KART PRODUKTOWYCH (KATALOG & HOME)
   ========================================================================== */
.products-grid,
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.product-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
    overflow: hidden;
    display: block;
}
.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover .product-card-img { transform: scale(1.04); }

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card-meta {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}
.product-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}
.product-card-title a { color: var(--text-main); }
.product-card-title a:hover { color: var(--primary); }
.product-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 16px;
    flex: 1;
}
.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: auto;
}
.product-card-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}
.btn-card-action {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
}
.btn-card-action:hover { color: var(--primary); }

/* Odznaki (Badges) */
.badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
    pointer-events: none;
}
.badge {
    padding: 3px 8px;
    font-size: 0.70rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-sm);
}
.product-badge,
.badge-bestseller { background-color: var(--primary); }
.badge-new { background-color: #27ae60; }
.badge-strong { background-color: #8e44ad; }
.badge-warning { background-color: #d35400; }
.badge-soldout { background-color: #2c2c2c; border: 1px solid #444; color: #aaa; }
.badge-default { background-color: rgba(0, 0, 0, 0.75); }

/* ==========================================================================
   STRONA PRODUKTU (UKŁAD 2-KOLUMNOWY)
   ========================================================================== */
.product-wrapper { 
    display: grid; 
    grid-template-columns: 1.15fr 0.85fr; 
    gap: 32px; 
    margin: 10px 0 40px; 
    align-items: start; 
}
.product-col-main, 
.product-col-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Galeria */
.gallery-box { width: 100%; }
.main-image-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    margin-bottom: 10px;
    background: var(--bg-card);
    position: relative;
}
.main-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.badge-gallery-zoom {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

/* Przewijalne miniatury */
.thumbnails-wrapper {
    width: 100%;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 6px;
}
.thumbnails-wrapper::-webkit-scrollbar { width: 5px; }
.thumbnails-wrapper::-webkit-scrollbar-track { background: var(--bg-input); border-radius: 4px; }
.thumbnails-wrapper::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
.thumbnails-wrapper::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.thumbnails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumb {
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.65;
    transition: 0.2s;
    background: var(--bg-card);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.95; border-color: var(--border-light); }
.thumb.active { opacity: 1; border: 2px solid var(--primary); }

/* Prawy Panel Zakupowy */
.product-details {
    background: var(--bg-card);
    padding: 24px 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.product-details h1 { font-size: 1.65rem; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.product-meta { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 16px; display: flex; gap: 14px; }

.price-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 22px;
}
.price { font-size: 1.85rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.stock-status { font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* Kroki Zakupowe */
.config-step {
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
    margin-bottom: 20px;
}
.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.step-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.step-badge {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
}

/* ==========================================================================
   WARIANTY & PRZYCISKI WARIANTÓW (NOWE STYLE)
   ========================================================================== */
.variant-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    background-color: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    user-select: none;
}

.variant-btn:hover {
    border-color: var(--border-light);
    background-color: var(--bg-card-hover);
}

.variant-btn.active {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--primary-glow);
}

.variant-btn.active .swatch-circle {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

/* Próbki kolorów (swatch) */
.swatch-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-mode .swatch-circle {
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Obsługa wzoru szachownicy dla wariantu przezroczystego */
.swatch-circle[style*="transparent"] {
    background-color: #e8e8e8 !important;
    background-image:
        linear-gradient(45deg, #a0a0a0 25%, transparent 25%),
        linear-gradient(-45deg, #a0a0a0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #a0a0a0 75%),
        linear-gradient(-45deg, transparent 75%, #a0a0a0 75%) !important;
    background-size: 6px 6px !important;
    background-position: 0 0, 0 3px, 3px -3px, -3px 0px !important;
    border: 1px solid var(--border-light) !important;
}

/* Przyciski zakupu */
.action-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-buy:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-buy span { display: flex; align-items: center; gap: 10px; }
.btn-buy-badge {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.25);
    padding: 3px 8px;
    border-radius: 4px;
}
.btn-olx { background-color: var(--accent-olx); color: #ffffff; }
.btn-allegro { background-color: var(--accent-allegro); color: #ffffff; }

/* Bezpośredni kontakt */
.direct-order-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}
.direct-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.45;
}
.contact-subbox {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 14px;
}
.contact-subbox-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-phone-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--accent-phone);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 700;
}
.btn-phone-call i { color: var(--primary); }
.btn-phone-call:hover {
    background: var(--accent-phone-hover);
    border-color: var(--primary);
}

.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 14px 0;
    text-transform: uppercase;
}
.divider-text::before, .divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}
.divider-text span { padding: 0 10px; }

/* Formularz kontaktowy */
.contact-form-box { margin-top: 4px; }
.input-message, .input-phone {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    background-color: var(--bg-card);
    color: var(--text-main);
}
.input-message:focus, .input-phone:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 2px var(--primary-glow); 
}
.input-message { resize: vertical; min-height: 65px; }
.form-row-bottom { display: flex; gap: 10px; margin-top: 8px; }
.input-phone { flex: 1; }
.btn-submit {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.btn-submit:hover { background-color: var(--primary-hover); }

#formStatus {
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: none;
}
.status-success { background-color: var(--success-bg); color: var(--success-text); border: 1px solid var(--success-text); }
.status-error { background-color: var(--error-bg); color: var(--error-text); border: 1px solid var(--error-text); }

/* Sekcja Opisu, Specyfikacji i FAQ (Lewa Kolumna) */
.product-info-box { width: 100%; }
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
}
.info-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
.info-section-title i {
    color: var(--primary);
    font-size: 1rem;
}
.description-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.description-text p { margin-bottom: 10px; }
.description-text p:last-child { margin-bottom: 0; }
.description-text strong { color: var(--text-main); }

.specs-grid {
    display: flex;
    flex-direction: column;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 0.85rem;
}
.specs-grid li {
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
}
.specs-grid li:last-child { border-bottom: none; }
.specs-grid strong {
    color: var(--text-main);
    font-weight: 600;
    text-align: right;
}

/* FAQ */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.faq-question {
    padding: 12px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
}
.faq-question:hover { color: var(--primary); }
.faq-answer {
    padding: 0 14px 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Polecane Produkty (Prawa Kolumna) */
.related-section { width: 100%; }
.related-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
}
.related-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.related-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}
.related-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    background: var(--bg-card-hover);
}
.related-img {
    width: 68px;
    height: 52px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    background: var(--bg-light);
    flex-shrink: 0;
}
.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.related-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 2px;
    line-height: 1.3;
}
.related-price {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary);
}
.related-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: transform 0.2s ease, color 0.2s ease;
}
.related-card:hover .related-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

/* ==========================================================================
   THEME TOGGLE & LIGHTBOX
   ========================================================================== */
.theme-toggle-btn {
    position: fixed; bottom: 20px; right: 20px;
    width: 42px; height: 42px; border-radius: 50%;
    background-color: var(--bg-card); color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md); cursor: pointer; z-index: 999;
    display: flex; align-items: center; justify-content: center;
}
.theme-toggle-btn:hover { color: var(--primary); border-color: var(--primary); }

.lightbox {
    display: none; position: fixed; z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center; align-items: center;
}
.lightbox-img-wrapper { width: 90%; height: 90vh; display: flex; justify-content: center; align-items: center; }
.lightbox-content { max-width: 100%; max-height: 100%; border-radius: 4px; cursor: zoom-in; }
.close-btn { position: absolute; top: 20px; right: 24px; color: white; font-size: 32px; cursor: pointer; z-index: 10001; }
.prev, .next { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 28px; padding: 14px 18px; cursor: pointer; background: rgba(0, 0, 0, 0.4); border-radius: 4px; z-index: 10000; }
.prev:hover, .next:hover { color: var(--primary); }
.prev { left: 16px; } .next { right: 16px; }

/* ==========================================================================
   FOOTER (3-KOLUMNOWY)
   ========================================================================== */
footer {
    background-color: #0a0a0a;
    color: var(--text-muted);
    padding: 46px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 36px;
    margin-bottom: 36px;
}
.footer-col h4 {
    color: #ffffff;
    margin-bottom: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.footer-col p {
    font-size: 0.82rem;
    line-height: 1.6;
}
.footer-col ul li {
    margin-bottom: 8px;
    font-size: 0.84rem;
}
.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 3px;
}
.footer-col ul li i {
    color: var(--primary);
    margin-right: 8px;
    width: 14px;
}

.footer-badges {
    border-top: 1px solid #1c1c1c;
    border-bottom: 1px solid #1c1c1c;
    padding: 16px 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.footer-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-badge-item i {
    color: var(--primary);
    font-size: 0.95rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #777;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom a:hover { color: var(--text-main); }

/* ==========================================================================
   RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: 1fr; gap: 10px; }
    .products-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; gap: 16px; }

    .product-wrapper { display: flex; flex-direction: column; gap: 20px; margin-top: 10px; }
    .product-col-main, .product-col-side { display: contents; }
    .gallery-box { order: 1; }
    .product-details { order: 2; padding: 20px; }
    .product-info-box { order: 3; }
    .related-section { order: 4; }
    .info-card, .related-box { padding: 18px 20px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    .container { padding: 0 12px; }
    
    .top-bar { padding: 5px 0; font-size: 0.70rem; }
    .top-bar-flex { 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
        gap: 6px; 
        flex-wrap: nowrap;
    }
    .top-info { 
        gap: 8px; 
        font-size: 0.70rem;
        flex-shrink: 1;
        min-width: 0;
    }
    .top-info span { white-space: nowrap; gap: 3px; }
    .top-info i { font-size: 0.72rem; }
    .top-socials { gap: 6px; font-size: 0.76rem; flex-shrink: 0; }
    .top-socials .social-label { display: none; }

    .nav-flex { padding: 8px 0; }
    .hamburger { display: block; }
    .logo img { height: 38px; }

    .search-container { width: auto; flex: 1; max-width: 150px; margin-left: auto; }
    .search-input { padding: 6px 28px 6px 10px; font-size: 0.75rem; }

    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        padding: 16px 20px;
        z-index: 1000;
    }
    .main-menu.active { display: block; }
    .main-menu ul { flex-direction: column; gap: 0; }
    .main-menu a {
        padding: 12px 0;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border-color);
    }
    .main-menu li:last-child a { border-bottom: none; }

    .hero-content h1 { font-size: 1.85rem; }
    .hero-content p { font-size: 0.92rem; }
    .hero-buttons { flex-direction: column; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
    .products-grid, .catalog-grid { grid-template-columns: 1fr; gap: 16px; }

    .thumbnails { grid-template-columns: repeat(4, 1fr); }
    .specs-grid li { flex-direction: column; align-items: flex-start; gap: 2px; }
    .specs-grid strong { text-align: left; }
    .form-row-bottom { flex-direction: column; }
    .btn-submit { width: 100%; padding: 12px; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-badges { flex-direction: column; align-items: flex-start; gap: 10px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}