/* /katalog/assets/catalog.css — minimal base for katalog (generated) */
:root{
  /* Spójne z nagłówkiem/stopką (Lisiewski) */
  --primary-color:#143661; /* granat z HEADER/FOOTER */
  --accent:var(--primary-color);
  --accent2:#1f2b3a;

  /* Tło i tekst */
  --bg:#ffffff;
  --text:#1f2b3a;
  --muted:#6b7280;
  --border:#e6e6e6;
  --soft:#f6f6f6;

  /* Typografia */
  --font-serif:"Times New Roman",Georgia,serif;
  --font-sans:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;

  --radius:14px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:var(--font-serif);line-height:1.45}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
.container{max-width:1180px;margin:0 auto;padding:0 16px}
main.container{padding-top:18px;padding-bottom:28px}

/* breadcrumbs */
.breadcrumbs{font-size:14px;color:var(--muted);margin:10px 0 16px}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.breadcrumbs li::after{content:"/";margin:0 6px;color:#bbb}
.breadcrumbs li:last-child::after{content:""}

/* product */
.product-header h1{font-size:26px;margin:8px 0 0;font-family:var(--font-serif);color:var(--brand);text-transform:uppercase;letter-spacing:.03em;font-weight:700}
.product-top{display:grid;grid-template-columns: 1.3fr 0.7fr;gap:22px;align-items:start}
@media (max-width:900px){.product-top{grid-template-columns:1fr}}

.product-offer{border:1px solid var(--border);border-radius:var(--radius);padding:16px;background:#fff}
.product-offer h2{margin:0 0 10px;font-size:18px}
.product-price{margin:10px 0;padding:10px 12px;background:var(--soft);border:1px solid var(--border);border-radius:12px;font-weight:600}
.product-price .label{font-weight:600;color:var(--muted);margin-right:6px}
.btn-primary,.btn-secondary,.btn-tertiary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:#fff}
.btn-primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.btn-secondary{background:#fff}
.btn-tertiary{background:#fff;color:var(--accent2)}
.product-actions{display:grid;gap:10px;margin-top:12px}

.product-more{margin-top:14px;color:var(--muted);font-size:14px}
.product-sku{margin-top:10px;color:var(--muted);font-size:13px}
.product-description{margin-top:22px;border-top:1px solid var(--border);padding-top:18px}
.product-description h2{margin:18px 0 8px;font-size:18px}
.product-description p{margin:10px 0}
.product-description ul{margin:10px 0 10px 20px}

.product-nav{margin-top:18px;border-top:1px solid var(--border);padding-top:14px;color:var(--muted)}
.product-nav p{margin:8px 0}

/* gallery (radio + CSS, no JS required) */
.product-gallery{border:1px solid var(--border);border-radius:var(--radius);padding:12px;background:#fff}
.product-gallery input[type="radio"]{position:absolute;left:-9999px}
.product-gallery__stage{position:relative;aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:var(--soft)}
.product-gallery__slide{position:absolute;inset:0;opacity:0;transition:opacity .2s ease}
.product-gallery__slide img{width:100%;height:100%;object-fit:contain}
.product-gallery__thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.product-gallery__thumb{width:64px;height:64px;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff;cursor:pointer}
.product-gallery__thumb img{width:100%;height:100%;object-fit:cover}
.product-gallery--single .product-gallery__thumbs{display:none}

/* radio wiring: show nth slide when nth radio checked */

#pg-1:checked ~ .product-gallery__stage .product-gallery__slide:nth-child(1){opacity:1}
#pg-2:checked ~ .product-gallery__stage .product-gallery__slide:nth-child(2){opacity:1}
#pg-3:checked ~ .product-gallery__stage .product-gallery__slide:nth-child(3){opacity:1}
#pg-4:checked ~ .product-gallery__stage .product-gallery__slide:nth-child(4){opacity:1}
#pg-5:checked ~ .product-gallery__stage .product-gallery__slide:nth-child(5){opacity:1}
#pg-6:checked ~ .product-gallery__stage .product-gallery__slide:nth-child(6){opacity:1}

/* category */

.category-header h1{font-size:26px;margin:8px 0 0;font-family:var(--font-serif);color:var(--brand);text-transform:uppercase;letter-spacing:.03em;font-weight:700}
.category-controls{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;background:#fff;margin:12px 0}
.useful-links{display:flex;gap:8px;flex-wrap:wrap}
.useful-links a{padding:8px 10px;border:1px solid var(--border);border-radius:12px;background:#fff}
.useful-links a.primary{background:var(--accent);color:#fff;border-color:var(--accent)}

/* STONE / HUB TILES */
/* Kafelki dla HUB / filtrów (np. kamienie) */
.category-hub{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}
.category-hub a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  text-decoration:none;
  line-height:1.1;
  font-weight:600;
  white-space:normal;
}
.category-hub a:hover{border-color:var(--accent)}
.category-hub a.primary,
.category-hub a[aria-current="page"]{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:12px 0}
@media (max-width:1024px){.product-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){.product-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.product-grid{grid-template-columns:1fr}}
.product-card{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:#fff;display:flex;flex-direction:column}
.product-card__img{aspect-ratio:1/1;background:var(--soft);display:flex;align-items:center;justify-content:center}
.product-card__body{padding:12px 12px 14px;display:flex;flex-direction:column;gap:8px;flex:1}
.product-card__title{font-size:15px;font-weight:600}
.product-card__price{font-weight:600}
.product-card__price .label{font-weight:600;color:var(--muted);margin-right:6px}
.product-card__cta{margin-top:auto;display:flex;gap:8px;flex-wrap:wrap}
.product-card__cta a{padding:8px 10px;border:1px solid var(--border);border-radius:12px}
.product-card__cta a.buy{background:var(--accent);color:#fff;border-color:var(--accent)}
.pagination{display:flex;gap:10px;align-items:center}
.pagination-desktop{display:flex;gap:6px;align-items:center;flex-wrap:nowrap;overflow-x:auto}
.pagination-desktop a{padding:6px 10px;border:1px solid var(--border);border-radius:12px}
.pagination-desktop a.current{background:var(--accent);color:#fff;border-color:var(--accent)}
.pagination-mobile{display:none;gap:8px;align-items:center}
.pagination-mobile a{padding:6px 10px;border:1px solid var(--border);border-radius:12px}
.pagination-mobile .pag-status{color:var(--muted);font-size:14px}
@media (max-width:520px){
  .pagination-desktop{display:none}
  .pagination-mobile{display:flex}
}
.seo-text{margin-top:10px;color:var(--muted);font-size:14px}

/* === QA HARD RULE: inline images inside page_desc_html (product description) === */
.product-description img {
  display: block;
  height: auto;
  width: 100%;
  max-width: 720px;
  margin: 18px auto;
  border-radius: 14px;
}


/* IMG_OBJECTFIT_PATCH_v1 (prevents distortion on product cards)
   Works both when .product-card__img is on wrapper <div> and when it's directly on <img>.
*/
.product-card__img img{width:100%;height:100%;object-fit:contain;object-position:center;display:block}
img.product-card__img{width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;object-position:center;display:block;background:var(--soft)}
