/* Pupix.pl – ciepła, przyjazna paleta */
:root {
    --px-orange: #e8722c;
    --px-orange-dark: #c95c1b;
    --px-cream: #fbf7f1;
    --px-ink: #2b2622;
    --px-muted: #7a716a;
    --px-line: #eadfd3;
    --bs-body-bg: var(--px-cream);
    --bs-body-color: var(--px-ink);
    --bs-link-color: var(--px-orange-dark);
    --bs-link-color-rgb: 201, 92, 27;
    --bs-link-hover-color: #9e4510;
    --bs-border-radius: .75rem;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

main { flex: 1; }

/* --- Nawigacja i logo --- */
.px-navbar {
    background: #fff;
    border-bottom: 1px solid var(--px-line);
}

.px-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--px-ink) !important;
    letter-spacing: -.02em;
}

.px-logo-paw { font-size: 1.25rem; }
.px-logo-tld { color: var(--px-orange); }

.px-search { min-width: 220px; border-radius: 999px; }

/* --- Przyciski --- */
.btn-px {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--px-orange);
    --bs-btn-border-color: var(--px-orange);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--px-orange-dark);
    --bs-btn-hover-border-color: var(--px-orange-dark);
    --bs-btn-active-bg: var(--px-orange-dark);
    --bs-btn-active-border-color: var(--px-orange-dark);
    --bs-btn-active-color: #fff;
    font-weight: 600;
}

/* --- Strona główna --- */
.px-hero {
    background: linear-gradient(135deg, #fff3e8 0%, #ffe3cc 100%);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
}

.px-hero-emoji { font-size: 4.5rem; line-height: 1.2; }

.px-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding: 1.25rem .75rem;
    background: #fff;
    border: 1px solid var(--px-line);
    border-radius: 1rem;
    color: var(--px-ink);
    text-decoration: none;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease;
}

.px-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(232, 114, 44, .15);
    color: var(--px-ink);
}

.px-category-icon { font-size: 2.25rem; }

.px-perk {
    background: #fff;
    border: 1px solid var(--px-line);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
}

.px-perk-icon { font-size: 2rem; line-height: 1; }

/* --- Karty produktów --- */
.px-card {
    border: 1px solid var(--px-line);
    border-radius: 1rem;
    overflow: hidden;
    transition: box-shadow .15s ease;
}

.px-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }

.px-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: #fff6ee;
    text-decoration: none;
}

.px-card-img img,
.px-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.px-card-placeholder { font-size: 3.5rem; }
.px-card-placeholder-lg { font-size: 7rem; }

.px-card .card-title a { color: var(--px-ink); text-decoration: none; }
.px-card .card-title a:hover { color: var(--px-orange-dark); }

.px-price { font-weight: 800; color: var(--px-ink); }

.px-product-img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: #fff6ee;
    border-radius: 1.25rem;
    overflow: hidden;
}

.px-sidebar .list-group-item.active {
    background: var(--px-orange);
    border-color: var(--px-orange);
}

.pagination {
    --bs-pagination-active-bg: var(--px-orange);
    --bs-pagination-active-border-color: var(--px-orange);
    --bs-pagination-color: var(--px-orange-dark);
}

/* --- Koszyk, formularze --- */
.px-summary { position: sticky; top: 1rem; border-color: var(--px-line); }
.px-auth { border-color: var(--px-line); }

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--px-orange);
    box-shadow: 0 0 0 .2rem rgba(232, 114, 44, .2);
}

.form-check-input:checked {
    background-color: var(--px-orange);
    border-color: var(--px-orange);
}

/* Pułapka na boty w formularzu kontaktowym */
.px-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Panel admina --- */
.px-admin .nav-pills {
    --bs-nav-pills-link-active-bg: var(--px-orange);
    --bs-nav-link-color: var(--px-ink);
}

.px-stat {
    background: #fff;
    border: 1px solid var(--px-line);
    border-radius: 1rem;
    padding: 1rem;
    height: 100%;
}

.px-stat-label { font-size: .8rem; color: var(--px-muted); }
.px-stat-value { font-size: 1.5rem; font-weight: 800; }
.px-stat-warn { border-color: #f0b37e; background: #fff6ee; }

/* --- Stopka --- */
.px-footer {
    background: #fff;
    border-top: 1px solid var(--px-line);
}

.px-footer a { color: var(--px-muted); text-decoration: none; }
.px-footer a:hover { color: var(--px-orange-dark); }

/* --- Galeria zdjęć --- */
.px-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.px-thumbs > img,
.px-thumb {
    width: 72px;
    height: 72px;
    border-radius: .6rem;
    object-fit: cover;
    border: 2px solid var(--px-line);
    background: #fff6ee;
}

.px-thumb {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.px-thumb img { width: 100%; height: 100%; object-fit: cover; }
.px-thumb.active, .px-thumb:hover { border-color: var(--px-orange); }

.px-admin-img {
    aspect-ratio: 1 / 1;
    background: #fff6ee;
    overflow: hidden;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.px-admin-img img { width: 100%; height: 100%; object-fit: cover; }

.px-admin-list-thumb {
    width: 40px;
    height: 40px;
    border-radius: .4rem;
    object-fit: cover;
    background: #fff6ee;
}

.px-payu-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border: 2px solid var(--px-orange);
    border-radius: .75rem;
    background: #fff;
    font-weight: 600;
}

/* --- Regulamin i polityka prywatności --- */
.px-legal h2 {
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: .75rem;
    scroll-margin-top: 1rem;
}

.px-legal ol > li,
.px-legal ul > li { margin-bottom: .4rem; }

.px-legal-toc {
    background: #fff;
    border: 1px solid var(--px-line);
    border-radius: 1rem;
    padding: 1rem 1.25rem .5rem;
    columns: 2;
}

.px-legal-toc ol { margin-bottom: .5rem; }

.px-legal-form {
    background: #fff;
    border: 1px dashed var(--px-line);
    border-radius: 1rem;
    padding: 1.25rem;
}

@media (max-width: 576px) {
    .px-legal-toc { columns: 1; }
}

@media print {
    .px-navbar, .px-footer, .px-legal-toc { display: none !important; }
    body { background: #fff; }
}

/* Licznik nowych zamówień / wiadomości dla admina */
.px-badge-new {
    background: #d63a2f;
    color: #fff;
    font-size: .7rem;
    min-width: 1.35rem;
    animation: px-pulse 2s ease-in-out 3;
}

.nav-pills .nav-link.active .px-badge-new {
    background: #fff;
    color: var(--px-orange-dark);
}

@keyframes px-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(214, 58, 47, .5); }
    50% { box-shadow: 0 0 0 .35rem rgba(214, 58, 47, 0); }
}
