/* =========================================================
   FONTS
========================================================= */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   GLOBAL
========================================================= */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #222;
    padding-top: 145px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================
   COLORS
========================================================= */
:root { 
    --top-bg: linear-gradient(to bottom, #3372DF, #1565C0);
    --header-bg: #181818;
    --text-muted: #6B7280;

    --panel-sale-header-bg: #0E8679;
    --panel-sale-header-text: #ffffff;
}

/* =========================================================
   HEADER WRAPPER
========================================================= */
.header-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 300;
}

/* =========================================================
   TOP BAR
========================================================= */
.header-bar {
    background: var(--top-bg);
    width: 100%;
    color: #F9FAFB;
    padding: 10px 20px;
}

.header-bar .header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left img {
    height: 40px;
}

.phone {
    font-size: 24px;
}

/* =========================================================
   SEARCHBAR
========================================================= */
.searchbar {
    flex: 1;
    padding: 0 20px;
    max-width: 50%;
}

.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.25);
}

.md-field {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 1.2rem;
}

.md-field input {
    width: 100%;
    padding: 10px 10px 10px 34px;
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    background: #F9FAFB;
    font-size: 0.95rem;
}

.md-field input:focus {
    border-color: var(--top-bg);
    background: #ffffff;
    outline: none;
}

.md-field label {
    position: absolute;
    left: 34px;
    top: 10px;
    font-size: 0.8rem;
    color: #9CA3AF;
    pointer-events: none;
    transition: 0.2s ease;
}

.md-field input:not(:placeholder-shown) + label,
.md-field input:focus + label {
    top: -6px;
    font-size: 0.65rem;
    color: var(--top-bg);
}

.search-btn {
    padding: 8px 20px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    color: #000;
    border-radius: 6px;
    background: linear-gradient(180deg, #F2AB0F 0%, #D89200 100%);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: .2s ease;
}

.search-btn:hover {
    background: linear-gradient(180deg, #FFC53A 0%, #E6A300 100%);
    transform: translateY(-1px);
}

.header-help {
    font-size: 1rem;
    font-weight: 500;
    color: #F9FAFB;
}

/* =========================================================
   CONTAINER
========================================================= */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* =========================================================
   FILTER CONTAINER 
========================================================= */
.offer-filter-box {
    background: #ffffff;
    padding: 10px 25px;
    margin: 10px auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    border: 1px solid #e5e5e5;
}

.offer-filter-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
}

.offer-filter-item {
    flex: 1;
    min-width: 200px;
}

.offer-filter-box label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
    color: #333;
}

.offer-filter-box select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fafafa;
    font-size: 15px;
    transition: 0.2s;
}

.offer-filter-box select:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.offer-filter-box select:focus {
    border-color: #007bff;
    background: #fff;
}

.offer-filter-box button {
    padding: 12px 25px;
    background: linear-gradient(180deg, #F2AB0F 0%, #D89200 100%);
    color: #000000;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
    height: 45px;
    transition: 0.2s;
}

.offer-filter-box button:hover {
     background: linear-gradient(180deg, #FFC53A 0%, #E6A300 100%);
}

@media (max-width: 700px) {
    .offer-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .offer-filter-box button {
        width: 100%;
        margin-top: 10px;
    }
}

/* =========================================================
   INTRO — FULL WIDTH
========================================================= */
.intro {
    width: 100%;
    background: url("../images/intro-bg.webp") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
    color: #ffffff;
    text-align: center;
}

.text-center {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin: 10;
    color: #FFFFFF;
}

.intro-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 5;
    color: #FFFFFF;
}

@media (max-width: 900px) {
    .intro {
        padding: 40px 20px;
    }

    .intro-flex {
        flex-direction: column;
        gap: 20px;
    }

    .intro-img img {
        max-width: 260px;
    }
}

/* =========================================================
   PANELE — KONTENER NA KARTY
========================================================= */

.panele {
    background: #f4f4f4;
    padding: 20px 0;
    margin: 20px 0 40px 0;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
}

/* Responsywność */
@media (max-width: 1200px) {
    .panele {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .panele {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE — ukrycie całej sekcji */
@media (max-width: 700px) {
    .panele {
        display: none;
    }
}

/* =========================================================
   PANELE — KARTY
========================================================= */

.panel-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);

    padding: 18px;
    text-align: center;

    display: flex;
    flex-direction: column;
    gap: 14px;

    transition: transform .2s ease, box-shadow .2s ease;
}

.panel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* Kwadratowy obrazek */
.panel-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: none;
}

/* Opisy DE */
.panel-card p {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
    line-height: 1.45;
}

.panel-card p strong {
    font-weight: 700;
    color: #111;
}

/* =========================================================
   SALE INFO PANELS — PREMIUM E‑COMMERCE
========================================================= */
.sale-info {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(0,0,0,0.12);
    border: 1px solid #E5E7EB;

    padding: 42px 50px;
}

.sale-info h3 {
    background: linear-gradient(180deg, #3A3F45 0%, #2C2F33 100%);
    color: #ffffff;

    padding: 24px 30px;
    margin: -42px -50px 32px -50px;

    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.35px;

    border-bottom: 3px solid #1F2225;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.sale-info p {
    margin: 22px 0;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.7;
}

.sale-info ul {
    margin: 26px 0 34px 0;
    padding-left: 26px;
    color: #222;
    font-size: 0.95rem;
    line-height: 1.7;
}

.sale-info ul li {
    margin-bottom: 10px;
    position: relative;
}

.sale-info ul li::before {
    content: "•";
    position: absolute;
    left: -18px;
    color: #3A3F45;
    font-size: 1.2rem;
}

/* =========================================================
   CALL US — TECHNICZNY NIEBIESKI
========================================================= */

.call-us {
    background: linear-gradient(180deg, #1E3A8A 0%, #0F2A63 100%);
    border-radius: 14px;
    padding: 55px 60px;
    margin: 20px 0 60px 0;

    border: 1px solid #0D1F4A;
    box-shadow: 0 14px 36px rgba(0,0,0,0.32);

    text-align: center;
    color: #ffffff;
}

.call-us h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.45);
}

.call-us p {
    font-size: 1.3rem;
    line-height: 1.7;
    margin: 0;
    color: #E0E7FF;
}

.call-us p strong {
    font-weight: 800;
    color: #60A5FA;
}

@media (max-width: 700px) {
    .call-us {
        display: none;
    }
}

/* =========================================================
   TOP ANGEBOTE — GRID
========================================================= */

.rec-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 40px 0;
}

@media (max-width: 1200px) {
    .rec-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .rec-products-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   KARTA PRODUKTU
========================================================= */

.rec-product-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    transition: transform .2s ease, box-shadow .2s ease;

    display: flex;
    flex-direction: column;
}

.rec-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}

/* =========================================================
   LINK
========================================================= */

.rec-product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   OBRAZEK
========================================================= */

.rec-product-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f4f4f4;
}

.rec-product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge */
.rec-corner-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1E3A8A;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* =========================================================
   TREŚĆ KARTY
========================================================= */

.rec-product-content {
    padding: 18px 20px;
    flex: 1; /* wypycha cenę na dół */
}

.rec-product-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111;
}

.rec-product-subtitle {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
}

.rec-product-extra {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* =========================================================
   STOPKA — CENA NA DOLE I WYŚRODKOWANA
========================================================= */

.rec-product-footer {
    border-top: 1px solid #E5E7EB;
    padding: 16px 20px;

    display: flex;
    justify-content: center;   /* wyśrodkowanie */
    align-items: center;

    margin-top: auto;          /* trzyma stopkę na dole */
}

.rec-price .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1E3A8A;
    text-align: center;
    width: 100%;
}

.rec-corner-badge {
    position: absolute;
    top: 2px;
    left: 0px;

    background: linear-gradient(180deg, #FFD700 0%, #E6B800 100%); /* złote tło */
    color: #ffffff; /* biała gwiazdka */

    padding: 12px 20px;        /* 2× większe */
    border-radius: 8px;        /* proporcjonalnie większe */
    font-size: 1.8rem;         /* 2× większe */
    font-weight: 700;

    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

section.lieferung {
    margin: 40px 0;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
    font-family: "Inter", "Roboto", sans-serif;
}

section.lieferung h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.shipping-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px; /* średnia czcionka */
}

.shipping-table thead th {
    background: #f0f0f0;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.shipping-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #e5e5e5;
    color: #444;
}

.shipping-table tbody tr:hover {
    background: #f9f9f9;
}

.shipping-table td strong {
    font-weight: 600;
    color: #222;
}

/* Responsywność */
@media (max-width: 768px) {
    .shipping-table thead {
        display: none;
    }

    .shipping-table tr {
        display: block;
        margin-bottom: 15px;
        background: #fff;
        border-radius: 8px;
        padding: 10px;
    }

    .shipping-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: none;
    }

    .shipping-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #333;
    }
}

.cookie-box {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    font-size: 11px; /* mała czcionka */
    width: 240px;    /* mały box */
    z-index: 9999;
    display: none;
}

.cookie-text {
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.cookie-box button {
    padding: 5px 10px;
    font-size: 11px;
    border: none;
    background: #2e7d32;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}
