/* Custom CSS dla szablonu Geekbuying Coupons */

/* Import DM Sans font */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
    --color-bg: #f7fafc;
    --color-bg-alt: #fff;
    --color-text: #222;
    --color-text-muted: #888;
    --color-accent: #4299e1;
    --color-accent2: #e53e3e;
    --color-success: #48bb78;
    --color-warning: #f6e1b5;
    --color-sidebar: #fff;
}

.dark-theme {
    --color-bg: #181e26;
    --color-bg-alt: #232b36;
    --color-text: #f3f6fa;
    --color-text-muted: #b5c2d6;
    --color-accent: #4299e1;
    --color-accent2: #e53e3e;
    --color-success: #48bb78;
    --color-warning: #f6e1b5;
    --color-sidebar: #232b36;
}

body,
.main-container {
    font-family: 'DM Sans', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

/* Sidebar (blog, find-code, widgets) */
.blog-sidebar,
.find-code-sidebar,
.sidebar,
.widget {
    background: var(--color-sidebar);
    color: var(--color-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border-radius: 12px;
}

.widget-title {
    color: var(--color-text);
}

/* Blog page template layout (zmiana na zmienne) */
.blog-template .blog-sidebar {
    background: var(--color-sidebar);
    color: var(--color-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

/* Find Code page - zmienne */
.find-code-steps li {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.find-code-steps .step-icon {
    color: var(--color-accent);
}

.find-code-example {
    background: var(--color-bg);
    color: var(--color-text-muted);
}

.product-result {
    background: var(--color-bg-alt);
    color: var(--color-text);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.product-result .product-title {
    color: var(--color-text);
}

.product-result .product-title:hover {
    color: var(--color-accent);
}

.product-result .price {
    color: var(--color-success);
}

.product-result .buy-now-btn {
    background: var(--color-accent2);
    color: #fff;
}

.product-result .buy-now-btn:hover {
    background: #c53030;
}

.product-result .copy-code-btn {
    background: var(--color-accent);
    color: #fff;
}

.product-result .copy-code-btn.copied {
    background: var(--color-success);
}

.product-result .find-code-cta {
    background: var(--color-bg);
    color: var(--color-accent2);
}

.sitewide-codes {
    background: var(--color-warning);
    color: #b45309;
}

/* Dostosowanie innych sekcji do zmiennych */
.footer-bar,
.header-bar {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

/* Przykład dla innych elementów */
.main-article,
.howto-step,
.blog-card {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.header-bar {
    background: #1f2937;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    margin: 0;
    padding: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-menu>li {
    display: flex;
    align-items: center;
}

.main-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.main-menu a:hover {
    color: #f97316;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
    color: #fff;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.filters-dropdown {
    position: relative;
    margin-left: 24px;
}

.filters-btn {
    background: none;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
}

.filters-btn:hover {
    color: #f97316;
}

.filters-list {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    color: #222;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    min-width: 160px;
}

.filters-dropdown:hover .filters-list {
    display: block;
}

.filters-link {
    display: block;
    padding: 4px 0;
    color: #222;
    text-decoration: none;
}

.filters-link:hover {
    background: #f5f5f5;
}

.howto-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.howto-step {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 32px 16px;
    text-align: center;
    flex: 1 1 250px;
    max-width: 350px;
}

.howto-icon {
    display: block;
    margin: 0 auto 16px auto;
}

.howto-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.howto-desc {
    color: #666;
    font-size: 1rem;
}

.footer-bar {
    background: #1f2937;
    color: #fff;
    padding: 32px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links,
.footer-socials {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #f97316;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 24px;
    padding-bottom: 16px;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 16px;
    position: relative;
    min-width: 320px;
    max-width: 350px;
    display: grid;
    grid-template-rows: auto auto auto auto 1fr auto;
    min-height: 380px;
}

.code-hidden {
    filter: blur(4px);
    transition: filter 0.3s ease;
}

.code-visible {
    filter: none;
}

.copy-feedback {
    display: none;
    position: absolute;
    top: -30px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff6200;
    color: white;
    padding: 10px 20px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    font-size: 1.5rem;
    z-index: 100;
}

#load-more {
    display: none;
    margin: 20px auto;
    background: #ff6200;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.buy-now {
    background: #28a745;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    margin-top: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.buy-now:hover {
    background: #218838;
}

.bg-white {
    background: #fff;
}

.text-center {
    text-align: center;
}

.text-blue-500 {
    color: #2563eb;
}

.text-green-600 {
    color: #16a34a;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-orange-500 {
    color: #f97316;
}

.text-xs {
    font-size: 0.75rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.font-bold {
    font-weight: bold;
}

.font-semibold {
    font-weight: 600;
}

.line-through {
    text-decoration: line-through;
}

.rounded {
    border-radius: 8px;
}

.rounded-lg {
    border-radius: 12px;
}

.shadow-md {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.p-4 {
    padding: 16px;
}

.p-6 {
    padding: 24px;
}

.py-4 {
    padding-top: 16px;
    padding-bottom: 16px;
}

.py-8 {
    padding-top: 32px;
    padding-bottom: 32px;
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-4 {
    margin-top: 16px;
}

.max-w-2xl {
    max-width: 672px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.flex {
    display: flex;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.space-x-4>*+* {
    margin-left: 16px;
}

.space-x-6>*+* {
    margin-left: 24px;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

gap-4 {
    gap: 16px;
}

gap-6 {
    gap: 24px;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.z-50 {
    z-index: 50;
}

.shadow-md {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.rounded {
    border-radius: 8px;
}

.rounded-lg {
    border-radius: 12px;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
    border-radius: 16px;
}

.featured-section,
.about-section,
.howto-section,
.coupons-section,
.blog-section {
    margin-bottom: 48px;
}

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f97316;
    color: #fff;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
    font-weight: 600;
}

.main-price-old {
    color: #888;
    text-decoration: line-through;
    font-size: 1rem;
    margin: 8px 0 0 0;
}

.main-price-new {
    color: #16a34a;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.main-coupon-row {
    font-size: 1rem;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-coupon-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.2s;
}

.main-coupon-btn:hover {
    background: #1d4ed8;
}

.main-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.main-loadmore-btn {
    display: block;
    margin: 32px auto 0 auto;
    background: #ff6200;
    color: #fff;
    padding: 10px 32px;
    border-radius: 6px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.main-loadmore-btn:hover {
    background: #e55d00;
}

.main-loading {
    text-align: center;
    padding: 24px 0;
    display: none;
}

.main-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top: 4px solid #16a34a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.about-desc {
    max-width: 700px;
    margin: 0 auto;
    color: #444;
    font-size: 1.08rem;
    text-align: center;
}

.main-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 24px;
    text-align: left;
}

.main-content {
    font-size: 1.08rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 32px;
}

.main-thumb {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-bottom: 16px;
}

.main-date {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.main-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 16px;
    text-align: left;
}

.main-article-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.main-readmore {
    color: #2563eb;
    text-decoration: underline;
    font-size: 1rem;
    margin-top: 8px;
    display: inline-block;
}

.dark-theme .main-article,
.dark-theme .carousel-item,
.dark-theme .howto-step {
    background: #23272a;
    color: #e5e7eb;
    border: 1px solid #23272a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.dark-theme .main-thumb {
    background: #181a1b;
    border: 1px solid #23272a;
}

.dark-theme .main-content,
.dark-theme .about-desc {
    color: #e5e7eb;
    font-size: 1.13rem;
    line-height: 1.8;
}

.dark-theme .main-title,
.dark-theme .main-article-title,
.dark-theme .main-date,
.dark-theme .main-meta,
.dark-theme .howto-title,
.dark-theme .howto-desc {
    color: #e5e7eb;
}

/* Sekcja kuponów - profesjonalny układ */
.coupons-section {
    margin: 48px 0;
}

/* Grid dla kuponów - responsywny i czytelny */
.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

@media (min-width: 1200px) {
    .main-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .main-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* Karta kuponu - kompaktowa i czytelna */
.main-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 16px;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto auto auto 1fr auto;
    min-height: 380px;
}

.main-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Obraz produktu - kompaktowy i proporcjonalny */
.main-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.main-thumb:hover {
    opacity: 0.9;
}

/* Tytuł produktu */
.main-article-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #2d3748;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.2s ease;
}

.main-article-title:hover {
    color: #4299e1;
}

/* Ceny - wyraźne i czytelne */
.main-price-old {
    color: #a0aec0;
    text-decoration: line-through;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.main-price-new {
    color: #e53e3e;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Sekcja kodu rabatowego */
.main-coupon-row {
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.main-coupon-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 90px;
    text-align: center;
}

/* Kod rabatowy */
.code-hidden {
    display: none;
}

.code-visible {
    display: inline;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2d3748;
    background: #edf2f7;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Responsywność */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }

    .main-article {
        padding: 16px;
    }

    .main-thumb {
        height: 160px;
    }

    .main-article-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .main-thumb {
        height: 140px;
    }
}

/* Dark mode dla kuponów */
.dark-theme .main-article {
    background: #2d3748;
    border: 1px solid #4a5568;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.dark-theme .main-article:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dark-theme .main-article-title {
    color: #e2e8f0;
}

.dark-theme .main-price-old {
    color: #a0aec0;
}

.dark-theme .main-price-new {
    color: #fc8181;
}

.dark-theme .main-coupon-row {
    background: #4a5568;
    border-color: #718096;
    min-height: 40px;
    overflow: hidden;
}

.dark-theme .main-coupon-btn {
    background: #4299e1;
}

.dark-theme .main-coupon-btn:hover {
    background: #3182ce;
}

/* Style dla ikony potwierdzenia kopiowania */
.main-coupon-btn.copy-success {
    background: #48bb78;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.dark-theme .main-meta {
    color: #a0aec0;
}

.dark-theme .main-meta:before {
    color: #718096;
}

.dark-theme .code-visible {
    background: #4a5568;
    color: #e2e8f0;
    white-space: nowrap;
    flex-shrink: 0;
}

.dark-theme .buy-now {
    background: #48bb78;
}

.dark-theme .buy-now:hover {
    background: #38a169;
}

.dark-theme .main-thumb {
    background: #4a5568;
    border-color: #718096;
}

/* Badge "Fresh" dla nowych kuponów */
.fresh-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #48bb78;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark-theme .fresh-badge {
    background: #48bb78;
    color: white;
}

/* Poprawka pozycjonowania copy-feedback */
.copy-feedback {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #48bb78;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    display: none;
    z-index: 10;
    font-weight: 500;
}

/* Header sekcji kuponów */
.coupons-header {
    text-align: center;
    margin-bottom: 32px;
}

.coupons-subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin-top: 8px;
    font-weight: 400;
}

/* Footer sekcji kuponów */
.coupons-footer {
    text-align: center;
    margin-top: 32px;
}

.coupons-count {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 16px;
    font-style: italic;
}

.dark-theme .coupons-subtitle,
.dark-theme .coupons-count {
    color: #a0aec0;
}

.dark-theme .meta-item {
    color: #a0aec0;
}

.dark-theme .meta-label {
    color: #718096;
}

.dark-theme .meta-value {
    color: #a0aec0;
}

/* Metadane - kompaktowe i czytelne */
.main-meta {
    color: #718096;
    font-size: 0.75rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-meta:before {
    content: "•";
    color: #cbd5e0;
    font-weight: bold;
}

/* Kontener dla wszystkich metadanych w jednej linii */
.meta-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.meta-item {
    color: #718096;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.meta-label {
    font-weight: 500;
    color: #a0aec0;
}

.meta-value {
    color: #718096;
}

/* Przycisk Buy Now */
.buy-now {
    background: #48bb78;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: background 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    align-self: end;
}

.buy-now:hover {
    background: #38a169;
    text-decoration: none;
    color: white;
}

/* Feedback kopiowania */
.copy-feedback {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #48bb78;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    display: none;
    z-index: 10;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 48px;
    padding: 20px 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 24px;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto;
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-description p {
    margin-bottom: 16px;
}

.last-update {
    background: #f3f4f6;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #374151;
}

.update-label {
    font-weight: 600;
    color: #1f2937;
}

.update-time {
    color: #059669;
    font-family: 'Courier New', monospace;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* Info Tooltip */
.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.info-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.tooltip-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1f2937;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
}

.tooltip-content::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 12px;
    border: 6px solid transparent;
    border-bottom-color: #1f2937;
}

.info-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

/* Mniejsza wysokość dla featured kuponów */
.featured-grid .main-article {
    min-height: 280px;
    padding: 12px;
}

.featured-grid .main-thumb {
    height: 120px;
    margin-bottom: 12px;
}

.featured-grid .main-article-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.featured-grid .main-price-old,
.featured-grid .main-price-new {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.featured-grid .main-coupon-row {
    padding: 6px;
    margin-bottom: 8px;
    min-height: 32px;
}

.featured-grid .main-coupon-btn {
    padding: 4px 8px;
    font-size: 0.8rem;
    min-width: 70px;
}

.featured-grid .meta-container {
    margin-bottom: 6px;
}

.featured-grid .meta-item {
    font-size: 0.65rem;
}

.featured-grid .buy-now {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: 8px;
}

.featured-grid .featured-badge {
    font-size: 0.7rem;
    padding: 3px 6px;
    top: 8px;
    right: 8px;
}

.featured-grid .fresh-badge {
    font-size: 0.65rem;
    padding: 3px 6px;
    top: 8px;
    left: 8px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.blog-thumb {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.blog-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: #2563eb;
}

.blog-meta {
    margin-bottom: 12px;
}

.blog-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.blog-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-readmore {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.blog-readmore:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* SEO Content */
.seo-section {
    margin-top: 64px;
    padding: 40px 0;
    background: #f9fafb;
    border-radius: 16px;
}

.seo-content {
    max-width: 800px;
    margin: 0 auto;
    color: #374151;
    line-height: 1.7;
}

.seo-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px 0;
}

.seo-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin: 32px 0 16px 0;
}

.seo-content p {
    margin-bottom: 16px;
    font-size: 1rem;
}

/* Dark theme updates */
.dark-theme .hero-title {
    color: #f3f4f6;
}

.dark-theme .hero-description {
    color: #d1d5db;
}

.dark-theme .last-update {
    background: #374151;
    color: #d1d5db;
}

.dark-theme .update-label {
    color: #f3f4f6;
}

.dark-theme .update-time {
    color: #34d399;
}

.dark-theme .section-title {
    color: #f3f4f6;
}

.dark-theme .info-btn {
    color: #9ca3af;
}

.dark-theme .info-btn:hover {
    background: #374151;
    color: #d1d5db;
}

.dark-theme .blog-card {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.dark-theme .blog-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dark-theme .blog-title a {
    color: #f3f4f6;
}

.dark-theme .blog-title a:hover {
    color: #60a5fa;
}

.dark-theme .blog-date {
    color: #9ca3af;
}

.dark-theme .blog-excerpt {
    color: #d1d5db;
}

.dark-theme .blog-readmore {
    color: #60a5fa;
}

.dark-theme .blog-readmore:hover {
    color: #93c5fd;
}

.dark-theme .seo-section {
    background: #374151;
}

.dark-theme .seo-content {
    color: #d1d5db;
}

.dark-theme .seo-content h2,
.dark-theme .seo-content h3 {
    color: #f3f4f6;
}

/* Responsive */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tooltip-content {
        right: auto;
        left: 0;
        white-space: normal;
        max-width: 250px;
    }

    .tooltip-content::before {
        right: auto;
        left: 12px;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* Hamburger menu styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 120;
}

.menu-icon {
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    display: block;
    transition: all 0.3s;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100vw;
        width: 80vw;
        max-width: 320px;
        height: 100vh;
        background: #1f2937;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 24px 24px 24px;
        transition: left 0.3s;
        z-index: 110;
        overflow-y: auto;
    }

    .main-nav.open {
        left: 0;
    }

    .main-menu {
        flex-direction: column;
        gap: 18px;
        width: 100%;
    }

    .main-menu>li {
        width: 100%;
    }

    .main-menu a {
        width: 100%;
        padding: 12px 0;
        font-size: 1.1rem;
    }

    .header-container {
        padding-right: 12px;
    }
}

/* Hide nav on mobile by default */
@media (max-width: 900px) {
    .main-nav {
        display: flex;
    }
}

/* Language switcher dropdown */
.language-switcher {
    margin-left: 16px;
    position: relative;
    z-index: 200;
}

.lang-switcher {
    padding: 6px 32px 6px 10px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff url('data:image/svg+xml;utf8,<svg fill="%23333" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center/18px 18px;
    color: #222;
    min-width: 90px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.lang-switcher:focus {
    outline: 2px solid #4299e1;
}

/* Ukryj domyślne Polylang menu */
.header-actions .pll-switcher,
.main-menu .pll-switcher {
    display: none !important;
}

.old-coupon-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.95em;
    margin-right: 0.5em;
}

/* Custom language switcher dropdown with flags */
.custom-lang-switcher {
    position: relative;
    display: inline-block;
    margin-left: 16px;
    z-index: 300;
}

.lang-switcher-btn {
    background: #344a68;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 32px 6px 10px;
    font-size: 1rem;
    min-width: 90px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.lang-caret {
    margin-left: 8px;
    font-size: 0.9em;
    color: #888;
}

.lang-switcher-list {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    min-width: 140px;
    padding: 0;
    margin: 0;
    z-index: 999;
    list-style: none;
    overflow: hidden;
}

.lang-switcher-list.open {
    display: block;
}

.lang-switcher-item {
    padding: 0;
}

.lang-switcher-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #222;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.15s;
}

.lang-switcher-item.active a {
    font-weight: bold;
    background: #f5f5f5;
}

.lang-switcher-item a:hover {
    background: #f0f0f0;
}

.lang-switcher-item img {
    width: 20px;
    height: 14px;
    object-fit: contain;
    margin-right: 6px;
}

@media (max-width: 900px) {
    .custom-lang-switcher {
        margin-left: 0;
        margin-top: 12px;
    }
}

/* Blog page template layout */
.blog-template .blog-content-area {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 0;
}

.blog-template .blog-main {
    flex: 2 1 0;
}

.blog-template .blog-sidebar {
    flex: 0 0 320px;
    max-width: 320px;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 24px 18px;
    height: fit-content;
}

.blog-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

.blog-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.blog-meta {
    color: #888;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.blog-excerpt {
    color: #444;
    margin-bottom: 12px;
}

.blog-readmore {
    color: #4299e1;
    font-weight: 500;
    text-decoration: none;
    margin-top: auto;
    align-self: flex-start;
    transition: color 0.2s;
}

.blog-readmore:hover {
    color: #e53e3e;
}

/* Sidebar widgets */
.widget {
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 1000px) {
    .blog-template .blog-content-area {
        flex-direction: column;
        gap: 24px;
    }

    .blog-template .blog-sidebar {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        margin-top: 24px;
    }

    .blog-grid-2col {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

p a,
.seo-content p,
.blog-excerpt,
.blog-content p {
    color: inherit;
}

p a,
.seo-content p a,
.blog-excerpt a,
.blog-content p a {
    color: inherit;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.2s;
}

.dark-theme p a,
.dark-theme .seo-content p a,
.dark-theme .blog-excerpt a,
.dark-theme .blog-content p a {
    color: inherit;
    font-weight: bold;
}

/* Coupons searchbar styles */
.coupons-searchbar {
    max-width: 480px;
    margin: 0 auto 32px auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.searchbar-wrapper {
    position: relative;
    width: 100%;
}

.coupon-search-input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    border-radius: 32px;
    border: 1.5px solid #cbd5e1;
    font-size: 1.1rem;
    background: #fff;
    color: #222;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.coupon-search-input:focus {
    border-color: #4299e1;
    box-shadow: 0 2px 12px rgba(66, 153, 225, 0.08);
}

.searchbar-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
}

.coupon-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coupon-search-clear svg {
    display: block;
}

@media (max-width: 600px) {
    .coupons-searchbar {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .coupon-search-input {
        font-size: 1rem;
        padding: 12px 40px 12px 40px;
    }
}

/* Find Code page - UX redesign */
.find-code-header {
    max-width: 700px;
    margin: 0 auto 32px auto;
    text-align: center;
}

.find-code-steps {
    list-style: none;
    padding: 0;
    margin: 32px 0 0 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 32px;
}

@media (max-width: 900px) {
    .find-code-steps {
        flex-wrap: wrap;
    }
}

.find-code-steps li {
    background: #f7fafc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 24px 18px 18px 18px;
    min-width: 220px;
    max-width: 320px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.08rem;
    color: #222;
    position: relative;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #4299e1;
}

.find-code-example {
    display: block;
    margin-top: 10px;
    font-size: 0.98em;
    color: #888;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 4px 8px;
    word-break: break-all;
}

.find-code-form {
    display: flex;
    gap: 12px;
    margin: 40px auto 24px auto;
    max-width: 600px;
    justify-content: center;
}

.find-code-input {
    flex: 1 1 0;
    padding: 16px 20px;
    border-radius: 32px;
    border: 1.5px solid #cbd5e1;
    font-size: 1.15rem;
    background: #fff;
    color: #222;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.find-code-input:focus {
    border-color: #4299e1;
    box-shadow: 0 2px 12px rgba(66, 153, 225, 0.08);
}

.find-code-btn {
    background: #4299e1;
    color: #fff;
    border: none;
    border-radius: 32px;
    padding: 0 32px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 52px;
}

.find-code-btn:hover {
    background: #2563eb;
}

.find-code-result {
    margin-top: 32px;
    background: none;
    border-radius: 10px;
    padding: 0;
    min-height: 40px;
}

/* Wynik produktu - duża karta */
.product-result {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 32px 24px;
    max-width: 500px;
    margin: 0 auto 32px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-result .product-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: #f7fafc;
    transition: box-shadow 0.2s;
}

.product-result .product-img:hover {
    box-shadow: 0 4px 16px rgba(66, 153, 225, 0.13);
}

.product-result .product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s;
}

.product-result .product-title:hover {
    color: #4299e1;
}

.product-result .coupon-codefinder {
    font-size: 1.15rem;
    color: #222;
    margin-bottom: 10px;
    margin-top: 18px;
}

.product-result .code-copy-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.product-result .copy-code-btn {
    background: #4299e1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 18px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.product-result .copy-code-btn.copied {
    background: #48bb78;
}

.product-result .price {
    font-size: 1.25rem;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 18px;
}

.product-result .buy-now-btn {
    background: #e53e3e;
    color: #fff;
    border-radius: 8px;
    padding: 14px 36px;
    font-size: 1.15rem;
    margin-top: 18px;
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.08);
    transition: background 0.2s;
}

.product-result .buy-now-btn:hover {
    background: #c53030;
}

.no-coupon {
    color: #e53e3e;
    font-weight: 500;
    margin-bottom: 12px;
    text-align: center;
}

.sitewide-codes {
    background: #fff7e6;
    border-radius: 8px;
    padding: 14px 12px;
    margin-top: 10px;
    color: #b45309;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .find-code-template .find-code-content-area {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .find-code-header {
        padding: 0 8px;
    }

    .find-code-steps li {
        min-width: 0;
        max-width: 100%;
        padding: 18px 8px 12px 8px;
        font-size: 1rem;
    }

    .find-code-form {
        flex-direction: column;
        gap: 10px;
        max-width: 100%;
    }

    .product-result {
        padding: 18px 6px;
    }
}

/* CTA pod wynikiem */
.product-result .find-code-cta {
    margin-top: 18px;
    font-size: 1.08rem;
    color: #e53e3e;
    font-weight: 600;
    background: #fff7e6;
    border-radius: 8px;
    padding: 12px 10px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* DARK THEME for Find Code page and sidebar */
.dark-theme .find-code-steps li {
    background: #232b36;
    color: #f3f6fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.dark-theme .find-code-steps .step-icon {
    color: #4299e1;
}

.dark-theme .find-code-example {
    background: #1a202c;
    color: #b5c2d6;
}

.dark-theme .product-result {
    background: #232b36;
    color: #f3f6fa;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.dark-theme .product-result .product-title {
    color: #f3f6fa;
}

.dark-theme .product-result .product-title:hover {
    color: #4299e1;
}

.dark-theme .product-result .price {
    color: #48bb78;
}

.dark-theme .product-result .buy-now-btn {
    background: #e53e3e;
    color: #fff;
}

.dark-theme .product-result .buy-now-btn:hover {
    background: #c53030;
}

.dark-theme .product-result .copy-code-btn {
    background: #4299e1;
    color: #fff;
}

.dark-theme .product-result .copy-code-btn.copied {
    background: #48bb78;
}

.dark-theme .product-result .find-code-cta {
    background: #1a202c;
    color: #f3f6fa;
}

.dark-theme .sitewide-codes {
    background: #2d3748;
    color: #f6e1b5;
}

.dark-theme .find-code-sidebar {
    background: #232b36;
    color: #f3f6fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.dark-theme .widget-title {
    color: #f3f6fa;
}

.dark-theme .blog-template .blog-sidebar {
    background: var(--color-sidebar);
    color: var(--color-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* FAQ Accordion (Yoast FAQ Block) */
.schema-faq {
    max-width: 800px;
    margin: 40px auto;
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.schema-faq-section {
    background: var(--color-bg-alt);
    margin-bottom: 18px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: none;
    padding: 0 0;
    transition: background 0.2s;
}

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

.schema-faq-question {
    display: block;
    width: 100%;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    background: none;
    border: none;
    text-align: left;
    padding: 24px 32px 12px 32px;
    cursor: pointer;
    outline: none;
    position: relative;
    transition: color 0.2s, background 0.2s;
    border-radius: 0;
    box-shadow: none;
}

.schema-faq-question:after {
    content: '\25BC';
    position: absolute;
    right: 32px;
    top: 28px;
    font-size: 1rem;
    color: #b5c2d6;
    transition: transform 0.2s;
}

.schema-faq-section.open .schema-faq-question:after {
    transform: rotate(180deg);
}

.schema-faq-answer {
    max-height: 0;
    overflow: hidden;
    font-size: 1.05rem;
    color: var(--color-text);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.2s;
    padding: 0 32px;
    background: var(--color-bg-alt);
}

.schema-faq-section.open .schema-faq-answer {
    max-height: 500px;
    padding: 0 32px 24px 32px;
}

@media (max-width: 600px) {
    .schema-faq-section {
        margin-bottom: 12px;
    }

    .schema-faq-question {
        font-size: 1rem;
        padding: 18px 12px 8px 12px;
    }

    .schema-faq-answer,
    .schema-faq-section.open .schema-faq-answer {
        padding: 0 12px 16px 12px;
    }

    .schema-faq-question:after {
        right: 12px;
        top: 18px;
    }
}

.dark-theme .schema-faq-section {
    background: #232b36;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.dark-theme .schema-faq-question {
    color: #fff;
    background: none;
}

.dark-theme .schema-faq-answer {
    background: #232b36;
    color: #f3f6fa;
}

/* Blog Single Post Layout */
.blog-single-template .blog-single-content-area {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.blog-single-main {
    flex: 2 1 0;
    min-width: 0;
}

.blog-single-sidebar {
    flex: 0 0 320px;
    max-width: 320px;
    min-width: 220px;
    background: var(--color-sidebar);
    color: var(--color-text);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 24px 18px;
    height: fit-content;
}

.blog-single-thumb-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 32px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-single-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-breadcrumbs-wrap {
    margin-bottom: 16px;
}

.breadcrumbs {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    background: transparent;
    padding: 0;
}

.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.breadcrumbs .current {
    color: var(--color-text);
    font-weight: 600;
}

.breadcrumbs .sep {
    color: #cbd5e0;
}

.dark-theme .breadcrumbs a {
    color: #9ca3af;
}

.dark-theme .breadcrumbs a:hover {
    color: #60a5fa;
}

.dark-theme .breadcrumbs .current {
    color: #f3f6fa;
}

.dark-theme .breadcrumbs .sep {
    color: #4b5563;
}

.blog-single-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.blog-single-meta .main-author {
    font-weight: 500;
    color: var(--color-accent);
}

@media (max-width: 1000px) {
    .blog-single-template .blog-single-content-area {
        flex-direction: column;
        gap: 24px;
        padding: 24px 0;
    }

    .blog-single-sidebar {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        margin-top: 24px;
    }

    .blog-single-thumb-wrap {
        margin-bottom: 20px;
    }
}

.footer-menus-row {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-bottom: 18px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-menu a:hover {
    color: #f97316;
}

.footer-copyright {
    text-align: center;
    color: #fff;
    font-size: 1rem;
    margin-top: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

@media (max-width: 700px) {
    .footer-menus-row {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
}

/* -------------------------------------- */
/* Content images and search form styling */
/* -------------------------------------- */

/* Responsywne obrazy w treści wpisów/stron */
.main-content img,
.main-content figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Obsługa typowych klas WordPress (Gutenberg/Classic) */
.main-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.main-content .alignleft {
    float: left;
    margin: 0 16px 16px 0;
    max-width: min(50%, 480px);
}

.main-content .alignright {
    float: right;
    margin: 0 0 16px 16px;
    max-width: min(50%, 480px);
}

/* Figcaption/caption */
.main-content figure,
.main-content .wp-caption {
    margin: 18px 0;
    text-align: center;
}

.main-content figcaption,
.main-content .wp-caption .wp-caption-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}

/* Media w treści */
.main-content iframe,
.main-content video {
    max-width: 100%;
    border: 0;
    border-radius: 12px;
}

/* Na małych ekranach wyłącz floaty i dawaj pełną szerokość kontenera */
@media (max-width: 700px) {

    .main-content .alignleft,
    .main-content .alignright {
        float: none;
        display: block;
        max-width: 100%;
        margin: 12px auto;
    }
}

/* Estetyczny formularz wyszukiwania (domyślny WP i widget) */
.search-form {
    position: relative;
    max-width: 600px;
    margin: 0 auto 24px auto;
}

.search-form .search-field,
.widget_search .search-field {
    width: 100%;
    padding: 14px 48px 14px 44px;
    border-radius: 32px;
    border: 1.5px solid #cbd5e1;
    font-size: 1.05rem;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23a0aec0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>') no-repeat 14px center/20px 20px;
    color: #222;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-form .search-field:focus,
.widget_search .search-field:focus {
    border-color: #4299e1;
    box-shadow: 0 2px 12px rgba(66, 153, 225, 0.10);
}

.search-form .search-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 38px;
    padding: 0 14px;
    border-radius: 20px;
    background: #4299e1;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.search-form .search-submit:hover {
    background: #2563eb;
}

@media (max-width: 600px) {
    .search-form {
        max-width: 100%;
    }

    .search-form .search-field {
        font-size: 1rem;
        padding: 12px 44px 12px 42px;
    }

    .search-form .search-submit {
        height: 36px;
        padding: 0 12px;
        font-size: 0.9rem;
    }
}

/* Dark theme wariant dla wyszukiwarki i obrazów */
.dark-theme .search-form .search-field,
.dark-theme .widget_search .search-field {
    background: #1f2937 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%239ca3af" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>') no-repeat 14px center/20px 20px;
    color: #f3f4f6;
    border-color: #374151;
}

.dark-theme .search-form .search-field::placeholder,
.dark-theme .widget_search .search-field::placeholder {
    color: #9ca3af;
}

.dark-theme .search-form .search-submit {
    background: #4299e1;
}

.dark-theme .search-form .search-submit:hover {
    background: #3182ce;
}

.dark-theme .main-content img,
.dark-theme .main-content figure img {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Sidebar: Latest improved coupons (vertical) */
.sidebar-coupons-widget {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-coupon {
    background: var(--color-bg-alt);
    color: var(--color-text);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border: 1px solid #f0f0f0;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 12px;
    align-items: center;
}

.sidebar-coupon-thumb-wrap {
    display: block;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    background: #f7fafc;
    border: 1px solid #e9ecef;
}

.sidebar-coupon-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-coupon-content {
    min-width: 0;
}

.sidebar-coupon-title {
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.sidebar-coupon-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-coupon-title a:hover {
    color: var(--color-accent);
}

.sidebar-coupon-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.sidebar-coupon-prices .price-old {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 0.92rem;
}

.sidebar-coupon-prices .price-new {
    color: #e53e3e;
    font-weight: 700;
    font-size: 1rem;
}

.sidebar-coupon-code {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 6px;
}

.sidebar-coupon-code .label {
    color: #6b7280;
    margin-right: 4px;
}

.sidebar-coupon-code code {
    background: #edf2f7;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
}

.sidebar-coupon-btn {
    display: inline-block;
    margin-top: 6px;
    background: #48bb78;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sidebar-coupon-btn:hover {
    background: #38a169;
}

@media (max-width: 360px) {
    .sidebar-coupon {
        grid-template-columns: 1fr;
    }

    .sidebar-coupon-thumb-wrap {
        width: 100%;
        height: 160px;
    }
}

.dark-theme .sidebar-coupon {
    background: #232b36;
    color: #f3f6fa;
    border-color: #2b3442;
}

.dark-theme .sidebar-coupon-title a {
    color: #f3f6fa;
}

.dark-theme .sidebar-coupon-title a:hover {
    color: #60a5fa;
}

.dark-theme .sidebar-coupon-prices .price-old {
    color: #9ca3af;
}

.dark-theme .sidebar-coupon-code {
    color: #e5e7eb;
}

.dark-theme .sidebar-coupon-code .label {
    color: #9ca3af;
}

.dark-theme .sidebar-coupon-code code {
    background: #4a5568;
    color: #e2e8f0;
}

.dark-theme .sidebar-coupon-btn {
    background: #48bb78;
}

.dark-theme .sidebar-coupon-btn:hover {
    background: #38a169;
}