/*
Theme Name: Blocksy JakZagrac
Description: Motyw potomny Blocksy zachowujący sekcje istniejących stron JakZagrac.pl po migracji z Mesmerize.
Author: JakZagrac.pl
Template: blocksy
Version: 1.2.1
Text Domain: blocksy-jzg
*/

/* Only the legacy page sections use these rules. Blocksy handles the shop. */
.entry-content .content-section { padding: 48px 0; }
.entry-content .gridContainer { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.entry-content .content-section .text-center,
.entry-content .section-title-col { text-align: center; }
.entry-content .content-section .row.spaced-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.entry-content .white-text,
.entry-content .white-text :is(h1,h2,h3,h4,h5,h6,p) { color: #fff; }
.entry-content .content-section a.button.color1 { display: inline-flex; align-items: center; justify-content: center; margin-top: 16px; padding: 12px 20px; background: #ff9900; border: 1px solid #ff9900; border-radius: 3px; color: #17212a; font-weight: 600; text-decoration: none; }
.entry-content .content-section a.button.color1:hover { background: #e68a00; border-color: #e68a00; }
.entry-content .content-section .row:not(.spaced-cols) > [data-dynamic-columns] { width: 100%; }
.entry-content .content-section .row > .text-center { width: 100%; }
.entry-content .content-section .col-padding > .fa { display: none; }
.entry-content .content-section .lead { margin-bottom: 28px; }
.entry-content .jzg-preserved-hero { padding: 48px 32px; background: #000; color: #fff; margin-bottom: 0; }
.entry-content .jzg-preserved-hero h2 { color: #fff; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.25; }
.entry-content .jzg-preserved-hero .jzg-hero-links { display: flex; flex-wrap: wrap; gap: 14px; }
.entry-content .jzg-preserved-hero a { display: inline-flex; padding: 12px 20px; background: #ff9900; border-radius: 3px; color: #17212a; font-weight: 600; text-decoration: none; }
.jzg-legacy-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; }
.jzg-legacy-news li { min-width: 0; margin: 0; }
.jzg-legacy-news .wp-block-latest-posts__featured-image img { width: 100%; height: auto; display: block; margin-bottom: 16px; }
.jzg-legacy-news .wp-block-latest-posts__post-title { display: block; font-weight: 600; margin-bottom: 12px; }
.jzg-legacy-news .wp-block-latest-posts__post-excerpt { margin-top: 12px; }
@media (max-width: 767px) {
  .entry-content .content-section .row.spaced-cols,
  .jzg-legacy-news { grid-template-columns: 1fr; }
  .entry-content .content-section { padding: 32px 0; }
  .entry-content .gridContainer { padding-inline: 18px; }
  .entry-content .jzg-preserved-hero { padding: 32px 20px; }
}

/* Native WordPress blocks on the rebuilt homepage. */
.jzg-home { --jzg-ink: #191b1c; --jzg-orange: #ff9900; color: var(--jzg-ink); margin-block: 0; }
.jzg-home > * { margin-block: 0; }
.jzg-home-wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto !important; }
.jzg-home-section { padding-block: 70px; }
.jzg-home h1 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 26px; }
.jzg-home h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.18; letter-spacing: -0.025em; margin: 0 0 20px; }
.jzg-home h3 { font-size: 23px; line-height: 1.3; margin-bottom: 14px; }
.jzg-home .jzg-eyebrow { font-size: 12px; line-height: 1.5; letter-spacing: .12em; font-weight: 700; margin-bottom: 22px; }
.jzg-home .jzg-home-lead { font-size: 19px; line-height: 1.7; max-width: 680px; }
.jzg-home .wp-block-buttons { gap: 12px; margin-top: 28px; }
.jzg-home .wp-block-button__link { background: var(--jzg-orange); color: #191b1c; border: 2px solid var(--jzg-orange); border-radius: 5px; padding: 13px 21px; font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.jzg-home .wp-block-button__link:hover { background: #e88b00; border-color: #e88b00; }
.jzg-home .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link { color: #191b1c; background: transparent; border-color: currentColor; }
.jzg-home :is(.jzg-home-hero,.jzg-home-foundation) .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: #899192; }
.jzg-home .is-style-outline .wp-block-button__link:hover { color: #a85800; }
.jzg-home-hero { background: #191b1c; color: #fff; padding-block: 54px; }
.jzg-home-hero :is(h1,h2,h3) { color: #fff; }
.jzg-home-hero .jzg-eyebrow { color: #ffb84e; }
.jzg-home-hero .wp-block-columns { gap: 54px; margin-bottom: 0; }
.jzg-home-hero .jzg-home-note { margin-top: 26px; margin-bottom: 0; font-size: 14px; color: #bdc0c1; }
.jzg-home-hero .jzg-home-lead { color: #dedfdf; }
.jzg-home-hero .is-style-outline .wp-block-button__link:hover { color: #ffb84e; }
.jzg-home .jzg-hero-photo { margin: 0; }
.jzg-home .jzg-hero-photo img { width: 100%; height: 490px; object-fit: cover; border-radius: 8px; display: block; }
.jzg-home-benefits { gap: 30px; margin-bottom: 0; }
.jzg-home-benefits .wp-block-column { padding-top: 25px; border-top: 3px solid #ff9900; }
.jzg-home-benefits p:last-child { margin-bottom: 0; color: #51565a; font-size: 16px; }
.jzg-home-products { padding-top: 10px; }
.jzg-home-products .woocommerce { margin-top: 36px; }
.jzg-home-products .woocommerce-loop-product__title { font-size: 16px; line-height: 1.5; }
.jzg-home-products ul.products li.product { min-width: 0; background: #f6f7f7; padding: 20px; border-radius: 8px; }
.jzg-home-products .price { font-size: 20px; }
.jzg-home-products .button { background: #ff9900; color: #191b1c; border-radius: 4px; }
.jzg-home-products .button:hover { background: #e88b00; color: #191b1c; }
.home.page-id-2515 main > .ct-container-full { padding-top: 0; padding-bottom: 0; }
.jzg-home-guide { background: #fff3df; }
.jzg-home-guide .jzg-eyebrow { color: #925400; }
.jzg-home .jzg-home-news { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; margin: 32px 0; padding: 0; list-style: none; }
.jzg-home .jzg-home-news li { width: auto !important; min-width: 0; margin: 0 !important; }
.jzg-home-news .wp-block-latest-posts__featured-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-bottom: 18px; display: block; }
.jzg-home-news .wp-block-latest-posts__post-title { font-size: 21px; line-height: 1.4; font-weight: 700; color: #191b1c; text-decoration: none; }
.jzg-home-news .wp-block-latest-posts__post-title:hover { color: #a85800; }
.jzg-home-news .wp-block-latest-posts__post-excerpt { font-size: 15px; line-height: 1.7; color: #51565a; }
.jzg-home-foundation { background: #222728; color: #dce0e0; }
.jzg-home-foundation h2 { color: #fff; }
.jzg-home-foundation .jzg-eyebrow { color: #ffb84e; }
.jzg-home-foundation .is-style-outline .wp-block-button__link:hover { color: #ffb84e; }
@media (max-width: 781px) {
  .jzg-home-wrap { width: calc(100% - 40px); }
  .jzg-home-section { padding-block: 44px; }
  .jzg-home-hero { padding-block: 38px; }
  .jzg-home-hero .wp-block-columns { gap: 32px; }
  .jzg-home .jzg-hero-photo img { height: 360px; }
  .jzg-home .jzg-home-news { grid-template-columns: 1fr; gap: 30px; }
  .jzg-home .jzg-home-lead { font-size: 17px; }
}

/* Shared store design: system typography, orange controls, white product cards. */
body {
  --theme-palette-color-1: #ff9900;
  --theme-palette-color-2: #a85800;
  --theme-palette-color-3: #53585c;
  --theme-palette-color-4: #191b1c;
  --theme-palette-color-5: #e3e6e7;
  --theme-palette-color-6: #f5f6f7;
  --theme-palette-color-7: #fff;
  --theme-palette-color-8: #fff;
  --theme-link-initial-color: #925000;
  --theme-link-hover-color: #191b1c;
  --theme-button-background-initial-color: #ff9900;
  --theme-button-background-hover-color: #e88b00;
  --theme-button-text-initial-color: #191b1c;
  --theme-button-text-hover-color: #191b1c;
  --theme-button-min-height: 50px;
  --theme-font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--theme-font-family);
  background: #f8f9fa;
  color: #191b1c;
}
body :is(h1,h2,h3,h4,h5,h6) { font-family: var(--theme-font-family); }
body :is(a,button,input,select,textarea) { -webkit-tap-highlight-color: transparent; }
body :is(a,button,input,select,textarea):focus-visible { outline: 3px solid #a85800; outline-offset: 4px; }
#header [data-row="middle"] { --height: 94px; border-bottom: 1px solid #e3e6e7; background: #fff; }
#header .site-logo-container img { object-fit: contain; }
#header .menu > li > a { font-size: 12px; font-weight: 650; letter-spacing: .02em; }
#header .sub-menu { border: 1px solid #e3e6e7; border-radius: 8px; box-shadow: 0 12px 28px #191b1c12; }
#header .sub-menu a { font-size: 14px; }
.jzg-home .wp-block-buttons .wp-block-button__link,
.jzg-guide .wp-block-buttons .wp-block-button__link {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  width: 236px; min-height: 50px; padding: 12px 20px; border: 2px solid #ff9900;
  border-radius: 5px; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.3;
  background: #ff9900; color: #191b1c; text-align: center; text-decoration: none;
}
.jzg-guide .wp-block-buttons .wp-block-button__link:hover { background: #e88b00; border-color: #e88b00; }
.jzg-home-hero { padding-block: 38px; }
.jzg-home h1 { font-size: clamp(36px,4.1vw,54px); }
.jzg-home .jzg-hero-photo img { height: 360px; }
.jzg-home .jzg-home-lead { font-size: 18px; }
.jzg-home-products { padding-top: 48px; }
.jzg-featured { margin-top: 26px; }
.jzg-tab-list { display: flex; gap: 8px; width: fit-content; padding: 5px; background: #e9ecee; border-radius: 8px; }
.jzg-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 148px; padding: 10px 24px; border: 0; border-radius: 5px; color: #454b4f; font-weight: 700; font-size: 15px; text-decoration: none; }
.jzg-tab[aria-selected="true"] { background: #191b1c; color: #fff; box-shadow: 0 2px 5px #00000014; }
.jzg-tab:hover { color: #191b1c; background: #fff; }
.jzg-tab[aria-selected="true"]:hover { background: #303537; color: #fff; }
.jzg-product-panel { margin-top: 28px; }
.jzg-product-panel[hidden] { display: none !important; }
.jzg-tabs-ready .jzg-panel-heading { display: none; }
.jzg-home-products .woocommerce { margin-top: 0; }
.woocommerce ul.products,
.jzg-home .woocommerce ul.products {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding: 0;
}
.woocommerce ul.products li.product,
.jzg-home .woocommerce ul.products li.product {
  min-width: 0; width: auto; margin: 0; padding: 16px; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e3e6e7; border-radius: 8px; box-shadow: none;
}
.woocommerce ul.products li.product:hover { border-color: #c2c7ca; }
.woocommerce ul.products li.product figure { margin-bottom: 18px; }
.woocommerce ul.products li.product .ct-media-container { aspect-ratio: 1; background: #fff; }
.woocommerce ul.products li.product .ct-media-container img { object-fit: contain; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 4.5em; font-size: 15px; font-weight: 650; line-height: 1.5; margin: 0 0 14px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title a { color: #191b1c; }
.woocommerce ul.products li.product .entry-meta { display: none; }
.woocommerce ul.products li.product .price { margin-bottom: 18px; font-size: 20px; font-weight: 700; color: #191b1c; }
.woocommerce .price del { font-size: 14px; font-weight: 400; color: #626a6f; }
.woocommerce .price ins { text-decoration: none; }
.woocommerce ul.products li.product .ct-woo-card-actions { margin-top: auto; }
.woocommerce ul.products li.product .ct-woo-card-actions .button { width: 100%; }
.woocommerce :is(a.button,button.button,input.button) {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 18px; border: 2px solid #ff9900; border-radius: 5px;
  background: #ff9900; color: #191b1c; font-size: 15px; font-weight: 700; line-height: 1.3;
}
.woocommerce :is(a.button,button.button,input.button):hover { background: #e88b00; border-color: #e88b00; color: #191b1c; }
.entry-content .content-section a.button.color1,
.wpforms-container button.wpforms-submit { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 236px; min-height: 50px; padding: 12px 20px; border: 2px solid #ff9900; border-radius: 5px; background: #ff9900; color: #191b1c; font-size: 15px; font-weight: 700; line-height: 1.3; }
.woocommerce span.onsale { background: #ff9900; color: #191b1c; border-radius: 4px; font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.woocommerce :is(input.input-text,textarea,select),.woocommerce-ordering select { border: 1px solid #cbd1d4; border-radius: 5px; background: #fff; min-height: 46px; }
.woocommerce div.product .summary { padding: 26px; background: #fff; border: 1px solid #e3e6e7; border-radius: 8px; }
.woocommerce div.product .product_title { font-size: clamp(27px,3vw,38px); line-height: 1.25; }
.woocommerce div.product .summary .price { font-size: 27px; font-weight: 700; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: 16px; line-height: 1.7; }
.woocommerce div.product .woocommerce-tabs { padding: 30px; background: #fff; border: 1px solid #e3e6e7; border-radius: 8px; }
.woocommerce div.product .woocommerce-tabs p { line-height: 1.8; }
.woocommerce table.shop_table { background: #fff; border: 1px solid #e3e6e7; border-radius: 8px; }
.woocommerce :is(.cart_totals,.woocommerce-checkout-review-order,.woocommerce-MyAccount-content) { background: #fff; border: 1px solid #e3e6e7; border-radius: 8px; padding: 24px; }
.jzg-category-links { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; margin: 0 0 30px; }
.jzg-category-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid #d5dbde; border-radius: 5px; color: #191b1c; background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.jzg-category-links a:hover,.jzg-category-links a[aria-current="page"] { border-color: #a85800; background: #fff3df; }
.jzg-home-categories { padding-top: 0; }
.jzg-home-categories h2 { font-size: 27px; }
.jzg-home-categories .jzg-category-links { margin-top: 24px; margin-bottom: 0; }
.jzg-home-benefits .wp-block-column { padding: 24px; background: #fff; border: 1px solid #e3e6e7; border-top: 3px solid #ff9900; border-radius: 5px; }
#footer { background: #191b1c; color: #d2d5d6; }
#footer [data-row] { background: #191b1c; }
#footer .ct-footer-copyright { color: #d2d5d6; font-size: 13px; line-height: 1.8; }
.jzg-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; padding: 0 24px 28px; background: #191b1c; border-bottom: 4px solid #ff9900; }
.jzg-footer-links a { color: #fff; font-size: 13px; text-decoration: none; padding-block: 5px; }
.jzg-footer-links a:hover { color: #ffb84e; }
.jzg-guide { color: #191b1c; }
.jzg-guide-wrap { width: min(1120px,calc(100% - 64px)); margin-inline: auto !important; }
.jzg-guide-intro { padding: 40px 0 56px; }
.jzg-guide-intro h2 { font-size: clamp(30px,3.4vw,46px); line-height: 1.2; letter-spacing: -.025em; }
.jzg-guide h2 { margin-top: 0; }
.jzg-guide-intro .jzg-eyebrow { margin-bottom: 20px; }
.page-id-204 main > .ct-container-full { padding-top: 40px; }
.woocommerce.archive .hero-section[data-type="type-2"] { --min-height: 140px; padding-block: 30px; min-height: 140px; }
.jzg-guide :is(p,li) { font-size: 17px; line-height: 1.85; }
.jzg-guide .jzg-eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .12em; color: #925000; }
.jzg-guide-intro .wp-block-columns { align-items: center; gap: 44px; }
.jzg-guide-intro img { width: 100%; height: 340px; object-fit: cover; border-radius: 8px; }
.jzg-guide-step { scroll-margin-top: 32px; padding-block: 48px; border-top: 1px solid #e3e6e7; }
.jzg-guide-step h2 { margin-bottom: 30px; font-size: clamp(26px,2.7vw,35px); line-height: 1.25; }
.jzg-guide-step h3 { margin-top: 30px; font-size: 20px; }
.jzg-guide-step .wp-block-columns { gap: 40px; align-items: flex-start; }
.jzg-guide-step .wp-block-column:last-child { position: sticky; top: 45px; }
.jzg-video { position: relative; aspect-ratio: 16/9; background: #191b1c; border-radius: 8px; overflow: hidden; }
.jzg-video .jzg-video-play { display: block; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; background: #191b1c; cursor: pointer; }
.jzg-video img { display: block; width: 100%; height: 100%; object-fit: contain; }
.jzg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jzg-play-symbol { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid #fff; border-radius: 50%; background: #191b1ce6; color: #fff; font-size: 25px; padding-left: 4px; }
.jzg-video-play:hover .jzg-play-symbol { background: #ff9900; color: #191b1c; }
.jzg-video-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; text-decoration: none; }
.jzg-guide-cta { padding: 44px; margin-top: 30px; margin-bottom: 48px; background: #fff3df; border-radius: 8px; }
.jzg-guide-cta h2 { font-size: 30px; }
@media (max-width: 999px) {
  .woocommerce ul.products,.jzg-home .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #header [data-row="middle"] { --height: 80px; }
}
@media (max-width: 781px) {
  .jzg-home .wp-block-buttons .wp-block-button,.jzg-guide .wp-block-buttons .wp-block-button { width: 100%; }
  .jzg-home .wp-block-buttons .wp-block-button__link,.jzg-guide .wp-block-buttons .wp-block-button__link { width: 100%; }
  .wpforms-container button.wpforms-submit { width: 100%; }
  .jzg-home .jzg-hero-photo img { height: 290px; }
  .jzg-home-products { padding-top: 38px; }
  .jzg-guide-wrap { width: calc(100% - 40px); }
  .jzg-guide-intro { padding-top: 20px; }
  .jzg-guide-step { padding-block: 36px; }
  .jzg-guide-step .wp-block-column:last-child { position: static; }
  .jzg-guide :is(p,li) { font-size: 16px; line-height: 1.8; }
  .jzg-guide-cta { padding: 28px 20px; }
  .jzg-category-links { gap: 8px; }
  .jzg-category-links a { font-size: 13px; padding: 10px 12px; }
  .jzg-tab-list { width: 100%; }
  .jzg-tab { min-width: 0; flex: 1; }
}
@media (max-width: 479px) {
  .woocommerce ul.products,.jzg-home .woocommerce ul.products { gap: 12px; }
  .woocommerce ul.products li.product,.jzg-home .woocommerce ul.products li.product { padding: 10px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13px; line-height: 1.5; min-height: 6em; }
  .woocommerce ul.products li.product .price { font-size: 18px; }
  .woocommerce ul.products li.product .ct-woo-card-actions .button { font-size: 13px; padding: 10px 6px; min-height: 46px; }
  .woocommerce div.product .summary,.woocommerce div.product .woocommerce-tabs { padding: 20px; }
}
