/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* Podstawowe ustawienia */
body {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

body:not(.home) .site-content {
  margin-top: 160px;
}


h1, h2, h3 {
  font-family: 'Abril Fatface', serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h4, h5, h6 {
  font-family: 'Lora', serif;
  font-weight: 700;
}

nav, .menu, .main-navigation, .button, a, .woocommerce a.button {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-section {
  width: 100vw;
  min-height: 85vh;
  padding: 160px 40px 80px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: url('https://crumblyfudge.com/wp-content/uploads/2025/06/Crumbly-hero-2_upscayl_2x_upscayl-standard-4x.png') center/cover no-repeat;
  margin-left: calc(-50vw + 50%);
  position: relative;
}

.hero-content {
  max-width: 600px;
  margin-right: 5%;
  background-color: rgba(255, 250, 245, 0.88); /* lekka mleczna mgiełka */
  padding: 40px 32px;
  border-radius: 8px;
  text-align: left;
  color: #4b2f1f;
}

.hero-content h1 {
  font-family: 'Abril Fatface', serif;
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-family: 'Lora', serif;
  font-size: 18px;
  margin-bottom: 32px;
  color: #4b2f1f;
}

.hero-content a.cta-button {
  display: inline-block;
  background-color: #4b2f1f;
  color: #f5e9dc;
  padding: 14px 32px;
  text-decoration: none;
  font-family: 'Work Sans', sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.hero-content a.cta-button:hover {
  background-color: #3a2518;
}


/* === STRUKTURA LOGO === */
.site-logo {
  display: inline-block;
  max-width: 100%;
  height: auto;
  margin-right: 20px;
}

.site-logo img {
  display: block;
  width: 264px;
  height: auto;
  max-height: 132px;
  transform: scale(1);
  transition:
    transform 0.6s ease,
    max-height 0.6s ease;
  visibility: visible;
  opacity: 1;
}

/* === LOGO W STICKY HEADERZE === */
body.scrolled .site-logo img {
  max-height: 80px;
}

/* === NAGŁÓWEK DOMYŚLNY – WIDOCZNY NA POCZĄTKU === */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  padding: 30px 40px;

  transition:
    background-color 0.6s ease-in-out,
    box-shadow 0.6s ease-in-out,
    color 0.6s ease-in-out,
    transform 0.6s ease-out,
    opacity 0.6s ease-out,
    padding 0.3s ease;
  transform: translateY(0);
  opacity: 1;
}

/* === HEADER SCHOWANY (SCROLL UP) === */
body.scroll-trigger .site-header {
  transform: translateY(-30px);
  opacity: 0;
}

/* === HEADER STICKY PO SCROLLU === */
body.scrolled .site-header {
  position: fixed;
  background: #fffaf5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
  opacity: 1;
  padding: 0px;
}

body.scrolled .site-logo img {
  max-height: 80px;
  transform: scale(0.92);
}

/* === LINKI MENU === */
.site-header a,
.site-header .main-navigation ul li a {
  color: #4b2f1f;
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* === HOVER + ACTIVE === */
.main-navigation a:hover,
.main-navigation a:focus {
  color: #b48a60;
  text-decoration: none;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: #4b2f1f;
  font-weight: 700;
}

.crumbly-carousel-wrap {
   max-width: 1025px; /* precyzyjna szerokość dla 4 kart + gapy */
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
	  position: relative;
}
/* Mniejsze karty produktów */
.splide__slide.crumbly-product-card {
  max-width: 260px;
}

/* Zmniejszenie odstępów w karuzeli */
.splide__track {
  padding: 0 10px;           /* odstępy wewnętrzne po bokach karuzeli */
  overflow: visible;
}

.splide__slide.crumbly-product-card {
  max-width: 250px;          /* lekko zmniejszona karta (dopasuj wg potrzeb) */
  margin: 0 auto;
}

.splide__slide.is-clone {
  display: none !important;  /* ukrywa duplikaty ze slajdów w trybie loop */
}

.splide__slide {
  flex: 0 0 25%; /* 100% / 4 = 25% */
  box-sizing: border-box;
}
.crumbly-carousel-heading {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.crumbly-carousel-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #ce9728, #ffe196);
  margin-top: 12px;
  border-radius: 2px;
}

.crumbly-carousel-heading .discover {
  font-family: 'Dancing Script', cursive;
  font-size: 48px;
  color: #4b2f1f;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.crumbly-carousel-heading .crumbly {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 600;
	text-transform: uppercase;
  background: linear-gradient(90deg, #ce9728, #f2b93a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Opcjonalna cienka linia pod nagłówkiem (subtelna ozdoba) */

.crumbly-product-card {
  background: #fff; /* czyste białe tło zamiast beżu */
  border: 1px solid #e8e2da; /* delikatna ramka beżowa */
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  max-width: 95%;
  margin: 0 auto;
}

.crumbly-product-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
}

.crumbly-product-card img {
  max-width: 180px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #d8cfc4;
  background: linear-gradient(to bottom, #fefaf6, #f5eee4); /* lekki podkład */
  padding: 6px;
  margin-bottom: 12px;
}

.crumbly-product-title {
  font-family: 'Lora', serif;
  font-size: 16px;
  margin-bottom: 6px;
  color: #4b2f1f;
}

.crumbly-price {
  display: block;
  margin-bottom: 12px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #b48a60;
}

.crumbly-product-card .button {
  background-color: #4b2f1f;
  color: #f5e9dc;
  padding: 10px 20px;
  text-transform: uppercase;
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.crumbly-product-card .button:hover {
  background-color: #6d442d;
}

.crumbly-details-button {
  background-color: transparent;
  border: 2px solid #4b2f1f;
  color: #4b2f1f;
  padding: 10px 22px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
}

.crumbly-details-button:hover {
  background-color: #4b2f1f;
  color: #fffaf5;
}

.crumbly-product-card a {
  text-decoration: none;
}

.crumbly-carousel-heading-wrapper {
  display: flex;
  justify-content: center;
}


.crumbly-carousel-heading span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.crumbly-carousel-heading.animated-in .discover {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.crumbly-carousel-heading.animated-in .crumbly {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

.crumbly-carousel-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #ce9728, #ffe196);
  margin-top: 14px;
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: 1.5s;
}

.crumbly-carousel-heading.animated-in::after {
  opacity: 1;
  transform: scaleX(1);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLine {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}


/* Styl dla sekcji 3-kolumnowej brand storytelling */
/* Styl dla sekcji 3-kolumnowej brand storytelling */
.crumbly-storytelling-compact {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}

/* Nowa siatka dla 3 kolumn */
.story-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.story-compact {
  flex: 0 0 calc(33.333% - 26.67px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.story-image {
  width: 100%;
  margin-bottom: 20px;
}

.story-image img {
  width: 100%;
  height: 360px; /* lub inna wysokość odpowiadająca najwyższemu zdjęciu */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.story-text {
  padding: 0 10px;
}

.story-text h3 {
  font-family: 'Abril Fatface', serif;
  font-size: 24px;
  color: #c28e2f;
  margin-bottom: 14px;
  line-height: 1.3;
}

.story-text p {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: #4b2f1f;
  line-height: 1.6;
}

/* Responsywność */
@media (max-width: 1024px) {
  .story-compact {
    flex: 1 1 48%;
  }
}

@media (max-width: 768px) {
  .story-grid {
    flex-direction: column;
    align-items: center;
  }

  .story-compact {
    flex: 1 1 100%;
    text-align: left;
  }

  .story-text {
    padding: 0 10px;
  }

  .story-image img {
    margin: 0 auto 20px;
  }
}





.crumbly-heritage-section {
  background: #fffaf5;
  padding: 80px 0;
}

.crumbly-story-heading-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.crumbly-story-heading {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.crumbly-story-heading .discover {
  font-family: 'Dancing Script', cursive;
  font-size: 48px;
  color: #4b2f1f;
}

.crumbly-story-heading .crumbly {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 600;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ce9728, #f2b93a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.crumbly-timeline {
  position: relative;
  margin: 40px auto;
  height: 60px;
  max-width: 1000px;
}

.crumbly-timeline-line {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #d5a13e, #f3d089);
  border-radius: 2px;
}

.crumbly-timeline-point {
  position: absolute;
  top: 12px;
  width: 16px;
  height: 16px;
  background: #4b2f1f;
  border-radius: 50%;
  transform: translateX(-50%);
}

.crumbly-timeline-point span {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-family: 'Lora', serif;
  color: #4b2f1f;
}

/* Heritage Row Layout */

.heritage-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.heritage-row.reverse {
  flex-direction: row-reverse;
}

.heritage-image,
.heritage-text {
  flex: 1 1 50%;
  padding: 20px;
}

.heritage-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.heritage-text h3 {
  font-family: 'Abril Fatface', serif;
  font-size: 26px;
  color: #c28e2f;
  margin-bottom: 12px;
}

.heritage-text p {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: #4b2f1f;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 768px) {
  .heritage-row,
  .heritage-row.reverse {
    flex-direction: column;
  }
}





.crumbly-trust-section {
  background-color: #ffffff;
  padding: 60px 20px 60px;
  text-align: center;
  border-top: 1px solid #f2eee7;
  border-bottom: 1px solid #f2eee7;
	 margin-top: 40px;
  margin-bottom: 40px;
}

.trust-heading .title-lead {
  font-family: 'Dancing Script', cursive;
  font-size: 32px;
  color: #b48a60;
  display: block;
  margin-bottom: 10px;
}

.trust-heading .title-main {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  background: linear-gradient(to right, #ce9728, #f2b93a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 40px;
}

.trust-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.trust-icon-box {
  flex: 1 1 260px;
  max-width: 280px;
  padding: 20px;
  border: 1px solid #e8e2da;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.trust-icon-box img {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.trust-icon-box h3 {
  font-family: 'Lora', serif;
  font-size: 18px;
  color: #4b2f1f;
  margin-bottom: 10px;
}

.trust-icon-box p {
  font-family: 'Lora', serif;
  font-size: 15px;
  color: #4b2f1f;
  line-height: 1.6;
}

.trust-reviews {
  max-width: 900px;
  margin: 0 auto;
}

.reviews-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #4b2f1f;
  margin-bottom: 30px;
}

.review-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.review-card {
  background: #ffffff;
  border: 1px solid #e8e2da;
  border-radius: 10px;
  padding: 20px;
  max-width: 280px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  text-align: left;
}

.review-stars {
  font-size: 16px;
  color: #f2b93a;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-card p {
  font-family: 'Lora', serif;
  font-size: 15px;
  color: #4b2f1f;
  line-height: 1.5;
  margin-bottom: 10px;
}

.review-author {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  color: #b48a60;
  font-weight: 600;
}




.crumbly-cta-card {
  position: relative;
  z-index: 1;
  overflow: visible;
  background-color: #fffaf5;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
}




/* Karta CTA */
.cta-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  max-width: 1000px;
  width: 100%;
  padding: 40px;
  gap: 40px;
  flex-wrap: wrap;
  overflow: hidden;
}



.cta-card img {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  flex: 0 0 auto;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cta-card img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.cta-content {
  flex: 1;
}

.cta-content h2 {
  font-family: 'Abril Fatface', serif;
  font-size: 36px;
  color: #c28e2f;
  margin-bottom: 20px;
}

.cta-content p {
  font-family: 'Lora', serif;
  font-size: 18px;
  color: #4b2f1f;
  margin-bottom: 30px;
}

.cta-button {
  background-color: #4b2f1f;
  color: #fffaf5;
  padding: 12px 28px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #6d442d;
}

/* Znaczek promocji */
.promo-badge {
  display: inline-block;
  background: linear-gradient(to right, #ce9728, #f2b93a);
  color: #fffaf5;
  font-weight: 600;
  font-size: 36px;
  padding: 4px 10px;
  margin-left: 10px;
  border-radius: 20px;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.crumbly-cta-image-wrapper {
  position: relative;
  display: inline-block;
}

.cta-timer {
  margin-top: 20px;
  font-family: 'Work Sans', sans-serif;
  font-size: 18px;
  color: #4b2f1f;
  font-weight: 500;
}

.cta-timer .timer-label {
  font-weight: 700;
  color: #c28e2f;
  margin-right: 10px;
}

#crumbly-timer {
  font-size: 20px;
  font-weight: 600;
  color: #4b2f1f;
  background-color: #fff5e5;
  padding: 8px 16px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-family: 'Work Sans', sans-serif;
}


.faq-tab-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: 'Work Sans', sans-serif;
}

.faq-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.faq-tab {
  background: none;
  border: none;
  text-align: center;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.2s ease;
}

.faq-tab img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

.faq-tab span {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #4b2f1f;
}

.faq-tab.active span {
  color: #c28e2f;
}

.faq-group {
  display: none;
}

.faq-group.active {
  display: block;
}

.faq-q {
  background-color: #ffffff;
  border: 1px solid #e7e1d7;
  border-radius: 6px;
  padding: 18px 20px;
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 18px;
  color: #4b2f1f;
  cursor: pointer;
  margin-bottom: 10px;
}

.faq-a {
  background: #fefdfb;
  border-left: 4px solid #c28e2f;
  padding: 16px 20px;
  font-size: 16px;
  color: #4b2f1f;
  margin-bottom: 24px;
  display: none;
}

.faq-heading {
  text-align: center;
  margin-bottom: 50px;
}

.faq-subtitle {
  font-family: 'Lora', serif;
  font-size: 20px;
  color: #4b2f1f;
  font-style: italic;
  margin-bottom: 8px;
}

.faq-title {
  font-family: 'Abril Fatface', serif;
  font-size: 36px;
  color: #c28e2f;
}

.crumbly-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.crumbly-footer-inner > div {
  flex: 1 1 22%;
  min-width: 220px;
}

@media (max-width: 1024px) {
  .crumbly-footer-inner > div {
    flex: 1 1 45%;
  }
}

@media (max-width: 640px) {
  .crumbly-footer-inner > div {
    flex: 1 1 100%;
  }
}


.cfw-quantity-stepper-btn-plus.is-loading::after,
.cfw-quantity-stepper-btn-minus.is-loading::after {
    content: "⏳";
    margin-left: 5px;
    font-size: 12px;
}

/* Stylizacja przycisków side cart */
/* Stylizuj przyciski w stopce Side Carta jak seal-option */
/* Gradientowy styl jak .cf-seal-option.active dla przycisków w side cart */
.xoo-wsc-ft-buttons-cont .xoo-wsc-ft-btn {
  background: linear-gradient(to right, #ce9728, #f2b93a) !important;
  color: #fffaf5 !important;
  border: 2px solid #ce9728 !important;
  padding: 8px 14px !important;
  border-radius: 4px !important;
  font-family: 'Work Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease !important;
  text-transform: none;
  display: inline-block;
  text-align: center;
}

/* Opcjonalnie: efekt hover, np. ciemniejszy gradient */
.xoo-wsc-ft-buttons-cont .xoo-wsc-ft-btn:hover {
  background: linear-gradient(to right, #c0851f, #e3a932) !important;
  color: #fffaf5 !important;
  border-color: #c0851f !important;
}
