/* Product Detail Page Styles - Organic Design */
:root {
  --primary-font: 'Sentinel-Book', serif;
  --secondary-font: 'Freude', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --border-radius-large: 20px;
}

/* Base Styles */
/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */

/* body {
  font-family: var(--primary-font);
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  background: var(--product-color, #4B78B8);
  position: relative;
  min-height: 100vh;
} */

/* Organic Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

body {
  background-color: #F6DFCD;
}

.social-feed-container-wrapper {
    margin-top: -50px !important;
}

/* Header */
.product-header {
  background: var(--product-color, #4B78B8);
  color: white;
  padding: 4rem 0 6rem 0;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Organic Wave Shapes */
.product-header::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 200px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200" fill="white"><path d="M0,150 C300,50 600,150 1200,100 L1200,200 L0,200 Z"/></svg>');
  background-size: cover;
  background-repeat: no-repeat;
}

.product-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="organic" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23organic)"/></svg>');
  opacity: 0.3;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.product-title {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out forwards;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.product-subtitle {
  font-size: 1.4rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out 0.2s forwards;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* Speech Bubble Brand Element */
.speech-bubble {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 120px;
  height: 100px;
  opacity: 0;
  animation: floatIn 1s ease-out 0.5s forwards;
}

.speech-bubble svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* Hero Section */
.hero-section {
  background: white;
  padding: 6rem 0;
  position: relative;
  margin-top: -100px;
}

/* Organic Wave Transition */
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100" fill="white"><path d="M0,0 C300,100 600,0 1200,50 L1200,100 L0,100 Z"/></svg>');
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.hero-image {
  position: relative;
  opacity: 0;
  transform: scale(0.8) rotate(-5deg);
  animation: scaleIn 1s ease-out 0.5s forwards;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-smooth);
  transform: rotate(5deg);
}

/* Organic Background for Hero Image */
.hero-image::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  right: 30px;
  bottom: 30px;
  background: var(--product-color);
  border-radius: 40px;
  z-index: -1;
  opacity: 0.1;
  transform: rotate(-3deg);
}

.hero-content {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1s ease-out 0.7s forwards;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  color: #555;
}

.product-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--product-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--product-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Product Details */
.product-details {
  padding: 6rem 0;
  background: white;
  position: relative;
}

/* Organic Wave Dividers */
.product-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100" fill="%23f8f9fa"><path d="M0,0 C400,100 800,0 1200,50 L1200,100 L0,100 Z"/></svg>');
  background-size: cover;
  background-repeat: no-repeat;
}

.details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

/* Ingredients Section */
.ingredients-section {
  background: #f8f9fa;
  padding: 3rem;
  border-radius: 30px;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out 1s forwards;
  position: relative;
  overflow: hidden;
}

.ingredients-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--product-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--product-color);
  border-radius: 2px;
}

.ingredients-list {
  list-style: none;
  margin-bottom: 2rem;
}

.ingredients-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  padding-left: 2rem;
  transition: var(--transition-smooth);
}

/* .ingredients-list li:hover {
  padding-left: 2.5rem;
  color: var(--product-color);
} */

.ingredients-list li::before {
  content: '🍃';
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.allergens {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 20px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
}

.allergens::before {
  content: '⚠️';
  position: absolute;
  top: -10px;
  left: 20px;
  background: white;
  padding: 5px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.allergens-title {
  font-weight: 700;
  color: #856404;
  margin-bottom: 1rem;
}

.allergens-list {
  list-style: none;
  color: #856404;
}

.allergens-list li {
  display: inline-block;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  margin: 0.25rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Nutrition Section */
.nutrition-section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 2rem;
  opacity: 1;
  transform: none;
  animation: none;
  position: relative;
}

.nutrition-section::before {
  display: none;
}

.nutrition-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--product-color);
  margin-bottom: 1.5rem;
  position: relative;
}

.nutrition-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.nutrition-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 0.8rem 0; */
  /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
}

.nutrition-item:last-child {
  border-bottom: none;
}

.nutrition-label {
  font-weight: 500;
  color: var(--product-color);
}

.nutrition-value {
  font-weight: 600;
  color: var(--product-color);
}

/* Instructions Section */
.instructions-section {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out 1.4s forwards;
}

.instructions-list {
  list-style: none;
  counter-reset: step-counter;
}

.instructions-list li {
  counter-increment: step-counter;
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  padding-left: 5rem;
  transition: var(--transition-smooth);
  border-left: 4px solid transparent;
}

/* .instructions-list li:hover {
  transform: translateX(15px);
  box-shadow: var(--shadow-medium);
  border-left-color: var(--product-color);
} */

.instructions-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: var(--product-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Tips Section */
.tips-section {
  background: var(--product-color-light);
  padding: 2.5rem;
  border-radius: 30px;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out 1.6s forwards;
  position: relative;
  overflow: hidden;
}

.tips-section::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--product-color);
  border-radius: 50%;
  opacity: 0.1;
}

.tips-list {
  list-style: none;
}

.tips-list li {
  padding: 1rem 0;
  padding-left: 3rem;
  position: relative;
  transition: var(--transition-smooth);
}

/* .tips-list li:hover {
  transform: translateX(10px);
} */

.tips-list li::before {
  content: '💡';
  position: absolute;
  left: 0;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Charity Section */
.charity-section {
  background: linear-gradient(135deg, var(--product-color) 0%, var(--product-color-dark) 100%);
  color: white;
  padding: 3rem;
  border-radius: 30px;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out 1.8s forwards;
  position: relative;
  overflow: hidden;
}

.charity-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite reverse;
}

.charity-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.charity-description {
  margin-bottom: 2rem;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

.charity-impact {
  font-style: italic;
  background: rgba(255, 255, 255, 0.15);
  padding: 1.5rem;
  border-radius: 20px;
  border-left: 5px solid white;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.charity-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
}

/* .charity-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
} */

/* Buy Section */
.buy-section {
  background: white;
  padding: 3rem;
  border-radius: 30px;
  box-shadow: var(--shadow-medium);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out 2s forwards;
  position: relative;
  overflow: hidden;
}

.buy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--product-color), var(--product-color-light), var(--product-color));
  background-size: 200% 100%;
  animation: gradientMove 3s ease-in-out infinite;
}

.buy-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--product-color);
}

.buy-price {
  font-size: 4rem;
  font-weight: 700;
  color: var(--product-color);
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.buy-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 350px;
  margin: 0 auto;
}

.buy-button {
  display: inline-block;
  padding: 1.2rem 2rem;
  background: var(--product-color);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 700;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.buy-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

/* Animations */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

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

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Floating Animation */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .product-title {
    font-size: 3rem;
  }
  
  .hero-section,
  .product-details {
    padding: 3rem 0;
  }
  
  .ingredients-section,
  .charity-section,
  .buy-section {
    padding: 2rem;
  }
  
  .product-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .speech-bubble {
    width: 80px;
    height: 70px;
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .header-content,
  .hero-container,
  .details-container {
    padding: 0 1rem;
  }
  
  .product-title {
    font-size: 2.5rem;
  }
  
  .product-stats {
    grid-template-columns: 1fr;
  }
  
  .instructions-list li {
    padding-left: 4rem;
  }
  
  .speech-bubble {
    display: none;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--product-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Header animation improvements */
#header {
  transition: opacity 0.3s ease-out !important;
  will-change: opacity;
}

/* PDP HERO SECTION */
.pdp-hero {
  background: var(--product-color, #4B78B8);
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* New flexbox container for hero main content */
.pdp-hero-main {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 4rem 2vw;
  min-height: 100vh;
}

.pdp-hero-visuals {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

.pdp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3vw 0 3vw;
  background: transparent;
  position: relative;
  z-index: 10;
}

.pdp-logo img {
  height: 60px;
}

.pdp-nav {
  display: flex;
  gap: 2rem;
}

.pdp-menu-btn {
  background: #fff;
  color: var(--product-color, #4B78B8);
  border: none;
  border-radius: 25px;
  padding: 0.8em 1.5em;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s;
}

.pdp-topbar-scroll-text {
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 100vw;
  text-align: center;
  font-family: var(--secondary-font, 'Freude', sans-serif);
  font-size: 1.1rem;
  color: #fff;
  opacity: 0.7;
  letter-spacing: 0.1em;
  white-space: nowrap;
  z-index: 5;
}

.pdp-hero-center-img-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.pdp-hero-center-img {
  width: 460px;
  max-width: 60vw;
  filter: none;
  padding: 1.5rem;
}

.pdp-hero-content {
  flex: 1;
  text-align: center;
  color: #F3DECA;
  max-width: 700px;
}

.pdp-hero-title {
  font-family: var(--secondary-font, 'Freude', sans-serif);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.pdp-hero-desc {
  font-family: var(--secondary-font, 'Freude', sans-serif);
  font-weight: 100;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #F3DECA;
  /* opacity: 0.95; */
  text-align: center;
  /* line-height: 1.6; */
}

.pdp-hero-usps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6rem;
  margin-top: 5em;
  position: relative;
  z-index: 999;
}

.pdp-usp {
  /* background: #fff; */
  background-image: url('https://storypies.nl/wp-content/uploads/2025/07/Ellipse-18.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--product-color, #4B78B8);
  border-radius: 18px;
  font-weight: 700;
  font-size: 18px;
  padding: 0.7em 1.5em;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.07); */
  display: flex;
  align-items: center;
  width: 160px; 
  height: 160px;
  justify-content: center;
}

.pdp-usp:nth-child(2) {
  background-image: url('https://storypies.nl/wp-content/uploads/2025/07/Ellipse-19.svg');
}

.pdp-usp:nth-child(3) {
    background-image: url('https://storypies.nl/wp-content/uploads/2025/07/Ellipse-20.svg');
  }

.pdp-usp-charity {
  /* background: transparent; */
  box-shadow: none;
  padding: 0;
}

.pdp-usp-charity img {
  height: 60px;
  width: auto;
  display: block;
}



/* Swung divider styling */
.pdp-swung-divider {
  position: relative;
  width: 100vw;
  margin: 0;
  padding: 0;
  z-index: 5;
  line-height: 0;
  left: 50%;
  transform: translateX(-50%);
}

.pdp-swung-divider svg {
  width: 100vw;
  height: 100%;
  display: block;
  margin: 0;
  padding: 0;
}

/* PDP INFO SECTION */
.pdp-info-section {
  background: #F6DFCD;
  position: relative;
  z-index: 10;
  margin-top: -1px; /* Perfect connection with swung divider */
  padding-bottom: 4vw;
  padding-top: 4vw;
}

.pdp-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 1vw;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2vw 0 2vw;
  align-items: stretch; /* Make all items stretch to match tallest in row */
}

/* Make preparation section span into third row */
.pdp-info-preparation {
  /* grid-row: 2 / 4; Span from row 2 to row 4 (covers row 2 and 3) */
}

/* Make CTA section span full width */
.pdp-info-preparation-continued {
  grid-column: 1 / -1; /* Span from first to last column */
  grid-row: 3; /* Place in third row */
}

.pdp-info-left, .pdp-info-right {
  display: flex;
  flex-direction: column;
  gap: 2vw;
  height: 100%; /* Ensure full height */
}

.pdp-info-box {
  background: #FFF6EE;
  border-radius: 22px;
  padding: 2.2rem 2rem 2rem 2rem;
  /* box-shadow: 0 2px 12px rgba(0,0,0,0.04); */
  height: 100%; /* Take full height of grid cell */
  display: flex;
  flex-direction: column;
}

.dotted-box {
  outline: 2px dotted var(--border-color, var(--product-color, #3B79BD));
  outline-offset: -7px;
}

.pdp-info-tips, .pdp-info-preparation {
  background: var(--product-color, #4B78B8) !important;
  color: #3B79BD !important;
  border: none;
}

/* Color styling for the new grid structure */
.pdp-info-heart h2, .pdp-info-heart p, 
.pdp-info-ingredients h2, .pdp-info-ingredients li, .pdp-info-ingredients strong, .pdp-info-ingredients td,
.pdp-info-nutrition h2, .pdp-info-nutrition td {
  color: var(--product-text-color-dark, #3B79BD);
}

.pdp-info-tips h2, .pdp-info-tips li,
.pdp-info-preparation h2, .pdp-info-preparation li, .pdp-info-preparation-continued h2, .pdp-info-preparation-continued p {
  color: var(--product-text-color, #F3DECA);
}

.pdp-info-box h2 {
  font-size: 1.8rem;
  font-family: var(--secondary-font, 'Freude', sans-serif);
  margin-bottom: 1rem;
  font-weight: 700;
}

.pdp-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.pdp-info-header h2 {
  margin-bottom: 0;
  flex: 1;
}

.pdp-charity-logo {
  width: 60px;
  height: auto;
  margin-left: 1rem;
  flex-shrink: 0;
}

.pdp-info-box .btn-stop-motion {
    width: 150px;
    margin: 0 auto;
    margin-top: 3em;
}

.pdp-info-box p, .pdp-info-box li, .pdp-info-box span {
  font-family: var(--primary-font, 'Sentinel', sans-serif);
  font-size: 16px;
  line-height: 22px;
  color: var(--product-color, #4B78B8);
}

.pdp-info-box h2 {
  color: var(--product-color, #4B78B8);
}

.pdp-ingredients-list, .pdp-tips-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.pdp-ingredients-list li {
  margin-bottom: 0.5rem;
  font-size: 18px;
  line-height: nomal;
  color: var(--ingredient-color, var(--product-color, #4B78B8));
}

.pdp-preparation-list {
  padding: 0 20px;
  line-height: 25px;
}

.pdp-tips-list li, .pdp-preparation-list li {
  color: var(--product-text-color);
}

.pdp-info-tips h2, .pdp-info-preparation h2 {
  color: var(--product-text-color)
}

.pdp-allergens {
    background-color: #FFECDA;
    margin-top: 0.5rem;
    font-size: 0.98rem;
    padding: 20px;
    border-radius: 12px;
    color: var(--product-text-color, #F3DECA);
    font-weight: 600;
}

.pdp-allergen {
  /* display: inline-block; */
  background: #f6dfcd;
  color: var(--product-text-color-dark, #4B78B8);
  border-radius: 12px;
  padding: 0.2em 0.9em;
  margin-right: 0.5em;
  font-size: 0.95em;
  font-weight: 600;
}

.pdp-nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
}

.pdp-nutrition-table td {
  padding: 0.4em 0.7em;
  border-bottom: 1px solid var(--border-color, #f6dfcd);
  color: var(--product-text-color-dark, #3B79BD);
}

.pdp-nutrition-table tr:last-child td {
  border-bottom: none;
}

/* Responsive for screen height */
@media (max-height: 1000px) {
  .pdp-hero-center-img {
    width: 350px;
    max-width: 50vw;
  }
  
  .pdp-float-5,
  .pdp-float-6 {
    display: none;
  }
  

}

/* Responsive */
@media (max-width: 900px) {
  .pdp-info-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 4vw;
    align-items: stretch; /* Keep stretch behavior on mobile */
    padding: 0 4vw 0 4vw;
    box-shadow: none;
  }
  .pdp-info-preparation {
    grid-row: auto; /* Reset grid-row on mobile */
  }
  .pdp-info-preparation-continued {
    grid-column: 1; /* Reset to single column on mobile */
    grid-row: auto;
  }
  .pdp-info-box {
    height: auto; /* Allow natural height on mobile */
  }
  .pdp-info-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .pdp-charity-logo {
    width: 50px;
    margin-left: 0;
    align-self: flex-end;
  }
  .pdp-cta-button {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }
  .pdp-hero-main {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    padding: 1rem 2vw;
  }
  .pdp-hero-content {
    text-align: center;
    max-width: 100%;
  }
  .pdp-hero-usps {
    justify-content: center;
  }
  .pdp-hero-center-img {
    width: 300px;
    max-width: 80vw;
  }
  
  /* Hide additional floating images on mobile */
  .pdp-float-5,
  .pdp-float-6 {
    display: none;
  }
  .pdp-swung-divider svg {
    height: 120px; /* Maintain consistent height */
  }
  .pdp-info-section {
    margin-top: -1px; /* Keep perfect connection */
  }
  /* Smaller sizes but still different for each floating image */
  .pdp-float-1 { width: 80px; filter: blur(6px) brightness(1.1) saturate(1.1); }
  .pdp-float-2 { width: 60px; filter: blur(3px) brightness(1.1) saturate(1.1); }
  .pdp-float-3 { width: 70px; filter: blur(4px) brightness(1.1) saturate(1.1); }
  .pdp-float-4 { width: 50px; filter: blur(7px) brightness(1.1) saturate(1.1); }
  .pdp-float-5 { width: 65px; filter: blur(4px) brightness(1.1) saturate(1.1); }
  .pdp-float-6 { width: 55px; filter: blur(6px) brightness(1.1) saturate(1.1); }
}
@media (max-width: 600px) {
  .pdp-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2vw 0 2vw;
  }
  .pdp-hero-main {
    gap: 1.5rem;
    padding: 0.5rem 2vw;
    margin-top: 10em;
  }
  h2 {
    font-size: 24px !important;
  }
  .pdp-hero-title {
    font-size: 1.8rem;
  }
  .pdp-hero-desc {
    font-size: 1.1rem;
  }
  .pdp-hero-center-img {
    width: 270px;
    max-width: 90vw;
  }
  .pdp-usp {
    width: 100px;
    height: 100px;
  }
  .pdp-usp-charity img {
    width: auto;
    height: 40px;
  }
  .pdp-swung-divider svg {
    height: 120px; /* Maintain consistent height */
  }
  .pdp-info-section {
    margin-top: -1px; /* Keep perfect connection */
  }
  .pdp-allergens strong {
    line-height: 30px;
  } 
  /* Even smaller sizes for mobile */
  .pdp-float-1 { width: 50px; filter: blur(4px) brightness(1.1) saturate(1.1); }
  .pdp-float-2 { width: 40px; filter: blur(2px) brightness(1.1) saturate(1.1); }
  .pdp-float-3 { width: 45px; filter: blur(3px) brightness(1.1) saturate(1.1); }
  .pdp-float-4 { width: 35px; filter: blur(5px) brightness(1.1) saturate(1.1); }
  .pdp-float-5 { width: 42px; filter: blur(3px) brightness(1.1) saturate(1.1); }
  .pdp-float-6 { width: 38px; filter: blur(4px) brightness(1.1) saturate(1.1); }
  .pdp-hero-usps {
    gap: 1rem;
    flex-wrap: wrap;
  }
  .pdp-info-box {
    padding: 1.2rem 1rem 1rem 1rem;
  }
  
  /* Hide additional floating images on small mobile */
  .pdp-float-5,
  .pdp-float-6 {
    display: none;
  }
}

.pdp-float-img {
  position: absolute;
  max-width: 30vw;
  filter: brightness(1.1) saturate(1.1);
  opacity: 0.7;
  z-index: 2;
  pointer-events: none;
  transition: filter 0.3s;
}

/* Different sizes and blur effects for each floating image */
.pdp-float-1 { 
  top: 10%; 
  left: 18%; 
  transform: rotate(-12deg);
  width: 260px;
  filter: blur(8px) brightness(1.1) saturate(1.1);
}

.pdp-float-2 { 
  top: 70%; 
  left: 10%; 
  transform: rotate(8deg);
  width: 220px;
  filter: blur(4px) brightness(1.1) saturate(1.1);
}

.pdp-float-3 { 
  top: 15%; 
  right: 18%; 
  transform: rotate(10deg);
  width: 340px;
  filter: blur(6px) brightness(1.1) saturate(1.1);
}

.pdp-float-4 { 
  top: 85%; 
  right: 10%; 
  transform: rotate(-7deg);
  width: 100px;
  filter: blur(10px) brightness(1.1) saturate(1.1);
}

.pdp-float-5 { 
  top: 25%; 
  left: 5%; 
  transform: rotate(15deg);
  width: 180px;
  filter: blur(5px) brightness(1.1) saturate(1.1);
}

.pdp-float-6 { 
  top: 75%; 
  right: 25%; 
  transform: rotate(-12deg);
  width: 140px;
  filter: blur(8px) brightness(1.1) saturate(1.1);
} 