:root{
    --bg: #ffffff;
    --surface: #f6f6f6;
    --surface2: #eeeeee;

    --text: #201d1b;
    --muted: rgba(32,29,27,.72);
    --muted2: rgba(32,29,27,.56);

    --accent: #f31320;

    --border: rgba(32,29,27,.12);
    --border2: rgba(32,29,27,.09);

    --shadow1: 0 10px 28px rgba(32,29,27,.10);
    --shadow2: 0 20px 60px rgba(32,29,27,.14);

    --r: 14px;
    --r2: 18px;
    --r3: 26px;

    --max: 1200px;
    --gap: 16px;
    --ease: cubic-bezier(.2,.8,.2,1);

    --ring: 0 0 0 4px rgba(243, 19, 32, .16);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
    margin:0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* subtle "grain" */
body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    opacity:.05;
    background-image:
        radial-gradient(circle at 10% 10%, #000 1px, transparent 1px),
        radial-gradient(circle at 80% 30%, #000 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, #000 1px, transparent 1px);
    background-size: 120px 120px, 160px 160px, 220px 220px;
    mix-blend-mode: multiply;
}

a{ color: inherit; }
img{ max-width:100%; display:block; }

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

.mono{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* -------------------------------------------------------
   NAV
-------------------------------------------------------- */
.nav{
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav__inner{
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 16px;
    display:flex;
    align-items:center;
    gap: 14px;
}

.nav__brand{
    display:flex;
    align-items:center;
    text-decoration:none;
    flex: 0 0 auto;
}
.nav__logo{
    height: 40px;
    width: auto;
    filter: drop-shadow(0 10px 18px rgba(32,29,27,.10));
}

.nav__links{
    display:flex;
    align-items:center;
    justify-content:center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}
.nav__link{
    color: var(--text);
    text-decoration:none;
    font-weight: 950;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: transform .12s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.nav__link:hover{
    background: rgba(238,238,238,.75);
    transform: translateY(-1px);
}
.nav__link:focus-visible{ outline: none; box-shadow: var(--ring); }

.nav__right{
    display:flex;
    align-items:center;
    gap: 10px;
    flex: 0 0 auto;
}

.nav__currency{ display:flex; align-items:center; }
.nav__select{
    appearance:none;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(246,246,246,.9), rgba(238,238,238,.55));
    color: var(--text);
    padding: 10px 36px 10px 12px;
    border-radius: 999px;
    font-weight: 950;
    font-size: 13px;
    cursor:pointer;
    transition: transform .12s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);

    background-image:
        linear-gradient(45deg, transparent 50%, rgba(32,29,27,.75) 50%),
        linear-gradient(135deg, rgba(32,29,27,.75) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}
.nav__select:hover{ transform: translateY(-1px); }
.nav__select:focus{ outline:none; box-shadow: var(--ring); border-color: rgba(243,19,32,.45); }

.nav__pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width: 22px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 1000;
    color: #fff;
    background: var(--accent);
}

.nav__user{
    display:flex;
    align-items:center;
    gap: 10px;
    padding-left: 10px;
    border-left: 1px solid var(--border);
}
.nav__userLink{
    color: var(--text);
    text-decoration:none;
    font-weight: 1000;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 999px;
    transition: background .18s var(--ease);
}
.nav__userLink:hover{ background: rgba(238,238,238,.75); }

/* -------------------------------------------------------
   BUTTONS
-------------------------------------------------------- */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 950;
    font-size: 13px;
    border: 1px solid transparent;
    cursor:pointer;
    text-decoration:none;
    user-select:none;
    white-space: nowrap;
    transition: transform .12s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }
.btn:focus-visible{ outline:none; box-shadow: var(--ring); }

.btn--primary{
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow1);
}
.btn--primary:hover{ box-shadow: 0 16px 40px rgba(243,19,32,.22); }

.btn--ghost{
    background: rgba(246,246,246,.9);
    border-color: var(--border);
    color: var(--text);
}
.btn--ghost:hover{ background: rgba(238,238,238,.92); }

.btn--danger{
    background: transparent;
    color: var(--accent);
    border-color: rgba(243, 19, 32, .35);
}
.btn--danger:hover{
    background: rgba(243, 19, 32, .08);
    border-color: rgba(243, 19, 32, .55);
}

.btn--block{ width: 100%; }

/* -------------------------------------------------------
   PAGE LAYOUT
-------------------------------------------------------- */
.page{
    max-width: var(--max);
    margin: 0 auto;
    padding: 22px 16px; /* ✅ góra = dół */
}

/* jeśli chcesz tylko na home, a inne strony inaczej: */
.page--home{
    padding: 22px 16px;
}

/* -------------------------------------------------------
   HERO
-------------------------------------------------------- */
.hero{
    position: relative;
    border-radius: var(--r3);
    overflow: hidden;
    border: 1px solid var(--border2);
    box-shadow: var(--shadow2);
    background:
        linear-gradient(180deg, rgba(246,246,246,.92), rgba(255,255,255,.88));
}

.hero__bg{
    position:absolute;
    inset:-2px;
    background:
        radial-gradient(900px 420px at 12% 10%, rgba(243,19,32,.18), transparent 60%),
        radial-gradient(900px 520px at 92% 30%, rgba(32,29,27,.10), transparent 55%),
        conic-gradient(from 220deg at 55% 40%, rgba(243,19,32,.10), transparent, rgba(243,19,32,.06));
    filter: saturate(1.05);
    pointer-events:none;
}

.hero__inner{
    position: relative;
    display:grid;
    grid-template-columns: 1.45fr .95fr;
    gap: 18px;
    padding: 26px;
    align-items: stretch;
}

.hero__eyebrow{
    margin: 0 0 12px;
    display:flex;
    align-items:center;
    gap: 10px;
    font-weight: 950;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(32,29,27,.70);
}
.dot{
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(243,19,32,.12);
}

.hero__title{
    margin: 0;
    font-size: clamp(34px, 4.1vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 1000;
}

.hero__lead{
    margin: 12px 0 0;
    max-width: 60ch;
    color: var(--muted);
    font-weight: 650;
    line-height: 1.55;
    font-size: 15px;
}

.hero__chips{
    margin-top: 16px;
    display:flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero__row{
    margin-top: 12px;
    display:flex;
    align-items:flex-start;
    justify-content: space-between;
    gap: 14px;
}

/* na mobile przycisk pod tekstem */
@media (max-width: 640px){
    .hero__row{
        flex-direction: column;
        align-items:flex-start;
    }
}

.chip{
    display:inline-flex;
    align-items:center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(32,29,27,.10);
    backdrop-filter: blur(12px);
    color: rgba(32,29,27,.80);
    font-weight: 800;
    font-size: 12px;
}

/* -------------------------------------------------------
   SECTION HEAD
-------------------------------------------------------- */
.section{
    margin-top: 22px;
}
.section__head{
    display:flex;
    align-items:flex-end;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0 12px;
}
.section__title{
    margin: 0;
    font-size: 20px;
    font-weight: 1000;
    letter-spacing: -0.01em;
}
.section__desc{
    margin: 7px 0 0;
    color: var(--muted);
    font-weight: 650;
}
.pill{
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(246,246,246,.92);
    border: 1px solid var(--border);
    font-weight: 850;
    font-size: 13px;
}

/* -------------------------------------------------------
   EMPTY
-------------------------------------------------------- */
.empty{
    border: 1px dashed rgba(32,29,27,.18);
    border-radius: var(--r3);
    padding: 18px;
    display:flex;
    gap: 14px;
    align-items:center;
    background: rgba(246,246,246,.55);
}
.empty__icon{ font-size: 26px; }
.empty__title{
    margin: 0;
    font-size: 16px;
    font-weight: 1000;
}
.empty__text{
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 650;
}

/* -------------------------------------------------------
   GRID + CARDS
-------------------------------------------------------- */
.grid{
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

.card{
    border-radius: 22px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(32,29,27,.10);
    box-shadow: 0 10px 26px rgba(32,29,27,.08);
    padding: 14px;
    display:flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .14s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
    overflow: hidden;
    position: relative;
}
.card::before{
    content:"";
    position:absolute;
    inset: -1px;
    background: radial-gradient(600px 240px at 20% -10%, rgba(243,19,32,.10), transparent 60%);
    opacity: .9;
    pointer-events:none;
}
.card > *{ position: relative; }

.card:hover{
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(32,29,27,.14);
    border-color: rgba(243,19,32,.22);
}

.card--out{
    opacity: .92;
}

/* -------------------------------------------------------
   CARD MEDIA (placeholder image square)
-------------------------------------------------------- */
.card__media{
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;           /* ✅ kwadrat */
    border: 1px solid rgba(32,29,27,.10);
    background: rgba(246,246,246,.9);
    box-shadow: 0 10px 24px rgba(32,29,27,.08);
    text-decoration: none;
}

.card__mediaBg{
    position:absolute;
    inset: 0;
    background:
        radial-gradient(520px 220px at 20% 0%, rgba(243,19,32,.10), transparent 60%),
        linear-gradient(180deg, rgba(246,246,246,.92), rgba(238,238,238,.72));
}

.card__mediaIcon{
    position:absolute;
    inset: 0;
    display:flex;
    align-items:center;
    justify-content:center;
    color: rgba(32,29,27,.55);
    transform: translateY(2px);
}

.card__mediaLink{
    position:absolute;
    inset:0;
    z-index:1;
    border-radius: 18px;
}

.card__mediaIcon svg{
    width: 46px;
    height: 46px;
    opacity: .95;
}

.card__mediaTag{
    position:absolute;
    top:10px; left:10px;
    z-index:3;                 /* wyżej niż link-overlay */
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    align-items:flex-start;
    max-width: calc(100% - 20px);
}

.card__img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;   /* na liście produktów zwykle lepsze niż contain */
    position: relative;
    z-index: 1;
}

.card__media:focus-visible{
    outline: none;
    box-shadow: var(--ring), 0 18px 46px rgba(32,29,27,.14);
}

.card--out .card__mediaIcon{ opacity: .65; }
.card--out .card__media{ filter: grayscale(.15); }

.badge{
    display:inline-flex;
    align-items:center;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 1000;
    border: 1px solid rgba(32,29,27,.10);
    background: rgba(246,246,246,.8);
}

.badge--in{
    background: rgba(243,19,32,.10);
    border-color: rgba(243,19,32,.18);
}

.badge--out{
    background: rgba(32,29,27,.06);
    border-color: rgba(32,29,27,.12);
    color: rgba(32,29,27,.72);
}

.idbox{
    text-align:right;
    padding: 8px 10px;
    border-radius: 16px;
    background: rgba(246,246,246,.85);
    border: 1px solid rgba(32,29,27,.08);
}
.idbox__label{
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: rgba(32,29,27,.55);
}
.idbox__value{
    margin-top: 3px;
    font-weight: 1000;
    font-size: 12px;
    color: rgba(32,29,27,.90);
}

.card__title{
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 1000;
}
.card__link{
    text-decoration:none;
}
.card__link:hover{
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(243,19,32,.6);
}

.metaItem__label{
    font-size: 12px;
    font-weight: 950;
    color: rgba(32,29,27,.62);
}
.metaItem__value{
    margin-top: 4px;
    font-size: 12px;
    font-weight: 950;
    color: rgba(32,29,27,.92);
}

.qty{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width: 34px;
    height: 24px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 1000;
    border: 1px solid rgba(32,29,27,.10);
}
.qty--in{
    background: rgba(243,19,32,.12);
    border-color: rgba(243,19,32,.18);
}
.qty--out{
    background: rgba(32,29,27,.06);
    border-color: rgba(32,29,27,.12);
    color: rgba(32,29,27,.70);
}

.card__form{ margin: 0; }
/* po zdjęciu trochę oddechu */
.card__title{
    margin-top: 2px;
}

/* specs pod tytułem: SKU/EAN/Stan */
.card__specs{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(246,246,246,.75);
    border: 1px solid rgba(32,29,27,.08);
}

.spec{
    display:flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.spec__k{
    font-size: 12px;
    font-weight: 950;
    color: rgba(32,29,27,.62);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.spec__v{
    font-size: 12px;
    font-weight: 950;
    color: rgba(32,29,27,.92);
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spec--qty{
    grid-column: 1 / -1; /* ✅ stan na całą szerokość */
    display:flex;
    flex-direction: row;
    align-items:center;
    justify-content: space-between;
}

/* buy row: cena + button po prawej */
.card__buy{
    display:flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(243,19,32,.12), rgba(243,19,32,.06));
    border: 1px solid rgba(243,19,32,.16);
}

.card__priceLabel{
    font-size: 12px;
    font-weight: 950;
    color: rgba(32,29,27,.66);
}

.card__priceValue{
    margin-top: 4px;
    font-size: 16px;
    font-weight: 1000;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.card__priceCur{
    font-size: 12px;
    font-weight: 1000;
    color: rgba(32,29,27,.72);
    margin-left: 6px;
}

.card__priceNa{
    font-size: 13px;
    color: rgba(32,29,27,.70);
}

.card__buyForm{ margin: 0; }

.card__buyBtn{
    padding: 10px 14px;
    min-width: 92px;
}

/* mobile: button na pełną szerokość pod ceną */
@media (max-width: 640px){
    .card__buy{
        flex-direction: column;
        align-items: stretch;
    }
    .card__buyBtn{
        width: 100%;
        justify-content: center;
    }
}
/* -------------------------------------------------------
   RESPONSIVE
-------------------------------------------------------- */
@media (max-width: 980px){
    .hero__inner{ grid-template-columns: 1fr; }
    .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section__head{ flex-direction: column; align-items:flex-start; }
}

@media (max-width: 640px){
    .grid{ grid-template-columns: 1fr; }
    .card__actions{ grid-template-columns: 1fr; }
}

/* -------------------------------------------------------
   REDUCED MOTION
-------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
    .btn, .card, .nav__link, .nav__select{ transition:none !important; }
}

/* -------------------------------------------------------
   CAROUSEL
-------------------------------------------------------- */
.carousel{
    position: relative;
    margin-top: 8px;
}

.carousel__track{
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    padding: 6px 0 14px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    /* lepiej wygląda (nie przykleja do krawędzi) */
    scroll-padding-left: 0;
    scroll-padding-right: 0;

    /* ukryj scrollbar (bezpiecznie) */
    scrollbar-width: none;          /* Firefox */
}
.carousel__track::-webkit-scrollbar{ display:none; } /* Chrome */

.card--slide{
    flex: 0 0 calc((100% - (var(--gap) * 2)) / 3);
    scroll-snap-align: start;
}

/* Tablet: 2 na raz */
@media (max-width: 980px){
    .card--slide{
        flex-basis: calc((100% - var(--gap)) / 2);
    }
}

/* Mobile: 1 na raz */
@media (max-width: 640px){
    .card--slide{
        flex-basis: 92%;
    }
}



/* przyciski */
.carousel__btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow1);
    color: var(--text);
    font-size: 26px;
    font-weight: 1000;
    cursor: pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    transition: transform .12s var(--ease), box-shadow .18s var(--ease);
}
.carousel__btn:hover{
    transform: translateY(-50%) scale(1.03);
    box-shadow: var(--shadow2);
}
.carousel__btn:active{
    transform: translateY(-50%) scale(.98);
}
.carousel__btn:focus-visible{
    outline: none;
    box-shadow: var(--ring), var(--shadow2);
}

.carousel__btn--left{ left: -6px; }
.carousel__btn--right{ right: -6px; }

/* na mobile chowamy strzałki (i tak jest swipe) */
@media (max-width: 640px){
    .carousel__btn{ display:none; }
}
/* -------------------------------------------------------
   FOOTER
-------------------------------------------------------- */
.footer{
    margin-top: 26px;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(14px);
}

.footer__inner{
    max-width: var(--max);
    margin: 0 auto;
    padding: 22px 16px;
}

.footer__top{
    display:flex;
    gap: 18px;
    align-items:flex-start;
    justify-content: space-between;
    padding: 16px;
    border-radius: var(--r3);
    background:
        radial-gradient(900px 340px at 10% 0%, rgba(243,19,32,.10), transparent 60%),
        linear-gradient(180deg, rgba(246,246,246,.9), rgba(255,255,255,.86));
    border: 1px solid var(--border2);
    box-shadow: var(--shadow1);
}

.footer__brand{
    flex: 1 1 420px;
    min-width: 0;
}

.footer__logoText{
    font-weight: 1000;
    letter-spacing: -0.03em;
    font-size: 18px;
}

.footer__tagline{
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 650;
    line-height: 1.5;
    max-width: 60ch;
}

.footer__chips{
    margin-top: 12px;
    display:flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* kolumny linków */
.footer__nav{
    flex: 1 1 520px;
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.footer__col{
    padding: 10px 12px;
    border-radius: var(--r2);
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(32,29,27,.08);
}

.footer__heading{
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(32,29,27,.62);
    margin-bottom: 10px;
}

.footer__link{
    display:block;
    padding: 8px 10px;
    border-radius: 12px;
    text-decoration:none;
    font-weight: 850;
    font-size: 13px;
    transition: background .18s var(--ease), transform .12s var(--ease);
}

.footer__link:hover{
    background: rgba(238,238,238,.85);
    transform: translateY(-1px);
}

.footer__link[aria-disabled="true"]{
    opacity: .55;
    pointer-events: none;
}

.footer__hint{
    display:block;
    margin-top: 6px;
    padding: 0 10px;
    color: rgba(32,29,27,.62);
    font-weight: 700;
    font-size: 12px;
}

/* dolny pasek */
.footer__bottom{
    margin-top: 12px;
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 4px 0;
    color: rgba(32,29,27,.72);
}

.footer__copy{
    font-weight: 800;
    font-size: 12px;
}

.footer__meta{
    display:flex;
    align-items:center;
    gap: 10px;
    font-weight: 750;
    font-size: 12px;
}

.footer__dot{
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(243,19,32,.12);
}

.footer__small{
    color: rgba(32,29,27,.66);
}

/* responsive */
@media (max-width: 980px){
    .footer__top{
        flex-direction: column;
    }
    .footer__nav{
        width: 100%;
        grid-template-columns: 1fr;
    }
    .footer__bottom{
        flex-direction: column;
        align-items: flex-start;
    }
}

/* -------------------------------------------------------
   PRODUCT PAGE
-------------------------------------------------------- */
.page--product{
    padding: 22px 16px; /* spójnie z resztą */
}

.product__back{
    margin-bottom: 12px;
}

.product__crumbs{
    margin: 6px 0 14px;
    display:flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items:center;
    color: rgba(32,29,27,.70);
    font-weight: 850;
    font-size: 12px;
}

.product__crumb{
    text-decoration:none;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(246,246,246,.85);
    border: 1px solid rgba(32,29,27,.08);
    transition: transform .12s var(--ease), background .18s var(--ease);
}
.product__crumb:hover{
    background: rgba(238,238,238,.92);
    transform: translateY(-1px);
}
.product__crumb:focus-visible{
    outline:none;
    box-shadow: var(--ring);
}

.product__crumbSep{
    opacity: .6;
    font-weight: 1000;
}

.product{
    border-radius: var(--r3);
    border: 1px solid var(--border2);
    background: linear-gradient(180deg, rgba(246,246,246,.92), rgba(255,255,255,.88));
    box-shadow: var(--shadow2);
    overflow: hidden;
}

.product__grid{
    display:grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 18px;
    padding: 18px;
    align-items:start;
}

.product__mediaBox{
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(32,29,27,.10);
    background: rgba(246,246,246,.9);
    box-shadow: 0 14px 44px rgba(32,29,27,.10);
}

.product__mediaBg{
    position:absolute;
    inset:0;
    background:
        radial-gradient(760px 360px at 18% 0%, rgba(243,19,32,.12), transparent 60%),
        linear-gradient(180deg, rgba(246,246,246,.92), rgba(238,238,238,.72));
}

.product__mediaIcon{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color: rgba(32,29,27,.55);
    transform: translateY(2px);
}
.product__mediaIcon svg{
    width: 64px;
    height: 64px;
    opacity: .95;
}

.product__summary{
    display:flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.product__title{
    margin: 0;
    font-size: clamp(22px, 2.2vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 1000;
}

.product__specs{
    /* używamy dokładnie Twojego systemu spec/spec__k/spec__v/spec--qty */
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(32,29,27,.08);
}

.product__buy{
    display:flex;
    gap: 12px;
    align-items: stretch;
}

.product__price{
    flex: 1 1 auto;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(243,19,32,.12), rgba(243,19,32,.06));
    border: 1px solid rgba(243,19,32,.16);
}

.product__priceLabel{
    font-size: 12px;
    font-weight: 950;
    color: rgba(32,29,27,.66);
}
.product__priceValue{
    margin-top: 6px;
    font-size: 22px;
    font-weight: 1000;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.product__priceCur{
    font-size: 12px;
    font-weight: 1000;
    color: rgba(32,29,27,.72);
    margin-left: 8px;
}
.product__priceNa{
    font-size: 14px;
    color: rgba(32,29,27,.70);
}
.product__priceHint{
    margin-top: 6px;
    font-size: 12px;
    font-weight: 750;
    color: rgba(32,29,27,.62);
}

.product__buyForm{
    flex: 0 0 260px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(32,29,27,.08);
    display:flex;
    flex-direction: column;
    gap: 10px;
}

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

.product__qtyLabel{
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(32,29,27,.62);
}

.product__qtyInput{
    width: 120px;
    border-radius: 999px;
    border: 1px solid rgba(32,29,27,.12);
    background: rgba(246,246,246,.9);
    padding: 10px 12px;
    font-weight: 950;
    font-size: 13px;
    color: var(--text);
    outline: none;
}
.product__qtyInput:focus{
    box-shadow: var(--ring);
    border-color: rgba(243,19,32,.45);
}

.product__buyBtn{
    width: 100%;
    justify-content: center;
}

.product__msg{
    font-size: 12px;
    font-weight: 800;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(32,29,27,.10);
    background: rgba(246,246,246,.8);
    color: rgba(32,29,27,.78);
}
.product__msg--ok{
    border-color: rgba(46, 204, 113, .28);
    background: rgba(46, 204, 113, .10);
}
.product__msg--warn{
    border-color: rgba(243, 19, 32, .22);
    background: rgba(243, 19, 32, .08);
}
.product__msg--err{
    border-color: rgba(243, 19, 32, .28);
    background: rgba(243, 19, 32, .10);
}

.product__meta{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
}
.product__metaItem{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(32,29,27,.08);
}
.product__metaK{
    font-size: 12px;
    font-weight: 950;
    color: rgba(32,29,27,.62);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.product__metaV{
    font-size: 12px;
    font-weight: 1000;
    color: rgba(32,29,27,.92);
}


.product__panel{
    border-radius: var(--r3);
    border: 1px solid var(--border2);
    background: rgba(255,255,255,.86);
    box-shadow: var(--shadow1);
    overflow: hidden;
}

.product__panelHead{
    padding: 16px;
    border-bottom: 1px solid rgba(32,29,27,.08);
    background:
        radial-gradient(900px 340px at 10% 0%, rgba(243,19,32,.10), transparent 60%),
        linear-gradient(180deg, rgba(246,246,246,.9), rgba(255,255,255,.88));
}

.product__panelTitle{
    margin: 0;
    font-size: 16px;
    font-weight: 1000;
    letter-spacing: -0.01em;
}
.product__panelHint{
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 750;
    color: rgba(32,29,27,.66);
}

.product__panelBody{
    padding: 16px;
    color: rgba(32,29,27,.82);
    font-weight: 650;
    line-height: 1.7;
}

.product__empty{
    color: rgba(32,29,27,.66);
    font-weight: 750;
}

/* responsive */
@media (max-width: 980px){
    .product__grid{
        grid-template-columns: 1fr;
    }
    .product__buy{
        flex-direction: column;
    }
    .product__buyForm{
        flex-basis: auto;
    }
}

/* Product images */
.product__img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* contain = narzędzia/produkty nie będą obcięte */
    position: relative;
    z-index: 1;
}

.product__gallery{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.product__thumb{
    width: 74px;
    height: 74px;
    padding: 0;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: transform .08s ease, border-color .08s ease, box-shadow .08s ease;
}

.product__thumb:hover{
    transform: translateY(-1px);
}

.product__thumb.is-active{
    border-color: rgba(0,0,0,.5);
    box-shadow: 0 0 0 2px rgba(0,0,0,.12);
}

.product__thumbImg{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
/* Product badges on image (availability + groups) */
.product__badges{
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;

    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;

    /* żeby nie wjeżdżało w prawą krawędź */
    max-width: calc(100% - 24px);
}

/* link badge – spójne z home */
.badge--link{
    text-decoration: none;
}
.badge--link:hover{
    filter: brightness(0.98);
}
.badge--link:focus-visible{
    outline: none;
    box-shadow: var(--ring);
}
/* -------------------------------------------------------
   PRODUCT TABS (Opis / Specyfikacja)
-------------------------------------------------------- */
.product__tabs{
    margin-top: 16px;
}

.ptabs{
    display:flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items:center;
}

.ptabs__btn{
    appearance: none;
    border: 1px solid rgba(32,29,27,.10);
    background: rgba(255,255,255,.62);
    color: rgba(32,29,27,.88);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 1000;
    font-size: 13px;
    cursor: pointer;
    display:inline-flex;
    align-items:center;
    gap: 8px;
    transition: transform .12s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}

.ptabs__btn:hover{
    transform: translateY(-1px);
    background: rgba(238,238,238,.85);
}

.ptabs__btn:focus-visible{
    outline: none;
    box-shadow: var(--ring);
}

.ptabs__btn.is-active{
    background: linear-gradient(180deg, rgba(243,19,32,.14), rgba(243,19,32,.06));
    border-color: rgba(243,19,32,.22);
}

.ptabs__pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width: 22px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 1000;
    color: #fff;
    background: var(--accent);
}

.ptabs__panel{
    display: none;
}

.ptabs__panel.is-active{
    display: block;
}

/* -------------------------------------------------------
   PRODUCT SPEC TABLE (key/value)
-------------------------------------------------------- */
.pspec{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.pspec__row{
    display:flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(246,246,246,.72);
    border: 1px solid rgba(32,29,27,.08);
}

.pspec__k{
    font-size: 12px;
    font-weight: 950;
    color: rgba(32,29,27,.62);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pspec__v{
    font-size: 13px;
    font-weight: 950;
    color: rgba(32,29,27,.90);
    text-align: right;
    overflow-wrap: anywhere;
}

@media (max-width: 640px){
    .pspec__row{
        flex-direction: column;
        align-items:flex-start;
    }
    .pspec__v{
        text-align:left;
    }
}
