.csp-product-page {
  margin: 2rem 0 4rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .csp-product-page { grid-template-columns: 1fr; gap: 32px; }
}

/* gallery */
.csp-gallery {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (max-width: 768px) { .csp-gallery { position: static; } }

.csp-gallery-main {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.csp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, opacity .2s ease;
}
.csp-gallery-main:hover img { transform: scale(1.03); }

/* thumb slider */
.csp-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.csp-thumbs-slider {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.csp-thumbs-track {
  display: flex;
  gap: 0.5rem;
  transition: transform .3s ease;
}
.csp-thumb {
  flex: 0 0 calc((100% - 24px) / 4); /* 4 widoczne */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s;
}
.csp-thumb.active { opacity: 0.6; border: 1px solid var(--color-accent); }
.csp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.csp-arrow {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--color-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}

.csp-arrow:hover { background: var(--color-accent__700); }
.csp-arrow:disabled { opacity: .3; cursor: default; pointer-events: none; }
.csp-arrow svg { 
    width: 1rem; height: 1rem; 
    fill: var(--color-text);
}

.csp-arrow:hover svg {
    fill: var(--color-text__600);
}

/* summary */
.csp-category {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
  padding: 0.3rem 0.5rem;
  background-color: var(--color-accent);
  color: var(--color-text);
  width: max-content;
}
.csp-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  margin: 1rem 0;
}

/* WooCommerce price – nadpisanie domyślnych styli WC */
.csp-price del *,
.csp-price ins * {
	font-size: 1.2rem;
}

.csp-price del,
.csp-price del * {
	font-weight: 500;
	color: var(--color-text__800);
}
.csp-price ins,
.csp-price ins * {
	background: none;
	font-weight: bold;
	color: var(--color-text);
}

.csp-price {
    margin-bottom: 1rem;
}

/* WooCommerce add to cart – nadpisanie */
.csp-custom-add-to-cart {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
}

/* meta */
.csp-meta {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 1rem 0;
}

.csp-meta p {margin: 0;}
.csp-meta strong { color: var(--color-text__800); }
.csp-meta a { color: var(--color-accent); text-decoration: none; }
.csp-meta a:hover { color: #1a1a1a; }

.csp-attributes {
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.csp-attributes p {margin: 0;}
.csp-attributes strong {color: var(--color-text__800);}

/* description */
.csp-description h2 {
    font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border); 
}
.csp-description p { color: var(--color-text__700); margin-bottom: 12px; max-width: 560px; }
.csp-description ul { list-style: none; padding: 0; margin: 16px 0 0; }
.csp-description ul li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text__700);
  margin-bottom: 6px;
  font-size: 15px;
}
.csp-description ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #D0021B;
}
