/*
Theme Name: Poczytaj Sobie
Theme URI: https://poczytajsobie.pl/
Author: Poczytaj Sobie
Description: Elegancki, responsywny motyw księgarni internetowej z pełnym wsparciem WooCommerce. Zaprojektowany dla książek, e-booków, audiobooków i kolorowanek.
Version: 3.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: poczytaj-sobie
*/

:root {
  --ink: #172a3d;
  --ink-soft: #405064;
  --cream: #fbf4ed;
  --paper: #fffdf9;
  --gold: #bd8b4d;
  --gold-light: #ead5b8;
  --line: rgba(23, 42, 61, .13);
  --shadow: 0 18px 55px rgba(23, 42, 61, .10);
  --radius: 22px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button, input[type='submit'] { cursor: pointer; }
.site-shell { overflow: hidden; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; font-weight: 500; }
h1 { font-size: clamp(2.5rem, 6vw, 5.3rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.035em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 999; }
.skip-link:focus { left: 10px; background: #fff; padding: 10px 14px; border-radius: 8px; }

.trust-bar { background: var(--ink); color: #fff; font-size: .86rem; }
.trust-bar .container { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 9px; text-align: center; }
.trust-heart { color: #e4b26f; font-size: 1rem; }
.site-header { position: relative; z-index: 20; background: rgba(251, 244, 237, .96); border-bottom: 1px solid var(--line); }
.header-row { min-height: 96px; display: grid; grid-template-columns: minmax(220px, 360px) 1fr auto; gap: 28px; align-items: center; }
.brand img { width: min(100%, 350px); max-height: 76px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.brand .custom-logo { max-height: 72px; width: auto; }
.main-nav ul { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.3vw, 32px); margin: 0; padding: 0; list-style: none; }
.main-nav a { position: relative; padding: 11px 0; font-size: .92rem; font-weight: 700; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 6px; height: 1px; background: var(--gold); transition: right .22s ease; }
.main-nav a:hover::after, .main-nav .current-menu-item a::after { right: 0; }
.header-actions { display: flex; gap: 9px; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.55); color: var(--ink); transition: .2s ease; }
.icon-button:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.menu-toggle { display: none; }

.hero { padding: 28px 0 44px; }
.hero-banner { position: relative; overflow: hidden; border: 1px solid rgba(189,139,77,.25); border-radius: 30px; background: #fbf4ed; box-shadow: var(--shadow); }
.hero-banner img { width: 100%; aspect-ratio: 1983 / 793; object-fit: cover; }
.hero-intro { width: min(860px, calc(100% - 40px)); margin: -7px auto 0; padding: 34px 30px 0; text-align: center; }
.hero-intro h1 { margin: 0 0 14px; font-size: clamp(2.1rem, 4.4vw, 4rem); }
.hero-intro p { max-width: 680px; margin: 0 auto 24px; color: var(--ink-soft); font-size: 1.06rem; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 23px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover, .wp-element-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: #223d57; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,42,61,.16); }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--gold); }
.button--ghost:hover { background: var(--paper); color: var(--ink); }

.category-strip { padding: 20px 0 78px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.category-tile { position: relative; display: flex; align-items: center; gap: 16px; min-height: 114px; padding: 22px clamp(14px,2vw,26px); border-right: 1px solid var(--line); transition: background .2s ease; }
.category-tile:last-child { border-right: 0; }
.category-tile:hover { background: rgba(255,255,255,.52); }
.category-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--gold-light); border-radius: 50%; color: var(--gold); font-size: 1.4rem; }
.category-tile strong { display: block; font-family: var(--serif); font-size: 1.18rem; font-weight: 600; }
.category-tile small { display: block; color: var(--ink-soft); font-size: .78rem; }

.section { padding: 82px 0; }
.section--paper { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-head h2 { margin: 0; }
.text-link { border-bottom: 1px solid var(--gold); font-weight: 800; font-size: .9rem; }
.product-grid, .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0 !important; padding: 0; }
.product-card, .woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 12px 12px 18px !important; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover, .woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media, .woocommerce ul.products li.product a img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; margin: 0 0 18px !important; border-radius: 14px; background: linear-gradient(145deg, #efe3d5, #d6b27e); object-fit: cover; }
.product-media { display: grid; place-items: center; padding: 25px; text-align: center; }
.product-media::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.55); border-radius: 10px; }
.product-media--navy { background: linear-gradient(145deg, #284863, #112638); color: #fff; }
.product-media--sage { background: linear-gradient(145deg, #9cad99, #526f66); color: #fff; }
.product-media--terracotta { background: linear-gradient(145deg, #d99a75, #934d39); color: #fff; }
.product-media--gold { background: linear-gradient(145deg, #e9d1a9, #b58243); color: var(--ink); }
.cover-kicker { position: relative; z-index: 1; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; opacity: .76; }
.cover-title { position: relative; z-index: 1; margin-top: 14px; font-family: var(--serif); font-size: clamp(1.25rem,2.2vw,1.8rem); line-height: 1.05; }
.product-type { color: var(--gold); font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.product-card h3, .woocommerce ul.products li.product .woocommerce-loop-product__title { margin: 6px 0 5px; color: var(--ink); font-family: var(--serif); font-size: 1.3rem !important; font-weight: 600; }
.price, .woocommerce ul.products li.product .price { color: var(--ink) !important; font-size: .96rem !important; font-weight: 800 !important; }
.woocommerce span.onsale { min-width: 0; min-height: 0; margin: 20px !important; padding: 7px 11px; border-radius: 999px; background: var(--gold); line-height: 1.2; }

.mission { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(42px,7vw,100px); }
.mission-mark { position: relative; min-height: 430px; display: grid; place-items: center; }
.mission-circle { width: min(380px, 90%); aspect-ratio: 1; display: grid; place-items: center; padding: 52px; border: 1px solid var(--gold-light); border-radius: 50%; background: #fff; text-align: center; box-shadow: 0 25px 70px rgba(23,42,61,.08); }
.mission-circle::before { content: '♥'; display: block; color: #5b9b54; font-size: 3rem; line-height: 1; }
.mission-circle strong { display: block; margin-top: 14px; font-family: var(--serif); font-size: 1.55rem; }
.mission-circle span { color: var(--ink-soft); font-size: .85rem; }
.mission-copy h2 { margin: 0 0 18px; }
.mission-copy p { color: var(--ink-soft); font-size: 1.05rem; }
.mission-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 30px; }
.mission-point { padding: 15px 16px; border-left: 2px solid var(--gold); background: rgba(255,255,255,.55); font-weight: 700; }

.newsletter { position: relative; overflow: hidden; margin: 80px auto; padding: clamp(38px,6vw,72px); border-radius: 28px; background: var(--ink); color: #fff; }
.newsletter::after { content: 'PS'; position: absolute; right: -20px; bottom: -75px; color: rgba(255,255,255,.035); font-family: var(--serif); font-size: 19rem; line-height: 1; }
.newsletter-inner { position: relative; z-index: 1; max-width: 760px; }
.newsletter h2 { margin: 0 0 12px; }
.newsletter p { color: rgba(255,255,255,.72); }
.newsletter-form { display: flex; gap: 10px; margin-top: 24px; }
.newsletter-form input { min-width: 0; flex: 1; min-height: 52px; padding: 0 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.55); }
.newsletter-form .button { border-color: var(--gold); background: var(--gold); color: #111; }

.content-area { min-height: 55vh; padding: 64px 0 90px; }
.content-area h1 { margin-top: 0; }
.entry-content { max-width: 840px; }
.woocommerce .woocommerce-breadcrumb { color: var(--ink-soft); }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100%; float: none; }
.woocommerce div.product .product_title { font-size: clamp(2.2rem,4vw,4rem); }
.woocommerce div.product p.price { color: var(--gold) !important; font-size: 1.4rem !important; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--gold); background: #fff; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--gold); }

.site-footer { padding: 64px 0 28px; background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, .7fr); gap: 44px; }
.footer-brand img { width: 250px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { max-width: 360px; color: rgba(255,255,255,.66); font-size: .9rem; }
.footer-title { margin: 0 0 14px; font-family: var(--sans); font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: #e4b26f; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: rgba(255,255,255,.78); font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.52); font-size: .78rem; }

@media (max-width: 980px) {
  .header-row { grid-template-columns: 1fr auto; min-height: 82px; }
  .brand img { max-width: 290px; }
  .menu-toggle { display: grid; }
  .main-nav { display: none; grid-column: 1 / -1; padding-bottom: 20px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 8px 0; }
  .header-actions .account-link { display: none; }
  .category-grid, .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .category-tile:nth-child(2) { border-right: 0; }
  .category-tile:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mission { grid-template-columns: 1fr; }
  .mission-mark { min-height: 350px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 2; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .trust-bar .container { min-height: 44px; font-size: .76rem; }
  .header-row { gap: 8px; }
  .brand img { max-width: 205px; }
  .header-actions { gap: 5px; }
  .icon-button { width: 40px; height: 40px; }
  .hero { padding-top: 14px; }
  .hero-banner { border-radius: 18px; }
  .hero-banner img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 25% center; }
  .hero-intro { padding-inline: 0; }
  .category-grid { grid-template-columns: 1fr; }
  .category-tile { min-height: 92px; border-right: 0; border-bottom: 1px solid var(--line); }
  .category-tile:last-child { border-bottom: 0; }
  .section { padding: 58px 0; }
  .section-head { align-items: start; flex-direction: column; gap: 10px; }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .product-card, .woocommerce ul.products li.product { padding: 8px 8px 14px !important; }
  .product-card h3, .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1rem !important; }
  .product-media { padding: 12px; }
  .cover-title { font-size: 1.08rem; }
  .mission-point { font-size: .88rem; }
  .mission-points { grid-template-columns: 1fr; }
  .mission-circle { padding: 38px; }
  .newsletter { margin: 50px auto; }
  .newsletter-form { flex-direction: column; }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}



/* ===== Poczytaj Sobie portal v3 ===== */
.content-area { padding: 54px 0 92px; }
.page-hero { max-width: 850px; margin: 0 auto 44px; text-align:center; }
.page-hero h1 { margin:0 0 16px; font-size:clamp(2.35rem,5vw,4.5rem); }
.page-hero p { margin:0 auto; max-width:720px; color:var(--ink-soft); font-size:1.08rem; }

.portal-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.portal-card { display:flex; flex-direction:column; min-height:250px; padding:26px; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:0 8px 28px rgba(23,42,61,.045); transition:.2s ease; }
.portal-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.portal-card .eyebrow { margin-bottom:8px; }
.portal-card h2,.portal-card h3 { margin:0 0 12px; font-family:var(--serif); font-size:1.42rem; line-height:1.2; letter-spacing:-.015em; }
.portal-card p { margin:0 0 20px; color:var(--ink-soft); font-size:.96rem; line-height:1.65; }
.portal-card .text-link { margin-top:auto; align-self:flex-start; }

.topic-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:0 0 70px; }
.topic-card { padding:25px 22px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.58); }
.topic-card:hover { background:#fff; box-shadow:0 12px 32px rgba(23,42,61,.07); }
.topic-card span { display:grid; place-items:center; width:42px; height:42px; margin-bottom:17px; border:1px solid var(--gold-light); border-radius:50%; color:var(--gold); }
.topic-card strong { display:block; margin-bottom:7px; font-family:var(--serif); font-size:1.22rem; }
.topic-card small { color:var(--ink-soft); line-height:1.45; }

.portal-section { padding:74px 0; }
.portal-section--paper { background:var(--paper); }
.portal-section-head { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:30px; }
.portal-section-head h2 { margin:0; font-size:clamp(1.9rem,3.5vw,3rem); }

.reading-article { max-width:780px; margin:0 auto; }
.reading-article > .eyebrow { margin-bottom:13px; }
.reading-article > h1 { margin:0 0 34px; font-size:clamp(2.25rem,4.5vw,4rem); line-height:1.08; }
.reading-article .entry-content { max-width:none; font-size:18px; line-height:1.78; }
.reading-article .entry-content p { margin:0 0 1.35em; font-size:1em; line-height:1.78; }
.reading-article .entry-content h2 { margin:2.15em 0 .65em; font-size:clamp(1.55rem,2.6vw,2.15rem); line-height:1.2; letter-spacing:-.02em; }
.reading-article .entry-content h3 { margin:1.8em 0 .55em; font-size:1.3rem; line-height:1.25; }
.reading-article .entry-content ul,.reading-article .entry-content ol { margin:0 0 1.4em; padding-left:1.35em; }
.reading-article .entry-content li { margin:.4em 0; }
.article-back { margin-top:48px; }

.standard-page { max-width:860px; margin:0 auto; }
.standard-page > h1 { margin:0 0 30px; font-size:clamp(2.35rem,5vw,4.3rem); }
.standard-page .entry-content { max-width:780px; font-size:17px; line-height:1.75; }
.standard-page .entry-content h1 { display:none; }
.standard-page .entry-content h2 { margin:2em 0 .65em; font-size:clamp(1.55rem,2.8vw,2.25rem); }
.standard-page .entry-content p { font-size:1rem; line-height:1.75; }

.portal-hero .hero-intro { max-width:900px; }
.portal-hero .hero-intro h1 { max-width:860px; }
.portal-hero .hero-intro p { max-width:730px; }
.split-feature { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.split-feature > div { padding:38px; border:1px solid var(--line); border-radius:22px; background:#fff; }
.split-feature h2 { margin:0 0 14px; font-size:clamp(1.75rem,3vw,2.6rem); }
.split-feature p { color:var(--ink-soft); }

.entry-date,.posted-on,.post-date,.published,.updated-on,.wp-block-post-date,time.entry-date,time.published,time.updated {display:none!important}

@media(max-width:980px){
 .portal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
 .portal-grid,.topic-grid,.split-feature{grid-template-columns:1fr}
 .reading-article .entry-content{font-size:17px}
 .portal-section{padding:54px 0}
}
