:root{
  --cream:#FAF6EE; --brown:#4A3B2A;
  --orange:#F36F21; --yellow:#FFD54F; --green:#8BC34A; --blue:#42A5F5; --purple:#8E24AA;
  --accent:#F36F21; --border:#E8DFD0; --sidebar-w:240px;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Baloo 2',sans-serif;background:var(--cream);color:var(--brown);line-height:1.6}
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.site-header{padding:16px 0;border-bottom:3px solid var(--yellow)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand-logo{height:56px;width:auto;display:block}
.main-nav{display:flex;gap:24px}
.main-nav a,.footer-nav a,.cart-link{color:var(--brown);text-decoration:none;font-weight:500}
.main-nav a:hover{color:var(--orange)}
.site-main{padding:48px 0;min-height:60vh}
.hero{text-align:center;padding:48px 0}
.hero-title{font-size:2.6rem;color:var(--orange);margin-bottom:12px}
.hero-subtitle{font-size:1.2rem;margin-bottom:24px}
.btn{display:inline-block;padding:12px 28px;border-radius:999px;font-weight:600;text-decoration:none}
.btn-primary{background:var(--orange);color:#fff}
.btn-primary:hover{background:#d85f18}
/* Alias BEM (checkout.php używa btn--primary/btn--block) */
.btn--primary{background:var(--orange);color:#fff}
.btn--primary:hover{background:#d85f18}
.btn--block{display:block;width:100%;text-align:center}
.debug-box{margin-top:32px;padding:16px;background:#fff;border-radius:12px;border:2px dashed var(--green);font-size:.9rem}
.site-footer{border-top:3px solid var(--yellow);padding:32px 0;text-align:center}
.footer-nav{display:flex;gap:20px;justify-content:center;margin:12px 0}
.footer-copy,.footer-ship{font-size:.9rem}
@media (max-width:768px){
  .brand-logo{height:44px}
  .hero-title{font-size:2rem}
}
/* ============================================
   SHOP — nagłówek + siatka produktów
   ============================================ */
.shop-header {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
}
.shop-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #F36F21;
    margin: 0 0 .5rem;
}
.shop-subtitle {
    font-size: 1.1rem;
    color: #6b4f3a;
    margin: 0;
}
.shop-empty {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 1.2rem;
    color: #6b4f3a;
}
/* Siatka: 3 → 2 → 1 kolumny (responsywnie) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}
@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1rem 1rem 2.5rem;
    }
}
/* Karta produktu */
.product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}
/* Media / obrazek */
.product-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #FAF6EE;
    overflow: hidden;
}
.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.product-card:hover .product-card-img {
    transform: scale(1.05);
}
.product-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: #FAF6EE;
}
/* Odznaki */
.product-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    font-family: 'Baloo 2', sans-serif;
    color: #fff;
}
.product-badge-featured {
    background: #8BC34A;
}
.product-badge-oos {
    background: #9e9e9e;
}
/* Treść karty */
.product-card-body {
    padding: 1rem 1rem .5rem;
    flex: 1;
}
.product-card-name {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #4a3728;
    margin: 0 0 .4rem;
    line-height: 1.3;
}
.product-card-price {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #F36F21;
    margin: 0;
}
/* Promocje na kartach produktu (home.php/shop.php/category.php — scalone z 3 zduplikowanych bloków inline) */
.price-regular-sm { text-decoration: line-through; color: #999; font-size: .82em; margin-right: 6px; }
.price-current-sm { color: #B23A3A; font-weight: 700; }
.price-badge-sm {
    display: inline-block;
    background: #B23A3A;
    color: #fff;
    font-size: .7em;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 5px;
    margin-left: 6px;
    vertical-align: middle;
}
.product-badge-new { background: var(--blue); color: #fff; }
.product-badge-sale { background: #B23A3A; color: #fff; }

/* Akcje */
.product-card-actions {
    padding: 0 1rem 1rem;
}
.product-card-btn {
    width: 100%;
}
.btn-disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
}
/* ============================================
   PRODUCT SINGLE — Stage 3
   ============================================ */
/* --- Breadcrumbs --- */
.breadcrumbs {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1.25rem;
    font-size: 0.9rem;
    color: #7a6a58;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}
.breadcrumbs a {
    color: #7a6a58;
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumbs a:hover {
    color: #F36F21;
}
.breadcrumbs .sep {
    color: #c9bca9;
}
.breadcrumbs .current {
    color: #4a3b2c;
    font-weight: 600;
}
/* --- Layout --- */
.product-single {
    max-width: 1200px;
    margin: 1rem auto 4rem;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
/* --- Gallery --- */
.product-gallery {
    position: sticky;
    top: 1.5rem;
}
.gallery-main {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(74, 59, 44, 0.08);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
}
.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.9rem;
}
.gallery-thumbs .thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.15s ease;
}
.gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-thumbs .thumb:hover {
    transform: translateY(-2px);
}
.gallery-thumbs .thumb.is-active {
    border-color: #F36F21;
}
/* --- Info --- */
.product-info {
    padding-top: 0.5rem;
}
.product-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: 2.2rem;
    line-height: 1.15;
    color: #4a3b2c;
    margin: 0 0 0.6rem;
}
.product-sku {
    font-size: 0.85rem;
    color: #9a8a76;
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}
.product-price {
    font-family: 'Baloo 2', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #F36F21;
    margin: 0 0 1rem;
}
/* --- Availability --- */
.product-availability {
    margin-bottom: 1.5rem;
}
.stock {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}
.stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.stock-in {
    background: rgba(139, 195, 74, 0.15);
    color: #5a8a1e;
}
.stock-low {
    background: rgba(255, 213, 79, 0.25);
    color: #a67c00;
}
.stock-out {
    background: rgba(243, 111, 33, 0.12);
    color: #c4491a;
}
/* --- Variants / Pills --- */
.product-variants {
    margin-bottom: 1.75rem;
}
.variants-label {
    font-weight: 600;
    color: #4a3b2c;
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
}
.variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.variant-pills .pill {
    font-family: 'Baloo 2', sans-serif;
    font-size: 0.95rem;
    padding: 0.55rem 1.2rem;
    border: 2px solid #e4d9c6;
    border-radius: 999px;
    background: #fff;
    color: #4a3b2c;
    cursor: pointer;
    transition: all 0.2s ease;
}
.variant-pills .pill:hover:not(.is-disabled) {
    border-color: #FFD54F;
    transform: translateY(-1px);
}
.variant-pills .pill.is-active {
    border-color: #F36F21;
    background: #F36F21;
    color: #fff;
}
.variant-pills .pill.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}
/* --- Actions --- */
.product-actions {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.qty-control {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.qty-control label {
    font-size: 0.85rem;
    color: #7a6a58;
    font-weight: 600;
}
.qty-control input {
    width: 80px;
    padding: 0.7rem;
    border: 2px solid #e4d9c6;
    border-radius: 12px;
    font-family: 'Baloo 2', sans-serif;
    font-size: 1rem;
    text-align: center;
    color: #4a3b2c;
}
.qty-control input:focus {
    outline: none;
    border-color: #FFD54F;
}
.btn-cart {
    flex: 1;
    min-width: 200px;
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: #8BC34A;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.btn-cart:hover:not(:disabled) {
    background: #7cb33e;
    transform: translateY(-2px);
}
.btn-cart:disabled {
    background: #cfc6b6;
    cursor: not-allowed;
}
.btn-cart.is-added {
    background: #42A5F5;
}
/* --- Description --- */
.product-description {
    border-top: 1px solid #eaddc9;
    padding-top: 1.5rem;
}
.product-description h2 {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.3rem;
    color: #4a3b2c;
    margin: 0 0 0.75rem;
}
.desc-body {
    color: #5f5040;
    line-height: 1.7;
    font-size: 1rem;
}
/* --- Error page --- */
.error-page {
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 1.25rem;
    text-align: center;
}
.error-page h1 {
    font-family: 'Baloo 2', sans-serif;
    color: #4a3b2c;
    margin-bottom: 1.5rem;
}
/* --- Responsive --- */
@media (max-width: 860px) {
    .product-single {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .product-gallery {
        position: static;
    }
    .product-title {
        font-size: 1.7rem;
    }
    .product-price {
        font-size: 1.6rem;
    }
    .btn-cart {
        min-width: 100%;
    }
}
/* ===== Toasty ===== */
.toast-host {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    pointer-events: none;
}
.toast {
    min-width: 220px;
    max-width: 320px;
    padding: .85rem 1.1rem;
    border-radius: 14px;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 8px 24px rgba(74, 59, 44, .18);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
}
.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.toast-success { background: #8BC34A; }
.toast-error   { background: #F36F21; }
.toast-warning { background: var(--yellow); color: var(--brown); }
/* ===== Pop licznika koszyka ===== */
.cart-count-pop {
    animation: cartPop .35s ease;
}
@keyframes cartPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}
/* Stan ładowania przycisków */
.btn.is-loading { opacity: .6; cursor: wait; }
.btn.is-added   { background: #8BC34A !important; }
/* ============ STOPKA ============ */
.site-footer {
    background: #FFFFFF;
    border-top: 3px solid #FFD54F;
    margin-top: 4rem;
    color: #4A3B2C;
    font-family: 'Baloo 2', sans-serif;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2.5rem 1rem;
}
.footer-col { min-width: 0; }
.footer-logo-name {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #F36F21;
    margin: 0 0 .25rem;
}
.footer-tagline { font-style: italic; opacity: .8; margin: 0 0 1rem; }
.footer-ship { font-weight: 600; color: #8BC34A; }
.footer-head {
    font-size: 1.05rem;
    margin: 0 0 .9rem;
    color: #8E24AA;
}
.footer-nav { display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a,
.footer-address a {
    color: #4A3B2C;
    text-decoration: none;
    transition: color .15s;
}
.footer-nav a:hover,
.footer-address a:hover { color: #42A5F5; }
.footer-address {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-style: normal;
    line-height: 1.4;
}
/* Pasek płatności */
.footer-payments {
    border-top: 1px solid #F0E9DA;
    background: #FAF6EE;
}
.footer-payments-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 1.8rem 1rem;
}
.footer-payments-label { 
    font-size: .95rem; 
    opacity: .8; 
    font-weight: 500;
}
.footer-payments-img {
    width: 100%;
    max-width: 420px;   /* <-- sterujesz TYM rozmiarem banera */
    height: auto;
    display: block;
}
/* Copyright */
.footer-bottom {
    background: #4A3B2C;
    color: #FAF6EE;
    text-align: center;
    padding: .9rem 1rem;
}
.footer-copy { margin: 0; font-size: .85rem; }
/* Newsletter (stopka jasna/kremowa) */
.footer-newsletter{margin-top:16px}
.footer-newsletter-label{font-weight:600;margin-bottom:8px;font-size:14px;color:#4A3B2C}
.footer-newsletter-form{display:flex;gap:8px;max-width:320px}
.footer-newsletter-form input{
    flex:1;padding:11px 14px;border-radius:10px;
    border:2px solid #e4d9c6;background:#fff;color:#4A3B2C;font-size:14px;
    font-family:'Baloo 2',sans-serif;
}
.footer-newsletter-form input::placeholder{color:#9a8a76}
.footer-newsletter-form input:focus{outline:none;border-color:#F36F21}
.footer-newsletter-form button{
    padding:11px 18px;border-radius:10px;border:none;
    background:#F36F21;color:#fff;font-weight:600;cursor:pointer;font-size:14px;
    font-family:'Baloo 2',sans-serif;transition:background .15s ease;
}
.footer-newsletter-form button:hover{background:#d85f18}
.footer-newsletter-msg{margin-top:8px;font-size:13px}
.footer-newsletter-msg.is-ok{color:#5a8a1e}
.footer-newsletter-msg.is-err{color:#c4491a}
/* Mobile */
@media (max-width: 720px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        text-align: center;
    }
    .footer-nav { align-items: center; }
    .footer-address { align-items: center; }
    .footer-payments-inner { gap: .6rem; }
    .footer-payments-img { max-width: 300px; }
    .footer-newsletter-form { max-width: 100%; margin: 0 auto; }
}
/* ============================================
   STRONY PRAWNE + KONTAKT — Etap 5A
   ============================================ */
.legal-page {
    padding: 2rem 0 4rem;
}
.legal-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.legal-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    color: #F36F21;
    margin: 0 0 .4rem;
    line-height: 1.15;
}
.legal-updated {
    font-size: .85rem;
    color: #9a8a76;
    margin: 0 0 2rem;
    letter-spacing: .02em;
}
/* --- Treść dokumentu --- */
.legal-body,
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 6px 24px rgba(74, 59, 44, .06);
    color: #5f5040;
    line-height: 1.75;
}
.legal-body h1,
.legal-content h1 {
    font-family: 'Baloo 2', sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    color: #F36F21;
    margin: 0 0 .4rem;
    line-height: 1.15;
}
.legal-body h2,
.legal-content h2 {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.3rem;
    color: #4A3B2C;
    margin: 2rem 0 .8rem;
    padding-top: .5rem;
    border-top: 1px solid #F0E9DA;
}
.legal-body h2:first-of-type,
.legal-content h2:first-of-type,
.legal-body section:first-of-type h2,
.legal-content section:first-of-type h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.legal-body p,
.legal-content p {
    margin: 0 0 1rem;
}
.legal-body ul,
.legal-content ul {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
}
.legal-body li,
.legal-content li {
    margin-bottom: .5rem;
}
.legal-body strong,
.legal-content strong {
    color: #4A3B2C;
    font-weight: 600;
}
.legal-body a,
.legal-content a {
    color: #42A5F5;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s ease;
}
.legal-body a:hover,
.legal-content a:hover {
    color: #F36F21;
    text-decoration: underline;
}
.legal-address {
    font-style: normal;
    background: #FAF6EE;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 0 0 1.25rem;
    line-height: 1.6;
}
/* --- Formularz odstąpienia od umowy: linie do wypełnienia --- */
.legal-form-block { margin-top: 2.5rem; }
.legal-form-hint {
    font-size: .85rem;
    color: #9a8a76;
    font-style: italic;
    margin: 0 0 1rem;
}
.legal-form-box {
    background: #FAF6EE;
    border: 1px dashed #d8cbb4;
    border-radius: 14px;
    padding: 1.5rem 1.5rem 1rem;
}
.legal-form-box p { margin: 0 0 1rem; }
.legal-form-line {
    display: inline-block;
    min-width: 220px;
    max-width: 100%;
    border-bottom: 1px solid #b8a98f;
    padding-bottom: 2px;
}
.legal-form-note {
    font-size: .8rem;
    color: #9a8a76;
    margin-top: 1rem;
}
/* --- Przycisk powrotu --- */
.legal-back {
    display: inline-block;
    margin-top: 1.75rem;
    padding: .7rem 1.6rem;
    border-radius: 999px;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    color: #4A3B2C;
    background: #FFD54F;
    text-decoration: none;
    transition: transform .15s ease, background .2s ease;
}
.legal-back:hover {
    background: #ffca28;
    transform: translateY(-2px);
}
/* ============================================
   KONTAKT — grid kart (dopasowane do legal_contact.php)
   ============================================ */
.contact-intro {
    color: #5f5040;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 0 2rem;
    line-height: 1.7;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.contact-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.6rem 1.5rem;
    box-shadow: 0 4px 16px rgba(74, 59, 44, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(74, 59, 44, .10);
}
.contact-card-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: .75rem;
    display: block;
}
.contact-card-label {
    font-family: 'Baloo 2', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8E24AA;
    margin: 0 0 .5rem;
}
/* Wartości: link (mail/tel) oraz zwykły tekst */
.contact-card-link,
.contact-card-text {
    font-size: 1.05rem;
    color: #4A3B2C;
    line-height: 1.45;
    display: block;
}
.contact-card-link {
    color: #F36F21;
    text-decoration: none;
    font-weight: 600;
    transition: color .15s ease;
    word-break: break-word;
}
.contact-card-link:hover {
    color: #42A5F5;
}
/* --- Blok danych sprzedawcy --- */
.contact-seller {
    background: #fff;
    border-radius: 20px;
    padding: 1.8rem 2rem;
    box-shadow: 0 6px 24px rgba(74, 59, 44, .06);
    border-left: 6px solid #8BC34A;
    margin-bottom: 1rem;
}
.contact-seller-head {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.2rem;
    color: #4A3B2C;
    margin: 0 0 1rem;
}
.contact-seller-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.contact-seller-list li {
    padding: .55rem 0;
    border-bottom: 1px dashed #F0E9DA;
    font-size: .98rem;
    color: #5f5040;
    line-height: 1.5;
}
.contact-seller-list li:last-child {
    border-bottom: none;
}
.contact-seller-list li strong {
    color: #4A3B2C;
    font-weight: 600;
    font-size: 1.05rem;
}
/* --- Responsive --- */
@media (max-width: 640px) {
    .legal-body,
    .legal-content {
        padding: 1.6rem 1.4rem;
        border-radius: 16px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-seller {
        padding: 1.5rem 1.4rem;
    }
    .legal-form-line { min-width: 140px; }
}
/* ============================================
   CHECKOUT (Etap 5)
   ============================================ */
.checkout-page { padding: 2rem 0 4rem; }
.checkout-title {
  font-family: 'Baloo 2', sans-serif;
  color: var(--brown, #4A3B2C);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 1.5rem;
}
/* Layout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}
/* Sekcje formularza */
.checkout-section {
  background: #fff;
  border: 2px solid #f0e9db;
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.checkout-section__title {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.15rem;
  color: var(--brown, #4A3B2C);
  margin: 0 0 1rem;
}
/* Pola */
.form-field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.form-field:last-child { margin-bottom: 0; }
.form-field label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--brown, #4A3B2C);
  margin-bottom: .35rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: .7rem .9rem;
  border: 2px solid #e6ddcb;
  border-radius: 12px;
  background: #fffdf8;
  color: var(--brown, #4A3B2C);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange, #F36F21);
  box-shadow: 0 0 0 3px rgba(243,111,33,.15);
}
.form-field textarea { resize: vertical; min-height: 72px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field--sm { max-width: 100%; }
/* Błędy */
.form-field.has-error input,
.form-field.has-error select,
.checkbox.has-error {
  border-color: #e5533d;
}
.field-error {
  display: block;
  color: #c0392b;
  font-size: .82rem;
  margin-top: .3rem;
}
.form-hint {
  display: block;
  color: #9a8a76;
  font-size: .82rem;
  margin-top: .3rem;
}
.checkout-alert {
  background: #fdecea;
  border: 2px solid #f5c6c0;
  color: #b03a2e;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
/* ── Alert sukcesu (zielony) — reużywany: auth, konto, checkout ── */
.checkout-alert--ok {
    background: #E8F5E9;
    border-color: #A5D6A7;
    color: #2E7D32;
}
/* Podsumowanie */
.checkout-summary {
  background: #fff;
  border: 2px solid #f0e9db;
  border-radius: 18px;
  padding: 1.5rem;
  position: sticky;
  top: 1.5rem;
}
.checkout-summary__title {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.2rem;
  color: var(--brown, #4A3B2C);
  margin: 0 0 1rem;
}
.checkout-items { list-style: none; margin: 0 0 1rem; padding: 0; }
.checkout-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .6rem 0;
  border-bottom: 1px solid #f2ecdf;
}
.checkout-item__thumb {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f1e6;
}
.checkout-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item__qty {
  position: absolute; top: -6px; right: -6px;
  background: var(--orange, #F36F21);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  padding: 0 4px;
}
.checkout-item__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.checkout-item__name {
  font-size: .9rem; font-weight: 600; color: var(--brown, #4A3B2C);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.checkout-item__variant { font-size: .78rem; color: #9b8c76; }
.checkout-item__price { font-size: .9rem; font-weight: 700; color: var(--brown, #4A3B2C); }
.checkout-totals { margin: 1rem 0; }
.checkout-totals__row {
  display: flex; justify-content: space-between;
  padding: .4rem 0;
  color: var(--brown, #4A3B2C);
}
.checkout-totals__row dt, .checkout-totals__row dd { margin: 0; }
.checkout-totals__row--total {
  border-top: 2px solid #f0e9db;
  margin-top: .4rem; padding-top: .7rem;
  font-size: 1.15rem; font-weight: 700;
}
.is-free { color: var(--green, #8BC34A); font-weight: 700; }
/* Zgody */
.checkout-consents { margin: 1rem 0 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.checkbox {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .86rem; line-height: 1.4; color: var(--brown, #4A3B2C);
  cursor: pointer;
}
.checkbox input { margin-top: .15rem; width: 18px; height: 18px; accent-color: var(--orange, #F36F21); flex-shrink: 0; }
.checkbox a { color: var(--blue, #42A5F5); text-decoration: underline; }
/* Przyciski */
.checkout-submit { margin-top: .5rem; }
.btn--block { display: block; width: 100%; text-align: center; }
.checkout-back {
  display: inline-block; margin-top: .9rem;
  font-size: .9rem; color: #9b8c76; text-decoration: none;
}
.checkout-back:hover { color: var(--orange, #F36F21); }
/* Pusty koszyk */
.checkout-empty { text-align: center; padding: 3rem 1rem; }
.checkout-empty p { font-size: 1.1rem; color: #9b8c76; margin-bottom: 1.25rem; }
/* ---- Responsywność ---- */
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: 2; }
  .checkout-main { order: 1; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}
/* --- Nav dropdown (kategorie) --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown-toggle {
    cursor: pointer;
}
.nav-caret {
    font-size: .7em;
    transition: transform .2s ease;
}
.nav-dropdown:hover .nav-caret {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--cream, #FAF6EE);
    border: 1px solid var(--border, #E8DFD0);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(62, 44, 35, .12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 8px 18px;
    color: var(--brown, #4A3728);
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.nav-dropdown-menu a:hover {
    background: var(--yellow, #FFD93D);
    color: var(--brown, #4A3728);
}
/* ===== Koszyk: ikony SVG (fix tofu na Baloo 2/Sniglet) ===== */
.qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brown);
    line-height: 0;
    cursor: pointer;
}
.cart-remove-btn:hover {
    color: var(--accent);
    transform: scale(1.15);
}
.cart-remove-btn svg { display: block; }
/* ============================================
   KOSZYK (Cart Page) — pełny layout — Etap 5B
   ============================================ */
.cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}
.cart-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    color: #F36F21;
    margin: 0 0 1.75rem;
}
/* ---- Pusty koszyk ---- */
.cart-empty {
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 3.5rem 1.5rem;
    box-shadow: 0 6px 24px rgba(74, 59, 44, .06);
}
.cart-empty-icon { font-size: 3.5rem; margin-bottom: .75rem; }
.cart-empty h2 {
    font-family: 'Baloo 2', sans-serif;
    color: #4A3B2C;
    font-size: 1.5rem;
    margin: 0 0 .5rem;
}
.cart-empty p { color: #7a6a58; margin: 0 0 1.5rem; }
/* ---- Layout: lista + podsumowanie ---- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}
/* ---- Pasek darmowej dostawy ---- */
.free-ship-bar {
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 16px rgba(74, 59, 44, .05);
}
.free-ship-msg {
    margin: 0 0 .6rem;
    font-size: .95rem;
    font-weight: 600;
    color: #4A3B2C;
}
.free-ship-bar[data-got="1"] .free-ship-msg { color: #5a8a1e; }
.free-ship-track {
    height: 8px;
    background: #F0E9DA;
    border-radius: 999px;
    overflow: hidden;
}
.free-ship-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD54F, #8BC34A);
    border-radius: 999px;
    transition: width .35s ease;
}
/* ---- Wiersz produktu ---- */
.cart-items { min-width: 0; }
.cart-row {
    display: grid;
    grid-template-columns: 84px 1fr 120px 150px 130px 44px;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(74, 59, 44, .05);
    transition: opacity .25s ease, transform .25s ease, height .25s ease;
    overflow: hidden;
}
.cart-row.is-removing {
    opacity: 0;
    transform: translateX(-20px);
}
.cart-row.is-busy { opacity: .6; pointer-events: none; }
.cart-row.is-oos { border: 2px solid #f5c6c0; }
/* Media */
.cart-row-media {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    background: #FAF6EE;
}
.cart-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Info */
.cart-row-info { min-width: 0; }
.cart-row-name {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #4A3B2C;
    margin: 0 0 .25rem;
    line-height: 1.3;
}
.cart-row-variant {
    font-size: .85rem;
    color: #9a8a76;
    margin: 0 0 .2rem;
}
.cart-row-oos {
    font-size: .82rem;
    font-weight: 600;
    color: #c4491a;
    margin: .2rem 0 0;
}
.cart-row-price-mobile { display: none; }
/* Cena jednostkowa (desktop) */
.cart-row-price {
    text-align: center;
    font-weight: 600;
    color: #6b4f3a;
}
/* Etykiety komórek (widoczne tylko mobile) */
.cart-cell-label { display: none; }
/* Ilość — stepper */
.cart-row-qty { display: flex; justify-content: center; }
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e4d9c6;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    padding: 0;
}
.qty-btn:hover:not(:disabled) { background: #FAF6EE; }
.qty-input {
    width: 46px;
    height: 36px;
    border: none;
    border-left: 2px solid #e4d9c6;
    border-right: 2px solid #e4d9c6;
    text-align: center;
    font-family: 'Baloo 2', sans-serif;
    font-size: 1rem;
    color: #4A3B2C;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input:focus { outline: none; }
/* Suma wiersza */
.cart-row-total {
    text-align: center;
    font-weight: 700;
    color: #4A3B2C;
}
.cart-row-total-val { font-size: 1.05rem; }
/* Usuwanie */
.cart-row-remove { display: flex; justify-content: center; }
.cart-remove-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    padding: 0;
}
.cart-remove-btn:hover { background: rgba(243, 111, 33, .1); }
/* ---- Kod rabatowy ---- */
.coupon-box { margin: 1rem 0; }
.coupon-form {
    display: flex;
    gap: .5rem;
}
.coupon-input {
    flex: 1;
    min-width: 0;
    font-family: 'Baloo 2', sans-serif;
    font-size: .95rem;
    padding: .7rem .9rem;
    border: 2px solid #e4d9c6;
    border-radius: 12px;
    background: #fffdf8;
    color: #4A3B2C;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.coupon-input::placeholder { color: #9a8a76; }
.coupon-input:focus {
    outline: none;
    border-color: #F36F21;
    box-shadow: 0 0 0 3px rgba(243,111,33,.15);
}
.coupon-apply-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: .7rem 1.25rem;
}
.coupon-msg { margin-top: .5rem; font-size: .85rem; font-weight: 600; }
.coupon-msg.is-ok { color: #5a8a1e; }
.coupon-msg.is-error { color: #c4491a; }
.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    background: rgba(139, 195, 74, .12);
    border: 2px solid #8BC34A;
    border-radius: 12px;
    padding: .7rem 1rem;
}
.coupon-applied-code {
    font-weight: 700;
    color: #4A3B2C;
}
.coupon-remove-btn {
    border: none;
    background: transparent;
    color: #c4491a;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    text-decoration: underline;
}
.summary-discount span:last-child { color: #5a8a1e; font-weight: 700; }
/* ---- Narzędzia (kontynuuj / wyczyść) ---- */
.cart-tools {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.btn-ghost {
    background: transparent;
    border: 2px solid #e4d9c6;
    color: #4A3B2C;
    padding: .7rem 1.5rem;
    border-radius: 999px;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.btn-ghost:hover {
    border-color: #F36F21;
    color: #F36F21;
    background: #fff;
}
.cart-clear-btn {
    border-color: #f0c9c0;
    color: #c4491a;
}
.cart-clear-btn:hover {
    border-color: #c4491a;
    color: #c4491a;
    background: #fdecea;
}
/* ---- Podsumowanie (aside) ---- */
.cart-summary {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 6px 24px rgba(74, 59, 44, .07);
    position: sticky;
    top: 1.5rem;
}
.cart-summary-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.25rem;
    color: #4A3B2C;
    margin: 0 0 1.25rem;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem 0;
    color: #5f5040;
    font-size: .98rem;
}
.summary-total {
    border-top: 2px solid #F0E9DA;
    margin-top: .5rem;
    padding-top: 1rem;
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #4A3B2C;
}
.ship-free {
    color: #8BC34A;
    font-weight: 700;
}
.btn-checkout {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1.25rem;
    padding: .95rem 1.5rem;
    font-size: 1.05rem;
}
/* ---- Toast koszyka ---- */
.cart-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #4A3B2C;
    color: #FAF6EE;
    padding: .85rem 1.5rem;
    border-radius: 14px;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(74, 59, 44, .25);
    opacity: 0;
    z-index: 9999;
    transition: opacity .3s ease, transform .3s ease;
}
.cart-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* ============================================
   KOSZYK — Responsywność
   ============================================ */
/* Tablet: podsumowanie pod listą */
@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static;
    }
}
/* Mobile: wiersz jako karta (etykiety widoczne) */
@media (max-width: 640px) {
    .cart-row {
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            "media info"
            "media price"
            "media qty"
            "total total"
            "remove remove";
        gap: .5rem 1rem;
        padding: 1rem;
        align-items: center;
    }
    .cart-row-media {
        grid-area: media;
        width: 72px;
        height: 72px;
        align-self: start;
    }
    .cart-row-info    { grid-area: info; }
    .cart-row-remove  { grid-area: remove; justify-content: stretch; }
    .cart-row-remove .cart-remove-btn {
        width: 100%;
        border-radius: 10px;
        border: 2px solid #f0c9c0;
        color: #c4491a;
        gap: .4rem;
    }
    .cart-row-remove .cart-remove-btn::after {
        content: "Usuń";
        font-family: 'Baloo 2', sans-serif;
        font-weight: 600;
        font-size: .9rem;
    }
    .cart-row-price   { grid-area: price; }
    .cart-row-qty     { grid-area: qty; }
    .cart-row-total   { grid-area: total; }
    /* Cena jednostkowa desktopowa — ukryj, pokaż mobilną w info */
    .cart-row-price   { display: flex; justify-content: space-between; align-items: center; text-align: left; }
    .cart-row-qty     { justify-content: flex-start; }
    .cart-row-total   {
        display: flex; justify-content: space-between; align-items: center; text-align: left;
        border-top: 1px dashed #e4d9c6; padding-top: .5rem; margin-top: .25rem;
    }
    /* Etykiety widoczne w trybie mobilnym */
    .cart-cell-label {
        display: inline;
        font-size: .8rem;
        color: #9a8a76;
        font-weight: 500;
    }
    /* Ukryj powtórzoną cenę mobilną z info (mamy już .cart-row-price) */
    .cart-row-price-mobile { display: none; }
    .cart-tools {
        flex-direction: column;
    }
    .btn-ghost { width: 100%; text-align: center; }
    .coupon-form { flex-direction: column; }
    .coupon-apply-btn { width: 100%; text-align: center; }
}
/* ============================================
   SHOP CATALOG — sidebar, filters, pagination
   ============================================ */
.shop-q      { color: var(--orange); }
/* Layout: sidebar + main */
.shop-layout {
    display: grid;
    grid-template-columns: var(--sidebar-w, 240px) 1fr;
    gap: 2rem;
    align-items: start;
}
/* ---- Sidebar ---- */
.shop-sidebar {
    position: sticky;
    top: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
}
.filter-group { margin-bottom: 1.5rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label {
    display: block;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: .5rem;
    font-size: .95rem;
}
.filter-input {
    width: 100%;
    padding: .55rem .7rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: 'Baloo 2', sans-serif;
    color: var(--brown);
    background: #fff;
}
.filter-input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(243,111,33,.15);
}
.filter-search { display: flex; gap: .4rem; }
.filter-search .filter-input { flex: 1; }
.filter-search-btn {
    border: 1px solid var(--border);
    background: var(--yellow);
    border-radius: 10px;
    padding: 0 .8rem;
    cursor: pointer;
    font-size: 1rem;
}
/* Kategorie */
.filter-cats { list-style: none; margin: 0; padding: 0; }
.filter-cats li { padding-left: calc(var(--depth, 0) * 0.9rem); }
.filter-cat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding: .4rem .55rem;
    border-radius: 8px;
    color: var(--brown);
    text-decoration: none;
    font-size: .92rem;
    transition: background .15s;
}
.filter-cat:hover { background: var(--cream); }
.filter-cat.is-active {
    background: var(--orange);
    color: #fff;
    font-weight: 600;
}
.filter-cat-count {
    font-size: .78rem;
    opacity: .7;
    background: rgba(0,0,0,.06);
    border-radius: 999px;
    padding: .05rem .5rem;
    min-width: 1.5rem;
    text-align: center;
}
.filter-cat.is-active .filter-cat-count {
    background: rgba(255,255,255,.3);
    opacity: 1;
}
/* Cena */
.filter-price { display: flex; align-items: center; gap: .4rem; }
.filter-price-input { text-align: center; }
.filter-price-sep { color: var(--brown); opacity: .5; }
.filter-actions { display: flex; flex-direction: column; gap: .6rem; }
.filter-apply { width: 100%; }
.filter-clear {
    text-align: center;
    color: var(--orange);
    text-decoration: none;
    font-size: .9rem;
}
.filter-clear:hover { text-decoration: underline; }
/* ---- Main / toolbar ---- */
.shop-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
.shop-sort-form { display: flex; align-items: center; gap: .5rem; }
.shop-sort-label { color: var(--brown); font-size: .9rem; }
.shop-sort-select {
    padding: .5rem .7rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font-family: 'Baloo 2', sans-serif;
    color: var(--brown);
    cursor: pointer;
}
/* ---- Empty ---- */
.shop-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--brown);
}
.shop-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
/* ---- Pagination ---- */
.shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    margin: 2rem 0 1rem;
    flex-wrap: wrap;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 .5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--brown);
    text-decoration: none;
    font-family: 'Baloo 2', sans-serif;
    background: #fff;
    transition: background .15s, color .15s;
}
.page-link:hover { background: var(--cream); }
.page-link.is-active {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    font-weight: 600;
}
.page-gap { color: var(--brown); opacity: .5; padding: 0 .2rem; }
/* ---- Mobile toggle ---- */
.shop-filter-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .8rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--brown);
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}
.shop-filter-dot {
    width: 8px; height: 8px;
    background: var(--orange);
    border-radius: 50%;
    margin-left: auto;
}
/* ---- Responsive ---- */
@media (max-width: 860px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-filter-toggle { display: flex; }
    .shop-sidebar {
        position: static;
        display: none;
    }
    .shop-sidebar.is-open { display: block; }
    .shop-toolbar { justify-content: space-between; }
}
/* --- KONTENER: jedyny element pozycjonowany absolutnie --- */
.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product-card-media .card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}
/* --- BADGE'Y: static, NIE pozycjonowane, układane przez flex --- */
.product-card-media .card-badges .product-badge {
  position: static;   /* nadpisuje absolute */
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(62, 44, 35, 0.18);
}
/* Kolory wg Decision 69 */
.product-card-media .product-badge-featured {
  background: var(--yellow);
  color: var(--brown);
}
.product-badge-low {
  background: #B23A3A !important;
  color: #fff !important;
}
.product-card-media .product-badge-oos {
  background: var(--brown);
  color: #fff;
}
/* Wygaszenie karty niedostępnej */
.product-card.is-oos .product-card-img {
    filter: grayscale(0.4) opacity(0.75);
}
.account-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text, #4a3f35);
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background .15s ease;
}
.account-link:hover {
    background: rgba(255, 200, 120, .18);
}
.account-icon { font-size: 1.05rem; line-height: 1; }
@media (max-width: 640px) {
    .account-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}
/* ============================================
   ETAP 8 — DASHBOARD KONTA (dopasowane do dashboard.php)
   ============================================ */
.account-dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
/* auth-card już masz w bazie — tu tylko dopełnienie */
.account-dashboard .auth-card {
    margin: 0;
}
/* --- POWITANIE --- */
.account-welcome-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.account-welcome-row .auth-title {
    margin: 0 0 .25rem;
}
.account-welcome-row .auth-sub {
    margin: 0;
    color: #8a7a6d;
}
/* --- NAGŁÓWKI SEKCJI --- */
.account-section-title {
    margin: 0 0 1.25rem;
    font-size: 1.15rem;
    color: #5a4a3d;
}
/* --- TABELA ZAMÓWIEŃ --- */
.account-orders-table-wrap {
    overflow-x: auto;
}
.account-orders-table {
    width: 100%;
    border-collapse: collapse;
}
.account-orders-table th,
.account-orders-table td {
    text-align: left;
    padding: .8rem .6rem;
    border-bottom: 1px solid #f5eee6;
    font-size: .95rem;
    white-space: nowrap;
}
.account-orders-table th {
    color: #8a7a6d;
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.account-orders-table tr:last-child td {
    border-bottom: none;
}
.account-orders-table .order-number {
    font-family: monospace;
    font-weight: 600;
    color: #4a3d33;
}
.account-orders-table .ta-right {
    text-align: right;
    font-weight: 600;
}
/* --- BADGE STATUSU --- */
.order-badge {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
}
.order-badge--ok {
    background: #E6F7EC;
    color: #1E8E4E;
}
.order-badge--pending {
    background: #FFF4E0;
    color: #B77B00;
}
.order-badge--bad {
    background: #FDECEC;
    color: #C0392B;
}
/* --- GRID: DANE + AKCJE --- */
.account-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 800px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}
/* --- LISTA DANYCH (dl/dt/dd) --- */
.account-data-list {
    margin: 0;
    display: grid;
    gap: .9rem;
}
.account-data-list dt {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #a89686;
    margin: 0 0 .1rem;
}
.account-data-list dd {
    margin: 0;
    color: #4a3d33;
    font-weight: 500;
    word-break: break-word;
}
/* --- SZYBKIE AKCJE --- */
.account-actions-list {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
/* --- WYLOGUJ (górny przycisk) --- */
.account-logout-btn {
    white-space: nowrap;
}
/* --- PUSTE ZAMÓWIENIA --- */
.account-empty {
    color: #8a7a6d;
    margin: 0 0 1rem;
}
/* ===== Account dropdown (header) ===== */
.account-dropdown {
    position: relative;
    display: inline-block;
}
.account-dropdown-toggle {
    cursor: pointer;
    border: none;
    background: transparent;
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.account-dropdown-toggle .nav-caret {
    font-size: .7em;
    transition: transform .18s ease;
}
.account-dropdown.is-open .nav-caret {
    transform: rotate(180deg);
}
.account-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 2px solid #FFE0B2;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 60;
}
.account-dropdown.is-open .account-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.account-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: #5D4037;
    text-decoration: none;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.account-dropdown-menu a:hover {
    background: #FFF3E0;
    color: #E65100;
}
.account-dropdown-sep {
    height: 1px;
    background: #FFE0B2;
    margin: 6px 8px;
}
.account-dropdown-logout {
    color: #C62828 !important;
}
.account-dropdown-logout:hover {
    background: #FFEBEE !important;
    color: #B71C1C !important;
}
/* strzałka nad menu */
.account-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 22px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 2px solid #FFE0B2;
    border-top: 2px solid #FFE0B2;
    transform: rotate(45deg);
}
/* ===== Header actions (login/konto + koszyk) ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
/* Koszyk w jednej linii z resztą */
.header-actions .cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
/* Licznik koszyka */
.header-actions .cart-count {
    background: var(--orange);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    padding: 0 5px;
}
.header-actions .cart-count.is-empty {
    display: none;
}
/* Payment failed — inline error */
.pf-error {
  display: block;
  margin-top: 10px;
  color: #c0392b;
  font-size: 0.9rem;
}
/* ===== Track Order ===== */
.track-page { padding: 2rem 1rem; }
.track-container { max-width: 720px; margin: 0 auto; }
.track-title { font-family: 'Baloo 2', sans-serif; color: var(--brown); margin-bottom: .5rem; }
.track-intro { color: #555; margin-bottom: 1.5rem; }
/* Form */
.track-form { display: flex; flex-direction: column; gap: 1rem; }
.track-field { display: flex; flex-direction: column; gap: .35rem; }
.track-field label { font-weight: 600; font-size: .95rem; color: var(--brown); }
.track-field input {
  padding: .7rem .9rem; border: 2px solid #e5e5e5; border-radius: 10px;
  font-size: 1rem; transition: border-color .2s;
}
.track-field input:focus { outline: none; border-color: var(--orange); }
.track-optional { font-weight: 400; color: #999; font-size: .85rem; margin-left: .35rem; }
.track-hint { font-size: .85rem; color: #888; margin: 0; }
/* Alerts */
.track-alert { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.track-alert--error { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; }
/* Result / detail */
.track-result {
  background: #fff; border: 2px solid #f0f0f0; border-radius: 16px;
  padding: 1.5rem; margin-top: 1rem;
}
.track-result-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem;
}
.track-result-head h2 { margin: 0; font-size: 1.25rem; color: var(--brown); }
/* Meta grid */
.track-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin: 0 0 1.5rem;
}
.track-meta dt { font-size: .8rem; color: #999; text-transform: uppercase; letter-spacing: .04em; }
.track-meta dd { margin: .25rem 0 0; font-size: 1rem; color: var(--brown); }
/* Items */
.track-items-title { font-size: 1rem; margin: 0 0 .6rem; color: var(--brown); }
.track-items { list-style: none; padding: 0; margin: 0; }
.track-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 0; border-bottom: 1px solid #f0f0f0;
}
.track-item:last-child { border-bottom: none; }
.track-item-name { flex: 1; }
.track-item-variant { color: #888; font-style: normal; font-size: .9rem; }
.track-item-qty { color: #666; white-space: nowrap; font-size: .9rem; }
.track-item-price { font-weight: 600; white-space: nowrap; }
/* Badges */
.track-badge {
  display: inline-block; padding: .3rem .7rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
}
/* Order status */
.track-badge--pending    { background: #fff3e0; color: #e07b00; }
.track-badge--paid       { background: #e6f7ec; color: #1e8449; }
.track-badge--processing { background: #e8f0fe; color: #1a5fb4; }
.track-badge--shipped    { background: #eef2ff; color: #4338ca; }
.track-badge--completed  { background: #e6f7ec; color: #1e8449; }
.track-badge--cancelled  { background: #fdecec; color: #c0392b; }
.track-badge--refunded   { background: #f3f3f3; color: #666; }
/* Payment status */
.track-badge--pay-unpaid   { background: #fff3e0; color: #e07b00; }
.track-badge--pay-paid     { background: #e6f7ec; color: #1e8449; }
.track-badge--pay-failed   { background: #fdecec; color: #c0392b; }
.track-badge--pay-refunded { background: #f3f3f3; color: #666; }
/* Pay now */
.track-pay-wrap { margin-top: 1.5rem; }
.track-pay-btn { width: 100%; padding: .9rem; font-size: 1.05rem; }
.track-pay-error { color: #c0392b; margin-top: .6rem; font-size: .9rem; }
/* List view */
.track-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: .6rem; }
.track-list-link {
  display: grid; grid-template-columns: 1.5fr auto auto auto; gap: .8rem;
  align-items: center; padding: .9rem 1.1rem; border: 2px solid #f0f0f0;
  border-radius: 12px; text-decoration: none; color: inherit;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.track-list-link:hover {
  border-color: var(--orange); transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(243,111,33,.12);
}
.track-list-num { font-weight: 600; color: var(--brown); }
.track-list-date { color: #999; font-size: .9rem; }
.track-list-total { font-weight: 600; }
.track-back { margin-top: 1.5rem; }
.track-back a { color: var(--orange); text-decoration: none; font-weight: 600; }
.track-back a:hover { color: #d85f18; text-decoration: underline; }
/* Mobile */
@media (max-width: 600px) {
  .track-meta { grid-template-columns: 1fr; }
  .track-list-link { grid-template-columns: 1fr auto; row-gap: .4rem; }
  .track-item { flex-wrap: wrap; }
}
.ty-spinner{
  width:38px;height:38px;margin:20px auto 0;
  border:4px solid var(--cream);
  border-top-color:var(--orange);
  border-radius:50%;
  animation:tySpin .8s linear infinite;
}
@keyframes tySpin{to{transform:rotate(360deg)}}
/* --- Account tabs (Wave C) --- */
.account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 1.25rem;
    padding: .35rem;
    background: var(--cream, #fff8ee);
    border-radius: 14px;
    border: 2px solid var(--brown-100, #f0e2cf);
}
.account-tab {
    padding: .55rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    color: var(--brown, #6b4f34);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.account-tab:hover {
    background: var(--yellow-100, #fff0c9);
}
.account-tab--active {
    background: var(--orange, #ff8a3d);
    color: #fff;
}
.account-tab--logout {
    margin-left: auto;
    color: var(--red-600, #c0392b);
}
.account-tab--logout:hover {
    background: #fde8e4;
}
/* Pay Now w tabeli */
.btn--sm {
    padding: .35rem .8rem;
    font-size: .85rem;
}
.account-action-dash {
    color: var(--brown-300, #b39a7c);
    font-weight: 600;
}
.account-paynow-error {
    margin-top: 1rem;
}
/* --- FikekClub: pasek salda (redesign — spójny z resztą kart konta) --- */
.loyalty-balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 2px solid #FFD54F;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
}
.loyalty-balance-label {
    font-weight: 600;
    font-size: 1.05rem;
    color: #4A3B2C;
}
.loyalty-balance-num {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #F36F21;
}
.loyalty-subtabs { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.loyalty-subtab {
    padding: 8px 18px; border-radius: 20px; border: 2px solid #E8DFD0;
    color: #6b5647; font-size: 13px; font-weight: 600; text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.loyalty-subtab:hover { border-color: #F36F21; color: #F36F21; }
.loyalty-subtab.is-active { background: #F36F21; color: #fff; border-color: #F36F21; }
.loyalty-pos { color: #1e5b2c; font-weight: 700; }
.loyalty-neg { color: #B23A3A; font-weight: 700; }
.loyalty-rewards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.loyalty-reward-card { border: 1px solid #E8DFD0; border-radius: 12px; padding: 16px; text-align: center; }
.loyalty-reward-card h3 { margin: 0 0 8px; font-size: 1rem; }
.loyalty-reward-cost { font-weight: 700; color: #F36F21; margin-bottom: 12px; }
/* --- Poleć znajomym: link box --- */
.ref-link-box { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ref-link-box input {
    flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid #E8DFD0;
    border-radius: 10px; font-size: 14px; background: #FAF6EE; color: #4A3B2C;
}
@media (max-width: 560px) {
    .account-tabs { gap: .25rem; }
    .account-tab { padding: .5rem .75rem; font-size: .9rem; }
    .account-tab--logout { margin-left: 0; width: 100%; text-align: center; }
}
/* --- Address book (Etap 8.5) --- */
.returns-form-title{margin-top:0}
.returns-form{display:flex;flex-direction:column;gap:14px;max-width:520px}
.returns-label{font-size:13px;font-weight:600;color:#6b5647;display:block}
.returns-input{
    display:block;width:100%;margin-top:6px;padding:10px 12px;
    border:2px solid #E8DFD0;border-radius:10px;font-family:'Baloo 2',sans-serif;
    font-size:14px;box-sizing:border-box;background:#fffdf8;color:#4A3B2C;
    transition:border-color .15s ease, box-shadow .15s ease;
}
select.returns-input{
    appearance:auto;
    background:#fffdf8;
}
.returns-input:focus{
    outline:none;border-color:#F36F21;box-shadow:0 0 0 3px rgba(243,111,33,.15);
}
.loyalty-history-table{width:100%;border-collapse:collapse;font-size:14px}
.loyalty-history-table th{text-align:left;padding:8px;border-bottom:2px solid #E8DFD0;color:#6b5647;font-size:12px;text-transform:uppercase}
.loyalty-history-table td{padding:8px;border-bottom:1px solid #E8DFD0}
.addr-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px}
@media(max-width:800px){.addr-grid{grid-template-columns:1fr}}
.addr-card{border:1px solid #E8DFD0;border-radius:12px;padding:14px;margin-bottom:12px;position:relative}
.addr-card.is-default{border-color:var(--orange);background:#FFF6EC}
.addr-badge{position:absolute;top:10px;right:10px;background:var(--orange);color:#fff;font-size:.7rem;font-weight:700;padding:2px 8px;border-radius:999px}
.addr-label{font-weight:700;margin:0 0 6px}
.addr-text{margin:0 0 10px;font-size:.9rem;line-height:1.5;color:#6b5647}
.addr-actions{display:flex;gap:6px;flex-wrap:wrap}
.addr-del{color:#B23A3A}
.addr-chk{display:flex;align-items:center;gap:8px;font-size:.85rem;font-weight:600;margin:8px 0 14px}
.addr-chk input{width:auto}
/* ============ COOKIE BANNER & MODAL ============ */
.cookie-banner{
    position:fixed; left:0; right:0; bottom:0; z-index:9000;
    background:var(--brown,#4a3428); color:#fff;
    box-shadow:0 -4px 24px rgba(0,0,0,.25);
    padding:16px;
}
.cookie-banner-inner{
    max-width:1100px; margin:0 auto;
    display:flex; align-items:center; gap:20px; flex-wrap:wrap;
}
.cookie-banner-text{flex:1 1 320px;}
.cookie-banner-title{font-weight:700; margin:0 0 4px; font-size:1.05rem;}
.cookie-banner-desc{margin:0; font-size:.9rem; line-height:1.4; opacity:.92;}
.cookie-banner-desc a{color:var(--yellow,#ffd24a); text-decoration:underline;}
.cookie-banner-actions{display:flex; gap:10px; flex-wrap:wrap;}
.btn-cookie{
    border:none; border-radius:10px; padding:11px 18px;
    font-family:inherit; font-weight:600; font-size:.9rem; cursor:pointer;
    transition:transform .1s ease, filter .15s ease;
}
.btn-cookie:hover{filter:brightness(1.08);}
.btn-cookie:active{transform:translateY(1px);}
.btn-cookie-primary{background:var(--orange,#ff7a1a); color:#fff;}
.btn-cookie-ghost{background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.5);}
/* Modal */
.cookie-modal{
    position:fixed; inset:0; z-index:9500;
    background:rgba(0,0,0,.55);
    display:flex; align-items:center; justify-content:center; padding:16px;
}
.cookie-modal-box{
    background:var(--cream,#fff8ef); color:var(--brown,#4a3428);
    border-radius:18px; max-width:520px; width:100%;
    max-height:90vh; overflow-y:auto;
    padding:28px 26px; position:relative;
    box-shadow:0 12px 48px rgba(0,0,0,.3);
}
.cookie-modal-close{
    position:absolute; top:12px; right:16px;
    background:none; border:none; font-size:1.8rem; line-height:1;
    color:var(--brown,#4a3428); cursor:pointer; opacity:.6;
}
.cookie-modal-close:hover{opacity:1;}
.cookie-modal-title{margin:0 0 6px; font-size:1.3rem;}
.cookie-modal-intro{margin:0 0 18px; font-size:.9rem; opacity:.85;}
.cookie-cat{border-top:1px solid rgba(74,52,40,.15); padding:14px 0;}
.cookie-cat-head{display:flex; align-items:center; justify-content:space-between; gap:12px;}
.cookie-cat-name{font-weight:700; font-size:1rem;}
.cookie-cat-desc{margin:6px 0 0; font-size:.85rem; opacity:.8; line-height:1.4;}
/* Toggle switch */
.cookie-switch{position:relative; display:inline-block; width:46px; height:26px; flex:none;}
.cookie-switch input{opacity:0; width:0; height:0;}
.cookie-slider{
    position:absolute; inset:0; cursor:pointer;
    background:#c9beb2; border-radius:26px; transition:.25s;
}
.cookie-slider::before{
    content:""; position:absolute; height:20px; width:20px; left:3px; bottom:3px;
    background:#fff; border-radius:50%; transition:.25s;
}
.cookie-switch input:checked + .cookie-slider{background:var(--orange,#ff7a1a);}
.cookie-switch input:checked + .cookie-slider::before{transform:translateX(20px);}
.cookie-switch.is-locked .cookie-slider{background:var(--orange,#ff7a1a); opacity:.55; cursor:not-allowed;}
.cookie-modal-actions{margin-top:22px; text-align:right;}
@media (max-width:640px){
    .cookie-banner-actions{width:100%;}
    .btn-cookie{flex:1 1 auto; text-align:center;}
}
/* FIX: atrybut hidden musi wygrać z display:flex/block */
.cookie-modal[hidden],
.cookie-banner[hidden]{
    display:none !important;
}
/* ============================================
   MOBILE NAV / HAMBURGER (v=19)
   ============================================ */
/* Hamburger domyślnie UKRYTY (desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}
.nav-toggle-bar {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--brown, #5a3e2b);
    margin: 0 auto;
    transition: transform .25s ease, opacity .2s ease;
}
/* animacja w "X" */
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* Panel mobilny + backdrop — domyślnie schowane (desktop) */
/* MA BYĆ: */
.mobile-nav[hidden],
.mobile-nav-backdrop[hidden] {
    display: none;
}
/* ---------- BREAKPOINT: telefony/tablety ---------- */
@media (max-width: 992px) {
    /* pokaż hamburger */
    .nav-toggle {
        display: flex;
    }
    /* ukryj desktopowe menu i akcje */
    .main-nav,
    .header-actions {
        display: none;
    }
    /* header w jednej linii: logo | hamburger */
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    /* Backdrop */
    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        opacity: 0;
        transition: opacity .25s ease;
        z-index: 998;
    }
    .mobile-nav-backdrop.is-open {
        opacity: 1;
    }
    /* Panel wysuwany z prawej */
    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 82%;
        max-width: 340px;
        background: var(--cream, #fff8ef);
        box-shadow: -6px 0 24px rgba(0, 0, 0, .18);
        transform: translateX(100%);
        transition: transform .25s ease;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-nav.is-open {
        transform: translateX(0);
    }
    .mobile-nav-inner {
        display: flex;
        flex-direction: column;
        padding: 72px 20px 28px;
        gap: 2px;
    }
    /* Linki */
    .mobile-nav-link,
    .mobile-accordion-toggle,
    .mobile-accordion-panel a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 12px;
        font-family: 'Baloo 2', sans-serif;
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--brown, #5a3e2b);
        text-decoration: none;
        border-radius: 12px;
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
    }
    .mobile-nav-link:hover,
    .mobile-accordion-toggle:hover,
    .mobile-accordion-panel a:hover {
        background: rgba(255, 165, 0, .12);
    }
    /* Separator */
    .mobile-nav-sep {
        height: 1px;
        background: rgba(90, 62, 43, .15);
        margin: 12px 6px;
    }
    /* Akordeon */
    .mobile-accordion-toggle {
        justify-content: space-between;
    }
    .mobile-accordion-toggle .nav-caret {
        margin-left: auto;
        transition: transform .2s ease;
    }
    .mobile-accordion.is-open .mobile-accordion-toggle .nav-caret {
        transform: rotate(180deg);
    }
    .mobile-accordion-panel {
        display: flex;
        flex-direction: column;
        padding-left: 14px;
        gap: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height .25s ease;
    }
    .mobile-accordion.is-open .mobile-accordion-panel:not([hidden]) {
        max-height: 600px; /* fallback gdyby JS nie ustawił inline */
    }
    /* KLUCZOWE: [hidden] musi wygrać nad display:flex */
    .mobile-accordion-panel[hidden] {
        display: none !important;
    }
    .mobile-accordion-panel a {
        font-size: .98rem;
        font-weight: 400;
        padding: 11px 12px;
    }
    /* Logout wyróżniony */
    .mobile-logout {
        color: #c0392b !important;
        font-weight: 500;
    }
    .mobile-nav-link.mobile-cart-link {
        margin-top: 8px;
        justify-content: space-between;
        background: var(--orange, #ff9f1c) !important;
        color: #fff !important;
        font-weight: 600;
    }
    .mobile-nav-link.mobile-cart-link:hover {
        background: var(--orange, #ff9f1c) !important;
        filter: brightness(.95);
    }
    .mobile-cart-link:hover {
        background: var(--orange, #ff9f1c);
        filter: brightness(.95);
    }
    .mobile-cart-link .cart-count {
        background: #fff;
        color: var(--brown, #5a3e2b);
        min-width: 22px;
        height: 22px;
        border-radius: 11px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: .8rem;
        padding: 0 6px;
    }
    .mobile-cart-link .cart-count.is-empty {
        display: none;
    }
    /* blokada scrolla tła gdy menu otwarte */
    body.nav-open {
        overflow: hidden;
    }
}
/* ============================================
   HOMEPAGE (C3)
   ============================================ */
/* --- HERO SLIDER --- */
.home-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--cream, #fff7ec);
    min-height: 340px;
}
.hero-track { position: relative; }
.hero-slide {
    display: none;
    position: relative;
    width: 100%;
    text-decoration: none;
    color: inherit;
    min-height: 340px;
    background: linear-gradient(135deg, var(--orange, #ff8a3d), var(--yellow, #ffcf4d));
}
.hero-slide.is-active { display: block; animation: heroFade .5s ease; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.hero-media {
    display: block;
    width: 100%;
    position: absolute;
    inset: 0;
    height: 100%;
}
.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}
.hero-overlay {
    position: relative;
    min-height: 340px;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 0 8%;
    background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 60%);
}
.home-hero-fallback {
    min-height: 320px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--orange, #ff8a3d), var(--yellow, #ffcf4d));
}
.home-hero-fallback .hero-overlay { position: static; background: none; }
.hero-copy { max-width: 520px; color: #fff; }
.hero-slide-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    margin: 0 0 .5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-slide-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin: 0 0 1.25rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.hero-slide-btn { display: inline-block; }
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    color: var(--brown, #5a3a22);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    transition: background .2s;
    z-index: 3;
}
.hero-arrow:hover { background: #fff; }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-dots {
    position: absolute;
    bottom: 14px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 8px;
    z-index: 2;
}
.hero-dot {
    width: 10px; height: 10px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,.55);
    cursor: pointer; padding: 0;
    transition: background .2s, transform .2s;
}
.hero-dot.is-active { background: #fff; transform: scale(1.25); }
/* --- SECTIONS --- */
.home-section { padding: 2.5rem 1rem; }
.home-section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 1.25rem; gap: 1rem; flex-wrap: wrap;
}
.home-section-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--brown, #5a3a22);
    margin: 0 0 1.25rem;
}
.home-section-head .home-section-title { margin-bottom: 0; }
.home-section-link {
    font-family: 'Baloo 2', sans-serif;
    color: var(--orange, #ff8a3d);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.home-section-link:hover { text-decoration: underline; }
/* --- CATEGORY TILES --- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
    justify-content: center;
    gap: 1rem;
}
.cat-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .5rem;
    padding: 1.5rem 1rem;
    background: var(--cream, #fff7ec);
    border: 2px solid transparent;
    border-radius: 16px;
    text-decoration: none;
    color: var(--brown, #5a3a22);
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    text-align: center;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.cat-tile:hover {
    transform: translateY(-3px);
    border-color: var(--orange, #ff8a3d);
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.cat-tile-emoji { font-size: 2rem; }
.cat-tile-name { font-size: .95rem; }
/* --- PRODUCT GRID (homepage sections use the shared .product-grid/.product-card above) --- */
.trust-bar {
    background: var(--cream, #fff7ec);
    padding: 2rem 1rem;
    margin-top: 1rem;
}
.trust-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
}
.trust-item {
    display: flex; align-items: center; gap: .85rem;
    font-family: 'Baloo 2', sans-serif;
    color: var(--brown, #5a3a22);
}
.trust-icon { font-size: 1.8rem; line-height: 1; }
.trust-item strong { display: block; font-size: .98rem; }
.trust-item span { font-size: .85rem; opacity: .8; }
@media (max-width: 640px) {
    .hero-media img { max-height: none; }
    .hero-overlay { padding: 0 6%; background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 100%); align-items: flex-end; padding-bottom: 4.2rem; }
    .hero-arrow { width: 36px; height: 36px; font-size: 1.3rem; top: 40%; }
    .home-hero, .hero-slide, .hero-overlay { min-height: 300px; }
}
/* ==========================================================================
   Task 2b — Responsive mobile cards: .account-orders-table
   ========================================================================== */
@media (max-width: 640px) {
    /* Ukryj nagłówek — etykiety przenosimy do data-label */
    .account-orders-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    /* Zablokuj poziomy scroll — nie jest już potrzebny */
    .account-orders-table-wrap {
        overflow-x: visible;
    }
    .account-orders-table,
    .account-orders-table tbody,
    .account-orders-table tr,
    .account-orders-table td {
        display: block;
        width: 100%;
    }
    /* Każdy wiersz = karta */
    .account-orders-table tr {
        margin: 0 0 14px;
        padding: 12px 14px;
        border: 1px solid var(--border, #e5e7eb);
        border-radius: 12px;
        background: var(--card-bg, #fff);
        box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    }
    .account-orders-table tr:last-child {
        margin-bottom: 0;
    }
    /* Komórka: etykieta (lewo) + wartość (prawo) */
    .account-orders-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 7px 0;
        border: 0;
        border-bottom: 1px solid var(--border-light, #f1f1f1);
        text-align: right;
    }
    .account-orders-table td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
    /* Etykieta z data-label */
    .account-orders-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: .82rem;
        color: var(--muted, #6b7280);
        text-align: left;
        flex: 0 0 auto;
    }
    /* Numer zamówienia — wyróżniony jako nagłówek karty */
    .account-orders-table td.order-number {
        font-size: 1.02rem;
        font-weight: 700;
        padding-top: 0;
    }
    /* Reset klas wyrównania z desktopu (flex je nadpisuje) */
    .account-orders-table td.ta-center,
    .account-orders-table td.ta-right {
        text-align: right;
    }
    /* Przycisk Pay Now — pełna szerokość dla wygody na mobile */
    .account-orders-table td .account-paynow {
        width: auto;
        min-width: 120px;
    }
    /* Ta sama technika kart — tabele współdzielące .loyalty-history-table
       (FikekClub, Poleć znajomym, Zwroty i reklamacje) — wymaga atrybutów
       data-label="..." na każdym <td>, patrz instrukcja PHP */
    .loyalty-history-table thead { display: none; }
    .loyalty-history-table, .loyalty-history-table tbody,
    .loyalty-history-table tr, .loyalty-history-table td { display: block; width: 100%; }
    .loyalty-history-table tr {
        margin: 0 0 14px; padding: 12px 14px;
        border: 1px solid #E8DFD0; border-radius: 12px;
        background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.05);
    }
    .loyalty-history-table td {
        display: flex; align-items: center; justify-content: space-between;
        gap: 12px; padding: 7px 0; border: 0;
        border-bottom: 1px solid #f1f1f1; text-align: right;
    }
    .loyalty-history-table td:last-child { border-bottom: 0; padding-bottom: 0; }
    .loyalty-history-table td::before {
        content: attr(data-label); font-weight: 600; font-size: .82rem;
        color: #6b7280; text-align: left; flex: 0 0 auto;
    }
}
/* ===== CHECKOUT: metody dostawy (kafelki) ===== */
.delivery-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.delivery-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid #e8e0d0;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  background: #fff;
}
.delivery-option:hover {
  border-color: var(--orange);
  background: #fff6ec;
}
.delivery-option input[type="radio"] {
  accent-color: var(--orange);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
}
/* zaznaczony kafelek */
.delivery-option:has(input:checked) {
  border-color: var(--orange);
  background: #fff2e5;
  box-shadow: 0 2px 8px rgba(243,111,33,.15);
}
.delivery-option__label {
  flex: 1;
  font-weight: 600;
  color: #3a3226;
}
.delivery-option__price {
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
}
.delivery-option__icon{
  width:32px;
  height:32px;
  object-fit:contain;
  flex-shrink:0;
}
/* mobile */
@media (max-width: 640px) {
  .delivery-option {
    padding: 12px 14px;
    gap: 10px;
  }
  .delivery-option__label { font-size: 14px; }
}

/* ============================================
   TOP-BAR PROMO — usunięcie podkreślenia linku
   (header.php: .site-banner-link ma dziedziczone
   podkreślenie z domyślnego stylu <a>; !important
   na wypadek stylu inline w PHP)
   ============================================ */
.site-banner-link,
.site-banner-link:hover,
.site-banner-link:visited {
    text-decoration: none !important;
}

/* ============================================
   WISHLIST HEART — scalone z single.php do wspólnego
   arkusza, żeby działało identycznie na single.php,
   home.php, shop.php, category.php, promotions.php,
   new_arrivals.php (wcześniej istniało tylko lokalnie
   w single.php i nie obowiązywało na innych stronach)
   ============================================ */
.wishlist-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--orange);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(74, 59, 44, .18);
    transition: transform .15s ease, background .15s ease;
    padding: 0;
}
.wishlist-heart:hover {
    transform: scale(1.1);
}
.wishlist-heart.is-active {
    color: var(--orange);
    background: #fff;
}
/* Warianty umieszczenia wg kontenera karty */
.product-card-media .wishlist-heart,
.product-card-img .wishlist-heart {
    top: 10px;
    right: 10px;
}