/* === KOD NAJNOWSZY STOPKA DO SPRAWDZENIA === */
@media (min-width: 1024px) {
    body {
        margin: 0;
        padding: 0;
        background: url('https://shop40681-1.yourtechnicaldomain.com/data/include/cms/tlo/tlo_milspec1.jpg?v=1717248933078') no-repeat center center fixed;
        background-size: cover;
        font-family: Arial, sans-serif;
    }

    /* Główny kontener */
    .container {
        position: relative;
        top: 40px;
        margin: 0 auto;
        width: 70%;
        background-color: #fff;
        border-radius: 15px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        overflow: hidden;
        z-index: 1;
        padding: 0 20px;
    }

    /* Nagłówek */
    header {
        background-color: #fff;
        padding: 10px 20px;
        border-radius: 15px 15px 0 0;
        box-shadow: none;
    }

    .main-content {
        padding: 20px;
    }

    /* --- STOPKA: jedna wspólna biała karta --- */
    footer {
        position: relative;
        width: 70%;
        margin: 20px auto 40px auto;
        padding: 40px 20px;
        background-color: #33b33b;
        text-align: center;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        color: black;
        overflow: hidden;
    }

    /* Jedna biała karta pod całą zawartością stopki */
    footer::before {
        content: "";
        position: absolute;
        z-index: 0;
        left: 20px;
        right: 20px;
        top: 60px;
        bottom: 20px;
        background: #fff;
        border-radius: 15px;
    }

    /* Cała treść stopki nad białą kartą */
    footer * {
        position: relative;
        z-index: 1;
    }

    /* Reset ramek, cieni i teł z szablonu */
    footer .container,
    footer > div,
    footer .box,
    footer .panel,
    footer .well,
    footer .fieldset,
    footer .footer,
    footer section,
    footer .row {
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
    }

    /* Układ wewnątrz stopki */
    footer .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto !important;
        padding: 24px !important;
        display: block;
        text-align: left;
    }

    footer .container > * {
        margin: 0 0 16px 0;
    }

    footer .container .columns,
    footer .container .row,
    footer .container .grid {
        display: flex;
        gap: 24px;
        flex-wrap: wrap;
    }

    footer .container .columns > *,
    footer .container .row > *,
    footer .container .grid > * {
        flex: 1 1 220px;
        min-width: 220px;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    footer h3, 
    footer h4 {
        margin: 0 0 10px 0;
        color: #000;
        font-weight: 700;
    }

    footer p,
    footer a,
    footer li {
        color: #000 !important;
        text-decoration: none;
        line-height: 1.5;
    }

    footer a:hover { text-decoration: underline; }

    /* Pasek na dole stopki */
    footer .bottom-bar,
    footer .footer-bar,
    footer .copyright,
    footer .contact-strip {
        text-align: center;
        padding: 12px 0 0 0;
        border-top: 1px solid #e5e5e5;
        margin-top: 12px;
    }

    /* Usunięcie dodatkowych ramek w sekcjach */
    footer .info-box,
    footer .list,
    footer .module,
    footer .block {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    /* Specyficzne style dla galerii */
    .projector_page.container, 
    .projector_page, 
    .projector_photos, 
    .projector_page.container.max-width-1200 .projector_photos {
        z-index: 1001 !important;
        position: relative;
    }

    .projector_photos::before, 
    .projector_photos::after {
        display: none !important;
    }
}

/* Odkrycie pola na kod rabatowy w koszyku */
div.basketedit_rebatecodes_outline { display: block; }
#menu_security_policy { clear: both; }

/* === MOBILE: tylko dla stopki, reszta wg szablonu === */
@media (max-width: 1023px) {
    body { background: #fff; }

    /* tylko stopka – reszta layoutu bez zmian */
    footer {
        width: 100%;
        margin: 40px 0 20px 0;
        padding: 20px 12px;
        border-radius: 0;
        box-shadow: none;
    }

    footer::before {
        left: 12px;
        right: 12px;
        top: 12px;
        bottom: 12px;
        border-radius: 10px;
    }

    footer .container {
        width: 100%;
        max-width: none;
        padding: 16px !important;
    }

    footer .container .columns,
    footer .container .row,
    footer .container .grid {
        display: block;
    }

    footer .container .columns > *,
    footer .container .row > *,
    footer .container .grid > * {
        min-width: auto;
        margin-bottom: 12px;
    }
}