/*
Theme Name: Pomysłoteka Humanistyki
Theme URI: https://pomyslotekahumanistyki.pl/
Description: Autorski motyw WordPress dla Pomysłoteki Humanistyki – sklep z materiałami edukacyjnymi PDF.
Version: 1.4.0
Author: Pomysłoteka Humanistyki
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: pomysloteka-humanistyki
*/

:root{
  --ph-paper:#fbf8ef;
  --ph-paper-2:#fffdf8;
  --ph-cream:#f6f0e3;
  --ph-navy:#073a62;
  --ph-navy-dark:#052f50;
  --ph-ink:#173f5d;
  --ph-green:#355f3b;
  --ph-red:#a82d24;
  --ph-line:#d8d1c1;
  --ph-soft-blue:#eef4f5;
  --ph-shadow:0 8px 26px rgba(7,58,98,.07);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ph-ink);
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.55;
  background:
    linear-gradient(rgba(251,248,239,.93),rgba(251,248,239,.93)),
    url("assets/art/paper-texture.jpg") center top/900px auto repeat;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
svg{display:block}
.container{width:min(1220px,calc(100% - 56px));margin-inline:auto}
.section{padding:62px 0}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.button,.wp-block-button__link,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:11px 20px!important;
  border:0!important;
  border-radius:28px!important;
  background:var(--ph-navy)!important;
  color:#fff!important;
  font-weight:700!important;
  line-height:1.25!important;
  text-align:center;
  white-space:normal!important;
  cursor:pointer;
  box-shadow:none!important;
}
.button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:#0a4b78!important}

.eyebrow{
  margin:0 0 9px;
  color:var(--ph-green);
  font-size:12px;
  font-weight:800;
  letter-spacing:1.6px;
}
.section-title{margin:0 0 24px;color:var(--ph-navy);font:600 clamp(34px,4vw,48px)/1.05 Georgia,"Times New Roman",serif}
.entry-content{font-size:17px;line-height:1.75}
.entry-content img{border-radius:8px}

/* Header */
.site-header{
  position:relative;
  z-index:20;
  background:rgba(255,253,248,.97);
  border-bottom:0;
}
.site-header:after{
  content:"";
  display:block;
  height:31px;
  margin-top:-6px;
  background:url("assets/art/flourish.svg") center/980px 120px no-repeat;
  opacity:.78;
  pointer-events:none;
}
.site-header .inner{min-height:92px;display:flex;align-items:center;gap:30px}
.site-brand{display:block;flex:0 0 auto}
.site-brand img{display:block;width:300px;max-width:34vw;height:auto;max-height:95px;object-fit:contain}
.custom-logo-link img{display:block;width:300px;max-width:34vw;height:auto;max-height:95px;object-fit:contain}
.main-nav{margin-left:auto;min-width:0}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:28px;flex-wrap:wrap}
.main-nav a{display:block;padding:9px 0;border-bottom:2px solid transparent;color:var(--ph-navy);font:600 14px Georgia,"Times New Roman",serif;white-space:nowrap}
.main-nav a:hover,.main-nav .current-menu-item>a{border-color:var(--ph-navy)}
.header-actions{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.header-actions a{position:relative;display:grid;place-items:center;width:36px;height:36px;color:var(--ph-navy)}
.header-actions svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ph-cart-count{position:absolute;right:-3px;top:-3px;min-width:17px;height:17px;padding:0 4px;border-radius:20px;background:var(--ph-red);color:#fff;font:700 10px/17px Arial;text-align:center}

/* Hero */
.ph-home{overflow:hidden}
.ph-hero{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid #e3dccb;
  background:
    radial-gradient(circle at 78% 44%,rgba(216,229,226,.65),transparent 31%),
    linear-gradient(rgba(248,244,232,.5),rgba(248,244,232,.5));
}
.ph-hero:before{
  content:"";
  position:absolute;
  left:-150px;
  top:125px;
  width:270px;
  height:170px;
  background:url("assets/art/flourish.svg") center/620px auto no-repeat;
  transform:rotate(90deg);
  opacity:.30;
}
.ph-hero-grid{min-height:520px;display:grid;grid-template-columns:minmax(0,44%) minmax(0,56%);align-items:center;gap:16px;position:relative;z-index:2}
.ph-hero-copy{padding:35px 0 48px}
.ph-hero-copy h1{margin:0 0 20px;color:var(--ph-navy);font:600 clamp(48px,5.4vw,72px)/.96 Georgia,"Times New Roman",serif;letter-spacing:-1.1px}
.ph-hero-copy .lead{max-width:560px;margin:0 0 25px;color:#28536f;font-size:16px;line-height:1.62}
.ph-hero-button{padding:13px 25px!important;border-radius:30px!important;font-family:Georgia,"Times New Roman",serif}
.ph-cart-glyph{font-family:Arial,sans-serif}
.ph-hero-art{min-width:0;display:flex;align-items:center;justify-content:flex-end;padding:22px 0 24px}
.ph-hero-art img{display:block;width:min(100%,720px);height:auto;object-fit:contain;border-radius:2px;mix-blend-mode:multiply}

/* Kategorie */
.ph-categories{position:relative;background:rgba(255,253,248,.90);border-bottom:1px solid #e2dbc9}
.ph-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.ph-category-item{position:relative;min-height:140px;padding:20px 13px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border-right:1px solid #ddd6c6;color:var(--ph-navy);font-family:Georgia,"Times New Roman",serif}
.ph-category-item:first-child{border-left:1px solid #ddd6c6}
.ph-category-item img{width:88px;height:60px;object-fit:contain;margin-bottom:4px}
.ph-category-item strong{font-size:18px}
.ph-category-item span{position:absolute;right:18px;bottom:26px;font-size:19px}
.ph-category-item:after{content:"";width:100px;height:10px;margin-top:2px;background:url("assets/art/flourish.svg") center/115px 34px no-repeat;opacity:.66}

/* Produkty */
.ph-products{background:rgba(255,253,248,.76);padding-top:52px}
.ph-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:23px}
.ph-products-eyebrow{margin-bottom:5px}
.ph-section-heading h2{margin:0;color:var(--ph-navy);font:600 clamp(30px,3.3vw,39px)/1.04 Georgia,"Times New Roman",serif}
.ph-section-heading h2 em{font-style:normal}
.ph-section-heading>a{padding-bottom:7px;color:var(--ph-navy);font:600 13px Georgia,"Times New Roman",serif;white-space:nowrap}
.ph-heading-line{width:420px;max-width:100%;height:18px;background:url("assets/art/flourish.svg") left center/420px 78px no-repeat;opacity:.82}
.products-grid,.ph-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch}
.product-card,.ph-product-card{min-width:0;height:100%;display:flex;flex-direction:column;padding:11px!important;border:1px solid #d8d1c0!important;border-radius:8px!important;background:rgba(255,253,248,.98)!important;box-shadow:0 5px 20px rgba(31,61,77,.06)!important;overflow:visible}
.ph-product-image{display:block;overflow:hidden;border-radius:4px;background:#f5efe2}
.ph-product-image img{display:block;width:100%;aspect-ratio:1.1/1;height:auto;object-fit:cover}
.ph-cover{position:relative;overflow:hidden;aspect-ratio:1.1/1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;border:1px solid #d3c6ad;background:radial-gradient(circle at 24% 20%,rgba(187,207,195,.46),transparent 23%),linear-gradient(135deg,#f2ead8,#fbf7ed);color:var(--ph-navy);font-family:Georgia,"Times New Roman",serif}
.ph-cover:before{content:"";position:absolute;inset:9px;border:1px solid #c9beaa;background:url("assets/art/flourish.svg") center/95% auto no-repeat;opacity:.37}
.ph-cover span,.ph-cover small{position:relative;z-index:1}
.ph-cover span{font-size:20px;line-height:1.12;font-weight:700}
.ph-cover small{margin-top:10px;font:10px Arial,sans-serif;letter-spacing:1px;text-transform:uppercase}
.ph-product-card .tag,.product-card .tag{display:inline-block;width:max-content;max-width:100%;margin-top:9px;padding:2px 8px;border:1px solid #c8beab;border-radius:18px;background:#fbf8ef;color:#174766;font-size:10px}
.ph-product-card h3,.product-card h3{margin:7px 0;color:var(--ph-navy);font:600 17px/1.18 Georgia,"Times New Roman",serif;overflow-wrap:anywhere}
.ph-product-card .meta,.product-card .meta{margin:0 0 4px;color:#617483;font-size:11px}
.ph-product-card .price,.product-card .price{margin-top:auto;margin-bottom:9px;color:var(--ph-navy);font:700 19px Georgia,"Times New Roman",serif}
.ph-product-card .button,.product-card .button{width:100%;min-height:42px;border-radius:6px!important;padding:10px 12px!important;font-size:12px!important;overflow:visible!important}

/* Jak to działa */
.ph-how{position:relative;overflow:hidden;padding:50px 0;border-top:1px solid #dbe3dd;border-bottom:1px solid #dbe3dd;background:linear-gradient(rgba(237,243,241,.94),rgba(237,243,241,.94)),url("assets/art/green-paper.jpg") center/900px auto}
.ph-how:before,.ph-how:after{content:"";position:absolute;width:170px;height:170px;background:url("assets/art/flourish.svg") center/480px auto no-repeat;opacity:.33}
.ph-how:before{left:-65px;bottom:-15px;transform:rotate(90deg)}
.ph-how:after{right:-65px;bottom:-20px;transform:rotate(-90deg)}
.ph-how-grid{position:relative;z-index:2;display:grid;grid-template-columns:290px 1fr;gap:65px;align-items:center}
.ph-how-intro h2{margin:0 0 12px;color:var(--ph-navy);font:600 40px/1 Georgia,"Times New Roman",serif}
.ph-how-intro p{margin:0;color:#31546b;font-size:14px;line-height:1.6}
.ph-steps{display:grid;grid-template-columns:1fr 34px 1fr 34px 1fr;gap:9px;align-items:start;text-align:center}
.ph-step{min-width:0}
.ph-step-icon{width:66px;height:66px;margin:0 auto 5px;display:grid;place-items:center;border:1px solid #d2ddd6;border-radius:50%;background:rgba(255,255,255,.84)}
.ph-step-icon img{width:37px;height:37px}
.ph-step>b{display:grid;place-items:center;width:22px;height:22px;margin:-1px auto 9px;border-radius:50%;background:var(--ph-navy);color:#fff;font:700 11px Arial}
.ph-step strong{display:block;color:var(--ph-navy);font:600 16px/1.15 Georgia,"Times New Roman",serif}
.ph-step span{display:block;max-width:165px;margin:9px auto 0;color:#4d6676;font-size:11px;line-height:1.45}
.ph-step-arrow{padding-top:26px;color:#0b587d;font:26px Georgia,"Times New Roman",serif}

/* O autorce */
.ph-author{position:relative;overflow:hidden;padding:58px 0 50px;background:rgba(255,253,248,.90)}
.ph-author-grid{display:grid;grid-template-columns:300px 1fr 190px;gap:42px;align-items:center}
.ph-author-photo-wrap{position:relative;height:250px;display:grid;place-items:center}
.ph-author-photo-wrap:after{content:"";position:absolute;inset:-7px -6px -15px;background:url("assets/art/flourish.svg") center bottom/250px 70px no-repeat;opacity:.38;pointer-events:none}
.ph-author-photo{position:relative;z-index:1;width:280px;height:220px;object-fit:cover;border:2px solid var(--ph-navy);border-radius:48% 52% 55% 45%;box-shadow:0 0 0 7px rgba(255,253,248,.8),0 8px 25px rgba(7,58,98,.09)}
.ph-author-copy h2{margin:0 0 12px;color:var(--ph-navy);font:600 38px/1.05 Georgia,"Times New Roman",serif}
.ph-author-copy p{max-width:670px;margin:0 0 12px;color:#31546b;font-size:14px;line-height:1.62}
.ph-author-copy .ph-signature{margin:17px 0 18px;color:var(--ph-green);font:italic 16px/1.3 Georgia,"Times New Roman",serif}
.outline{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 18px;border:1px solid var(--ph-navy);border-radius:24px;color:var(--ph-navy);font-weight:700}
.ph-author-books{text-align:center;align-self:end}
.ph-author-books img{display:block;width:170px;margin:0 auto;mix-blend-mode:multiply}

/* Newsletter */
.ph-newsletter{padding:22px 0;border-top:1px solid #ddd4c2;border-bottom:1px solid #d9d0bd;background:rgba(248,244,232,.97)}
.ph-newsletter-inner{display:grid;grid-template-columns:70px 1fr 430px;gap:18px;align-items:center}
.ph-envelope{color:var(--ph-navy);font-size:45px;text-align:center}
.ph-newsletter h2{margin:0;color:var(--ph-navy);font:600 22px Georgia,"Times New Roman",serif}
.ph-newsletter p{margin:4px 0 0;color:#426176;font-size:11px;line-height:1.35}
.newsletter-form{display:flex;min-width:0;width:100%;height:42px;overflow:hidden;border:1px solid #cfc8ba;border-radius:25px;background:#fff}
.newsletter-form input{min-width:0;width:100%;flex:1;border:0;outline:0;padding:11px 16px;background:#fff}
.newsletter-form button{flex:0 0 auto;border:0;background:var(--ph-navy);color:#fff;padding:0 22px;font-weight:700;cursor:pointer}

/* Footer */
.site-footer{position:relative;overflow:hidden;padding:38px 0 18px;background:radial-gradient(circle at 82% 16%,rgba(68,111,123,.24),transparent 27%),var(--ph-navy-dark);color:#fff}
.site-footer:after{content:"";position:absolute;right:8%;bottom:-36px;width:520px;height:100px;background:url("assets/art/flourish.svg") center/520px 104px no-repeat;filter:brightness(0) invert(1);opacity:.28;pointer-events:none}
.footer-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.35fr .9fr 1.1fr .8fr;gap:28px;align-items:start}
.footer-logo{display:block;width:250px;max-width:100%;height:auto;object-fit:contain;border-radius:2px}
.footer-col{display:flex;flex-direction:column;gap:8px;font-size:12px}
.footer-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.footer-col a{color:#f1f5f7}
.footer-thanks{color:#fff;text-align:right;font:italic 27px/1.1 Georgia,"Times New Roman",serif}
.copyright{position:relative;z-index:1;margin-top:25px;padding-top:13px;border-top:1px solid #57748a;color:#dbe4eb;font-size:10px}

/* WooCommerce */
.woocommerce .site-main,.woocommerce-page .site-main{padding:48px 0}
.woocommerce .woocommerce-breadcrumb{color:#64727d;font-size:12px}
.woocommerce-page .site-main .page-title,.woocommerce div.product .product_title{color:var(--ph-navy);font:600 42px/1.05 Georgia,"Times New Roman",serif}
.woocommerce ul.products,.woocommerce-page ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0!important}
.woocommerce ul.products::before,.woocommerce ul.products::after,.woocommerce-page ul.products::before,.woocommerce-page ul.products::after{display:none!important}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{float:none!important;width:auto!important;min-width:0;margin:0!important;padding:12px;border:1px solid #d8d1c0;border-radius:8px;background:rgba(255,253,248,.98);box-shadow:var(--ph-shadow);display:flex;flex-direction:column}
.woocommerce ul.products li.product a img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:5px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{color:var(--ph-navy);font:600 19px/1.15 Georgia,"Times New Roman",serif;overflow-wrap:anywhere}
.woocommerce ul.products li.product .price{color:var(--ph-navy);font:700 19px Georgia,"Times New Roman",serif}
.woocommerce ul.products li.product .button{width:100%;margin-top:auto!important;border-radius:6px!important}
.woocommerce span.onsale{background:var(--ph-red)!important}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-top-color:var(--ph-navy)!important}
.woocommerce-cart-form,.cart_totals,.woocommerce-checkout-review-order,.woocommerce form.checkout_coupon{padding:20px;border:1px solid var(--ph-line);background:#fff}
.woocommerce input.input-text,.woocommerce textarea,.woocommerce select{padding:12px!important;border:1px solid #cfc9bc!important;border-radius:5px!important;background:#fff}
.woocommerce table.shop_table{border-color:var(--ph-line)}
.woocommerce div.product div.images,.woocommerce div.product div.summary{min-width:0}
.woocommerce div.product .woocommerce-product-gallery img{width:100%;height:auto}

.search-form{display:flex;gap:8px}.search-form input{padding:11px;border:1px solid var(--ph-line)}.search-form button{border:0;background:var(--ph-navy);color:#fff;padding:11px 17px}

@media(max-width:1050px){
  .container{width:min(100% - 42px,1220px)}
  .site-brand img,.custom-logo-link img{width:255px}
  .main-nav ul{gap:18px}
  .ph-hero-grid{grid-template-columns:minmax(0,47%) minmax(0,53%)}
  .ph-author-grid{grid-template-columns:270px 1fr}.ph-author-books{display:none}
  .ph-how-grid{grid-template-columns:235px 1fr;gap:34px}
  .woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:900px){
  .site-header .inner{min-height:88px;gap:12px 20px;flex-wrap:wrap;padding-top:8px}
  .site-brand img,.custom-logo-link img{max-width:260px;width:260px}
  .main-nav{order:3;width:100%;margin:0}
  .main-nav ul{justify-content:center;gap:6px 22px;padding-bottom:7px}
  .header-actions{margin-left:auto}
  .ph-hero-grid{grid-template-columns:1fr}
  .ph-hero-copy{padding:38px 0 8px}
  .ph-hero-copy .lead{max-width:650px}
  .ph-hero-art{justify-content:center;padding:0 0 22px}
  .ph-hero-art img{width:min(100%,720px)}
  .ph-product-grid,.products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ph-how-grid{grid-template-columns:1fr;gap:26px}
  .ph-author-grid{grid-template-columns:1fr;gap:22px}
  .ph-author-photo-wrap{max-width:340px}
  .ph-newsletter-inner{grid-template-columns:55px 1fr}.ph-newsletter .newsletter-form{grid-column:1/-1}
  .woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-grid{grid-template-columns:1.2fr 1fr 1fr}.footer-thanks{grid-column:1/-1;text-align:left}
}

@media(max-width:620px){
  .container{width:min(100% - 28px,1220px)}
  .site-header:after{height:22px;background-size:650px 86px}
  .site-brand img,.custom-logo-link img{max-width:210px;width:210px}
  .header-actions{gap:3px}.header-actions a{width:31px;height:31px}
  .main-nav ul{gap:3px 13px}.main-nav a{font-size:12px}
  .ph-hero-copy h1{font-size:clamp(40px,12vw,53px)}
  .ph-hero-copy .lead{font-size:15px}
  .ph-hero-art img{width:100%}
  .ph-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ph-category-item:nth-child(3){border-left:1px solid #ddd6c6}
  .ph-category-item{min-height:120px}.ph-category-item img{width:72px;height:50px}.ph-category-item strong{font-size:16px}
  .ph-section-heading{display:block}.ph-section-heading>a{display:block;margin-top:8px}.ph-heading-line{width:285px;background-size:285px 55px}
  .ph-product-grid,.products-grid,.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:1fr!important}
  .ph-steps{grid-template-columns:1fr;gap:15px}.ph-step-arrow{padding:0;transform:rotate(90deg)}
  .ph-author-copy h2{font-size:31px}
  .ph-newsletter-inner{grid-template-columns:1fr;text-align:center}.ph-envelope{display:none}.ph-newsletter .newsletter-form{grid-column:auto;display:grid;height:auto;border-radius:12px}.newsletter-form input,.newsletter-form button{min-height:44px;width:100%}
  .footer-grid{grid-template-columns:1fr}.footer-thanks{text-align:left}.footer-logo{width:230px}
}
