/* Sklep B2B (sklep/*.html, generowane przez tools/build_sklep.py). Kolory z colors_v2.css, typografia z guide.css */
.shop { max-width: 1080px; margin: 0 auto; padding-top: 110px; color: var(--text-secondary); }
.shop .guide-head { max-width: 780px; }
.shop h2 { font-family: 'Caviar Dreams', sans-serif; font-weight: 700; color: var(--text-primary); font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin: 0 0 .5rem; scroll-margin-top: 90px; }
.shop a:not([class]) { color: var(--accent-text, var(--accent-tech)); font-weight: 600; }

.shop-promises { list-style: none; padding: 0; margin: 0 0 3rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; font-size: .95rem; }
.shop-promises li { position: relative; padding-left: 1.4rem; }
.shop-promises li::before { content: ''; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent-tech); }
.shop-promises strong { color: var(--text-primary); }

.shop-cat { margin-bottom: 3.5rem; scroll-margin-top: 90px; }
.shop-cat-lead { margin-bottom: 1.4rem; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }

.shop-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.3rem; display: flex; flex-direction: column; gap: .7rem; transition: border-color .2s ease; }
.shop-card:hover { border-color: var(--accent-tech); }
.shop-card h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.35; margin: 0; }
.shop-card h3 a { color: var(--text-primary); text-decoration: none; }
.shop-card h3 a:hover { color: var(--accent-text, var(--accent-tech)); }
.shop-card-short { font-size: .95rem; line-height: 1.6; margin: 0; flex: 1; }

.shop-card-icon, .shop-product-visual { position: relative; display: grid; place-items: center; color: var(--accent-tech); background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 12px; }
.shop-card-icon { height: 150px; }
.shop-card-icon svg { width: 84px; height: 84px; }
.shop-card-icon .shop-logo { width: 96px; height: 96px; color: var(--text-secondary); }
.shop-product-visual .shop-logo { width: 34%; color: var(--text-secondary); }
a.shop-card-icon { text-decoration: none; }
.shop-logo-text { font-size: 1.7rem; font-weight: 800; letter-spacing: .06em; color: var(--text-secondary); }
.shop-product-visual .shop-logo-text { font-size: 2.6rem; }
.shop-vram { position: absolute; right: .8rem; bottom: .6rem; font-size: .8rem; font-weight: 700; color: var(--text-primary); }

.shop-price { margin: 0; display: flex; flex-direction: column; }
.shop-price-main { color: var(--text-primary); font-weight: 700; font-size: 1.15rem; }
.shop-price-sub { font-size: .85rem; }

.shop-card-actions, .shop-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.shop .btn-primary-custom { padding: 10px 22px; font-size: .95rem; cursor: pointer; }
.shop-btn-secondary { display: inline-block; padding: 9px 20px; border-radius: 50px; border: 1px solid var(--border-color); background: transparent; color: var(--text-primary); font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; }
.shop-btn-secondary:hover { border-color: var(--accent-tech); color: var(--accent-text, var(--accent-tech)); }
.btn-primary-custom.is-added { background: var(--ok); }

/* Strona produktu */
.shop-product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; align-items: center; margin-bottom: 1rem; }
.shop-product-visual { aspect-ratio: 4 / 3; }
.shop-product-visual svg { width: 42%; height: auto; }
.shop-product-title { font-family: 'Caviar Dreams', sans-serif; font-weight: 700; color: var(--text-primary); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 1rem; }
.shop-product .guide-lead { font-size: 1.1rem; }
.shop-product .shop-price { margin: 1.2rem 0 .3rem; }
.shop-product .shop-price-main { font-size: 1.5rem; }
.shop-availability { font-size: .9rem; margin: 0 0 1.2rem; }
.shop-details.guide { padding-top: 0; max-width: none; }
.shop-details h2 { margin-top: 2.5rem; }

/* Formularz zapytania */
.shop-quote { background: var(--bg-card); border: 1px solid var(--border-color); border-left: 4px solid var(--accent-tech); border-radius: 16px; padding: 1.8rem; margin: 3rem 0 2rem; scroll-margin-top: 90px; }
.shop-quote-lead { max-width: 720px; }
.shop-quote-items { margin: 1.2rem 0; }
.shop-quote-empty { font-style: italic; }
.shop-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--border-color); }
.shop-line-name { color: var(--text-primary); font-weight: 600; }
.shop-line-name small { display: block; font-weight: 400; color: var(--text-secondary); }
.shop-line input { width: 4.2rem; }
.shop-line-price { white-space: nowrap; font-size: .9rem; }
.shop-line-remove { border: 0; background: none; color: var(--text-secondary); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: .2rem .4rem; }
.shop-line-remove:hover { color: var(--accent-text, var(--accent-tech)); }

.shop-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; margin: 1.2rem 0; }
.shop-field { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; font-weight: 600; color: var(--text-primary); }
.shop-field-wide { grid-column: 1 / -1; }
.shop-optional { font-weight: 400; color: var(--text-secondary); }
.shop input, .shop textarea { font: inherit; font-weight: 400; color: var(--text-primary); background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 10px; padding: .6rem .8rem; width: 100%; }
.shop input:focus-visible, .shop textarea:focus-visible, .shop button:focus-visible, .shop a:focus-visible { outline: 2px solid var(--accent-tech); outline-offset: 2px; }
.shop-hint { font-size: .85rem; font-weight: 400; color: var(--text-secondary); }
.shop-hint.is-ok { color: var(--ok); }
.shop-hint.is-bad, .shop-error { color: #DC2626; }
.shop-error:empty { display: none; }

@media (max-width: 760px) {
    .shop { padding-top: 90px; }
    .shop-product { grid-template-columns: 1fr; gap: 1.5rem; }
    .shop-fields { grid-template-columns: 1fr; }
    .shop-quote { padding: 1.3rem 1rem; }
    .shop-line { grid-template-columns: minmax(0, 1fr) auto auto; }
    .shop-line-price { grid-column: 1 / -1; grid-row: 2; }
}
/* Zdjęcia z Icecat: zwykle na białym tle, więc ramka zostaje biała także w ciemnym motywie */
.shop-card-icon.has-img, .shop-product-visual.has-img { background: #fff; overflow: hidden; }
.shop-card-icon.has-img img { max-width: 88%; max-height: 132px; object-fit: contain; }
.shop-product-visual.has-img img { width: 88%; height: 88%; object-fit: contain; }
.shop-availability.is-instock { color: var(--text-primary); font-weight: 600; }
.shop-availability.is-instock::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #16a34a; margin-right: .45rem; vertical-align: .05rem; }
.shop-card .shop-availability { margin: -.3rem 0 0; }

/* Koszyk */
.shop .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.shop-cart-link { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; padding: 6px 16px; border-radius: 50px; border: 1px solid var(--border-color); color: var(--text-primary) !important; font-weight: 600; text-decoration: none; }
.shop-cart-link:hover { border-color: var(--accent-tech); }
.shop-cart-count { min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 50px; background: var(--accent-tech); color: #fff; font-size: .8rem; display: inline-grid; place-items: center; }
.shop-cart-count[hidden] { display: none; }
.shop-totals { text-align: right; margin: 0 0 1.4rem; }
.shop-totals p { margin: .2rem 0; }
.shop-total-net { color: var(--text-primary); font-weight: 700; font-size: 1.2rem; }
.shop-total-gross { font-size: .9rem; }
.shop-buyer { border: 0; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.shop-buyer legend { font-weight: 600; color: var(--text-primary); font-size: .9rem; margin-bottom: .3rem; }
.shop-buyer label { display: flex; gap: .45rem; align-items: center; }
.shop-buyer input, .shop-consent input, .shop-pay input { width: auto; accent-color: var(--accent-tech); }
.shop-pay { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.shop-pay legend { font-weight: 600; color: var(--text-primary); font-size: .9rem; margin-bottom: .3rem; }
.shop-pay label { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.shop-pay input { margin-top: .3rem; flex: none; }
.shop-consent { display: flex; gap: .6rem; align-items: flex-start; margin: .2rem 0 1rem; font-size: .92rem; }
.shop-consent input { margin-top: .3rem; flex: none; }
.shop-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.shop .btn-primary-custom:disabled { opacity: .55; cursor: not-allowed; }
.shop-done h2 { margin-top: 0; }
.shop-done:focus { outline: none; }
.shop-legal section { max-width: 780px; }
.shop-legal h2 { font-size: 1.35rem; margin-top: 2rem; }

/* Strona główna sklepu: baner jak na stronie AI Gateway (ilustracja sprzętu, tekst zawsze jasny) */
.shop-home .navbar {
    --bg-body: #0F172A; --bg-card: #1E293B; --navbar-bg: rgba(15, 23, 42, 0.85);
    --text-primary: #F8FAFC; --text-secondary: #94A3B8; --border-color: #334155;
    --accent-premium: #818CF8; --accent-tech: #C084FC; --btn-premium-hover: #6366F1;
}
.shop-home .navbar .navbar-toggler-icon { filter: invert(1); }
.shop-home .shop { padding-top: 24px; }

.shop-hero {
    position: relative;
    z-index: 10;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 130px 0 90px;
    color: #fff;
    background: #05070f url("../img/sprzet-bg.webp") 62% 70% / cover no-repeat;
}
@supports (background-image: image-set(url("x.avif") type("image/avif"))) {
    .shop-hero { background-image: image-set(url("../img/sprzet-bg.avif") type("image/avif"), url("../img/sprzet-bg.webp") type("image/webp")); }
}
.shop-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 5, 15, 0.92) 0%, rgba(3, 5, 15, 0.7) 38%, rgba(3, 5, 15, 0.1) 70%, rgba(3, 5, 15, 0) 100%); }
.shop-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--bg-body)); }
.shop-hero .container { position: relative; z-index: 1; max-width: calc(1080px + 1.5rem); }  /* tekst w linii z treścią sklepu */
.shop-hero-text { max-width: 620px; }
.shop-hero-eyebrow { display: block; margin-bottom: 18px; color: #7DD3FC; font-weight: 700; font-size: .9rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.shop-hero .hero-tagline { font-family: 'Caviar Dreams', sans-serif; font-weight: 700; font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; text-align: left; margin-bottom: 1.25rem; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.shop-hero-lead { color: rgba(255, 255, 255, .85); font-size: 1.05rem; line-height: 1.7; margin: 0 0 1.5rem; max-width: 560px; }
.shop-hero .shop-promises { flex-direction: column; gap: .45rem; margin: 0 0 2rem; color: rgba(255, 255, 255, .8); }
.shop-hero .shop-promises strong { color: #fff; }
.shop-hero .shop-promises li::before { background: #38BDF8; }
.shop-hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.shop-hero .btn-secondary-custom { color: #fff; border-color: rgba(255, 255, 255, .45); }
.shop-hero .btn-secondary-custom:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }

@media (max-width: 767px) {
    /* Telefon: ilustracja jako pas u góry, tekst pod nią na ciemnym tle */
    .shop-hero { min-height: 0; padding: 300px 0 60px; background: #05070f url("../img/sprzet-bg-m.webp") 70% 64px / auto 260px no-repeat; }
    .shop-hero::before { background: linear-gradient(180deg, rgba(3, 5, 15, .1) 0px, rgba(3, 5, 15, .1) 200px, #05070f 324px); }
    @supports (background-image: image-set(url("x.avif") type("image/avif"))) {
        .shop-hero { background-image: image-set(url("../img/sprzet-bg-m.avif") type("image/avif"), url("../img/sprzet-bg-m.webp") type("image/webp")); }
    }
}
