* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7f8;
    color: #172033;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

/* =========================================================
   GÓRNY PASEK
   ========================================================= */

/* =========================================================
   GÓRNY PASEK — STYL SKLEJIK
   ========================================================= */

.topbar {
    width: 100%;
    min-height: 54px;
    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;

    background: #2f86a5;
    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.topbar a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    padding: 0 22px;

    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;

    transition: background .2s, color .2s;
}

.topbar a::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20px;

    width: 1px;
    height: 25px;

    background: rgba(255, 255, 255, .75);
}

.topbar a:last-child::after {
    display: none;
}

.topbar a:hover {
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
}

/* =========================================================
   NOWE IKONY MENU — SVG
   ========================================================= */

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.topbar-icon {
    width: 27px;
    height: 27px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #ffffff;

    transition: transform 0.2s ease;
}

.topbar-icon svg {
    width: 27px;
    height: 27px;

    stroke: currentColor;
    fill: none;

    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-link:hover .topbar-icon {
    transform: translateY(-2px);
}

/* RESPONSYWNOŚĆ */

@media (max-width: 1000px) {
    .topbar {
        padding: 0 15px;
        font-size: 16px;
    }

    .topbar a {
        padding: 0 18px;
    }
}

@media (max-width: 650px) {
    .topbar {
        min-height: 55px;
        font-size: 12px;
        padding: 0 5px;
    }

    .topbar a {
        min-height: 55px;
        padding: 0 8px;
    }

    .topbar a::after {
        top: 15px;
        height: 25px;
    }
}
/* =========================================================
   NAGŁÓWEK
   ========================================================= */

.site-header {
    width: 100%;
    background: #ffffff;
}

.header-main {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    max-width: 1400px;
    min-height: 78px;
    margin: 0 auto;
    padding: 12px 30px;

    display: flex;
    align-items: center;
    gap: 30px;
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 160px;
    width: 160px;
    height: 58px;
    overflow: hidden;
}

.site-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-inner .search-form {
    flex: 1;
    max-width: none;
    display: flex;
}

.header-inner .search-form input {
    min-width: 0;
    flex: 1;
    height: 36px;
    padding: 0 14px;

    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    background: #ffffff;

    font-size: 12px;
}

.header-inner .search-form button {
    height: 36px;
    padding: 0 20px;

    border: none;
    border-radius: 0 5px 5px 0;

    background: #2563eb;
    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
}

.header-inner .cart-link {
    flex: 0 0 auto;
    padding: 10px 14px;

    border-radius: 5px;
    background: #eff6ff;
    color: #1d4ed8;

    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* =========================================================
   MENU
   ========================================================= */

.main-navigation {
    width: 100%;
    background: #172554;
}

.navigation-inner {
    position: relative;

    max-width: 1400px;
    min-height: 28px;
    margin: 0 auto;
    padding: 0 30px;

    display: flex;
    align-items: center;
}

.categories-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;
    padding: 0 14px;

    border: none;
    background: #1e40af;
    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.categories-button:hover {
    background: #2563eb;
}

.categories-menu {
    display: none;

    position: absolute;
    top: 28px;
    left: 30px;
    z-index: 1000;

    width: 280px;
    padding: 10px;

    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.categories-menu.is-open {
    display: block;
}

.category-link {
    display: block;
    padding: 12px 15px;

    border-radius: 6px;
    color: #172033;

    font-size: 15px;
    font-weight: 600;
}

.category-link:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

/* =========================================================
   GŁÓWNA TREŚĆ
   ========================================================= */

.site-main {
    width: 100%;
    min-height: 500px;
}

.home-page {
    width: 100%;
    background: #f5f7f8;
    padding: 35px 40px 80px;
}

.home-section,
.hero-banner {
    max-width: 1400px;
    margin: 0 auto 55px;
}

.hero-banner {
    min-height: 300px;
    padding: 45px 55px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    background: linear-gradient(135deg, #edf5f8, #dcebf0);
    border: 1px solid #d2e2e8;
    border-radius: 24px;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
}

.hero-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 14px;

    background: #ffffff;
    color: #47758b;

    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero-content h1 {
    margin: 0 0 15px;

    color: #17384a;
    font-size: 42px;
    line-height: 1.12;
    font-weight: 900;
}

.hero-content p {
    margin: 0 0 25px;

    color: #5d747e;
    font-size: 16px;
    line-height: 1.6;
}

.hero-button,
.dark-button {
    display: inline-block;
    padding: 14px 23px;

    background: #47758b;
    color: #ffffff;

    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.hero-button:hover,
.dark-button:hover {
    background: #17384a;
}

.hero-decoration {
    display: flex;
    align-items: center;
    gap: 18px;

    color: #c1dce6;
    font-size: 75px;
    line-height: 1;
}

.hero-decoration span:nth-child(2) {
    font-size: 105px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0;

    color: #17384a;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 900;
}

.section-heading a {
    color: #47758b;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

/* =========================================================
   PRODUKTY
   ========================================================= */

.products-home-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.home-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e3eaee;
    border-radius: 14px;
}

.product-image-link {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    height: 245px;
    padding: 18px;
    background: #ffffff;
}

.home-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.promotion-badge {
    position: absolute;
    top: 14px;
    left: 14px;

    padding: 6px 10px;
    border-radius: 5px;

    background: #47758b;
    color: #ffffff;

    font-size: 10px;
    font-weight: 800;
}

.home-product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.home-product-info h3 {
    min-height: 48px;
    margin: 0 0 15px;

    font-size: 16px;
    line-height: 1.5;
    font-weight: 800;
}

.home-product-info h3 a {
    color: #17384a;
}

.home-product-price {
    margin-bottom: 18px;

    color: #17384a;
    font-size: 22px;
    font-weight: 900;
}

.home-add-button {
    display: block;
    margin-top: auto;
    padding: 12px 10px;

    background: #47758b;
    color: #ffffff;

    border-radius: 7px;
    text-align: center;

    font-size: 11px;
    font-weight: 800;
}

.home-add-button:hover {
    background: #17384a;
}

.no-product-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    color: #9ca3af;
}

/* =========================================================
   NOWOŚCI
   ========================================================= */

.new-products-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    min-height: 260px;
    padding: 45px 55px;

    background: #17384a;
    border-radius: 24px;
}

.new-products-label {
    display: inline-block;
    margin-bottom: 15px;

    color: #c1dce6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.new-products-box h2 {
    margin: 0 0 15px;

    color: #ffffff;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 900;
}

.new-products-box p {
    margin: 0 0 25px;

    color: #cbdde3;
    font-size: 15px;
    line-height: 1.6;
}

.new-products-symbol {
    color: #47758b;
    font-size: 150px;
    line-height: 1;
}

/* =========================================================
   STOPKA
   ========================================================= */

.site-footer {
    width: 100%;
    margin-top: 50px;

    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 30px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h3 {
    margin: 0 0 15px;
    color: #ffffff;
}

.footer-column p {
    margin: 0;
    line-height: 1.6;
}

.footer-column a {
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    padding: 18px 30px;
    border-top: 1px solid #374151;
    text-align: center;
    font-size: 13px;
}

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */

@media (max-width: 1100px) {
    .products-home-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .header-inner {
        padding: 12px 20px;
        flex-wrap: wrap;
    }

    .header-inner .search-form {
        order: 3;
        flex-basis: 100%;
    }

    .products-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-banner {
        padding: 35px 30px;
    }

    .hero-decoration {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 550px) {
    .header-inner {
        padding: 12px 15px;
    }

    .site-logo {
        flex: 0 0 135px;
        width: 135px;
        height: 55px;
    }

    .topbar {
        font-size: 10px;
        gap: 8px;
    }

    .navigation-inner {
        padding: 0 15px;
    }

    .categories-menu {
        left: 15px;
        width: calc(100vw - 30px);
    }

    .home-page {
        padding: 20px 15px 45px;
    }

    .products-home-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================================
   PRZYWRÓCENIE ZDJĘĆ PRODUKTÓW — TYLKO ZDJĘCIA
   ========================================================= */

.products-grid .product-card {
    overflow: hidden;
}

.products-grid .product-image-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 240px !important;
    min-height: 240px !important;
    padding: 15px !important;

    background: #ffffff !important;
    border-bottom: 1px solid #e3eaee !important;
    overflow: hidden !important;
}

.products-grid .product-image-wrapper .product-image {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.products-grid .product-image-wrapper .no-product-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    color: #9ca3af !important;
    font-size: 14px !important;
}
 
/* SKLEJIK - GLOBALNA SKALA 67 PROCENT */
html {
    zoom: 0.67;
    width: 100%;
}
