/* ZAKTUALIZOWANA PALETA KOLORÓW */
:root {
    --color-primary: #0C1346;   /* Granatowy */
    --color-secondary: #EBEBEBFC; /* Biały / Jasnoszary */
    --color-accent: #B40000;    /* Czerwony */
    --color-text-dark: #1A1A1A;
    --color-gray: #D1D1D1;
}

.kk-shop-wrapper { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.kk-products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; width: 100%; }
.kk-product-card { background: var(--color-secondary); color: var(--color-text-dark); padding: 20px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); text-align: center; display: flex; flex-direction: column; }
.kk-product-card img { width: 100%; border-radius: 8px; object-fit: cover; aspect-ratio: 1/1; background-color: var(--color-gray); }
.kk-product-card h3 { margin: 15px 0 5px; font-size: 1.2rem; color: var(--color-primary); font-weight: 700; }
.kk-price { font-size: 1.3rem; font-weight: bold; color: var(--color-accent); margin: 0 0 10px 0; }
.kk-desc { color: #555; font-size: 0.9rem; margin-bottom: 15px; flex-grow: 1; }
.kk-controls { display: flex; gap: 10px; margin-bottom: 15px; }
.kk-qty-input, .kk-size-select { padding: 10px; border-radius: 6px; border: 1px solid var(--color-gray); font-size: 1rem; box-sizing: border-box; }
.kk-qty-input { width: 70px; text-align: center; }
.kk-size-select { flex-grow: 1; }
.kk-add-to-cart { width: 100%; padding: 12px; background-color: var(--color-accent); color: #FFFFFF; border: none; border-radius: 6px; font-weight: bold; font-size: 1rem; text-transform: uppercase; cursor: pointer; transition: 0.3s; }
.kk-add-to-cart:hover:not(:disabled) { background-color: #900000; }
.kk-product-card.kk-disabled img { filter: grayscale(100%); opacity: 0.5; }
.kk-out-of-stock-msg { color: var(--color-accent); font-weight: bold; font-size: 1.1rem; margin-bottom: 15px; }
.kk-add-to-cart:disabled { background-color: #ccc; color: #666; cursor: not-allowed; }

/* ROZWIĄZANIE PROBLEMU KRAWĘDZI NA MOBILE (Transform zamiast Right) */
.kk-sidebar { 
    position: fixed; top: 0; right: 0; width: 100%; max-width: 450px; height: 100vh; 
    background: var(--color-secondary); color: var(--color-text-dark); 
    box-shadow: -10px 0 30px rgba(0,0,0,0.5); 
    transform: translateX(110%); /* Ukrywa panel oraz jego cień całkowicie poza ekranem */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    z-index: 999999; display: flex; flex-direction: column; 
}
.kk-sidebar.active { transform: translateX(0); }
.kk-sidebar-header { padding: 20px 30px; background: var(--color-primary); display: flex; justify-content: space-between; align-items: center; }
.kk-close-btn { cursor: pointer; color: #FFFFFF; font-weight: bold; }
.kk-cart-content { padding: 20px 30px; flex-grow: 1; overflow-y: auto; }

#kk-cart-items { list-style: none; padding: 0; margin: 0 0 20px 0; }
.kk-cart-item { background: #FFFFFF; padding: 15px; border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid var(--color-primary); box-shadow: 0 2px 5px rgba(0,0,0,0.05);}
.kk-item-info strong { display: block; color: var(--color-primary); margin-bottom: 5px; }
.kk-item-info span { font-size: 0.9rem; color: #666; font-weight: 600; }
.kk-item-actions { display: flex; align-items: center; gap: 10px; }
.kk-item-actions input { width: 50px; padding: 5px; text-align: center; border: 1px solid var(--color-gray); border-radius: 4px; font-weight: bold; }
.kk-remove-btn { background: var(--color-gray); color: var(--color-text-dark); border: none; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; }
.kk-remove-btn:hover { background: var(--color-accent); color: #FFFFFF; }

#kk-cart-total-box { background: var(--color-primary); color: #FFFFFF; padding: 15px; border-radius: 6px; text-align: center; font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; display: none; }
.kk-sidebar form input[type="text"], .kk-sidebar form input[type="tel"], .kk-sidebar form input[type="email"] { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid var(--color-gray); border-radius: 6px; box-sizing: border-box; background: #FFFFFF; }
.kk-sidebar form label { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: 0.9rem; cursor: pointer; }
.pickup-info { background: rgba(12, 19, 70, 0.1); color: var(--color-primary); padding: 15px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; text-align: center; border: 1px dashed var(--color-primary); }
#kk-submit-order { width: 100%; padding: 15px; background: var(--color-accent); color: #FFFFFF; border: none; border-radius: 6px; font-size: 1.1rem; font-weight: bold; text-transform: uppercase; cursor: pointer; transition: 0.3s; }
#kk-submit-order:hover { background: #900000; }

/* DOLNY PASEK MOBILNY */
.kk-mobile-cart-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; 
    background-color: var(--color-primary); color: #FFFFFF; 
    padding: 15px 20px; box-sizing: border-box; 
    display: flex; justify-content: space-between; align-items: center; 
    z-index: 999998; box-shadow: 0 -4px 15px rgba(0,0,0,0.2); 
    transform: translateY(110%); transition: transform 0.3s ease;
}
.kk-mobile-cart-bar.active { transform: translateY(0); }
.kk-mobile-cart-bar-info { font-size: 0.95rem; font-weight: bold; }
.kk-mobile-cart-bar-btn { background-color: var(--color-accent); color: #FFFFFF; border: none; padding: 10px 15px; border-radius: 6px; font-weight: bold; cursor: pointer; }

/* UKRYCIE PASKA MOBILNEGO NA DESKTOPIE */
@media (min-width: 471px) {
    .kk-mobile-cart-bar { display: none !important; }
}

.kk-modal { position: fixed; z-index: 999999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(12, 19, 70, 0.9); display: none; align-items: center; justify-content: center; }
.kk-modal.active { display: flex; }
.kk-modal-content { background: var(--color-secondary); color: var(--color-text-dark); padding: 40px; border-radius: 12px; max-width: 450px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
#kk-order-number-display { font-size: 3rem; font-weight: bold; color: var(--color-primary); letter-spacing: 3px; margin: 20px 0; padding: 15px; background: #FFFFFF; border: 2px dashed var(--color-accent); border-radius: 8px; }
.kk-warning { color: var(--color-accent); font-size: 1.1rem; }
#kk-close-thankyou { margin-top: 20px; padding: 12px 30px; background: var(--color-primary); color: #FFFFFF; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; }
/* --- BLOKADA PRZEWIJANIA TŁA (BODY LOCK) --- */
body.kk-no-scroll {
    overflow: hidden !important;
}

/* --- BLOKADA PRZEWIJANIA TŁA (BODY LOCK) --- */
body.kk-no-scroll {
    overflow: hidden !important;
}

/* --- PRZYCIEMNIAJĄCE TŁO (OVERLAY) --- */
.kk-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 19, 70, 0.7); 
    z-index: 999998; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.kk-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}