@import url('https://fonts.googleapis.com/css2?family=Rubik+Glitch&display=swap');

*{
    box-sizing:border-box;
}

html{
    overflow-x:hidden;
    max-width:100%;
}

body{
    font-family:Arial;
    margin:0;
    background:#202020;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    overflow-x:hidden;
}

header{
    display:flex;
    flex-wrap:nowrap;
    justify-content:space-between;
    align-items:center;
	padding:20px;
    width:100%;
    max-width:100%;
    background:#171717;
    border-bottom:3px solid #006f7a;
    box-shadow:0 5px 20px rgba(0,0,0,0.4);
    color:white;
}

.logo-group{
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
    min-width:340px;
}

.logo-box{
    background:#000;
    padding:14px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 0 18px rgba(0,0,0,0.7);
}

.logo-img{
    height:100px;
    width:auto;
    object-fit:contain;
    display:block;
}

.logo{
    font-family: 'Rubik Glitch', cursive;
    font-size:56px;
    letter-spacing:2px;

    color:#fff;
    background:linear-gradient(90deg, #00e5ff, #00eca6);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;

    text-shadow:
        0 0 1px rgba(255,255,255,0.75),
        1px 1px 0 rgba(0,229,255,0.55),
        -1px -1px 0 rgba(0,236,166,0.45);

    transform: rotate(-2deg);
    position:relative;
    width:12ch;
    overflow:hidden;
    white-space:nowrap;
    border-right:3px solid #00eca6;
    animation:typing 2s steps(12) forwards, cursorBlink 0.7s 3 forwards, cursorHide 0.1s 2.1s forwards, logoGlitch 2.4s infinite;
}

.logo span{
    display:inline-block;
    animation:letterGlitch 2.8s infinite;
}

.logo span:nth-child(2){
    animation-delay:0.06s;
}

.logo span:nth-child(3){
    animation-delay:0.12s;
}

.logo span:nth-child(4){
    animation-delay:0.18s;
}

.logo span:nth-child(5){
    animation-delay:0.24s;
}

.logo span:nth-child(6){
    animation-delay:0.3s;
}

.logo span:nth-child(7){
    animation-delay:0.36s;
}

.logo span:nth-child(8){
    animation-delay:0.42s;
}

@keyframes letterGlitch{
    0%, 84%, 100%{
        transform:translate(0, 0) rotate(0deg);
    }
    88%{
        transform:translate(3px, -2px) rotate(2deg);
    }
    92%{
        transform:translate(-3px, 2px) rotate(-2deg);
    }
    96%{
        transform:translate(2px, 0) rotate(1deg);
    }
}

.logo::before,
.logo::after{
    content:"wydrukuj.top";
    position:absolute;
    inset:0;
    width:100%;
    overflow:hidden;
    background:linear-gradient(90deg, #00e5ff, #00eca6);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    pointer-events:none;
    opacity:0;
}

.logo::before{
    left:2px;
    text-shadow:-2px 0 rgba(0,229,255,0.55);
    clip-path:inset(0 0 55% 0);
    animation:glitchTop 1.8s infinite linear alternate-reverse;
}

.logo::after{
    left:-2px;
    text-shadow:2px 0 rgba(0,236,166,0.55);
    clip-path:inset(45% 0 0 0);
    animation:glitchBottom 1.5s infinite linear alternate-reverse;
}

@keyframes typing{
    from{
        clip-path:inset(0 100% 0 0);
    }
    to{
        clip-path:inset(0 0 0 0);
    }
}

@keyframes cursorBlink{
    0%, 50%{
        border-color:#00eca6;
    }
    51%, 100%{
        border-color:transparent;
    }
}

@keyframes cursorHide{
    to{
        border-color:transparent;
    }
}

@keyframes logoGlitch{
    0%, 82%, 100%{
        transform:rotate(-2deg) translate(0, 0);
    }
    86%{
        transform:rotate(-2deg) translate(1px, -1px);
    }
    91%{
        transform:rotate(-2deg) translate(-1px, 1px);
    }
    96%{
        transform:rotate(-2deg) translate(1px, 0);
    }
}

@keyframes glitchTop{
    0%, 78%, 100%{
        opacity:0;
        transform:translate(0, 0);
    }
    84%{
        opacity:0.65;
        transform:translate(2px, -1px);
    }
    92%{
        opacity:0.65;
        transform:translate(-2px, 1px);
    }
}

@keyframes glitchBottom{
    0%, 76%, 100%{
        opacity:0;
        transform:translate(0, 0);
    }
    83%{
        opacity:0.65;
        transform:translate(-2px, 1px);
    }
    91%{
        opacity:0.65;
        transform:translate(2px, -1px);
    }
}

.cart-icon{
    color:white;
    background:linear-gradient(90deg, #ffffff 0%, #00e5ff 55%, #00eca6 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    text-decoration:none;
    font-size:20px;
    padding:6px 10px;
    border-radius:8px;
    display:flex;
    align-items:center;
    gap:6px;
}

.cart-img{
    width:70px;
    height:70px;
    object-fit:contain;
    filter:drop-shadow(0 0 8px rgba(0,229,255,0.55)) drop-shadow(0 0 10px rgba(0,236,166,0.35));
    display:block;
    animation:cartGlitch 1.4s infinite;
}

@keyframes cartGlitch{
    0%, 90%, 100%{
        transform:translate(0, 0) skew(0deg);
        filter:drop-shadow(0 0 8px rgba(0,229,255,0.55)) drop-shadow(0 0 10px rgba(0,236,166,0.35));
    }
    92%{
        transform:translate(3px, -2px) skew(2deg);
        filter:drop-shadow(-3px 0 #00e5ff);
    }
    95%{
        transform:translate(-3px, 2px) skew(-2deg);
        filter:drop-shadow(3px 0 #00eca6);
    }
    98%{
        transform:translate(2px, 0) skew(1deg);
        filter:drop-shadow(-2px 0 #00e5ff);
    }
}

.shop-link{
    font-family: 'Rubik Glitch', cursive;
    font-size:20px;
    font-weight:bold;
    background:linear-gradient(90deg, #ffffff 0%, #00e5ff 55%, #00eca6 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    text-shadow:none;
    width:max-content;
    overflow:hidden;
    white-space:nowrap;
    border-right:3px solid #00eca6;
    animation:shopTyping 1.4s steps(8) forwards, cursorBlink 0.7s 3 forwards, cursorHide 0.1s 1.5s forwards;
}

@keyframes shopTyping{
    from{
        width:0;
    }
    to{
        width:8ch;
    }
}

@keyframes shopGlitch{
    0%, 92%, 100%{
        transform:translate(0, 0);
    }
    94%{
        transform:translate(2px, -1px);
    }
    96%{
        transform:translate(-2px, 1px);
    }
    98%{
        transform:translate(1px, 0);
    }
}

/* PRODUKTY */
.products{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    padding:28px;
    width:100%;
    max-width:100%;
    overflow:hidden;
}

.product{
    background: linear-gradient(145deg, #1a1a1a, #292929);
    color:white;
	
	border-radius:16px;
    padding:15px;
    
	box-shadow: 0 10px 30px rgba(0,0,0,0.55);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position:relative;
    overflow:hidden;
    z-index:1;
    animation:none;
    display:flex;
    flex-direction:column;
}

/* hover efekt */
.product:hover{
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* obrazek */
.product img{
    width:100%;
    height:clamp(180px, 22vw, 260px);
    object-fit:contain;
    background:#111;
    border-radius:12px;
    margin-bottom:10px;
    transition:transform 0.3s ease;
    animation:none;
}

.product:hover img{
    transform:scale(1.08);
}

@keyframes productGlitch{
    0%, 92%, 100%{
        transform:translate(0, 0);
    }
    95%{
        transform:translate(2px, -1px);
    }
    98%{
        transform:translate(-2px, 1px);
    }
}

@keyframes productImageGlitch{
    0%, 90%, 100%{
        filter:none;
        transform:translate(0, 0);
    }
    94%{
        filter:drop-shadow(-3px 0 #00e5ff);
        transform:translate(2px, -1px);
    }
    97%{
        filter:drop-shadow(3px 0 #00eca6);
        transform:translate(-2px, 1px);
    }
}

/* tekst */
.product h2,
.product h3{
    font-family:Arial, sans-serif;
    font-size:24px;
    margin:14px 0 8px;
    letter-spacing:1px;
    color:#ffffff;
    background:linear-gradient(90deg, #ffffff 0%, #00e5ff 55%, #00eca6 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    text-shadow:none;
    position:relative;
    display:flex;
    align-items:center;
    min-height:58px;
    animation:productTextGlitch 1.8s infinite;
}

@keyframes productTextGlitch{
    0%, 88%, 100%{
        transform:translate(0, 0);
        text-shadow:none;
    }
    92%{
        transform:translate(1px, -1px);
        text-shadow:-1px 0 #00e5ff;
    }
    96%{
        transform:translate(-1px, 1px);
        text-shadow:1px 0 #00eca6;
    }
}

.product p{
    font-size:16px;
    color:#00e5ff;
    font-weight:bold;
    min-height:24px;
    margin:0 0 8px;
}

.rivals-badge{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    width:100%;
    min-height:38px;
    margin:8px 0 2px;
    padding:6px 10px;
    border-radius:999px;
    background:linear-gradient(90deg, rgba(0,229,255,0.18), rgba(0,236,166,0.18));
    border:1px solid rgba(0,229,255,0.35);
    color:#00eca6;
    font-weight:bold;
    font-size:13px;
    line-height:1.2;
    text-align:center;
    white-space:normal;
    overflow-wrap:anywhere;
    box-shadow:0 0 12px rgba(0,229,255,0.18);
}

.rivals-badge img{
    width:22px;
    height:22px;
    object-fit:contain;
}

.rivals-badge-empty{
    visibility:hidden;
}

.old-price{
    color:#777;
    text-decoration:line-through;
    margin-right:6px;
}

.new-price{
    color:#00eca6;
    text-shadow:0 0 8px rgba(0,236,166,0.45);
}

.variant-row{
    width:100%;
    min-height:auto;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    margin-bottom:8px;
}

.variant-row-double{
    display:flex;
    flex-direction:column;
    gap:0;
}

.variant-field{
    min-width:0;
    min-height:56px;
}

.variant-field select{
    width:100%;
    min-height:38px;
    border-radius:10px;
    background:linear-gradient(90deg, #00c853, #00bfa5);
    color:#050505;
    border:2px solid rgba(0,191,165,0.55);
    box-shadow:0 0 10px rgba(0,191,165,0.25);
}

.variant-field-empty{
    visibility:hidden;
}

.variant-label{
    display:block;
    margin:8px 0 5px;
    color:#00e5ff;
    font-weight:bold;
    font-size:14px;
    letter-spacing:1px;
}

.custom-text-field{
    width:100%;
}

.custom-text-field textarea{
    width:100%;
    min-height:72px;
    padding:10px;
    resize:vertical;
    border:1px solid rgba(0,229,255,0.45);
    border-radius:10px;
    background:#111;
    color:#eaffff;
    outline:none;
    font-family:inherit;
    box-shadow:0 0 10px rgba(0,229,255,0.12);
}

.custom-text-field textarea:focus{
    border-color:#00eca6;
    box-shadow:0 0 14px rgba(0,236,166,0.25);
}

.product button{
    padding:10px;

    border:none;
    border-radius:10px;

    background: linear-gradient(90deg, #00bcd4, #00e5ff);
    color:white;

    font-weight:bold;
    cursor:pointer;

    transition: 0.2s;
    animation:productButtonGlitch 1.7s infinite;
}

.product-buttons{
    display:flex;
    gap:10px;
    margin-top:auto;
    position:relative;
    z-index:2;
}

.product .btn-cart,
.product .btn-buy{
    flex:1;
    width:auto;
    margin-top:0;
    min-height:42px;
}

.product .btn-cart{
    background:linear-gradient(90deg, #00c853, #00bfa5);
    color:#050505;
    border:2px solid rgba(0,191,165,0.55);
    box-shadow:0 0 10px rgba(0,191,165,0.25);
}

.product .btn-buy{
    background:linear-gradient(90deg, #00c853, #00bfa5);
    color:#050505;
    border:2px solid rgba(0,191,165,0.55);
    box-shadow:0 0 10px rgba(0,191,165,0.25);
}

.product .btn-buy:hover{
    filter:brightness(1.2);
    transform:scale(1.03);
}

@keyframes productButtonGlitch{
    0%, 90%, 100%{
        transform:translate(0, 0);
        filter:none;
    }
    94%{
        transform:translate(2px, -1px);
        filter:drop-shadow(-2px 0 #00e5ff);
    }
    97%{
        transform:translate(-2px, 1px);
        filter:drop-shadow(2px 0 #00eca6);
    }
}

.product button:hover{
    filter: brightness(1.2);
    transform: scale(1.03);
}

/* NEON GLOW EFFECT */
.product::after{
    content:"";
    position:absolute;
    top:-50%;
    left:-50%;
    width:200%;
    height:200%;
    background: radial-gradient(circle, rgba(0,229,255,0.25), transparent 60%);
    opacity:0;
    transition:0.3s;
    pointer-events:none;
}

.product:hover::after{
    opacity:1;
}

.contact-section{
    width:calc(100% - 32px);
    max-width:900px;
    margin:auto auto 30px;
    padding:24px;
    background:linear-gradient(145deg, #111, #1f1f1f);
    color:white;
    border:1px solid rgba(0,236,166,0.35);
    border-radius:16px;
    box-shadow:0 0 24px rgba(0,229,255,0.18);
    text-align:center;
    position:relative;
    overflow:hidden;
    animation:none;
}

.contact-section h2{
    margin:0 0 16px;
    font-family: 'Rubik Glitch', cursive;
    background:linear-gradient(90deg, #00e5ff, #00eca6);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    text-shadow:
        0 0 1px rgba(255,255,255,0.75),
        1px 1px 0 rgba(0,229,255,0.55),
        -1px -1px 0 rgba(0,236,166,0.45);
    animation:contactTextGlitch 2.6s infinite;
}

.contact-section p{
    margin:10px 0;
    font-size:18px;
}

.contact-section a{
    color:#00e5ff;
    text-decoration:none;
    font-weight:bold;
}

.contact-section a:hover{
    color:#00eca6;
    text-shadow:0 0 8px rgba(0,236,166,0.7);
}

@keyframes contactGlitch{
    0%, 90%, 100%{
        transform:translate(0, 0);
    }
    94%{
        transform:translate(2px, -1px);
    }
    97%{
        transform:translate(-2px, 1px);
    }
}

@keyframes contactTextGlitch{
    0%, 84%, 100%{
        transform:translate(0, 0);
    }
    88%{
        transform:translate(1px, -1px);
    }
    92%{
        transform:translate(-1px, 1px);
    }
    96%{
        transform:translate(1px, 0);
    }
}

/* SIDEBAR */
.cart-sidebar{
    position:fixed;
    top:0;
    right:-400px;
    width:350px;
    height:100%;
    background:linear-gradient(145deg, #0b0b0b, #171717);
    color:white;
    transition:0.3s;
    z-index:1000;
    display:flex;
    flex-direction:column;
    border-left:1px solid rgba(0,236,166,0.35);
    box-shadow:-10px 0 35px rgba(0,229,255,0.15);
    overflow:hidden;
}

.cart-sidebar.active{
    right:0;
}

.cart-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px;
    border-bottom:1px solid rgba(0,236,166,0.35);
    background:linear-gradient(90deg, rgba(0,229,255,0.12), rgba(0,236,166,0.08));
    text-shadow:
        1px 1px 0 #00e5ff,
        -1px -1px 0 #00eca6;
    animation:none;
}

.cart-header h2{
    margin:0;
    background:linear-gradient(90deg, #00e5ff, #00eca6);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}

.close-btn{
    color:#00e5ff;
    cursor:pointer;
    transition:transform 0.2s, filter 0.2s;
}

.close-btn:hover{
    transform:scale(1.2) rotate(8deg);
    filter:drop-shadow(0 0 6px #00e5ff);
}

#cartItems{
    flex:1;
    overflow:auto;
    padding:10px;
    position:relative;
}

#cartItems::before{
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at top, rgba(0,229,255,0.12), transparent 55%);
    pointer-events:none;
}

.sidebar-item{
    display:flex;
    justify-content:space-between;
    padding:10px;
    background:linear-gradient(145deg, #161616, #242424);
    margin-bottom:10px;
    border-radius:8px;
    border:1px solid rgba(0,229,255,0.18);
    box-shadow:0 0 14px rgba(0,229,255,0.12);
    position:relative;
    z-index:1;
    animation:sidebarItemEnter 0.35s ease forwards;
}

@keyframes sidebarItemEnter{
    from{
        opacity:0;
        transform:translateX(18px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes sidebarItemGlitch{
    0%, 90%, 100%{
        transform:translate(0, 0);
    }
    94%{
        transform:translate(2px, -1px);
    }
    97%{
        transform:translate(-2px, 1px);
    }
}

@keyframes sidebarGlitch{
    0%, 90%, 100%{
        transform:translate(0, 0);
    }
    94%{
        transform:translate(2px, -1px);
    }
    97%{
        transform:translate(-2px, 1px);
    }
}

.qty{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.qty button{
    width:28px;
    height:28px;
    border:none;
    border-radius:6px;
    background:#00e5ff;
    color:black;
    font-weight:bold;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.qty span{
    min-width:20px;
    text-align:center;
    font-weight:bold;
}

.cart-footer{
    padding:15px;
    border-top:1px solid rgba(0,236,166,0.35);
    background:linear-gradient(90deg, rgba(0,229,255,0.08), rgba(0,236,166,0.06));
    box-shadow:0 -8px 24px rgba(0,229,255,0.08);
}

.cart-footer button{
    width:100%;
    padding:10px;
    background:linear-gradient(90deg,#00bcd4,#00e5ff);
    border:none;
    color:black;
    font-weight:bold;
    border-radius:8px;
    cursor:pointer;
    box-shadow:0 0 16px rgba(0,229,255,0.35);
    animation:sidebarButtonPulse 1.5s infinite alternate;
}

.cart-footer button:hover{
    filter:brightness(1.2);
    transform:scale(1.03);
}

@keyframes sidebarButtonPulse{
    from{
        box-shadow:0 0 10px rgba(0,229,255,0.25);
    }
    to{
        box-shadow:0 0 22px rgba(0,236,166,0.45);
    }
}

#overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.5);
    display:none;
}

#overlay.active{
    display:block;
}

/* ===== CART PAGE ===== */

.cart-wrapper{
    width:100%;
    max-width:900px;
    margin:0 auto;
    padding:0 10px;
}

#cart{
    width:100%;
    margin:20px 0;
    padding:0;
}

.cart-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;

    padding:15px;
    margin-bottom:10px;

    background:#1c1c1c;
    color:white;
    border-radius:10px;

    box-shadow:0 2px 8px rgba(0,0,0,0.2);
}

.cart-name{
    flex:1;
    min-width:0;
    word-break:break-word;
}

.cart-row .qty{
    flex-shrink:0;
    width:100px;
    justify-content:center;
    align-self:center;
}

.cart-row .qty button{
    width:30px;
    height:30px;
}

.cart-price{
    min-width:70px;
    text-align:right;
    font-weight:bold;
    color:#00e5ff;
    white-space:nowrap;
}

.cart-row button{
    width:30px;
    height:30px;
    border:none;
    border-radius:6px;
    cursor:pointer;
    background:#00e5ff;
    color:rgb(0, 0, 0);
    font-weight:bold;
}

.cart-row button:hover{
    filter:brightness(1.2);
}

#total{
    color:#17dfbd;
    font-weight:bold;
}

h2{
    text-align:center;
    margin:20px 0;
}

button{
    display:block;
    margin:20px auto;
    padding:12px 20px;
    border:none;
    border-radius:10px;
    background:linear-gradient(90deg,#00bcd4,#00e5ff);
    color:black;
    font-weight:bold;
    cursor:pointer;
}

.discount-box{
    max-width:420px;
    margin:18px auto;
    padding:12px;
    background:linear-gradient(145deg, #111, #1d1d1d);
    border:1px solid rgba(0,229,255,0.35);
    border-radius:12px;
    box-shadow:0 0 18px rgba(0,229,255,0.12);
}

.discount-box label{
    display:block;
    margin-bottom:8px;
    color:#00e5ff;
    font-weight:bold;
}

.discount-row{
    display:flex;
    gap:10px;
}

.discount-row input{
    flex:1;
    padding:8px 10px;
    border:1px solid #333;
    border-radius:8px;
    background:#101010;
    color:white;
    outline:none;
}

.discount-row button{
    width:auto;
    margin:0;
    padding:8px 12px;
    white-space:nowrap;
}

#discountInfo{
    margin:8px 0 0;
    color:#00eca6;
    font-weight:bold;
}

/* ===== MODAL ===== */

.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.7);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:2000;
}

.modal-box{
    background:linear-gradient(145deg, #111, #1f1f1f);
    color:white;
    border-radius:16px;
    padding:30px;
    width:100%;
    max-width:420px;
    box-shadow:0 0 25px rgba(0,229,255,0.25), 0 10px 40px rgba(0,0,0,0.7);
    display:flex;
    flex-direction:column;
    gap:14px;
    border:1px solid rgba(0,236,166,0.4);
    position:relative;
    overflow:hidden;
    animation:modalEnter 0.35s ease forwards, modalGlitch 2.4s infinite;
}

.modal-box::before{
    content:"";
    position:absolute;
    inset:-50%;
    background:radial-gradient(circle, rgba(0,229,255,0.18), transparent 55%);
    opacity:0.55;
    pointer-events:none;
    animation:modalGlow 3s infinite alternate;
}

@keyframes modalEnter{
    from{
        opacity:0;
        transform:translateY(20px) scale(0.96);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

@keyframes modalGlow{
    from{
        transform:translate(-10%, -10%);
    }
    to{
        transform:translate(10%, 10%);
    }
}

@keyframes modalGlitch{
    0%, 94%, 100%{
        transform:translate(0, 0);
    }
    96%{
        transform:translate(2px, -1px);
    }
    98%{
        transform:translate(-1px, 1px);
    }
}

.modal-box h2{
    margin:0 auto;
    text-align:center;
    color:#00e5ff;
    background:linear-gradient(90deg, #00e5ff, #00eca6);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    text-shadow:
        2px 2px 0 #00e5ff,
        -2px -2px 0 #00eca6,
        4px 4px 10px rgba(0,0,0,0.6);
    width:max-content;
    overflow:hidden;
    white-space:nowrap;
    border-right:3px solid #00eca6;
    animation:modalTitleTyping 1.7s steps(15) forwards, cursorBlink 0.7s 3 forwards, cursorHide 0.1s 1.8s forwards, shopGlitch 1.2s infinite;
}

@keyframes modalTitleTyping{
    from{
        width:0;
    }
    to{
        width:15ch;
    }
}

.modal-box label{
    display:flex;
    flex-direction:column;
    gap:5px;
    font-size:14px;
    color:#ccc;
    position:relative;
    z-index:1;
    opacity:0;
    transform:translateX(-16px);
    animation:fieldEnter 0.45s ease forwards;
}

.modal-box label:nth-of-type(1){
    animation-delay:0.15s;
}

.modal-box label:nth-of-type(2){
    animation-delay:0.3s;
}

.modal-box label:nth-of-type(3){
    animation-delay:0.45s;
}

.modal-box label:nth-of-type(4){
    animation-delay:0.6s;
}

.modal-box label:nth-of-type(5){
    animation-delay:0.75s;
}

@keyframes fieldEnter{
    to{
        opacity:1;
        transform:translateX(0);
    }
}

.modal-box input{
    padding:10px 12px;
    border:1px solid #333;
    border-radius:8px;
    background:linear-gradient(145deg, #0b0b0b, #151515);
    color:white;
    font-size:15px;
    outline:none;
    transition:border 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow:inset 0 0 10px rgba(0,0,0,0.5);
}

.modal-box input:focus{
    border-color:#00e5ff;
    box-shadow:0 0 12px rgba(0,229,255,0.45), inset 0 0 10px rgba(0,236,166,0.15);
    transform:scale(1.02);
    animation:inputGlitch 0.25s linear;
}

.modal-box input::placeholder{
    color:#777;
}

@keyframes inputGlitch{
    0%, 100%{
        transform:scale(1.02) translate(0, 0);
    }
    35%{
        transform:scale(1.02) translate(2px, -1px);
    }
    70%{
        transform:scale(1.02) translate(-2px, 1px);
    }
}

.modal-buttons{
    display:flex;
    gap:10px;
    margin-top:6px;
}

.btn-cancel{
    flex:1;
    margin:0;
    background:#000000;
    color:white;
}

.btn-cancel:hover{
    background:#000000;
}

.btn-confirm{
    flex:1;
    margin:0;
    background:linear-gradient(90deg,#00bcd4,#00e5ff);
    color:black;
    box-shadow:0 0 16px rgba(0,229,255,0.35);
}

.btn-confirm:hover{
    filter:brightness(1.2);
    transform:scale(1.03);
}

@media (max-width: 768px){
    header{
        position:sticky;
        top:0;
        z-index:900;
        padding:8px;
        gap:6px;
        min-height:66px;
        flex-wrap:wrap;
        align-items:center;
    }

    main{
        padding-top:10px;
    }

    .logo-group{
        gap:6px;
        min-width:0;
        flex:0 1 auto;
        overflow:visible;
    }

    .logo-box{
        padding:4px;
        border-radius:6px;
        flex-shrink:0;
    }

    .logo-img{
        height:36px;
        width:auto;
        padding:0;
    }

    .logo{
        font-size:16px;
        letter-spacing:0.5px;
        white-space:nowrap;
        overflow:hidden;
        min-width:0;
        width:auto;
        max-width:none;
        transform:none;
        animation:typing 2s steps(12) forwards, cursorBlink 0.7s 3 forwards, cursorHide 0.1s 2.1s forwards;
        border-right:2px solid #00eca6;
        text-shadow:none;
        line-height:1;
        padding:0;
        margin:0;
        height:auto;
    }

    .logo span{
        display:none;
    }

    .logo::before{
        display:none;
    }

    .logo::after{
        content:"wydrukuj.top";
        position:static;
        display:block;
        opacity:1;
        width:auto;
        overflow:hidden;
        clip-path:inset(0 100% 0 0);
        animation:typing 2s steps(12) forwards, cursorBlink 0.7s 3 forwards, cursorHide 0.1s 2.1s forwards;
        text-shadow:none;
        background:linear-gradient(90deg, #00e5ff, #00eca6);
        -webkit-background-clip:text;
        -webkit-text-fill-color:transparent;
        background-clip:text;
    }

    @keyframes typingMobile{
        from{
            width:0;
        }
        to{
            width:7ch;
        }
    }

    @keyframes logoGlitchMobile{
        0%, 92%, 100%{
            transform:none;
        }
        94%{
            transform:translate(2px, -1px);
        }
        96%{
            transform:translate(-2px, 1px);
        }
        98%{
            transform:translate(1px, 0);
        }
    }

    .cart-icon{
        position:static;
        font-size:13px;
        padding:0;
        flex-shrink:0;
    }

    .header-actions{
        flex:1 1 auto;
        gap:4px;
        min-width:0;
        justify-content:flex-end;
    }

    .search-box{
        display:flex;
        flex:1 1 auto;
        min-width:80px;
        padding:4px 8px;
    }

    .search-box input{
        font-size:11px;
    }

    .header-actions{
        flex-wrap:nowrap;
    }

    .main-nav{
        gap:10px;
        font-size:11px;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }

    .main-nav::-webkit-scrollbar{
        display:none;
    }

    .main-nav a{
        font-size:11px;
        white-space:nowrap;
    }

    .shop-link{
        font-size:15px;
        width:8ch;
        max-width:8ch;
        overflow:visible;
        border-right:none;
        animation:none;
    }

    .cart-img{
        width:34px;
        height:34px;
    }

    .hero-section{
        display:none;
    }

    main{
        display:block;
    }

    .benefits-row{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        padding:16px 20px;
        margin:0;
    }

    .products-section{
        order:initial;
    }

    .personalization-banner{
        display:none;
    }

    .section-heading{
        display:flex;
    }

    .products{
        grid-template-columns:repeat(3,minmax(0,1fr));
        padding:8px;
        gap:8px;
    }

    .product{
        min-width:0;
        padding:8px;
        border-radius:10px;
    }

    .product img{
        height:100px;
        object-fit:contain;
        animation:none;
        transition:none;
        margin-bottom:4px;
    }

    .product:last-child{
        grid-column:1 / -1;
        display:grid;
        grid-template-columns:38% 62%;
        align-items:center;
        column-gap:8px;
    }

    .product:last-child img{
        grid-row:1 / span 6;
        width:100%;
        height:90px;
    }

    .product:last-child .rivals-badge,
    .product:last-child h3,
    .product:last-child p,
    .product:last-child .variant-row,
    .product:last-child .custom-text-field,
    .product:last-child .product-buttons{
        grid-column:2;
    }

    .product,
    .product h2,
    .product h3,
    .product button,
    .cart-img,
    .contact-section,
    .contact-section h2,
    .cart-header,
    .sidebar-item,
    .cart-footer button{
        animation:none;
    }

    .product,
    .product:hover,
    .product:hover img,
    .product button:hover,
    .cart-footer button:hover,
    .btn-confirm:hover{
        transform:none;
    }

    .product,
    .sidebar-item,
    .discount-box,
    .contact-section{
        box-shadow:0 4px 14px rgba(0,0,0,0.35);
    }

    .product::after{
        display:none;
    }

    .product h2,
    .product h3{
        font-size:13px;
        letter-spacing:0;
        max-width:100%;
        min-height:auto;
        margin:4px 0 2px;
        overflow-wrap:break-word;
        text-shadow:none;
        animation:none;
    }

    .product p{
        font-size:12px;
        min-height:auto;
        margin:0 0 4px;
    }

    .product .rivals-badge{
        min-height:22px;
        font-size:9px;
        padding:3px 4px;
    }

    .rivals-badge{
        min-height:34px;
        font-size:12px;
        padding:5px 8px;
        gap:4px;
    }

    .rivals-badge img{
        width:18px;
        height:18px;
        flex-shrink:0;
    }

    .variant-row{
        min-height:auto;
    }

    .variant-field{
        min-height:auto;
    }

    .variant-field select,
    .custom-text-field textarea,
    .product button,
    .discount-row input,
    .discount-row button{
        min-height:36px;
        font-size:12px;
    }

    .custom-text-field textarea{
        min-height:60px;
        font-size:12px;
    }

    .product-buttons{
        display:flex;
        width:100%;
        min-width:0;
        gap:4px;
        overflow:hidden;
    }

    .product button{
        flex:1 1 0;
        min-width:0;
        width:0;
        padding:6px 2px;
        font-size:10px;
        line-height:1.1;
        border-radius:8px;
        overflow-wrap:anywhere;
    }

    .variant-label,
    .custom-text-field label{
        font-size:11px;
    }

    .variant-field select{
        padding:4px 6px;
        font-size:12px;
        border-radius:6px;
    }

    @keyframes productTextGlitchMobile{
        0%, 88%, 100%{
            transform:translate(0, 0);
            text-shadow:none;
        }
        94%{
            transform:translate(1px, 0);
            text-shadow:-1px 0 #00e5ff;
        }
        97%{
            transform:translate(-1px, 0);
            text-shadow:1px 0 #00eca6;
        }
    }

    .cart-sidebar{
        width:100%;
        right:-100%;
    }

    .sidebar-item{
        gap:10px;
    }

    .cart-wrapper{
        padding:0 10px;
    }

    #cart{
        padding:10px 0;
    }

    .cart-row{
        display:grid;
        grid-template-columns:1fr;
        gap:10px;
        padding:12px;
    }

    .cart-row .qty{
        grid-column:auto;
        width:100%;
        justify-content:center;
    }

    .cart-row .qty button,
    .cart-row button{
        width:40px;
        height:40px;
    }

    .cart-price{
        grid-column:auto;
        grid-row:auto;
        text-align:center;
        align-self:center;
    }

    .modal-box{
        max-width:none;
        width:calc(100% - 24px);
        padding:18px;
        gap:12px;
        border-radius:14px;
        max-height:90vh;
        overflow:auto;
        box-shadow:0 8px 24px rgba(0,0,0,0.75);
    }

    .modal-box h2{
        font-size:24px;
        animation:none;
        width:auto;
        border-right:none;
    }

    @keyframes modalTitleTypingMobile{
        from{
            width:0;
        }
        to{
            width:15ch;
        }
    }

    .modal-box label{
        font-size:13px;
        gap:4px;
        transform:translateY(12px);
        animation:fieldEnterMobile 0.45s ease forwards;
    }

    @keyframes fieldEnterMobile{
        to{
            opacity:1;
            transform:translateY(0);
        }
    }

    .modal-box input{
        padding:12px;
        font-size:16px;
        min-height:44px;
    }

    .discount-box{
        margin:18px 0;
        max-width:none;
    }

    .discount-row{
        flex-direction:column;
    }

    .discount-row button{
        width:100%;
    }

    .modal-buttons{
        flex-direction:column;
        gap:8px;
    }

    .btn-cancel,
    .btn-confirm{
        width:100%;
        min-height:44px;
    }
}

@media (prefers-reduced-motion: reduce){
    *,
    *::before,
    *::after{
        animation:none !important;
        transition:none !important;
        scroll-behavior:auto !important;
    }
}

.thank-you-box{
    text-align:center;
    padding:60px 20px;
    margin:40px auto;
    max-width:500px;
    background:linear-gradient(145deg, #1a1a1a, #292929);
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,0.55);
}

.thank-you-box h2{
    font-size:28px;
    margin-bottom:12px;
    background:linear-gradient(90deg, #ffffff 0%, #00e5ff 55%, #00eca6 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}

.thank-you-box p{
    font-size:18px;
    color:#00e5ff;
    margin-bottom:24px;
}

.btn-back{
    display:inline-block;
    padding:12px 28px;
    border-radius:10px;
    background:linear-gradient(90deg, #00c853, #00bfa5);
    color:#050505;
    font-weight:bold;
    text-decoration:none;
    transition:0.2s;
}

.btn-back:hover{
    filter:brightness(1.2);
    transform:scale(1.03);
}

main{
    width:100%;
}

.main-nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:24px;
    flex:1;
}

.main-nav a,
.section-heading a{
    color:#d8d8d8;
    font-size:13px;
    text-decoration:none;
    transition:color 0.2s ease;
}

.main-nav a:hover,
.section-heading a:hover{
    color:#00eca6;
}

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

.search-box{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:220px;
    padding:8px 12px;
    border:1px solid rgba(0,229,255,0.25);
    border-radius:999px;
    background:#101010;
}

.search-box input{
    width:100%;
    border:0;
    outline:0;
    background:transparent;
    color:#fff;
    font-size:12px;
}

.search-box span:last-child,
.account-icon{
    color:#00e5ff;
}

.account-icon{
    font-size:26px;
    text-decoration:none;
}

.hero-section,
.personalization-banner{
    width:calc(100% - 56px);
    margin:0 auto;
    border:1px solid rgba(0,229,255,0.3);
    border-radius:14px;
    background:linear-gradient(110deg, #05090a, #101c20 52%, #061014);
    box-shadow:0 12px 30px rgba(0,0,0,0.35);
}

.hero-section{
    min-height:280px;
    display:flex;
    align-items:center;
    padding:42px 12%;
}

.hero-content{
    max-width:520px;
}

.hero-kicker{
    display:inline-block;
    padding:6px 12px;
    border:1px solid rgba(0,236,166,0.35);
    border-radius:999px;
    color:#00eca6;
    font-size:10px;
    letter-spacing:0.5px;
}

.hero-content h2,
.personalization-banner h2{
    margin:14px 0 8px;
    color:#fff;
    font-size:34px;
}

.hero-content h2 span{
    color:#00eca6;
}

.hero-content p,
.personalization-banner p{
    color:#b9c6c8;
}

.hero-actions{
    display:flex;
    gap:12px;
    margin-top:20px;
}

.hero-button{
    display:inline-block;
    padding:12px 22px;
    border:1px solid rgba(0,229,255,0.35);
    border-radius:8px;
    color:#fff;
    text-decoration:none;
    font-weight:bold;
    font-size:13px;
}

.hero-button-primary{
    background:linear-gradient(90deg, #00c853, #00bfa5);
    color:#050505;
}

.benefits-row{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    padding:18px 8%;
}

.benefits-row div{
    display:flex;
    flex-direction:column;
    gap:5px;
    color:#00e5ff;
}

.benefits-row span{
    color:#aeb9ba;
    font-size:11px;
}

.products-section{
    width:100%;
}

.section-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 32px;
}

.section-heading h2{
    margin:12px 0 0;
    color:#fff;
    text-align:left;
}

.no-results{
    grid-column:1 / -1;
    color:#00eca6;
    text-align:center;
}

.personalization-banner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:28px 8%;
    margin-bottom:30px;
}

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

@media (max-width:900px){
    header{
        flex-wrap:wrap;
        gap:12px;
    }

    .main-nav{
        order:3;
        width:100%;
        overflow:auto;
        justify-content:flex-start;
    }

    .search-box{
        min-width:100px;
    }

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

@media (max-width:600px){
    .hero-section,
    .personalization-banner{
        width:calc(100% - 24px);
        padding:24px;
    }

    .hero-content h2,
    .personalization-banner h2{
        font-size:26px;
    }

    .hero-actions,
    .personalization-banner{
        flex-direction:column;
        align-items:stretch;
    }

    .benefits-row{
        padding:16px 24px;
    }

    .section-heading{
        padding:0 8px;
    }

    .products-section{
        margin-top:0;
    }

    .benefits-row strong{
        font-size:14px;
    }

    .benefits-row span{
        font-size:10px;
    }

    .section-heading h2{
        font-size:16px;
    }

    .section-heading a{
        font-size:11px;
    }

    .personalization-banner{
        padding:16px;
    }

    .personalization-banner h2{
        font-size:18px;
    }

    .personalization-banner p{
        font-size:12px;
    }
}

@media (max-width:768px){
    .hero-section,
    .personalization-banner{
        display:none !important;
    }
}