:root {
  --green: #146638;
  --green-dark: #063820;
  --green-deep: #021e12;
  --green-light: #2eaa61;
  --ink: #101714;
  --muted: #6d746f;
  --line: #e3e7e4;
  --soft: #f6f8f6;
  --white: #fff;
  --shadow: 0 15px 45px rgba(18, 51, 31, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.topbar {
  color: #fff;
  background: linear-gradient(90deg, #0d4a29, #07381f);
  font-size: 12px;
}
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-benefits, .topbar-contact { display: flex; align-items: center; gap: 44px; }
.topbar-benefits span, .topbar-contact { white-space: nowrap; }
.topbar-benefits img { width: 21px; height: 20px; margin-right: 8px; object-fit: contain; vertical-align: -5px; }
.topbar-contact { gap: 14px; }
.topbar-contact a { width: 17px; height: 17px; display: grid; place-items: center; }
.topbar-contact a img { max-width: 17px; max-height: 17px; object-fit: contain; }

.site-header { position: relative; z-index: 10; background: #fff; box-shadow: 0 4px 20px rgba(15, 47, 28, .04); }
.header-main { height: 96px; display: grid; grid-template-columns: 230px minmax(300px, 1fr) auto; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 15px; width: fit-content; }
.brand-logo { width: 184px; height: 62px; object-fit: contain; object-position: left center; }
.search { height: 50px; display: flex; border: 1px solid #d7dcd8; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 20px rgba(20, 43, 29, .04); }
.search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 20px; color: #222; }
.search input::placeholder { color: #969b98; }
.search button { width: 61px; display: grid; place-items: center; border: 0; color: #fff; background: #10171d; cursor: pointer; transition: background .2s; }
.search button:hover { background: var(--green); }
.search button img { width: 27px; height: 27px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 31px; }
.header-actions button { border: 0; background: none; color: var(--ink); cursor: pointer; padding: 0; }
.account-btn, .cart-btn { display: flex; align-items: center; gap: 12px; text-align: left; }
.account-btn > img, .cart-btn > img { width: 29px; height: 29px; object-fit: contain; }
.account-btn span, .cart-btn span { display: flex; flex-direction: column; }
.account-btn small, .cart-btn small { font-size: 12px; }
.account-btn strong, .cart-btn strong { font-size: 13px; line-height: 1.5; }
.menu-toggle { display: none; width: 32px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: .2s; }
.main-nav { border-top: 1px solid #f1f2f1; }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-inner a { font-size: 13px; font-weight: 650; text-transform: uppercase; white-space: nowrap; transition: color .2s; }
.nav-inner a:hover { color: var(--green); }
.nav-inner .promo-link { display: flex; align-items: center; gap: 10px; color: #fff; background: linear-gradient(135deg, #1b743d, #0c4a29); padding: 12px 19px; border-radius: 5px; }
.promo-link span { font-size: 20px; font-weight: 400; }

.hero {
  position: relative;
  height: auto;
  aspect-ratio: 944 / 331;
  margin-top: 24px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 62% 45%, #12351e 0, #03130b 45%, #010704 100%);
  border-radius: 22px;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 38%;
  background: url("assets/hero-products.png") center right / contain no-repeat;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #020b06 0, rgba(2, 11, 6, .94) 5%, rgba(2, 11, 6, .28) 34%, transparent 62%);
}
.hero-content { position: relative; z-index: 2; width: 53%; padding: 61px 0 0 85px; }
.eyebrow { color: #32aa5c; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.hero h1 { margin: 13px 0 12px; font-size: clamp(34px, 3.5vw, 46px); line-height: 1.08; letter-spacing: -1.6px; }
.hero h1 em { color: #39a95d; font-style: normal; }
.hero p { margin: 0 0 22px; color: #f0f4f1; font-size: 16px; line-height: 1.48; }
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 38px;
  padding: 14px 23px;
  color: #fff;
  background: linear-gradient(90deg, #15934d, #34b76b);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(28, 172, 88, .2);
}
.primary-button span { font-size: 24px; line-height: .5; font-weight: 300; }
.hero-features { display: flex; gap: 25px; margin-top: 50px; font-size: 11px; font-weight: 650; }
.hero-features span { display: flex; align-items: center; gap: 8px; }
.hero-features img { width: 18px; height: 18px; object-fit: contain; }
.slider-arrow {
  position: absolute;
  z-index: 4;
  top: 49%;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.slider-arrow img { width: 43px; height: 43px; object-fit: contain; }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 17px; }
.slider-dots { position: absolute; z-index: 4; left: 50%; bottom: 17px; display: flex; gap: 9px; transform: translateX(-50%); }
.slider-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.slider-dots button.active { background: #fff; box-shadow: 0 0 0 5px rgba(45, 172, 87, .28); }

.service-strip {
  min-height: 94px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border: 1px solid #f1f3f1;
  border-radius: 16px;
  background: linear-gradient(110deg, #faf9f7, #fff);
}
.service-strip article { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 20px; border-right: 1px solid #dfe3df; }
.service-strip article:last-child { border-right: 0; }
.service-strip article > img { width: 40px; height: 40px; object-fit: contain; }
.service-strip div { display: flex; flex-direction: column; }
.service-strip strong { font-size: 12px; text-transform: uppercase; }
.service-strip span { font-size: 12px; margin-top: 3px; }

.categories { margin-top: 26px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.category { position: relative; min-height: 174px; overflow: hidden; padding: 25px 26px; border-radius: 11px; background: #f6f7f6; transition: transform .2s, box-shadow .2s; }
.category:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category strong, .category span { position: relative; z-index: 2; display: block; }
.category strong { font-size: 13px; }
.category span { margin-top: 8px; color: #555d59; font-size: 10px; white-space: nowrap; }
.category-graphic { position: absolute; right: 28px; bottom: 17px; width: 68px; height: 68px; object-fit: contain; }
.category-green { color: #69a931; background: linear-gradient(135deg, #fafcf8, #f3f5f1); }
.category-blue { color: #77b8df; background: linear-gradient(135deg, #fbfcfd, #f2f6fa); }
.category-orange { color: #ef5c15; background: linear-gradient(135deg, #fffaf8, #faf3ef); }
.category-forest { color: #3f925b; background: linear-gradient(135deg, #fbfcfb, #f1f6f2); }
.category-purple { color: #8452c5; background: linear-gradient(135deg, #fbfaff, #f4f2f9); }
.category-pink { color: #f06291; background: linear-gradient(135deg, #fffafb, #fbf2f6); }

.products-section { margin-top: 39px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.section-heading h2 { position: relative; margin: 0; font-size: 18px; font-weight: 650; text-transform: uppercase; }
.section-heading h2::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 36px; height: 2px; background: var(--green); }
.section-heading a { color: #155e37; font-size: 12px; font-weight: 650; }
.section-heading a span { margin-left: 8px; font-size: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; min-width: 0; padding: 15px 12px 13px; border: 1px solid #e3e8e4; border-radius: 11px; background: #fff; box-shadow: 0 7px 19px rgba(34, 62, 43, .035); }
.product-image { height: 190px; display: grid; place-items: center; overflow: hidden; background: #fff; border-radius: 10px; }
.product-image img { max-width: 92%; max-height: 172px; width: auto; height: auto; object-fit: contain; object-position: center; transition: transform .25s; }
.product-card:hover .product-image img { transform: scale(1.045); }
.favorite { position: absolute; z-index: 2; top: 13px; left: 12px; padding: 2px; color: #637069; background: transparent; border: 0; cursor: pointer; }
.favorite img { width: 18px; height: 18px; object-fit: contain; }
.favorite.active img { filter: sepia(1) saturate(7) hue-rotate(305deg) brightness(.9); }
.badge { position: absolute; top: 0; right: 0; padding: 4px 9px; color: #fff; background: #14723d; border-radius: 0 10px 0 5px; font-size: 9px; text-transform: uppercase; }
.product-card h3 { min-height: 21px; margin: 2px 0 1px; overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.product-card p { margin: 0 0 12px; color: #555; font-size: 10px; }
.price { display: block; margin-bottom: 13px; font-size: 13px; }
.add-to-cart { width: 100%; height: 34px; color: #114b2d; background: #fff; border: 1px solid #17633a; border-radius: 5px; font-size: 11px; font-weight: 750; text-transform: uppercase; cursor: pointer; transition: .2s; }
.add-to-cart:hover { color: #fff; background: var(--green); }

.why-us {
  position: relative;
  min-height: 145px;
  margin-top: 29px;
  display: grid;
  grid-template-columns: 1.45fr repeat(4, 1fr);
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at center, #103d28, #031e13 70%);
  border-radius: 14px;
}
.why-leaves { position: absolute; z-index: 0; bottom: 0; height: 100%; width: auto; max-width: 130px; object-fit: contain; pointer-events: none; }
.why-leaves-left { left: 0; object-position: left bottom; }
.why-leaves-right { right: 0; object-position: right bottom; }
.why-lead { position: relative; z-index: 2; padding-left: 63px; }
.why-lead h2 { margin: 0; font-size: 21px; line-height: 1.22; text-transform: uppercase; }
.why-lead em { color: #48b96d; font-style: normal; }
.why-us article { position: relative; z-index: 1; min-height: 80px; padding: 0 28px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(255,255,255,.2); }
.why-us article > img { width: 30px; height: 30px; margin-bottom: 9px; object-fit: contain; }
.why-us article strong { font-size: 12px; }
.why-us article span { margin-top: 3px; font-size: 10px; line-height: 1.5; color: #edf4ef; }

.newsletter {
  min-height: 118px;
  margin-top: 25px;
  padding: 0 56px;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  gap: 36px;
  background: linear-gradient(120deg, #f6f9f7, #fff);
  border-radius: 14px;
}
.newsletter-intro { display: flex; align-items: center; gap: 30px; }
.newsletter-intro > img { width: 65px; height: 52px; object-fit: contain; }
.newsletter h2 { margin: 0 0 5px; color: #0c4a2b; font-size: 19px; }
.newsletter p { margin: 0; color: #444; font-size: 12px; }
.newsletter-row { height: 43px; display: flex; }
.newsletter-row input { min-width: 0; flex: 1; padding: 0 20px; border: 1px solid #edf0ed; border-right: 0; border-radius: 5px 0 0 5px; outline: none; }
.newsletter-row input:focus { border-color: #76ae8b; }
.newsletter-row button { width: 210px; color: #fff; background: linear-gradient(90deg, #277945, #34924f); border: 0; border-radius: 0 5px 5px 0; font-size: 11px; font-weight: 750; text-transform: uppercase; cursor: pointer; }
.consent { display: block; margin-top: 9px; color: #6e7470; font-size: 8px; }
.consent input { vertical-align: -2px; accent-color: var(--green); }

.site-footer { margin-top: 8px; padding-top: 25px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .8fr) 1.25fr; gap: 52px; padding-bottom: 31px; }
.brand.compact .brand-logo { width: 145px; height: 49px; }
.footer-brand p { color: #4c524e; font-size: 10px; line-height: 1.55; }
.socials { display: flex; gap: 15px; }
.socials a { width: 23px; height: 23px; display: grid; place-items: center; }
.socials img { width: 23px; height: 23px; object-fit: contain; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid h3 { margin: 8px 0 6px; font-size: 11px; text-transform: uppercase; }
.footer-grid a, .footer-grid span { color: #333b36; font-size: 10px; }
.footer-grid a:hover { color: var(--green); }
.footer-contact span { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.footer-contact img { width: 18px; height: 18px; object-fit: contain; }
.footer-bottom { color: #fff; background: linear-gradient(90deg, #0b4b29, #06351f); }
.footer-bottom .container { min-height: 35px; display: flex; align-items: center; justify-content: space-between; font-size: 9px; }
.payments { width: 235px; height: 28px; object-fit: contain; }

.toast {
  position: fixed;
  z-index: 99;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  padding: 14px 18px;
  color: #fff;
  background: #0d4b2b;
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(0,0,0,.2);
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: .25s;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .container { width: min(940px, calc(100% - 36px)); }
  .header-main { height: 84px; }
  .nav-inner { height: 54px; }
  .header-main { grid-template-columns: 205px 1fr auto; gap: 20px; }
  .header-actions { gap: 18px; }
  .account-btn span { display: none; }
  .nav-inner { gap: 14px; overflow-x: auto; justify-content: flex-start; }
  .nav-inner a { font-size: 11px; }
  .hero-content { padding-left: 65px; }
  .service-strip { min-height: 76px; }
  .category { min-height: 140px; }
  .categories { gap: 12px; }
  .category { padding: 20px 16px; }
  .category > div { right: 18px; }
  .product-grid { gap: 10px; }
  .product-card { padding-inline: 9px; }
  .product-image { height: 154px; }
  .product-image img { width: 96px; height: 150px; }
  .why-us { min-height: 116px; }
  .why-lead { padding-left: 35px; }
  .why-us article { padding-inline: 18px; }
  .newsletter { min-height: 95px; padding-inline: 35px; gap: 20px; }
  .footer-grid { gap: 30px; }
}

@media (max-width: 820px) {
  .topbar-benefits span:nth-child(2), .topbar-benefits span:nth-child(3), .topbar-contact { display: none; }
  .topbar-inner { justify-content: center; }
  .header-main { height: auto; min-height: 82px; grid-template-columns: 1fr auto; }
  .brand-logo { width: 158px; height: 54px; }
  .search { grid-column: 1 / -1; grid-row: 2; width: 100%; margin-bottom: 15px; }
  .account-btn { display: none; }
  .menu-toggle { display: block !important; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 20px 30px rgba(0,0,0,.1); }
  .main-nav.open { display: block; }
  .nav-inner { height: auto; padding-block: 12px; display: grid; overflow: visible; }
  .nav-inner a { padding: 9px 12px; }
  .nav-inner .promo-link { width: fit-content; padding: 8px 16px; }
  .hero { height: 480px; }
  .hero-art { inset: 0; opacity: .78; background-position: 61% center; }
  .hero-art::after { background: linear-gradient(90deg, rgba(1,9,5,.97) 0, rgba(1,9,5,.78) 47%, rgba(1,9,5,.2) 100%); }
  .hero-content { width: 75%; padding: 70px 0 0 52px; }
  .hero-features { margin-top: 58px; flex-wrap: wrap; }
  .service-strip { grid-template-columns: repeat(2, 1fr); padding-block: 10px; }
  .service-strip article { margin-block: 8px; }
  .service-strip article:nth-child(2) { border-right: 0; }
  .categories { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
  .why-us { grid-template-columns: repeat(2, 1fr); padding: 24px; }
  .why-lead { grid-column: 1 / -1; padding: 0 0 18px; }
  .why-us article { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding-block: 18px; }
  .newsletter { grid-template-columns: 1fr; padding-block: 25px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 24px, 480px); }
  .topbar { font-size: 11px; }
  .header-main { grid-template-columns: 1fr auto; gap: 10px; }
  .brand-logo { width: 145px; height: 49px; }
  .header-actions { gap: 16px; }
  .cart-btn span small { display: none; }
  .cart-btn > img { width: 25px; }
  .search { height: 44px; }
  .hero { width: 100%; height: 500px; margin-top: 0; border-radius: 0 0 18px 18px; }
  .hero-art { background-position: 64% center; }
  .hero-art::after { background: linear-gradient(90deg, rgba(1,9,5,.98), rgba(1,9,5,.8) 62%, rgba(1,9,5,.3)); }
  .hero-content { width: 100%; padding: 60px 45px 0; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 14px; }
  .hero-features { display: grid; gap: 10px; margin-top: 48px; }
  .slider-arrow { width: 36px; height: 36px; }
  .slider-arrow.prev { left: 7px; }
  .slider-arrow.next { right: 7px; }
  .service-strip { margin-top: 18px; grid-template-columns: 1fr; }
  .service-strip article { justify-content: flex-start; padding-left: 42px; border-right: 0; border-bottom: 1px solid #e2e6e3; }
  .service-strip article:last-child { border-bottom: 0; }
  .categories { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category { min-height: 155px; padding: 18px 15px; }
  .category span { white-space: normal; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-image { height: 170px; }
  .section-heading h2 { font-size: 16px; }
  .section-heading a { font-size: 10px; }
  .why-us { grid-template-columns: 1fr; padding: 25px 27px; }
  .why-lead { grid-column: auto; }
  .why-us article { padding-inline: 0; }
  .newsletter { padding-inline: 24px; }
  .newsletter-intro { gap: 18px; }
  .newsletter-intro > img { width: 48px; height: 42px; }
  .newsletter h2 { font-size: 17px; }
  .newsletter p br { display: none; }
  .newsletter-row { height: auto; display: grid; gap: 8px; }
  .newsletter-row input, .newsletter-row button { width: 100%; height: 44px; border: 1px solid #dde4de; border-radius: 5px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-bottom .container { padding-block: 9px; flex-direction: column; gap: 7px; }
  .payments { width: 220px; }
}

@media (max-width: 365px) {
  .product-grid { grid-template-columns: 1fr; }
  .categories { grid-template-columns: 1fr; }
  .hero-content { padding-inline: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact, .footer-brand { grid-column: auto; }
}

/* ==================== Koszyk i zamówienie (shop.js) ==================== */
.mc-overlay {
  position: fixed; inset: 0; background: rgba(4, 20, 12, .5);
  opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 90;
}
.mc-overlay.show { opacity: 1; visibility: visible; }
.mc-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: #fff; box-shadow: -12px 0 40px rgba(8, 30, 18, .2);
  transform: translateX(100%); transition: transform .28s ease; z-index: 100;
  display: flex; flex-direction: column;
}
.mc-drawer.show { transform: translateX(0); }
.mc-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.mc-drawer-head strong { font-size: 16px; }
.mc-close { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); line-height: 1; }
.mc-drawer-body { padding: 18px 20px; overflow-y: auto; flex: 1; }

.mc-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.mc-items { display: flex; flex-direction: column; gap: 14px; }
.mc-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mc-item-img { width: 54px; height: 76px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; display: grid; place-items: center; overflow: hidden; padding: 3px; }
.mc-item-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.mc-item-info strong { display: block; font-size: 13px; }
.mc-item-info small { color: var(--muted); }
.mc-qty { display: inline-flex; align-items: center; gap: 0; margin-top: 7px;
  border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.mc-qty button { width: 28px; height: 28px; border: 0; background: var(--soft); cursor: pointer; font-size: 16px; }
.mc-qty button:hover { background: #e8ece9; }
.mc-qty span { min-width: 30px; text-align: center; font-weight: 700; font-size: 13px; }
.mc-item-side { text-align: right; }
.mc-item-side strong { font-size: 13px; }
.mc-remove { display: block; margin-top: 8px; border: 0; background: none; color: #c0392b;
  font-size: 11px; cursor: pointer; margin-left: auto; }
.mc-remove:hover { text-decoration: underline; }

.mc-freeinfo { font-size: 12px; color: var(--muted); background: var(--soft);
  border-radius: 8px; padding: 9px 12px; margin: 14px 0; text-align: center; }
.mc-freeinfo.ok { color: var(--green); }
.mc-summary { margin: 14px 0; }
.mc-summary > div { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); }
.mc-summary .mc-total { color: var(--ink); font-weight: 800; font-size: 16px;
  border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }

.mc-btn, .mc-btn-ghost {
  width: 100%; border: 0; border-radius: 8px; padding: 13px; font-weight: 700;
  cursor: pointer; font-size: 14px; margin-top: 10px;
}
.mc-btn { background: var(--green); color: #fff; }
.mc-btn:hover { background: var(--green-dark); }
.mc-btn:disabled { opacity: .6; cursor: default; }
.mc-btn-ghost { background: none; color: var(--muted); }
.mc-btn-ghost:hover { color: var(--ink); }

.mc-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 11px; }
.mc-form input, .mc-form textarea {
  width: 100%; margin-top: 5px; border: 1px solid var(--line); border-radius: 7px;
  padding: 10px 12px; font: inherit; font-weight: 400;
}
.mc-form input:focus, .mc-form textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(20,102,56,.12); }
.mc-form-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.mc-error { background: #fdeaea; color: #b91c1c; border: 1px solid #f3c0c0; border-radius: 8px;
  padding: 9px 12px; font-size: 13px; margin: 6px 0; }

.mc-confirm { text-align: center; padding: 30px 10px; }
.mc-confirm-mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: #e7f6ec; color: var(--green); font-size: 32px; display: grid; place-items: center; }
.mc-confirm h3 { margin: 0 0 12px; }
.mc-confirm p { color: var(--muted); margin: 8px 0; }
.mc-confirm strong { color: var(--ink); font-size: 17px; }
.mc-confirm-total { font-size: 15px; }
.mc-confirm-note { font-size: 12px; }

/* Checkout: wybór dostawy i płatności */
.mc-field-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 8px 0 5px; }
.mc-choice { display: grid; gap: 8px; margin-bottom: 12px; }
.mc-opt { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.mc-opt input { width: auto; margin: 0; }
.mc-pick { margin-top: 4px; border: 1px dashed var(--green); color: var(--green); }
.mc-point { font-size: 12px; color: #15643a; background: #eef6f0; border-radius: 7px; padding: 9px 11px; margin: 8px 0 0; font-weight: 600; }

/* InPost Geowidget - overlay */
.mc-geo-overlay { position: fixed; inset: 0; background: rgba(4,20,12,.55); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mc-geo-box { position: relative; width: min(920px, 100%); height: min(640px, 90vh); background: #fff; border-radius: 12px; overflow: hidden; }
.mc-geo-box inpost-geowidget { display: block; width: 100%; height: 100%; }
.mc-geo-close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); font-size: 18px; cursor: pointer; }

/* Strona zamówienia (powrót z płatności) */
.order-thanks { text-align: center; padding: 18px 0 24px; }
.thanks-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; margin: 0 auto 14px; }
.order-box { max-width: 560px; }
.order-box h2 { font-size: 17px; margin: 0 0 12px; }

/* ==================== Dopracowanie pod telefon ==================== */
@media (max-width: 700px) {
  .mc-drawer { width: 100%; }                         /* koszyk na całą szerokość */
}
@media (max-width: 560px) {
  /* Strona produktu */
  .product-detail { gap: 18px; margin-top: 18px; }
  .pd-gallery { min-height: 220px; padding: 16px; }
  .pd-info h1 { font-size: 20px; }
  .pd-price strong { font-size: 24px; }
  .pd-buy { flex-direction: column; align-items: stretch; gap: 12px; }
  .pd-qty { align-self: flex-start; }
  .pd-add { width: 100%; justify-content: center; }
  .pd-desc > h2, .reviews > h2, .cms-page > h1 { font-size: 18px; }
  /* Sekcja eksperta */
  .expert { padding: 20px; gap: 16px; }
  .expert-photo { width: 64px; height: 64px; padding: 12px; }
  .expert-quote { font-size: 15px; }
  /* Opinie */
  .reviews-head { gap: 16px; }
  .reviews-score strong { font-size: 38px; }
  .review { padding: 14px; }
  /* Strony informacyjne / zamówienie */
  .cms-page { margin: 18px auto 30px; }
  /* Geowidget na pełny ekran */
  .mc-geo-box { height: 92vh; border-radius: 10px; }
  /* Karty produktów - czytelniejsze ceny */
  .price-old { font-size: 12px; }
}
@media (max-width: 380px) {
  .pd-trust { grid-template-columns: 1fr; }
}

/* ==================== Baner cookies ==================== */
.mc-cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 150;
  background: #0c2c1c; color: #eaf3ee; border-radius: 12px; padding: 14px 18px;
  display: flex; align-items: center; gap: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.3); font-size: 13px; }
.mc-cookie a { color: #6ee0a0; text-decoration: underline; }
.mc-cookie button { flex: none; background: #2eaa61; color: #06251a; border: 0; border-radius: 8px;
  padding: 10px 22px; font-weight: 800; cursor: pointer; }
.mc-cookie button:hover { background: #36c170; }
@media (max-width: 560px) {
  .mc-cookie { flex-direction: column; text-align: center; gap: 10px; }
  .mc-cookie button { width: 100%; }
}

/* ==================== Klikalna karta produktu ==================== */
.product-link, .product-link h3, .product-link h2 { color: inherit; display: block; }
.product-link .product-image, .product-link .category-product-image { cursor: pointer; }
.product-link:hover h3, .product-link:hover h2 { color: var(--green); }

/* ==================== Podstrona produktu ==================== */
.pd-loading { padding: 60px 0; text-align: center; color: var(--muted); font-size: 15px; }
.pd-loading a { color: var(--green); font-weight: 700; }
.product-detail {
  display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 44px;
  margin-top: 24px; align-items: start;
}
.pd-gallery {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 26px; display: grid; place-items: center; min-height: 430px; overflow: visible;
}
.pd-gallery img { max-width: 100%; max-height: 370px; width: auto; height: auto; object-fit: contain; }
.pd-gallery .badge {
  position: absolute; top: 16px; left: 16px; background: var(--green); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
}
.pd-info h1 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; }
.pd-rating { color: #f0a500; font-size: 15px; margin-bottom: 14px; }
.pd-rating-num { color: var(--ink); font-weight: 700; margin-left: 6px; }
.pd-rating small { color: var(--muted); margin-left: 6px; }
.pd-unit { color: var(--muted); margin: 0 0 16px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.pd-price strong { font-size: 30px; color: var(--green); }
.pd-old { text-decoration: line-through; color: var(--muted); font-size: 18px; }
.pd-stock { font-weight: 600; font-size: 14px; margin: 0 0 22px; }
.pd-stock.in { color: var(--green); }
.pd-stock.out { color: #c0392b; }
.pd-buy { display: flex; gap: 14px; align-items: stretch; margin-bottom: 26px; flex-wrap: wrap; }
.pd-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pd-qty button { width: 44px; border: 0; background: var(--soft); font-size: 20px; cursor: pointer; }
.pd-qty button:hover { background: #e8ece9; }
.pd-qty input { width: 56px; text-align: center; border: 0; font-size: 16px; font-weight: 700; -moz-appearance: textfield; }
.pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-add { border: 0; cursor: pointer; }
.pd-add[disabled] { opacity: .5; cursor: default; }
.pd-perks { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.pd-perks li { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #444; }
.pd-perks img { width: 26px; height: 26px; object-fit: contain; }
.pd-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pd-trust-item { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: #2f3a35; }
.pd-trust-item img { width: 24px; height: 24px; object-fit: contain; flex: none; }

.expert { margin-top: 34px; display: flex; gap: 24px; align-items: center;
  background: linear-gradient(135deg, #f1f7f3, #e7f3ec); border: 1px solid #d6e7dd;
  border-radius: 16px; padding: 24px 28px; }
.expert-photo { width: 86px; height: 86px; flex: none; border-radius: 50%; background: #fff;
  padding: 16px; box-shadow: var(--shadow); object-fit: contain; }
.expert-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--green); background: #fff; border-radius: 20px; padding: 4px 12px; }
.expert-quote { font-size: 16px; line-height: 1.6; color: var(--ink); margin: 12px 0 8px; }
.expert-author { font-weight: 700; color: var(--green-dark); font-size: 13px; }
.expert-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.expert-badges span { font-size: 12.5px; font-weight: 600; color: #2f3a35; }
@media (max-width: 700px) {
  .expert { flex-direction: column; text-align: center; }
  .expert-badges { justify-content: center; }
}

/* ==================== Promocja: przecena na kartach ==================== */
/* Równa wysokość kart -> przyciski "Do koszyka" w jednej linii */
.product-card { display: flex; flex-direction: column; }
.product-card p { min-height: 14px; }
.product-card .price-row { margin-top: 0; }
.product-card .add-to-cart { margin-top: auto; }

.price-row { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 13px; }
.price-row .price, .price-row .category-price { margin-bottom: 0; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 13px; font-weight: 600; }
.badge-promo { background: #dc2626; color: #fff; }
.heading-badge { display: inline-block; background: #dc2626; color: #fff; font-size: 12px; font-weight: 800;
  border-radius: 20px; padding: 2px 10px; vertical-align: middle; margin-left: 8px; }

.cms-page { margin: 26px auto 44px; }
.cms-page > h1 { font-size: 26px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.cms-content { max-width: 900px; }

.pd-desc { margin-top: 40px; }
.pd-desc > h2 { font-size: 20px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.pd-desc-body { color: #333; line-height: 1.7; max-width: 860px; }
.pd-desc-body h2, .pd-desc-body h3, .pd-desc-body h4 { color: var(--ink); margin: 22px 0 10px; }
.pd-desc-body p { margin: 0 0 14px; }
.pd-desc-body ul, .pd-desc-body ol { margin: 0 0 14px; padding-left: 22px; }
.pd-desc-body li { margin-bottom: 7px; }
.pd-desc-body img { height: auto; border-radius: 8px; margin: 10px 0; }
.pd-desc-body table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.pd-desc-body td, .pd-desc-body th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

@media (max-width: 820px) {
  .product-detail { grid-template-columns: 1fr; gap: 26px; }
  .pd-gallery { min-height: 280px; padding: 22px; }
  .pd-info h1 { font-size: 23px; }
  .pd-price strong { font-size: 26px; }
}

/* ==================== Brak mignięcia statycznych kart ====================
   Karty wpisane w HTML są ukryte (CSS w <head> działa przed renderem),
   aż shop.js wstawi produkty z bazy i doda klasę .mc-loaded. */
[data-products]:not(.mc-loaded) > article { display: none !important; }
[data-products]:not(.mc-loaded)::after {
  content: "Ładowanie produktów…";
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 10px;
  color: var(--muted);
}
[data-products] .grid-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 10px;
  color: var(--muted);
}

/* Nakładka przejścia między stronami - zasłania starą stronę przy nawigacji,
   żeby nie było widać produktów poprzedniej strony podczas ładowania. */
#mc-page-loader {
  position: fixed; inset: 0; z-index: 9999; background: #fff;
  display: none; align-items: center; justify-content: center;
}
#mc-page-loader.show { display: flex; }
#mc-page-loader .mc-spin {
  width: 44px; height: 44px; border: 4px solid #e3e7e4;
  border-top-color: var(--green); border-radius: 50%;
  animation: mc-spin .7s linear infinite;
}
@keyframes mc-spin { to { transform: rotate(360deg); } }

/* ==================== Opinie klientów ==================== */
.reviews { margin-top: 40px; }
.reviews > h2 { font-size: 20px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.reviews-head { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.reviews-score { text-align: center; }
.reviews-score strong { display: block; font-size: 44px; line-height: 1; color: var(--ink); }
.reviews-score .review-stars.big { font-size: 19px; }
.reviews-score small { display: block; color: var(--muted); margin-top: 6px; }
.reviews-bars { flex: 1; min-width: 220px; display: grid; gap: 8px; }
.rbar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted);
  width: 100%; background: none; border: 0; padding: 4px 6px; border-radius: 8px;
  cursor: pointer; text-align: left; font: inherit; transition: background .12s; }
.rbar:hover { background: var(--soft); }
.rbar.active { background: #e7f3ec; color: var(--ink); font-weight: 600; }
.rbar.active i { box-shadow: 0 0 0 1px var(--green) inset; }
.reviews-reset { margin-top: 6px; background: none; border: 0; color: var(--green);
  font-weight: 600; cursor: pointer; font-size: 13px; padding: 4px 6px; text-align: left; }
.reviews-reset:hover { text-decoration: underline; }
.rbar span { width: 24px; }
.rbar i { flex: 1; height: 9px; background: #eef0ee; border-radius: 6px; overflow: hidden; }
.rbar i b { display: block; height: 100%; background: linear-gradient(90deg, #2eaa61, #146638); }
.rbar em { width: 34px; text-align: right; font-style: normal; }
.review-stars { color: #f0a500; letter-spacing: 1px; }

.reviews-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--white); }
.review-top { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-weight: 700; flex: none; }
.review-top strong { display: block; font-size: 14px; }
.review-top .review-stars { font-size: 13px; }
.review-date { margin-left: auto; color: var(--muted); font-size: 12px; align-self: flex-start; }
.review h4 { margin: 12px 0 4px; font-size: 14px; }
.review p { margin: 8px 0 0; color: #444; font-size: 14px; line-height: 1.6; }
.reviews-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
.pager-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600;
  padding: 9px 18px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.pager-btn:hover:not(:disabled) { background: var(--soft); border-color: var(--green); color: var(--green); }
.pager-btn:disabled { opacity: .4; cursor: default; }
.pager-info { color: var(--muted); font-size: 13px; font-weight: 600; }

@media (max-width: 700px) {
  .reviews-list { grid-template-columns: 1fr; }
}

/* ===== Strona koszyka i kasy (PrestaShop-like) ===== */
.cart-empty { text-align: center; padding: 48px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.cart-empty p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.cart-grid, .co-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 70px 1fr auto auto 28px; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.cart-img { width: 70px; height: 96px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 3px; }
.cart-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.cart-name a { font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.3; }
.cart-name a:hover { color: var(--green); }
.cart-name small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.cart-qty span { min-width: 34px; text-align: center; font-weight: 700; }
.cart-qbtn { width: 34px; height: 34px; border: none; background: var(--soft); color: var(--green-dark); font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1; }
.cart-qbtn:hover { background: #e7efe9; }
.cart-price { font-weight: 800; color: var(--green-dark); white-space: nowrap; }
.cart-rm { width: 28px; height: 28px; border: none; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; border-radius: 6px; }
.cart-rm:hover { background: #fbeaea; color: #c0392b; }
.cart-summary, .co-summary { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; position: sticky; top: 14px; }
.cart-summary h2, .co-summary h2 { font-size: 17px; margin: 0 0 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; color: var(--muted); font-size: 14px; }
.sum-row span:last-child { color: var(--ink); font-weight: 600; }
.sum-free { font-size: 13px; color: var(--muted); margin: 8px 0; }
.sum-free.ok { color: var(--green); font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; font-size: 19px; font-weight: 800; color: var(--green-dark); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.cart-go { width: 100%; justify-content: center; margin-top: 14px; }
.cart-cont { display: block; text-align: center; margin-top: 12px; color: var(--muted); font-size: 13px; text-decoration: none; }
.cart-cont:hover { color: var(--green); }
.co-main { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.co-main h2 { font-size: 16px; margin: 22px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.co-main h2:first-child { margin-top: 0; }
.co-main label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.co-main input, .co-main textarea { width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-weight: 400; }
.co-main input:focus, .co-main textarea:focus { outline: none; border-color: var(--green-light); }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-pick { border: 1px dashed var(--green); background: #f1f7f3; color: var(--green-dark); border-radius: 9px; padding: 11px 16px; font-weight: 700; cursor: pointer; }
.btn-pick:hover { background: #e7efe9; }
.checkout-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; }
.checkout-steps span { color: var(--muted); padding: 4px 0; }
.checkout-steps span.active { color: var(--green-dark); font-weight: 800; }
.checkout-steps span.done { color: var(--green); }
.checkout-steps span + span::before { content: "›"; margin: 0 8px 0 0; color: var(--line); }
@media (max-width: 860px) {
  .cart-grid, .co-grid { grid-template-columns: 1fr; }
  .cart-summary, .co-summary { position: static; }
}
@media (max-width: 560px) {
  .cart-row { grid-template-columns: 60px 1fr 28px; grid-template-areas: "img name rm" "img qty price"; gap: 8px 12px; }
  .cart-img { grid-area: img; width: 60px; height: 82px; }
  .cart-name { grid-area: name; }
  .cart-qty { grid-area: qty; }
  .cart-price { grid-area: price; text-align: right; align-self: center; }
  .cart-rm { grid-area: rm; }
  .co-row { grid-template-columns: 1fr; }
}
