/*
Theme Name: Kanalove
Theme URI: https://kanalove.pl
Author: Kanalove
Description: Nowoczesny motyw sklepu stomatologicznego, przygotowany dla WooCommerce, filmów produktowych i Instagrama.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: kanalove
License: GNU General Public License v2 or later
*/

:root {
  --kl-navy: #0b1220;
  --kl-coral: #ff3d71;
  --kl-aqua: #2ed6c9;
  --kl-paper: #f7f9fc;
  --kl-white: #fff;
  --kl-muted: #667085;
  --kl-border: rgba(11, 18, 32, .1);
  --kl-radius: 24px;
  --kl-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kl-paper);
  color: var(--kl-navy);
  font-family: Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .kl-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.kl-container { width: min(var(--kl-width), calc(100% - 48px)); margin-inline: auto; }
.kl-eyebrow {
  margin: 0 0 20px; display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.kl-eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--kl-coral); }
.kl-title { margin: 0; font-size: clamp(48px, 6vw, 86px); line-height: .93; letter-spacing: -.06em; }
.kl-title em { color: var(--kl-coral); font-style: normal; }
.kl-button {
  min-height: 58px; padding: 0 25px; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 13px;
  background: var(--kl-coral); color: white; font-weight: 800; font-size: 14px;
  cursor: pointer; transition: transform .2s, background .2s, color .2s;
}
.kl-button:hover { transform: translateY(-3px); background: var(--kl-navy); color: white; }
.kl-button--outline { background: transparent; color: var(--kl-navy); border: 1px solid var(--kl-border); }

.kl-announcement {
  min-height: 38px; padding: 0 4.5vw; display: grid; grid-template-columns: 1fr 1fr 1fr;
  align-items: center; background: var(--kl-navy); color: white;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.kl-announcement span:nth-child(2) { text-align: center; opacity: .62; }
.kl-announcement a { text-align: right; }
.kl-header {
  height: 92px; padding: 0 4.5vw; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50; background: rgba(247,249,252,.92);
  backdrop-filter: blur(18px); border-bottom: 1px solid var(--kl-border);
}
.kl-brand { width: 180px; display: flex; align-items: center; }
.kl-brand img, .kl-brand .custom-logo { width: 100%; max-height: 58px; object-fit: contain; }
.kl-nav ul { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.kl-nav a { position: relative; padding: 10px 0; font-size: 14px; font-weight: 750; }
.kl-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 2px;
  background: var(--kl-coral); transition: right .2s;
}
.kl-nav a:hover::after { right: 0; }
.kl-actions { display: flex; align-items: center; gap: 8px; }
.kl-icon-button, .kl-menu-button {
  width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent;
  display: grid; place-items: center; cursor: pointer; font-size: 20px;
}
.kl-icon-button:hover { background: white; }
.kl-cart {
  border-radius: 999px; background: var(--kl-navy); color: white; padding: 11px 12px 11px 18px;
  display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800;
}
.kl-cart-count {
  width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%;
  background: var(--kl-coral); font-size: 11px;
}
.kl-menu-button { display: none; }
.kl-search {
  display: none; position: fixed; z-index: 60; top: 146px; left: 4.5vw; right: 4.5vw;
  background: white; border-radius: 20px; padding: 20px; box-shadow: 0 25px 90px rgba(11,18,32,.2);
}
.kl-search.is-open { display: block; }
.kl-search form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.kl-search input { border: 0; border-radius: 12px; background: var(--kl-paper); padding: 16px; outline: none; }
.kl-search button { border: 0; border-radius: 12px; background: var(--kl-coral); color: white; padding: 0 24px; font-weight: 800; }

.kl-hero {
  min-height: calc(100vh - 130px); display: grid; grid-template-columns: 1.02fr .98fr;
  overflow: hidden; position: relative;
}
.kl-hero-copy { padding: clamp(72px, 9vh, 120px) 5vw 90px 7vw; position: relative; z-index: 2; }
.kl-hero h1 {
  margin: 0; max-width: 760px; font-size: clamp(58px, 6.3vw, 104px);
  line-height: .91; letter-spacing: -.067em; font-weight: 900;
}
.kl-hero h1 em { color: var(--kl-coral); font-style: normal; }
.kl-hero-lead { max-width: 570px; margin: 30px 0 0; color: var(--kl-muted); font-size: clamp(17px,1.4vw,21px); line-height: 1.55; }
.kl-hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.kl-proof { margin-top: 56px; display: flex; align-items: center; gap: 14px; color: var(--kl-muted); font-size: 12px; line-height: 1.45; }
.kl-proof strong { color: var(--kl-navy); }
.kl-proof-dots { display: flex; padding-left: 10px; }
.kl-proof-dots i {
  width: 38px; height: 38px; margin-left: -10px; border: 3px solid var(--kl-paper);
  display: grid; place-items: center; border-radius: 50%; background: var(--kl-navy); color: white; font-style: normal; font-weight: 900;
}
.kl-proof-dots i:nth-child(2) { background: var(--kl-coral); }
.kl-proof-dots i:nth-child(3) { background: var(--kl-aqua); color: var(--kl-navy); }
.kl-hero-visual {
  min-height: 650px; position: relative; overflow: hidden;
  background: linear-gradient(135deg,#ffd4e1 0%,#ff6b94 48%,#ff3d71 100%);
}
.kl-hero-visual::before, .kl-hero-visual::after {
  content: ""; position: absolute; border: 1px solid rgba(255,255,255,.6); border-radius: 50%;
}
.kl-hero-visual::before { width: 680px; height: 680px; left: 4%; top: 3%; }
.kl-hero-visual::after { width: 470px; height: 470px; left: 20%; top: 18%; }
.kl-hero-bottle {
  position: absolute; z-index: 2; width: 250px; height: 440px; left: 50%; top: 49%;
  transform: translate(-50%,-46%) rotate(-7deg); filter: drop-shadow(0 45px 38px rgba(89,0,31,.22));
}
.kl-bottle-cap { width: 185px; height: 75px; margin: 0 auto; border-radius: 22px 22px 10px 10px; background: linear-gradient(90deg,#101928,#25354d 48%,#07101e); border-bottom: 5px solid #687386; }
.kl-bottle-body {
  height: 350px; border-radius: 31px 31px 45px 45px; padding: 46px 34px;
  background: linear-gradient(105deg,#fff,#edf1f5 52%,#c8d0db); border: 1px solid rgba(11,18,32,.15);
  display: flex; flex-direction: column;
}
.kl-bottle-body b:first-child { margin-bottom: 56px; font-size: 16px; }
.kl-bottle-body b:first-child span { color: var(--kl-coral); }
.kl-bottle-body strong { font-size: 31px; line-height: .92; letter-spacing: -.05em; }
.kl-bottle-body small { margin-top: 12px; color: var(--kl-muted); text-transform: uppercase; letter-spacing: .15em; font-size: 8px; }
.kl-sticker {
  position: absolute; z-index: 4; right: 8%; top: 13%; width: 110px; height: 110px;
  display: grid; place-content: center; border-radius: 50%; background: var(--kl-aqua);
  text-align: center; font-weight: 900; transform: rotate(9deg); box-shadow: 0 18px 30px rgba(11,18,32,.12);
}
.kl-sticker strong { font-size: 23px; line-height: .8; }
.kl-sticker span { font-size: 11px; text-transform: uppercase; }
.kl-float {
  position: absolute; z-index: 4; padding: 14px 17px; border-radius: 18px;
  background: rgba(255,255,255,.9); box-shadow: 0 18px 48px rgba(60,0,20,.16);
  font-size: 11px; line-height: 1.35;
}
.kl-float--rating { top: 13%; left: 8%; }
.kl-float--video { right: 7%; bottom: 18%; }

.kl-categories { padding: 0 4.5vw; display: grid; grid-template-columns: repeat(5,1fr); background: var(--kl-navy); color: white; }
.kl-categories a { min-height: 115px; padding: 24px 22px; border-right: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 10px; }
.kl-categories a:first-child { border-left: 1px solid rgba(255,255,255,.12); }
.kl-categories a:hover { background: var(--kl-coral); }
.kl-categories small { grid-column: 1/-1; color: var(--kl-aqua); letter-spacing: .18em; }
.kl-categories em { font-style: normal; }

.kl-section { padding: 110px 0; }
.kl-section--white { background: white; }
.kl-heading { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 45px; align-items: end; margin-bottom: 54px; }
.kl-heading > p { margin: 0; color: var(--kl-muted); line-height: 1.6; }
.kl-text-link { padding-bottom: 8px; border-bottom: 2px solid var(--kl-coral); font-size: 13px; font-weight: 800; white-space: nowrap; }
.kl-video-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.kl-video-card {
  border: 0; padding: 0; aspect-ratio: 4/5; border-radius: var(--kl-radius); overflow: hidden;
  position: relative; background: var(--kl-navy); color: white; text-align: left; cursor: pointer;
}
.kl-video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.kl-video-card:hover img { transform: scale(1.055); }
.kl-video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%,rgba(11,18,32,.9)); }
.kl-video-tag { position: absolute; z-index: 2; top: 22px; left: 22px; padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--kl-navy); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.kl-play { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; }
.kl-play i { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--kl-coral); font-style: normal; font-size: 18px; }
.kl-video-copy { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.kl-video-copy strong { font-size: 24px; letter-spacing: -.035em; }
.kl-video-copy small { opacity: .7; }

.kl-product-grid, .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4,1fr); gap: 16px; }
.kl-product-grid .product, .woocommerce ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important; background: white;
  border-radius: var(--kl-radius); padding: 10px 10px 22px !important; overflow: hidden;
}
.woocommerce ul.products li.product img { margin: 0 0 18px !important; border-radius: 18px; aspect-ratio: 1/1; object-fit: contain; background: #eef5f7; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 10px !important; color: var(--kl-navy); font-size: 17px !important; }
.woocommerce ul.products li.product .price { margin: 15px 10px 0 !important; color: var(--kl-navy) !important; font-size: 16px !important; font-weight: 800 !important; }
.woocommerce ul.products li.product .button { margin: 14px 10px 0 !important; border-radius: 999px; background: var(--kl-navy); color: white; }
.woocommerce span.onsale { min-height: 0; min-width: 0; line-height: 1; margin: 14px !important; padding: 10px 12px; background: var(--kl-coral); }
.kl-empty-products { padding: 45px; border-radius: var(--kl-radius); background: white; text-align: center; color: var(--kl-muted); }

.kl-social { min-height: 720px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--kl-navy); color: white; }
.kl-social-copy { align-self: center; padding: 110px 7vw; }
.kl-social-copy > p { max-width: 530px; color: #aeb8c7; font-size: 18px; line-height: 1.6; margin: 30px 0; }
.kl-social-stage { min-height: 680px; position: relative; display: grid; place-items: center; background: radial-gradient(circle,rgba(46,214,201,.32),transparent 55%); }
.kl-phone { width: 310px; height: 620px; overflow: hidden; position: relative; border: 9px solid #050a12; border-radius: 48px; transform: rotate(6deg); box-shadow: 0 40px 80px rgba(0,0,0,.4); }
.kl-phone img { width: 100%; height: 100%; object-fit: cover; }
.kl-phone::before { content: ""; position: absolute; z-index: 2; top: 11px; left: 50%; width: 90px; height: 22px; border-radius: 999px; background: #050a12; transform: translateX(-50%); }
.kl-brands { padding: 68px 0; background: white; text-align: center; }
.kl-brands p { margin: 0 0 38px; color: var(--kl-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; }
.kl-brand-list { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #9ca5b2; font-size: clamp(17px,2vw,26px); }

.kl-footer { padding: 88px 0 24px; background: #070c15; color: white; }
.kl-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 58px; padding-bottom: 65px; }
.kl-footer-logo { width: 210px; filter: brightness(0) invert(1); }
.kl-footer p { color: #8f99a9; line-height: 1.6; }
.kl-footer h3 { margin: 0 0 24px; color: #8f99a9; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; }
.kl-footer nav { display: flex; flex-direction: column; gap: 13px; font-size: 13px; }
.kl-contact a { display: block; margin-bottom: 12px; font-size: 20px; font-weight: 800; }
.kl-footer-bottom { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; color: #697487; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.kl-content { padding: 80px 0; min-height: 55vh; }
.kl-content article { max-width: 900px; }

.kl-modal { display: none; position: fixed; inset: 0; z-index: 100; padding: 20px; background: rgba(4,8,15,.84); backdrop-filter: blur(10px); place-items: center; }
.kl-modal.is-open { display: grid; }
.kl-modal-box { width: min(880px,92vw); min-height: 520px; border-radius: 28px; overflow: hidden; position: relative; background: var(--kl-navy); color: white; display: grid; grid-template-columns: 45% 1fr; }
.kl-modal-box img { width: 100%; height: 100%; object-fit: cover; }
.kl-modal-copy { padding: 55px; align-self: center; }
.kl-modal-copy h3 { margin: 0 0 18px; font-size: 42px; letter-spacing: -.05em; }
.kl-modal-close { position: absolute; z-index: 2; right: 16px; top: 16px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: white; font-size: 24px; cursor: pointer; }

@media (max-width: 1020px) {
  .kl-nav ul { gap: 18px; }
  .kl-hero { grid-template-columns: 1fr 45%; }
  .kl-heading { grid-template-columns: 1fr 1fr; }
  .kl-heading .kl-text-link { grid-column: 1/-1; justify-self: start; }
  .kl-product-grid, .woocommerce ul.products { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 782px) {
  body.admin-bar .kl-header { top: 46px; }
  .kl-container { width: min(100% - 40px,var(--kl-width)); }
  .kl-announcement { min-height: 42px; padding: 8px 18px; display: block; text-align: center; }
  .kl-announcement span { display: none; }
  .kl-announcement a { text-align: center; }
  .kl-header { height: 76px; padding: 0 18px; }
  .kl-brand { width: 145px; }
  .kl-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; padding: 22px; background: white; box-shadow: 0 20px 50px rgba(11,18,32,.15); }
  .kl-nav.is-open { display: block; }
  .kl-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .kl-nav a { display: block; padding: 12px; }
  .kl-menu-button { display: grid; }
  .kl-account { display: none; }
  .kl-cart { font-size: 0; padding: 9px; }
  .kl-search { top: 118px; left: 12px; right: 12px; }
  .kl-hero { display: flex; flex-direction: column; }
  .kl-hero-copy { padding: 64px 24px 68px; }
  .kl-hero h1 { font-size: clamp(52px,15vw,76px); }
  .kl-hero-visual { min-height: 600px; }
  .kl-hero-bottle { transform: translate(-50%,-46%) rotate(-7deg) scale(.88); }
  .kl-categories { grid-template-columns: 1fr 1fr; padding: 0; }
  .kl-categories a { min-height: 90px; }
  .kl-categories a:last-child { grid-column: 1/-1; }
  .kl-section { padding: 78px 0; }
  .kl-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
  .kl-video-grid { grid-template-columns: 1fr; }
  .kl-social { grid-template-columns: 1fr; }
  .kl-social-copy { padding: 80px 24px 35px; }
  .kl-brand-list { justify-content: center; flex-wrap: wrap; }
  .kl-footer-grid { grid-template-columns: 1fr 1fr; gap: 42px; }
  .kl-footer-bottom { flex-direction: column; }
  .kl-modal-box { grid-template-columns: 1fr; }
  .kl-modal-box img { height: 300px; }
  .kl-modal-copy { padding: 28px; }
}
@media (max-width: 520px) {
  .kl-product-grid, .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .kl-footer-grid { grid-template-columns: 1fr; }
  .kl-phone { width: 275px; height: 550px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
