/* Prototyp inspirowany rytmem strony Runopol, z własną identyfikacją Grzybek-PL. */
:root {
  --red: #b74832;
  --red-dark: #843321;
  --red-glow: rgba(183,72,50,.2);
  --green: #51694b;
  --dark: #17251c;
  --dark-section: #17251c;
  --cream: #f7f3e9;
  --beige: #eee7d8;
  --border-radius-md: 18px;
  --border-radius-lg: 24px;
}
body { background: var(--cream); }
h1,h2,h3 { letter-spacing: -.035em; }
section { padding-block: clamp(64px, 8vw, 116px); }
.container { max-width: 1390px; }
.section-tag { color: var(--red); letter-spacing: .18em; }
.section-tag::before { background: var(--red); }

.sticky-header { background: rgba(18,34,26,.9); border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: none; }
.sticky-header.scrolled { background: rgba(18,34,26,.97); }
.sticky-header .nav-container { min-height: 82px; }
.logo-area,.desktop-nav a,.menu-toggle { color: #fff; }
.logo-text small { color: #d9e2d3; }
.desktop-nav a:hover { color: #f0c9b7; border-color: #f0c9b7; }
.btn-allegro-nav { background: #b74832; }
.dropdown-content { background: #fffaf1; }

.hero-section {
  min-height: min(860px, 100svh);
  background-image: url('glowne-zdjecia/suszone_grzyby.webp') !important;
  background-position: center 57% !important;
  background-size: cover !important;
  background-attachment: scroll;
}
.hero-section::after { background: linear-gradient(90deg,rgba(9,25,18,.88),rgba(9,25,18,.58) 48%,rgba(9,25,18,.18)),linear-gradient(0deg,rgba(7,20,14,.58),transparent 40%); }
.hero-content-wrapper { min-height: min(780px, 90svh); justify-content: flex-start; padding-block: 150px 120px; }
.hero-text { max-width: 690px; padding: clamp(24px, 4vw, 58px); border: 1px solid rgba(255,255,255,.18); background: rgba(13,27,20,.68); box-shadow: 0 26px 70px rgba(0,0,0,.18); backdrop-filter: blur(6px); }
.hero-text .hero-h1 { color: #d5e4ce; font-size: .77rem; letter-spacing: .2em; }
.hero-text .hero-tagline { color: #fffaf1; font-size: clamp(3.8rem, 7vw, 7.2rem); line-height: .98; max-width: 9ch; }
.hero-text .hero-tagline span { color: #eeb79c; }
.hero-text p:not(.hero-tagline) { max-width: 52ch; color: #f2f0e8; font-size: 1.05rem; }
.hero-buttons .btn { min-height: 56px; }
.btn-primary,.detail-buy-btn,.btn-small-allegro { background: var(--red); }
.btn-primary:hover,.detail-buy-btn:hover,.btn-small-allegro:hover { background: var(--red-dark); }
.btn-outline-white { border-color: rgba(255,255,255,.8); }

.allegro-premium { margin-top: -56px; border: 1px solid #e9ddcb; border-radius: 16px; box-shadow: 0 18px 50px rgba(27,36,25,.12); }
.allegro-premium h3 { font-size: clamp(1.6rem, 2.4vw, 2.4rem); }
.overlap-image { height: clamp(400px, 42vw, 580px); border-radius: 10px; }
.overlap-image img { object-fit: cover; }
.overlap-card { padding: clamp(30px, 5vw, 70px); border-radius: 12px; box-shadow: 0 20px 50px rgba(18,37,24,.13); }
.overlap-card h2 { font-size: clamp(2rem, 3vw, 3.3rem); }
.section-dark { background: #18271e; }
.section-dark .section-tag { color: #e7b599; }
.section-dark .section-tag::before { background: #e7b599; }
.section-dark h2 { font-size: clamp(2.4rem, 4.5vw, 5rem); margin-bottom: 28px; }
.category-masonry { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
#homeCategoryGrid .cat-card-premium { position: relative; min-height: 360px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: #243a2c; box-shadow: none; }
#homeCategoryGrid .cat-card-img { position: absolute; inset: 0; height: 100%; background: #253a2c; }
#homeCategoryGrid .cat-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(9,22,15,.9),rgba(9,22,15,.05) 74%); }
#homeCategoryGrid .cat-card-img img { transition: transform .65s ease; }
#homeCategoryGrid .cat-card-body { position: relative; z-index: 1; justify-content: flex-end; padding: 25px; color: #fff; }
#homeCategoryGrid .cat-card-body h3 { font-size: 1.5rem; color: #fff !important; }
#homeCategoryGrid .cat-card-body p { flex: none; color: #eee9dc !important; }
#homeCategoryGrid .cat-card-premium:hover { transform: translateY(-5px); }
#homeCategoryGrid .cat-card-premium:hover .cat-card-img img { transform: scale(1.07); }

.features-row { gap: 16px; }
.feature-item { border: 1px solid #e5dac8; border-radius: 12px; box-shadow: none; }
.review-card,.faq-item,.poradnik-card { border-radius: 12px; }
.gallery-tile { border-radius: 10px; }
footer { background: #121e17; }

#categoryPage .overlap-image { height: 430px; }
#categoryPage .overlap-card { background: #fffaf1; }
#categoryPage .cat-title { font-size: clamp(2.3rem, 4.4vw, 4.7rem); }
#categoryPage #catDesc { max-width: 60ch; }
.prototype-catalog-tools { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-top: 70px; padding: 30px 0; border-top: 1px solid #dacbb6; border-bottom: 1px solid #dacbb6; }
.prototype-catalog-tools[hidden] { display: none !important; }
.prototype-catalog-tools h2 { color: var(--dark); font-size: clamp(2rem,3.2vw,3.2rem); }
.prototype-catalog-tools p { margin: 8px 0 0; color: #5f665d; }
.prototype-search-row { display: flex; align-items: end; gap: 12px; }
.prototype-search-label { display: grid; gap: 6px; min-width: min(360px,35vw); color: #475648; font-size: .84rem; font-weight: 700; }
.prototype-search-label input { width: 100%; min-height: 54px; padding: 12px 18px; border: 1px solid #bdc5b7; border-radius: 8px; background: #fffdf8; color: #17251c; font: inherit; font-size: 1rem; }
.prototype-search-label input:focus-visible { outline: 3px solid #d68c70; outline-offset: 2px; }
.prototype-search-row .btn { white-space: nowrap; min-height: 54px; border-radius: 8px; }
#productGrid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
#productGrid .cat-card-premium { border-radius: 12px; border: 1px solid #e6ddce; box-shadow: 0 4px 16px rgba(20,35,22,.06); }
#productGrid .cat-card-img { height: 215px; }
#productGrid .cat-card-body h3 { font-size: 1.13rem; }
#productGrid .btn-small-allegro { border-radius: 8px; }
.prototype-empty { grid-column: 1/-1; padding: 46px; border: 1px dashed #b8c5b4; border-radius: 12px; text-align: center; color: #4f604f; background: #fffaf1; }

@media (max-width: 1050px) {
  .category-masonry,#productGrid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .prototype-catalog-tools { align-items: stretch; flex-direction: column; }
  .prototype-search-row { width: 100%; }
  .prototype-search-label { flex: 1; min-width: 0; }
}
@media (max-width: 768px) {
  .sticky-header { background: #17251c !important; border-color: rgba(255,255,255,.13); }
  .sticky-header .logo-area { color: #fff; }
  .hero-section { min-height: 620px !important; padding: 104px 0 70px !important; background-position: 57% center !important; }
  .hero-section::after { background: linear-gradient(90deg,rgba(9,25,18,.84),rgba(9,25,18,.32)),linear-gradient(0deg,rgba(9,25,18,.58),transparent 65%); }
  .hero-content-wrapper { min-height: 0; padding: 0 !important; }
  .hero-text { padding: 26px 22px; max-width: 100%; background: rgba(11,28,19,.72); backdrop-filter: none; }
  .hero-text .hero-tagline { font-size: clamp(3.1rem, 11.5vw, 4.8rem); max-width: 10ch; }
  .hero-text p:not(.hero-tagline) { font-size: .96rem; }
  .allegro-premium { border-radius: 12px; }
  .overlap-image { height: 300px !important; }
  .overlap-card { width: calc(100% - 24px); margin-top: -38px !important; border-radius: 10px !important; }
  .section-dark h2 { font-size: clamp(2.3rem,9vw,3.8rem); }
  .category-masonry { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #homeCategoryGrid .cat-card-premium { min-height: 260px; border-radius: 10px; }
  #homeCategoryGrid .cat-card-body { padding: 16px !important; }
  #homeCategoryGrid .cat-card-body h3 { font-size: 1.12rem !important; }
  #homeCategoryGrid .cat-card-body p { font-size: .77rem; }
  #categoryPage .overlap-image { height: 235px !important; }
  #categoryPage .cat-title { font-size: clamp(2rem,7vw,3.2rem) !important; }
  .prototype-catalog-tools { margin-top: 44px; padding: 24px 0; }
  .prototype-search-row { flex-direction: column; align-items: stretch; }
  .prototype-search-label { width: 100%; }
  .prototype-search-row .btn { width: 100%; justify-content: center; }
  #productGrid.category-masonry { grid-template-columns: 1fr !important; }
  #productGrid .cat-card-premium { display: grid; grid-template-columns: minmax(105px,32%) minmax(0,1fr); min-height: 145px; }
  #productGrid .cat-card-img { height: 100% !important; min-height: 145px; }
  .bottom-nav-mobile { background: #fffaf1 !important; }
}
@media (max-width: 390px) {
  #homeCategoryGrid .cat-card-premium { min-height: 230px; }
  #homeCategoryGrid .cat-card-body h3 { font-size: 1rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  #homeCategoryGrid .cat-card-premium:hover .cat-card-img img { transform: none; }
}

/* Kierunek końcowy: immersyjny las, mocna typografia i zieleń. */
:root {
  --red: #527b28;
  --red-dark: #36591c;
  --red-glow: rgba(82,123,40,.22);
  --green: #6b9636;
  --dark: #17261c;
  --dark-section: #17241b;
  --cream: #f5f4ed;
  --beige: #e9ecdf;
  --font-display: 'Inter', system-ui, sans-serif;
}
body { background: #f5f4ed; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.045em; }
.section-tag,.reviews-header .reviews-sub { color: #5f8734; }
.section-tag::before { background: #5f8734; }
.sticky-header { background: rgba(13,31,21,.78); backdrop-filter: blur(12px); }
.sticky-header.scrolled { background: rgba(13,31,21,.97); }
.prototype-topline { display: flex; justify-content: space-between; gap: 20px; padding: 6px max(28px,calc((100vw - 1334px)/2)); border-bottom: 1px solid rgba(255,255,255,.12); color: #d8e4d0; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.prototype-topline a { color: inherit; text-decoration: none; }
.prototype-topline a:hover { color: #b9e487; }
.sticky-header .logo-text { font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em; }
.sticky-header .logo-img-wrapper { display: none; }
.sticky-header .logo-area::before { content: '✦'; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(185,228,135,.72); border-radius: 50%; color: #b9e487; font-size: 1rem; }
.desktop-nav a { color: #f4f6ef; font-weight: 650; }
.desktop-nav a:hover { color: #b9e487; border-color: #b9e487; }
.btn-allegro-nav,.btn-primary,.detail-buy-btn,.btn-small-allegro,.cookie-banner .cookie-btn-accept { background: #5a862b !important; color: #fff !important; box-shadow: 0 8px 20px rgba(34,67,21,.17); }
.btn-allegro-nav:hover,.btn-primary:hover,.detail-buy-btn:hover,.btn-small-allegro:hover { background: #3d641f !important; }
.btn,.btn-allegro-nav,.btn-small-allegro,.detail-buy-btn { border-radius: 6px; }
.btn-outline-white { border-radius: 6px; }

.hero-section { min-height: 100svh; background-image: url('prototype-assets/forest-hero.webp') !important; background-position: center center !important; }
.hero-section::after { background: linear-gradient(180deg,rgba(7,20,13,.28),rgba(7,20,13,.3) 45%,rgba(7,20,13,.57)); }
.hero-content-wrapper { min-height: 100svh; justify-content: center; text-align: center; padding: 140px 0 100px; }
.hero-text { width: min(850px, 100%); max-width: none; padding: clamp(32px,4.4vw,68px); background: rgba(9,23,15,.78); border: 1px solid rgba(220,245,204,.21); box-shadow: 0 30px 80px rgba(4,17,9,.32); }
.hero-text .hero-h1 { margin: 0 0 18px; color: #bde3a0; font-size: .8rem; font-weight: 700; letter-spacing: .22em; }
.hero-text .hero-tagline { max-width: none; margin: 0 auto 20px; font-size: clamp(3.2rem,6.2vw,6rem); line-height: 1.02; font-family: var(--font-display); font-weight: 800; }
.hero-text .hero-tagline span { color: #a8d96e; font-style: normal; }
.hero-text p:not(.hero-tagline) { margin-inline: auto; max-width: 58ch; font-size: clamp(1rem,1.5vw,1.18rem); line-height: 1.65; }
.hero-buttons { justify-content: center; }
.hero-buttons .btn-outline-white { border-color: rgba(255,255,255,.72); }
.allegro-premium { margin-top: -42px; border-radius: 6px; }
.allegro-premium .section-tag { color: #5f8734; }
.prototype-text-link { display: inline-flex; gap: 12px; margin-top: 18px; color: #4b7226; font-weight: 800; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 4px; }
.prototype-text-link:hover { color: #274d1a; }
.overlap-image { border-radius: 4px; }
.overlap-card { border-radius: 4px; }
.overlap-card p { font-size: 1.02rem; line-height: 1.75; }
.section-dark { background: #14251b; }
.section-dark .section-tag { color: #a8d96e; }
.section-dark .section-tag::before { background: #a8d96e; }
.prototype-section-lead { max-width: 700px; margin: 0 0 30px; color: #d2ded1 !important; font-size: 1.05rem; }
#homeCategoryGrid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
#homeCategoryGrid .cat-card-premium { min-height: 390px; border-radius: 3px; }
#homeCategoryGrid .cat-card-body { padding: 29px; }
#homeCategoryGrid .cat-card-body h3 { font-size: clamp(1.35rem,2vw,1.8rem); }
#homeCategoryGrid .cat-card-body::after { content: 'ZOBACZ OFERTĘ  ↗'; display: block; margin-top: 15px; color: #b8e38a; font-size: .7rem; letter-spacing: .14em; font-weight: 800; }
.prototype-forest-break { position: relative; min-height: 570px; display: flex; align-items: center; background: linear-gradient(90deg,rgba(8,29,16,.92),rgba(8,29,16,.45)),url('prototype-assets/forest-hero.webp') center 57% / cover; color: #fff; }
.prototype-forest-content { padding-block: 90px; }
.prototype-forest-content .section-tag { color: #b5df88; }
.prototype-forest-content .section-tag::before { background: #b5df88; }
.prototype-forest-content h2 { max-width: 12ch; font-size: clamp(2.7rem,5.6vw,6rem); line-height: 1.02; }
.prototype-forest-content p { max-width: 56ch; margin: 20px 0 27px; color: #e3ede0; }
#homePage > section:nth-of-type(4) { background: #edf0e7 !important; }
.feature-item { border-radius: 3px; background: #fff; }
.feature-item i { color: #5e8334 !important; }
.reviews-grid .review-card,.faq-item,.poradnik-card { border-radius: 4px; }
.reviews-meta .stars,.review-stars { color: #669334; }
.gallery-tile { border-radius: 3px; }
.prototype-gallery-note { max-width: 65ch; color: #606b60; }
#categoryPage .overlap-card { background: #f8f9f3; }
#categoryPage .overlap-image { border-radius: 4px; }
.prototype-catalog-tools { border-color: #cbd4c2; }
.prototype-search-label input { border-color: #b7c7ac; }
#productGrid .cat-card-premium { border-radius: 4px; }
#productGrid .btn-small-allegro { border-radius: 4px; }
.grzybekbot-fab { border-color: #5b842f; }
.grzybekbot-header,.grzybekbot-msg.user .grzybekbot-bubble,.grzybekbot-msg .grzybekbot-msg-avatar { background: #486f28; }
.grzybekbot-header .grzybekbot-avatar { background: #f8f8ee; }
.bottom-nav-mobile .nav-tab.active { color: #4e7a2b; }

.js-motion .proto-reveal { opacity: 0; transform: translateY(24px); }
.js-motion .proto-reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .7s ease,transform .7s cubic-bezier(.2,.75,.2,1); }
.js-motion #homeCategoryGrid .proto-reveal:nth-child(3n+2).is-visible { transition-delay: .08s; }
.js-motion #homeCategoryGrid .proto-reveal:nth-child(3n+3).is-visible { transition-delay: .16s; }

@media (max-width: 768px) {
  .sticky-header { background: rgba(11,29,19,.94) !important; }
  .prototype-topline { display: none; }
  .sticky-header .nav-container { min-height: 68px !important; }
  .sticky-header .logo-text { color: #fff; }
  .sticky-header .menu-toggle { display: flex !important; color: #fff; margin-left: auto; }
  .sticky-header .desktop-nav { display: none !important; }
  .mobile-menu { position: fixed; z-index: 1001; inset: 68px 0 auto; max-height: calc(100dvh - 68px); overflow-y: auto; margin: 0; padding: 18px 24px 30px; background: #f7f8ef; box-shadow: 0 16px 35px rgba(0,0,0,.25); border-radius: 0; }
  .mobile-menu.show { display: flex !important; }
  .mobile-menu a { color: #213821; border-color: #dce7d4; }
  .bottom-nav-mobile { display: none !important; }
  .hero-section { min-height: 100svh !important; padding: 88px 0 50px !important; background-position: 50% center !important; }
  .hero-content-wrapper { min-height: calc(100svh - 138px); display: flex; align-items: center !important; justify-content: center; text-align: center !important; padding: 0 !important; }
  .hero-text { padding: 30px 22px; text-align: center; background: rgba(9,23,15,.78); }
  .hero-text .hero-h1 { font-size: .7rem; letter-spacing: .16em; }
  .hero-text .hero-tagline { max-width: none; font-size: clamp(2.6rem,11vw,4.5rem); }
  .hero-buttons { align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .allegro-premium { margin-top: -24px !important; }
  .overlap-image { height: 300px !important; }
  #homeCategoryGrid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  #homeCategoryGrid .cat-card-premium { min-height: 265px; }
  #homeCategoryGrid .cat-card-body { padding: 16px !important; }
  #homeCategoryGrid .cat-card-body h3 { font-size: 1.12rem !important; }
  #homeCategoryGrid .cat-card-body::after { font-size: .58rem; }
  .prototype-forest-break { min-height: 450px; }
  .prototype-forest-content h2 { font-size: clamp(2.55rem,10vw,4rem); }
  .grzybekbot-fab { bottom: 16px !important; }
  footer { padding-bottom: 44px !important; }
  .cookie-banner { padding-bottom: 20px !important; }
  #productGrid .cat-card-premium { grid-template-columns: minmax(105px,32%) minmax(0,1fr); }
}
@media (max-width: 390px) {
  #homeCategoryGrid .cat-card-premium { min-height: 235px; }
  #homeCategoryGrid .cat-card-body h3 { font-size: 1rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .js-motion .proto-reveal,.js-motion .proto-reveal.is-visible { opacity: 1; transform: none; transition: none; }
}
