/* ============================================================
   WooCommerce — styl marki Holispace
   Ładowany gdy WooCommerce aktywne. Wszystko w obrębie .hs-shop
   oraz selektorów Woo, by nie wpływać na resztę motywu.
   ============================================================ */
.hs-shop {
  --hs-gold-deep: #9c7d1c;
}

.hs-shop {
  padding-block: 1rem 3rem;
}

/* ---------- Wspólne: przyciski Woo = obrysowany złoty „pill” ---------- */
.hs-shop a.button,
.hs-shop button.button,
.hs-shop input.button,
.hs-shop .button.alt,
.hs-shop .single_add_to_cart_button {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .02em;
  line-height: 1.2;
  padding: .85rem 1.6rem;
  border-radius: 100px;
  background: transparent;
  color: var(--hs-gold-deep);
  border: 1px solid var(--line-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.hs-shop a.button:hover,
.hs-shop button.button:hover,
.hs-shop input.button:hover,
.hs-shop .button.alt:hover,
.hs-shop .single_add_to_cart_button:hover {
  background: var(--gold);
  color: var(--green-900);
  border-color: var(--gold);
}

/* ======================= LISTA / KATEGORIA ======================= */
.hs-shop ul.products {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.hs-shop ul.products::before,
.hs-shop ul.products::after {
  content: none;
  display: none;
}

/* kasuje clearfix Woo */
.hs-shop ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.hs-shop ul.products li.product>a img {
  border-radius: 14px;
  margin-bottom: 1.1rem;
}

.hs-shop ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ink);
  padding: .2rem 0 .5rem;
}

.hs-shop ul.products li.product .price {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 400;
  margin: .2rem 0 1.1rem;
}

.hs-shop ul.products li.product .button {
  text-transform: uppercase;
  margin-top: auto;
  align-self: center;
}

.hs-shop ul.products li.product .onsale {
  background: var(--gold);
  color: var(--green-900);
  border-radius: 100px;
  padding: .2rem .8rem;
  font-family: var(--font-mono);
  font-size: .7rem;
}

/* Nagłówek archiwum + sortowanie */
.hs-shop .woocommerce-products-header__title,
.hs-shop .page-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--gold-ink, var(--hs-gold-deep));
  font-size: 2.2rem;
  text-align: center;
}

.hs-shop .woocommerce-result-count {
  color: var(--ink);
  opacity: .65;
  font-size: .9rem;
}

.hs-shop .woocommerce-ordering select {
  font-family: var(--font-body);
  padding: .5rem .8rem;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

/* ======================= POJEDYNCZY PRODUKT ======================= */
.hs-shop div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: start;
}

.hs-shop .hs-product-title {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--gold-ink, var(--hs-gold-deep));
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 1rem;
}

.hs-shop div.product .woocommerce-product-gallery {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.hs-shop div.product .woocommerce-product-gallery img {
  border-radius: 14px;
}

.hs-shop div.product .summary {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

.hs-shop div.product .summary>.price {
  color: var(--ink);
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
}

.hs-shop div.product .summary .price del {
  opacity: .5;
  font-size: .9em;
}

.hs-shop div.product .summary .price ins {
  text-decoration: none;
  font-weight: 600;
}

/* Warianty (np. „Obszar”) */
.hs-shop .variations {
  width: 100%;
  border: 0;
  margin: 0 0 1rem;
}

.hs-shop .variations th,
.hs-shop .variations td {
  display: block;
  text-align: left;
  padding: 0;
  border: 0;
}

.hs-shop .variations th.label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin: .8rem 0 .4rem;
}

.hs-shop .variations select {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .85rem 2.6rem .85rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a1d14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.hs-shop .variations select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .16);
}

.hs-shop .reset_variations {
  display: inline-block;
  margin: .3rem 0 .6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .6;
}

.hs-shop .woocommerce-variation-price .price {
  display: block;
  font-size: 1.6rem;
  color: var(--ink);
  margin: .8rem 0 1rem;
}

/* Ilość + dodaj do koszyka */
.hs-shop form.cart {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hs-shop .quantity .qty {
  width: 72px;
  padding: .8rem .6rem;
  text-align: center;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}

.hs-shop .single_add_to_cart_button {
  padding: .85rem 2rem;
}

/* ---------- Pasek dodatkowy: telefon + kafelki Czas/Koszt ---------- */
.hs-prod-extras {
  grid-column: 1 / -1;
  margin-top: 2.2rem;
  text-align: center;
}

.hs-call-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: .9rem 1.7rem;
  background: var(--green-800);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease;
}

.hs-call-btn:hover {
  background: var(--green-700);
}

.hs-call-btn svg {
  width: 18px;
  height: 18px;
  color: var(--cream);
}

.hs-prod-stats {
  display: flex;
  gap: 3.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.6rem 0 .5rem;
}

.hs-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.hs-stat svg {
  width: 40px;
  height: 40px;
  color: var(--gold);
}

.hs-stat-l {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}

.hs-stat-v {
  font-family: var(--font-body);
  color: var(--ink);
}

/* ---------- Opis inline (zamiast zakładek) ---------- */
.hs-product-desc {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-dark);
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  max-width: 80ch;
}

.hs-product-desc h1,
.hs-product-desc h2,
.hs-product-desc h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

.hs-product-desc p {
  line-height: 1.8;
}

.hs-product-desc a {
  color: var(--hs-gold-deep);
}

/* Produkty powiązane */
.hs-shop .related>h2,
.hs-shop .upsells>h2 {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  margin-top: 1rem;
}

.hs-shop .related,
.hs-shop .upsells {
  grid-column: 1 / -1;
}

/* ======================= KOMUNIKATY / KOSZYK ======================= */
.hs-shop .woocommerce-message,
.hs-shop .woocommerce-info,
.hs-shop .woocommerce-error {
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--gold);
  background: var(--paper);
  font-family: var(--font-body);
  color: var(--ink);
  padding: 1rem 1.2rem;
  list-style: none;
}

.hs-shop .woocommerce-error {
  border-top-color: #c0584f;
}

.hs-shop table.shop_table {
  border-radius: 10px;
}

.hs-shop table.shop_table th {
  font-family: var(--font-display);
}

/* ======================= KOSZYK W NAGŁÓWKU ======================= */
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.nav-cart.is-empty {
  display: none;
}

.nav-cart svg {
  width: 21px;
  height: 21px;
}

.nav-cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--green-900);
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.nav-cart-count:empty,
.nav-cart-count.is-zero {
  display: none;
}

/* ======================= RESPONSYWNOŚĆ ======================= */
@media (max-width: 900px) {
  .hs-shop ul.products {
    grid-template-columns: repeat(2, 1fr);
  }

  .hs-shop div.product {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hs-shop ul.products {
    grid-template-columns: 1fr;
  }

  .hs-prod-stats {
    gap: 2.2rem;
  }
}