/*
Theme Name: NITKA
Theme URI: http://koszulka.local
Description: Child theme for the NITKA WooCommerce demo store.
Author: Aleksander Nowak
Template: twentytwentyfive
Version: 1.0.0
Text Domain: nitka
*/

:root {
  --nitka-ink: #171716;
  --nitka-paper: #f4f1ea;
  --nitka-cloud: #deded9;
  --nitka-red: #a43a32;
  --nitka-white: #fffefa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--nitka-paper); color: var(--nitka-ink); font-family: Manrope, Arial, sans-serif; }
a { text-underline-offset: .2em; }

.wp-site-blocks { overflow: hidden; }
.nitka-shell { width: min(100% - 40px, 1320px); margin-inline: auto; }
.nitka-announcement { background: var(--nitka-ink); color: var(--nitka-white); }
.nitka-announcement p { margin: 0; padding: 8px 16px; font-family: "Fira Code", monospace; font-size: .68rem; line-height: 1.3; text-transform: uppercase; }
.nitka-announcement span { margin-inline: .75rem; color: #d35c52; }
.nitka-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23,23,22,.16);
  background: rgba(244,241,234,.98);
  box-shadow: 0 1px 0 rgba(23,23,22,.04);
}
.nitka-header__inner { min-height: 78px; }
.nitka-wordmark a {
  color: var(--nitka-ink);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 780;
  letter-spacing: 0;
  text-decoration: none;
}
.nitka-nav a { font-family: "Fira Code", monospace; font-size: .72rem; font-weight: 600; text-transform: uppercase; }
.nitka-nav .wp-block-navigation__submenu-container { min-width: 230px !important; border: 1px solid var(--nitka-ink) !important; border-radius: 0 !important; background: var(--nitka-paper) !important; padding: 8px !important; }
.nitka-nav .wp-block-navigation__submenu-container a { padding: 10px 12px !important; }
.nitka-nav .wp-block-navigation__submenu-container a:hover { background: var(--nitka-cloud); }
.nitka-header__actions { gap: 4px !important; }

.nitka-hero {
  min-height: min(760px, 82vh);
  display: grid;
  align-items: center;
  background-color: #d8d8d3;
  background-position: center;
  background-size: cover;
}
.nitka-hero::before { background: linear-gradient(90deg, rgba(244,241,234,.98) 0%, rgba(244,241,234,.9) 31%, rgba(244,241,234,.08) 61%, transparent 100%) !important; }
.nitka-hero__copy { width: min(590px, 100%); margin-left: max(20px, calc((100vw - 1320px)/2)); padding: 84px 20px 84px 0; }
.nitka-kicker { font-family: "Fira Code", monospace; font-size: .7rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.nitka-display { max-width: 700px; font-size: clamp(3.6rem, 8.4vw, 8.4rem); line-height: .84; font-weight: 720; text-wrap: balance; }
.nitka-lead { max-width: 520px; font-size: clamp(1.08rem, 1.5vw, 1.35rem); line-height: 1.55; }
.wp-element-button, .button, button, input[type=submit] {
  border-radius: 0 !important;
  min-height: 48px;
  padding: .8rem 1.25rem !important;
  font-weight: 750 !important;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.wp-element-button:hover, .button:hover, button:hover { transform: translateY(-2px); }

.nitka-band { border-block: 1px solid rgba(23,23,22,.16); }
.nitka-benefit { min-height: 88px; display: flex; align-items: center; gap: 14px; }
.nitka-benefit strong { display: block; font-size: .95rem; }
.nitka-benefit span { color: #55534e; font-size: .84rem; }
.nitka-index { color: var(--nitka-red); font-size: .72rem; font-weight: 800; }
.nitka-marquee { overflow: hidden; background: var(--nitka-red); color: var(--nitka-white); }
.nitka-marquee__track { display: flex; width: max-content; gap: 48px; padding: 14px 0; font-family: "Fira Code", monospace; font-size: .72rem; font-weight: 600; text-transform: uppercase; }
.nitka-marquee__track span::after { content: "×"; margin-left: 48px; }

.nitka-section { padding-block: clamp(72px, 9vw, 132px); }
.nitka-section--ink { background: var(--nitka-ink); color: var(--nitka-white); }
.nitka-section--red { background: var(--nitka-red); color: var(--nitka-white); }
.nitka-section__head { margin-bottom: 48px; }
.nitka-section__head h2 { font-size: clamp(2.5rem, 5.5vw, 5.5rem); line-height: .95; }
.nitka-editorial { display: grid; grid-template-columns: 1fr 1fr; min-height: 85vh; background: var(--nitka-ink); }
.nitka-editorial__image { min-height: 85vh; }
.nitka-editorial__image img { width: 100%; height: 100%; min-height: 85vh; object-fit: cover; }
.nitka-editorial__copy { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(36px, 7vw, 110px); color: var(--nitka-white); }
.nitka-editorial__copy h2 { max-width: 680px; font-size: clamp(3rem, 6vw, 6.6rem); line-height: .88; }
.nitka-editorial__copy p:not(.nitka-kicker) { max-width: 520px; font-size: 1.12rem; }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; }
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: cover; margin: 0 0 18px !important; background: #e7e7e3; }
.woocommerce ul.products li.product a { text-decoration: none; }
.woocommerce ul.products li.product a img { transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.woocommerce ul.products li.product:hover a img { transform: scale(1.015); filter: contrast(1.02); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 !important; font-size: 1.14rem !important; }
.woocommerce ul.products li.product .price { color: var(--nitka-ink) !important; font-weight: 750 !important; }
.woocommerce span.onsale { min-width: auto; min-height: auto; border-radius: 0; background: var(--nitka-red); padding: .45rem .7rem; line-height: 1; }

.nitka-story-grid { align-items: stretch !important; gap: 1px !important; background: rgba(255,255,255,.2); }
.nitka-story-card { min-height: 340px; padding: clamp(32px, 5vw, 70px); background: var(--nitka-ink); }
.nitka-story-card h3 { font-size: clamp(2rem, 3.5vw, 3.8rem); line-height: 1; }
.nitka-big-number { color: #d35c52; font-size: clamp(4rem, 10vw, 9rem); font-weight: 800; line-height: .8; }
.nitka-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px; background: var(--nitka-ink); }
.nitka-category-card { position: relative; min-height: min(72vw, 860px); overflow: hidden; background: #d7d6d1; }
.nitka-category-card img { width: 100%; height: 100%; min-height: min(72vw, 860px); object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.nitka-category-card:hover img { transform: scale(1.018); }
.nitka-category-card__label { position: absolute; inset: auto 20px 20px; display: flex; justify-content: space-between; align-items: end; gap: 18px; color: var(--nitka-white); text-shadow: 0 1px 20px rgba(0,0,0,.45); }
.nitka-category-card__label h3 { margin: 0; font-size: clamp(1.9rem, 3vw, 3.5rem); line-height: .9; }
.nitka-category-card__label a { color: inherit; font-family: "Fira Code", monospace; font-size: .7rem; text-transform: uppercase; }
.nitka-content-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 52px; background: rgba(23,23,22,.25); border: 1px solid rgba(23,23,22,.25); }
.nitka-content-link { min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 54px); background: var(--nitka-paper); color: var(--nitka-ink); text-decoration: none; }
.nitka-content-link:hover { background: var(--nitka-cloud); }
.nitka-content-link h3 { max-width: 400px; font-size: clamp(2rem, 3.4vw, 3.5rem); line-height: .95; }
.nitka-content-link__arrow { align-self: end; font-family: "Fira Code", monospace; font-size: 1.5rem; }
.nitka-home-final { min-height: 88vh; display: grid; place-items: end start; background-position: center 22%; background-size: cover; color: var(--nitka-white); }
.nitka-home-final::before { background: linear-gradient(0deg, rgba(23,23,22,.86), rgba(23,23,22,.08) 70%) !important; }
.nitka-home-final__copy { width: min(100% - 40px, 1320px); margin-inline: auto; padding-bottom: clamp(44px, 8vw, 110px); }
.nitka-home-final__copy h2 { max-width: 880px; font-size: clamp(3rem, 7vw, 7.5rem); line-height: .86; }

.nitka-newsletter input[type=email] { min-height: 52px; border: 0; border-bottom: 2px solid currentColor; background: transparent; color: inherit; font: inherit; }
.nitka-footer { border-top: 1px solid rgba(244,241,234,.2); background: var(--nitka-ink); color: var(--nitka-white); }
.nitka-footer a { color: inherit; }
.nitka-footer__mark { font-size: clamp(3rem, 8vw, 8rem); font-weight: 800; line-height: .8; }

.nitka-page-hero { padding: clamp(72px, 11vw, 160px) 0 clamp(56px, 8vw, 110px); border-bottom: 1px solid rgba(23,23,22,.2); }
.nitka-page-hero__inner { width: min(100% - 40px, 1320px); margin-inline: auto; }
.nitka-page-hero h1 { max-width: 1050px; margin-top: 20px; font-size: clamp(3.6rem, 9vw, 9rem); line-height: .84; }
.nitka-page-hero .nitka-lead { margin-top: 34px; }
.nitka-page-section { padding: clamp(64px, 9vw, 128px) 0; }
.nitka-page-section__inner { width: min(100% - 40px, 1320px); margin-inline: auto; }
.nitka-page-section h2 { max-width: 920px; font-size: clamp(2.4rem, 5vw, 5.4rem); line-height: .94; }
.nitka-page-section--ink { background: var(--nitka-ink); color: var(--nitka-white); }
.nitka-page-section--cloud { background: var(--nitka-cloud); }
.nitka-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin-top: 48px; background: rgba(23,23,22,.2); border: 1px solid rgba(23,23,22,.2); }
.nitka-page-card { min-height: 280px; padding: clamp(28px, 4vw, 56px); background: var(--nitka-paper); }
.nitka-page-card .nitka-index { display: block; margin-bottom: 80px; font-family: "Fira Code", monospace; }
.nitka-page-card h3 { max-width: 480px; font-size: clamp(1.7rem, 3vw, 3rem); line-height: 1; }
.nitka-page-card p { max-width: 520px; color: #5b5953; }
.nitka-page-section--ink .nitka-page-grid { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.22); }
.nitka-page-section--ink .nitka-page-card { background: var(--nitka-ink); }
.nitka-page-section--ink .nitka-page-card p { color: #c7c5bf; }
.nitka-split { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(40px, 9vw, 140px); align-items: start; }
.nitka-prose { max-width: 760px; font-size: 1.08rem; line-height: 1.7; }
.nitka-prose h3 { margin-top: 2.4em; font-size: 1.5rem; }
.nitka-data-table { width: 100%; border-collapse: collapse; margin-top: 48px; font-size: clamp(.78rem, 1.4vw, 1rem); }
.nitka-data-table th, .nitka-data-table td { padding: 20px 14px; border-bottom: 1px solid rgba(23,23,22,.25); text-align: left; white-space: nowrap; }
.nitka-data-table th { font-family: "Fira Code", monospace; font-size: .68rem; text-transform: uppercase; }
.nitka-steps { counter-reset: nitka-step; margin-top: 48px; }
.nitka-step { counter-increment: nitka-step; display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 30px 0; border-top: 1px solid currentColor; }
.nitka-step::before { content: "0" counter(nitka-step); color: var(--nitka-red); font-family: "Fira Code", monospace; font-size: .75rem; }
.nitka-step h3 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.3vw, 2.2rem); }
.nitka-step p { max-width: 680px; margin: 0; }
.nitka-faq { margin-top: 48px; border-top: 1px solid currentColor; }
.nitka-faq details { border-bottom: 1px solid currentColor; }
.nitka-faq summary { cursor: pointer; list-style: none; padding: 26px 46px 26px 0; font-size: clamp(1.08rem, 2vw, 1.45rem); font-weight: 650; position: relative; }
.nitka-faq summary::after { content: "+"; position: absolute; right: 4px; font-family: "Fira Code", monospace; font-weight: 400; }
.nitka-faq details[open] summary::after { content: "−"; }
.nitka-faq details p { max-width: 760px; padding: 0 60px 28px 0; color: #5b5953; }
.nitka-page-section--ink .nitka-faq details p { color: #c7c5bf; }
.nitka-note { margin-top: 42px; padding: 24px; border: 1px solid currentColor; font-size: .9rem; }
.nitka-visual-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; }
.nitka-visual-split__media { min-height: 90vh; margin: 0; background: #dddcd7; }
.nitka-visual-split__media img { width: 100%; height: 100%; min-height: 90vh; object-fit: cover; }
.nitka-visual-split__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 8vw, 120px); }
.nitka-visual-split__content h2 { font-size: clamp(3rem, 6vw, 6.4rem); line-height: .88; }
.nitka-spec-list { margin-top: 48px; border-top: 1px solid currentColor; }
.nitka-spec-list__row { display: grid; grid-template-columns: minmax(120px,.4fr) 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid currentColor; }
.nitka-spec-list__row strong { font-family: "Fira Code", monospace; font-size: .68rem; text-transform: uppercase; }
.nitka-quote { padding: clamp(80px, 13vw, 190px) max(20px, calc((100vw - 1120px)/2)); background: var(--nitka-red); color: var(--nitka-white); }
.nitka-quote blockquote { margin: 0; font-size: clamp(2.8rem, 7vw, 7.8rem); font-weight: 680; line-height: .88; }
.nitka-lookbook { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; padding: 14px; background: var(--nitka-ink); }
.nitka-lookbook figure { margin: 0; min-height: 72vh; overflow: hidden; background: #d8d7d2; }
.nitka-lookbook figure:nth-child(1) { grid-column: span 7; }
.nitka-lookbook figure:nth-child(2) { grid-column: span 5; }
.nitka-lookbook figure:nth-child(3) { grid-column: 3 / span 8; }
.nitka-lookbook img { width: 100%; height: 100%; min-height: 72vh; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.nitka-lookbook figure:hover img { transform: scale(1.02); }
.nitka-care-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; background: rgba(23,23,22,.22); border: 1px solid rgba(23,23,22,.22); }
.nitka-care-item { min-height: 230px; padding: 30px; background: var(--nitka-paper); }
.nitka-care-item strong { display: block; margin: 72px 0 8px; font-size: 1.25rem; }
.nitka-shop { padding-block: clamp(42px, 7vw, 100px); }
.nitka-shop__intro { padding: clamp(40px, 6vw, 90px) 0; }
.nitka-shop__intro .wp-block-query-title { max-width: 900px; font-size: clamp(4rem, 9vw, 9rem); line-height: .84; }
.nitka-catalog-banners { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 10px; margin-bottom: clamp(60px, 8vw, 110px); }
.nitka-catalog-banners a { position: relative; min-height: 480px; overflow: hidden; background: #d9d8d3; color: var(--nitka-white); }
.nitka-catalog-banners img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.nitka-catalog-banners a:hover img { transform: scale(1.02); }
.nitka-catalog-banners span { position: absolute; inset: auto 22px 22px; display: flex; flex-direction: column; text-shadow: 0 1px 18px rgba(0,0,0,.5); }
.nitka-catalog-banners small { font-family: "Fira Code", monospace; font-size: .65rem; }
.nitka-catalog-banners strong { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; }
.nitka-catalog-layout { gap: clamp(32px, 5vw, 76px) !important; align-items: flex-start !important; }
.nitka-filter-column { position: sticky; top: 118px; }
.nitka-filters { gap: 18px !important; }
.nitka-filters h3 { margin: 0 0 10px; font-size: 1.3rem; }
.nitka-filters h4 { margin: 16px 0 2px; padding-top: 18px; border-top: 1px solid rgba(23,23,22,.2); font-family: "Fira Code", monospace; font-size: .68rem; text-transform: uppercase; }
.nitka-filters label, .nitka-filters button { font-size: .84rem !important; }
.nitka-filters .wc-block-components-checkbox { margin-top: 8px; }
.nitka-product-column > .wp-block-woocommerce-catalog-sorting { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.nitka-product-column select { min-height: 44px; border: 1px solid rgba(23,23,22,.35); border-radius: 0; background: transparent; padding-inline: 12px; }
.nitka-shop__footer { gap: 1px !important; margin-top: clamp(60px, 9vw, 120px); background: rgba(23,23,22,.2); border: 1px solid rgba(23,23,22,.2); }
.nitka-shop__footer p { height: 100%; margin: 0; padding: 30px; background: var(--nitka-paper); }

.nitka-product-main { padding-block: clamp(36px, 6vw, 90px); }
.nitka-product-layout { gap: clamp(32px, 6vw, 100px) !important; align-items: flex-start !important; }
.nitka-product-gallery { flex-basis: 58% !important; }
.nitka-product-summary { position: sticky; top: 120px; flex-basis: 42% !important; padding-top: 12px; }
.nitka-product-summary .wp-block-post-title { max-width: 600px; font-size: clamp(2.8rem, 4.5vw, 5.4rem); line-height: .9; }
.nitka-product-summary .wp-block-post-excerpt { color: #5b5953; font-size: 1rem; }
.nitka-product-summary .variations { width: 100%; }
.nitka-product-summary .variations th, .nitka-product-summary .variations td { display: block; width: 100%; padding: 0 0 10px !important; text-align: left; }
.nitka-product-summary select { width: 100%; min-height: 52px; border: 1px solid var(--nitka-ink); border-radius: 0; background: transparent; padding: 0 14px; font: inherit; }
.nitka-product-summary .single_add_to_cart_button { width: 100%; min-height: 58px; margin-top: 10px; background: var(--nitka-ink) !important; }
.nitka-product-facts { border-top: 1px solid rgba(23,23,22,.22); margin-top: 28px; }
.nitka-product-fact { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid rgba(23,23,22,.22); font-size: .83rem; }
.nitka-product-fact strong { font-family: "Fira Code", monospace; font-size: .68rem; text-transform: uppercase; }
.nitka-product-details { border-top: 1px solid rgba(23,23,22,.2); padding-top: 60px; }
.wc-block-components-product-image-gallery__image { background: #e5e4df; }
.wc-block-components-product-image-gallery__image img { width: 100%; }
.woocommerce div.product div.images img { background: #e7e7e3; }
.woocommerce div.product .product_title { font-size: clamp(2.3rem, 5vw, 5rem); line-height: .95; }
.woocommerce div.product p.price { color: var(--nitka-red); font-size: 1.35rem; font-weight: 800; }
.woocommerce table.shop_table, .woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register { border-radius: 0; }

@media (max-width: 800px) {
  .nitka-shell { width: min(100% - 28px, 1320px); }
  .nitka-header__inner { min-height: 66px; }
  .nitka-announcement p { overflow: hidden; white-space: nowrap; }
  .nitka-hero { min-height: 720px; align-items: end; background-position: 64% center; }
  .nitka-hero::before { background: linear-gradient(0deg, rgba(244,241,234,.98) 0%, rgba(244,241,234,.88) 48%, rgba(244,241,234,.12) 78%, transparent 100%) !important; }
  .nitka-hero__copy { margin: 0; padding: 300px 20px 52px; }
  .nitka-display { font-size: clamp(3rem, 16vw, 5rem); }
  .nitka-benefit { min-height: 72px; }
  .woocommerce ul.products { grid-template-columns: 1fr !important; gap: 44px; }
  .nitka-section { padding-block: 72px; }
  .nitka-editorial { grid-template-columns: 1fr; }
  .nitka-editorial__image, .nitka-editorial__image img { min-height: 72vh; }
  .nitka-editorial__copy { min-height: 62vh; }
  .nitka-category-grid, .nitka-content-links { grid-template-columns: 1fr; }
  .nitka-category-card, .nitka-category-card img { min-height: 78vh; }
  .nitka-content-link { min-height: 320px; }
  .nitka-home-final__copy { width: min(100% - 28px, 1320px); }
  .nitka-product-summary { position: static; }
  .nitka-product-layout { display: block !important; }
  .nitka-page-hero__inner, .nitka-page-section__inner { width: min(100% - 28px, 1320px); }
  .nitka-page-grid, .nitka-split { grid-template-columns: 1fr; }
  .nitka-page-card { min-height: 240px; }
  .nitka-page-card .nitka-index { margin-bottom: 54px; }
  .nitka-step { grid-template-columns: 54px 1fr; }
  .nitka-data-table { display: block; overflow-x: auto; }
  .nitka-shop__footer { grid-template-columns: 1fr !important; }
  .nitka-catalog-banners { grid-template-columns: 1fr; }
  .nitka-catalog-banners a, .nitka-catalog-banners img { min-height: 72vh; }
  .nitka-catalog-layout { display: block !important; }
  .nitka-filter-column { position: static; margin-bottom: 48px; }
  .nitka-visual-split { grid-template-columns: 1fr; }
  .nitka-visual-split__media, .nitka-visual-split__media img { min-height: 70vh; }
  .nitka-lookbook { grid-template-columns: 1fr; }
  .nitka-lookbook figure, .nitka-lookbook figure:nth-child(1), .nitka-lookbook figure:nth-child(2), .nitka-lookbook figure:nth-child(3) { grid-column: auto; min-height: 64vh; }
  .nitka-lookbook img { min-height: 64vh; }
  .nitka-care-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .nitka-care-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
