/* Light multi-product refresh (1.13.0): Home page sections. Loaded after all base styles (inc/setup.php). */

/* ==========================================================================
   Hero: bigger tap targets, one left edge on desktop
   ========================================================================== */
/* Text link under the phone CTA: 48px tall tap target instead of a 6px-padded line. */
:root body .cv-hero__mobile .cv-hero-alt{margin:0}
:root body .cv-hero__mobile .cv-hero-alt .cv-btn--text{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:6px 8px;font-size:18px}
:root body .cv-hero__mobile .cv-hero__actions{gap:4px}
:root body .cv-hero__mobile .cv-hero__card h1{text-wrap:balance}
:root body .cv-hero__mobile .cv-hero__card p{text-wrap:pretty}

@media (min-width:900px){
  /* Title shares the left edge of the paragraph and buttons (it was centred under the logo). */
  :root body .cv-hero__intro .cv-hero__title{width:auto;text-align:left;font-size:clamp(24px,calc((min(100vw,1440px) - 128px) / 34),36px);line-height:1.18;text-wrap:balance}
  :root body .cv-hero__intro .cv-hero__title::after{margin:16px 0 0;width:72px}
  :root body .cv-hero__intro .cv-hero__title-l1,:root body .cv-hero__intro .cv-hero__title-l2{display:inline}
  :root body .cv-hero__left .cv-hero__intro p{text-wrap:pretty}
  :root body .cv-hero__actions-d{flex-wrap:wrap}
  :root body .cv-hero__actions-d .wp-block-button__link{min-height:56px;padding:0 32px;font-size:16px}
  /* Social icons: 48px targets, spaced from the buttons. */
  :root body .cv-hero__social{gap:4px;margin-top:-4px}
  :root body .cv-hero__social .wp-social-link a{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;padding:0}
  :root body .cv-hero__social .wp-social-link svg{width:24px;height:24px}
}
:root body .cv-hero a:focus-visible,
:root body .cv-hero .wp-block-button__link:focus-visible{outline:3px solid var(--cv-gold-light);outline-offset:3px}

/* ==========================================================================
   Rhythm between sections
   ========================================================================== */
:root body .cv-main--front .cv-sec{padding-bottom:72px}
:root body .cv-main--front .cv-sec.cv-products{padding-top:56px}
@media (max-width:899px){
  :root body .cv-main--front .cv-sec{padding-bottom:56px}
  :root body .cv-main--front .cv-sec.cv-products{padding-top:40px}
}
:root body .cv-main--front .cv-heading__title{text-wrap:balance}

/* ==========================================================================
   "Nasze produkty": grid for several products (1 / 2 / 4 columns), no sideways swiping
   ========================================================================== */
:root body .cv-products .wc-block-product-template{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;overflow:visible;scroll-snap-type:none;padding:0;justify-content:stretch}
:root body .cv-products .wc-block-product-template > .wc-block-product{flex:none;width:auto;max-width:none;min-width:0;margin:0;scroll-snap-align:none}
/* Phones: one horizontal card per row, same as the shop listing (refresh-shop.css). */
@media (min-width:560px){
  :root body .cv-products .wc-block-product-template{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}
@media (min-width:1100px){
  :root body .cv-products .wc-block-product-template{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
  :root body .cv-products .wc-block-product-template > .wc-block-product{flex:none}
}

/* "Wszystkie produkty": same weight as the hero's second button. */
:root body .cv-products .cv-sec-more{margin-top:-8px}
:root body .cv-products .cv-sec-more .wp-block-button__link{min-height:56px;padding:0 36px;font-size:16px}
:root body .cv-products .cv-sec-more .wp-block-button__link:focus-visible{outline:3px solid var(--cv-gold-light);outline-offset:3px}

/* Dietary supplement sentence: readable, quiet, between the button and the trust bar. */

/* Trust bar (cardivena/zalety-produktu, only in this context): a framed panel, 4 columns on desktop. */
:root body .cv-products__trust{width:100%;max-width:1112px;align-self:center;margin-top:8px}
:root body .cv-products__trust .k-pd-features{display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin:0;padding:0;border:1px solid var(--line-gold-soft);border-radius:8px;background:var(--surface-card);overflow:hidden}
:root body .cv-products__trust .k-pd-features__item{align-items:center;gap:16px;min-height:72px;padding:14px 20px;border-top:1px solid var(--line-neutral)}
:root body .cv-products__trust .k-pd-features__item:first-child{border-top:0}
:root body .cv-products__trust .k-pd-features__item p{font-size:16px;line-height:1.5;color:var(--text-body)}
:root body .cv-products__trust .k-pd-features__item a{display:inline-flex;align-items:center;min-height:44px;color:var(--cv-gold-light);white-space:nowrap;text-underline-offset:3px}
:root body .cv-products__trust .k-pd-features__item a:focus-visible{outline:2px solid var(--cv-gold-light);outline-offset:2px;border-radius:2px}
:root body .cv-products__trust .k-pd-features .cv-icon-svg{display:inline-flex;align-items:center;justify-content:center;flex:none;margin:0;width:44px;height:44px;border-radius:50%;border:1px solid var(--line-gold-soft);color:var(--cv-gold)}
:root body .cv-products__trust .k-pd-features .cv-icon-svg svg{width:22px;height:22px}
@media (min-width:640px) and (max-width:1099px){
  :root body .cv-products__trust .k-pd-features{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  :root body .cv-products__trust .k-pd-features__item:nth-child(2){border-top:0}
  :root body .cv-products__trust .k-pd-features__item:nth-child(even){border-left:1px solid var(--line-neutral)}
  /* Three items (1.14.0): the phone line takes the whole second row. */
  :root body .cv-products__trust .k-pd-features__item:nth-child(3){grid-column:1/-1}
}
@media (min-width:1100px){
  :root body .cv-products__trust .k-pd-features{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
  :root body .cv-products__trust .k-pd-features__item{align-items:flex-start;flex-direction:column;gap:12px;padding:22px 22px 24px;border-top:0;border-left:1px solid var(--line-neutral)}
  :root body .cv-products__trust .k-pd-features__item:first-child{border-left:0}
}

/* ==========================================================================
   "Czyste suplementy od mnicha": image + card
   ========================================================================== */
:root body .cv-trad{padding-top:0}
:root body .cv-trad__grid{gap:28px}
@media (min-width:900px){
  :root body .cv-trad__grid{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:48px;align-items:stretch}
  :root body .cv-trad__grid .cv-trad__img{aspect-ratio:auto;min-height:100%;margin:0}
  :root body .cv-trad__grid .cv-trad__img img{object-position:30% 45%}
  :root body .cv-trad__grid .cv-card{display:flex;flex-direction:column;justify-content:center;padding:44px 48px}
}
:root body .cv-trad__img.cv-img-manuscript{border:1px solid var(--line-gold-soft);box-shadow:var(--shadow-panel)}
:root body .cv-trad .cv-card{border-left:3px solid var(--cv-gold)}
:root body .cv-trad .cv-card__title{text-align:left;font-size:clamp(24px,2.4vw,30px);text-wrap:balance}
:root body .cv-trad .cv-card__body p{font-size:17px;line-height:1.75;color:var(--text-body)}
@media (max-width:899px){
  :root body .cv-trad__img.cv-img-manuscript{aspect-ratio:4/3;max-width:none}
  :root body .cv-trad .cv-card{padding:28px 22px}
}

/* Pakiety (patterns/pakiety.php): 3 per row from 900 px (grid columns as in refresh-shop.css), 2 below, an incomplete
   last row centred (5 bundles = 3 + 2). Phones: one card per row like everywhere. */
@media (min-width:640px) and (max-width:899px){
  :root body .cv-products.cv-bundles .wc-block-product-template > .wc-block-product:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - 10px)}
}
@media (min-width:900px){
  :root body .cv-products.cv-bundles .wc-block-product-template{grid-template-columns:repeat(6,minmax(0,1fr));max-width:1112px;width:100%;margin-inline:auto}
  :root body .cv-products.cv-bundles .wc-block-product-template > .wc-block-product{grid-column:span 2}
  :root body .cv-products.cv-bundles .wc-block-product-template > .wc-block-product:nth-last-child(2):nth-child(3n+1){grid-column:2/span 2}
  :root body .cv-products.cv-bundles .wc-block-product-template > .wc-block-product:last-child:nth-child(3n+1){grid-column:3/span 2}
}
