:root {
  --azs-shop-ink: #242424;
  --azs-shop-muted: #6f7376;
  --azs-shop-gold: #c5832b;
  --azs-shop-gold-light: #e7b36c;
  --azs-shop-cream: #f6f3ed;
  --azs-shop-line: #e6e1d8;
  --azs-shop-white: #fff;
}

body.woocommerce-shop,
body.tax-product_cat,
body.tax-product_tag,
body.single-product {
  color: var(--azs-shop-ink);
  font-family: var(--global-body-font-family, inherit);
}

body.woocommerce-shop #primary,
body.tax-product_cat #primary,
body.tax-product_tag #primary,
body.single-product #primary {
  width: 100% !important;
  max-width: none !important;
}

body.woocommerce-shop .content-container,
body.tax-product_cat .content-container,
body.tax-product_tag .content-container,
body.single-product .content-container {
  display: block !important;
  width: min(1320px, calc(100vw - 48px));
  max-width: 1320px;
  margin: 0 auto;
}

/* Nagłówek archiwum generowany przez WooCommerce/Kadence jest celowo ukryty.
 * Tytuł strony można przygotować jako osobną sekcję Kadence nad shortcode'em. */
.woocommerce-products-header {
  display: none !important;
}

/* Kategorie produktów nie są elementem interfejsu tego sklepu. */
.woocommerce ul.products li.product-category,
.woocommerce .product_meta .posted_in,
.woocommerce .product_meta .sku_wrapper + .posted_in {
  display: none !important;
}

.woocommerce .woocommerce-result-count { margin: 11px 0 30px; color: var(--azs-shop-muted); font-size: 14px; }
.woocommerce .woocommerce-ordering { margin: 0 0 30px; }
.woocommerce .woocommerce-ordering select { min-height: 46px; padding: 8px 40px 8px 14px; border: 1px solid var(--azs-shop-line); border-radius: 10px; background-color: #fff; color: var(--azs-shop-ink); font: inherit; font-size: 14px; }

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  margin: 0 0 76px !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

.woocommerce ul.products li.product {
  position: relative;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 12px 12px 16px !important;
  overflow: hidden;
  border: 1px solid var(--azs-shop-line);
  border-radius: 17px;
  background: var(--azs-shop-white);
  box-shadow: 0 15px 44px rgba(36,36,36,.055);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.woocommerce ul.products li.product:hover { transform: translateY(-5px); border-color: #d8cbbb; box-shadow: 0 24px 58px rgba(36,36,36,.11); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; color: inherit; text-decoration: none; }
.woocommerce ul.products li.product img { width: 100%; aspect-ratio: 1 / 1; margin: 0 0 18px !important; border-radius: 12px; background: var(--azs-shop-cream); object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { margin: 0; padding: 0 6px !important; color: var(--azs-shop-ink); font-family: inherit; font-size: 19px !important; line-height: 1.3; font-weight: 600; }
.woocommerce ul.products li.product .price { display: block; margin: 10px 6px 17px !important; color: var(--azs-shop-ink) !important; font-size: 18px !important; font-weight: 600 !important; }
.woocommerce ul.products li.product .star-rating { margin: 10px 6px 0 !important; color: var(--azs-shop-gold); }
.azs-price-from small { color: var(--azs-shop-muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }

.azs-product-badge {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 24px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 99px;
  background: rgba(36,36,36,.9);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.woocommerce ul.products li.product .button,
.azs-design-product-button {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  margin: 0 6px !important;
  padding: 13px 18px !important;
  border: 1px solid var(--azs-shop-ink) !important;
  border-radius: 0 18px !important;
  background: var(--azs-shop-ink) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.woocommerce ul.products li.product .button { width: calc(100% - 12px); }
.woocommerce ul.products li.product .button:hover,
.azs-design-product-button:hover { border-color: var(--azs-shop-gold) !important; background: var(--azs-shop-gold) !important; transform: translateY(-1px); }
.azs-design-product-button span { font-size: 21px; font-weight: 400; }

body.single-product div.product { margin: 46px 0 80px; }
body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product .summary { margin-bottom: 48px; }
body.single-product div.product .woocommerce-product-gallery__wrapper { overflow: hidden; border-radius: 18px; background: var(--azs-shop-cream); }
body.single-product div.product .product_title { color: var(--azs-shop-ink); font-family: inherit; font-size: clamp(34px, 4vw, 58px); line-height: 1.03; font-weight: 500; }
body.single-product div.product .summary > .price { color: var(--azs-shop-ink); font-size: 25px; font-weight: 600; }
body.single-product div.product .woocommerce-product-details__short-description { color: var(--azs-shop-muted); }

.azs-single-configurator-cta {
  margin-top: 26px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 16px;
  background: linear-gradient(130deg, #292929, #3a342c);
  color: #fff;
  box-shadow: 0 19px 50px rgba(36,36,36,.13);
}

.azs-single-configurator-cta__eyebrow { display: block; margin-bottom: 8px; color: var(--azs-shop-gold-light); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.azs-single-configurator-cta h2 { margin: 0 0 12px; color: #fff; font-family: inherit; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.08; font-weight: 500; }
.azs-single-configurator-cta p { margin: 0 0 20px; color: rgba(255,255,255,.73); font-size: 15px; }
.azs-single-configurator-cta .azs-design-product-button { margin: 0 !important; }
.azs-single-configurator-cta > small { display: block; margin-top: 13px; color: rgba(255,255,255,.55); font-size: 12px; }

body.single-product .woocommerce-tabs,
body.single-product .related.products { clear: both; }
body.single-product .woocommerce-tabs { padding-top: 30px; }
body.single-product .woocommerce-tabs ul.tabs { padding: 0 !important; border-bottom: 1px solid var(--azs-shop-line); }
body.single-product .woocommerce-tabs ul.tabs::before { display: none !important; }
body.single-product .woocommerce-tabs ul.tabs li { margin: 0 8px 0 0 !important; border: 0 !important; border-radius: 10px 10px 0 0 !important; background: var(--azs-shop-cream) !important; }

.woocommerce nav.woocommerce-pagination { margin: -34px 0 76px; }
.woocommerce nav.woocommerce-pagination ul { display: inline-flex; gap: 7px; padding: 0; border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--azs-shop-line);
  border-radius: 10px;
  background: #fff;
  color: var(--azs-shop-ink);
  place-items: center;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover { border-color: var(--azs-shop-ink); background: var(--azs-shop-ink); color: #fff; }

@media (max-width: 1024px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  body.woocommerce-shop .content-container,
  body.tax-product_cat .content-container,
  body.tax-product_tag .content-container,
  body.single-product .content-container { width: min(100% - 28px, 1320px); }
  .woocommerce .woocommerce-result-count,
  .woocommerce .woocommerce-ordering { float: none; width: 100%; }
  .woocommerce .woocommerce-ordering select { width: 100%; }
  .woocommerce ul.products { grid-template-columns: 1fr !important; gap: 18px; margin-bottom: 50px !important; }
  .woocommerce ul.products li.product { padding: 10px 10px 15px !important; }
  body.single-product div.product { margin-top: 26px; }
}
