
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-ext-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-ext-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-ext-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    min-width: 300px;
}

html {
    touch-action: manipulation;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', Verdana, sans-serif;
    letter-spacing: -0.2px;
}

button,
input,
select,
textarea {
    font: inherit;
}

a,
button,
[role="button"] {
    touch-action: manipulation;
}


#loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 99999;
    contain: strict;
}

/* spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #eee;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* obrót */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* auto ukrycie loadera */
@keyframes hideLoader {
    0% {
        opacity: 1;
        visibility: visible;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: #191b46;
}

a:hover {
    color: #000;
}

ul {
    list-style: none;
}

.logo img {
    height: 35px;  /* dopasuj do headera */
    width: auto;
    display: block;
}
/* ===== HEADER ===== */
.header-icon svg {
    width: 24px;
    height: 24px;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

/* container */
.main-header .container {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.main-nav a {
    position: relative;
    text-decoration: none;
    padding-bottom: 4px;
}

/* kreska */
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: #000;
    transition: width 0.3s ease;
}

/* hover → animacja */
.main-nav a:hover::after {
    width: 100%;
}

/* active → zawsze pełna kreska */
.main-nav a.active::after {
    width: 100%;
}
/* logo */
.logo {
    font-size: 18px;
    font-weight: 600;
}

/* desktop nav */
.main-nav ul {
    display: flex;
}
.main-nav li , .side-nav li {
    margin: 10px;
}

/* header icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* hamburger */
.menu-toggle {
    display: none;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

.side-nav {
    position: fixed;
    top: -100%; /* ukryte nad ekranem */
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 20000;
    transition: top 0.3s ease;
}

/* open */
.side-nav.open {
    top: 0;
}

/* menu list */
.side-nav ul {
    display: flex;
    flex-direction: column;
    margin: 20px;
}
.close-btn {
    position: absolute;
    top: 22px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}
/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}



/*.cart-mobile{*/
/*    background: #fff;*/
/*    border-radius: 12px 12px 0 0;*/
/*    bottom: var(--bottom);*/
/*    box-shadow: 0 -4px 24px 0 rgba(0, 0, 0, .06);*/
/*    color: #fff;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    padding: 16px;*/
/*    position: fixed;*/
/*    -webkit-text-decoration: none;*/
/*    text-decoration: none;*/
/*    transition: bottom .5s ease 0s;*/
/*    z-index: 200;*/
/*}*/

/*.cart-phone{*/
/*    align-items: center;*/
/*    background-color: #370a28;*/
/*    border-radius: 12px;*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    overflow-x: hidden;*/
/*    padding: 12px;*/
/*    position: relative;*/
/*}*/



.home-cards {
    display: flex;
    gap: 16px;
    justify-content: center; /* 🔥 centrowanie poziome */
}

.home-card {
    background: #f6f6f6;
    border-radius: 20px;
    height: 136px;
    overflow: hidden;
    padding: 16px;
    position: relative;
    width: 136px;
}

/* tekst */
.home-card span {
    color: #111;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    position: relative;
    z-index: 1;
    max-width: 90px;
    display: inline-block; /* albo block */
    word-wrap: break-word;
}



.button-page,.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: none;
    border-radius: 14px;
    background: #15171a;
    color: #ffffff;
    font: inherit;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(21, 23, 26, 0.22);
    height: 50px;
}

input, select {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}


.alert-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.alert-popup-content {
    position: relative;
    background: white;
    padding: 24px 20px 20px;
    border-radius: 12px;
    width: min(360px, calc(100% - 32px));
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.alert-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: auto !important;
    margin: 0 !important;
    padding: 0 6px !important;
    border: none;
    background: transparent !important;
    color: #15171a !important;
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
}

.alert-popup-content h3 {
    margin-bottom: 10px;
}

#alert-popup-content p {
    margin: 6px 0;
}


.alert-popup-button {
    font: inherit;
    margin-top: 15px;
    padding: 10px;
    width: 100%;
    border: none;
    background: #15171a;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.alert-popup-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.alert-popup-actions .alert-popup-button {
    margin-top: 0;
}

.alert-popup-button.secondary {
    background: #e5e7eb;
    color: #15171a;
}



