/* Star rating for reviews */
.star-rating span {
  transition: color 0.15s;
  cursor: pointer;
  user-select: none;
}
.star-rating span.selected,
.star-rating span.hovered {
  color: #fbbf24;
}
.star-rating span:not(.selected):not(.hovered) {
  color: #444;
}
/* Reviews horizontal layout */
.reviews-list {
  display:flex;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 10px 0 30px;
  position:relative;
  transition: transform .5s ease;
}
.reviews-list::-webkit-scrollbar { display:none; }
/* Gutter spacers so skrajne karty nie chowają się pod strzałkami */
.reviews-list::before,
.reviews-list::after {
  content:"";
  flex: 0 0 clamp(28px, 5vw, 54px);
  display:block;
}

/* Carousel wrapper */
.reviews-carousel { position:relative; display:flex; align-items:center; gap:8px; }
.reviews-viewport { overflow-x: hidden; overflow-y: visible; flex:1; }
.reviews-viewport { position:relative; }

/* Mobile safety: prevent accidental horizontal swipes and overflow */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
}

/* Each item fixed basis so, at most, 3 fit (with scale space) */
.reviews-list .review-item { flex:0 0 calc((100% / 3) - 14px); transform-origin:center center; transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease; }

/* Base smaller scale */
.reviews-list .review-item { transform: scale(.88); opacity: .85; }
.reviews-list .review-item.is-center { transform: scale(1.02); opacity: 1; box-shadow:0 8px 20px -12px rgba(15,27,45,0.22); border-color: rgba(15,157,138,0.2); z-index: 3; }

/* Edge emphasis when first or last becomes center (narrow list) */
.reviews-list .review-item.is-edge-center { border-color: rgba(15,157,138,0.15); box-shadow:0 6px 18px -10px rgba(15,27,45,0.2); transform: scale(1.0); }

/* Nav buttons */
.reviews-nav { background: var(--panel); color: var(--text); border:1px solid var(--border); width:42px; height:42px; border-radius:12px; cursor:pointer; font-size:24px; display:flex; align-items:center; justify-content:center; transition: background .3s, border-color .3s, color .3s, box-shadow .3s; box-shadow: 0 6px 14px -10px rgba(15,27,45,0.2); }
.reviews-nav:hover { background: var(--panel-soft); border-color: rgba(15,157,138,0.3); color: var(--primary); box-shadow: 0 10px 22px -14px rgba(15,27,45,0.24); }
.reviews-nav:disabled { opacity:.35; cursor:not-allowed; }

@media (max-width: 940px) {
  .reviews-list .review-item { flex:0 0 calc((100% / 2) - 14px); }
}
@media (max-width: 640px) {
  .reviews-carousel { gap:10px; }
  .reviews-nav { width:34px; height:34px; font-size:20px; }
  .reviews-list .review-item { flex:0 0 100%; }
  .reviews-list .review-item { transform: scale(.94); }
  .reviews-list .review-item.is-center { transform: scale(1.02); }
}
.review-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(15,157,138,0.03) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 8px 20px -12px rgba(15,27,45,0.22);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
  flex: 0 0 320px;
  scroll-snap-align: start;
}
.review-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(15,157,138,0.12), transparent 65%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  border-radius: inherit;
}
.review-item:hover {
  border-color: rgba(15,157,138,0.25);
  transform: translateY(-6px);
}
.review-item:hover::before {
  opacity: 1;
}
/* Removed gradient/overlay reveal on hover per request */
.review-item:active { transform: translateY(-1px); }
.review-item .review-text { font-size: 15.5px; }

@media (max-width: 700px) {
  .review-item { max-width: 100%; min-width: 0; }
}
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.review-header-left { display:flex; flex-direction:column; gap:4px; min-width:0; }
.review-header-right { display:flex; align-items:center; gap:8px; margin-left:auto; }
.review-header .review-user { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.review-header .review-rating { color:#fbbf24; letter-spacing:2px; font-size:16px; line-height:1; }
.review-header .review-rating .stars-only { color:#fbbf24; }
.review-header .review-rating .rating-fraction { color: var(--muted); font-size: 13px; letter-spacing: 0; margin-left: 6px; }
.review-header .review-date { color: var(--muted); font-size: 13px; font-weight: 500; }
.review-del-btn {
  background:linear-gradient(135deg, rgba(239,68,68,0.12), rgba(220,38,38,0.08));
  color:#dc2626;
  border:1px solid rgba(220,38,38,0.25);
  padding:4px 10px;
  border-radius:6px;
  cursor:pointer;
  font-size:12px;
  line-height:1.2;
  transition: background .25s, border-color .25s;
}
.review-del-btn:hover { 
  background:linear-gradient(135deg, rgba(239,68,68,0.18), rgba(220,38,38,0.12)); 
  border-color: rgba(220,38,38,0.35);
}
.review-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.review-rating {
  color: #fbbf24;
  font-size: 16px;
  margin-right: 6px;
}
.review-text {
  font-size: 15px;
  color: var(--text);
  /* Zapobiega wychodzeniu bardzo długich wyrazów / ciągów znaków poza kontener */
  white-space: pre-wrap;            /* zachowaj nowe linie, zawijaj przy końcu linii */
  overflow-wrap: anywhere;          /* agresywne łamanie kiedy potrzeba */
  word-break: break-word;           /* awaryjne łamanie bardzo długich tokenów */
  max-width: 100%;
}
.review-text.clamped {
  max-height: 140px; /* wysokość po której przycinamy */
  overflow: hidden;
  position: relative;
  transition: max-height .35s ease;
}
.review-text.clamped::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, rgba(244,247,251,0) 0%, var(--panel) 90%);
  pointer-events: none;
}
.review-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0 0 0;
  align-self: flex-start;
}
.review-toggle:hover { text-decoration: underline; }
/* Responsive: stack reviews vertically on small screens */
@media (max-width: 700px) {
  .review-item { flex: 0 0 260px; }
}

@media (max-width: 900px) {
  .reviews-carousel {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .reviews-nav {
    display: none;
  }
  .reviews-viewport {
    overflow: visible;
  }
  .reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px; /* Add horizontal padding to prevent cards from touching screen edges */
    transform: none !important;
  }
  .reviews-list::before,
  .reviews-list::after {
    display: none;
  }
  .reviews-list .review-item {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    transform: none !important;
    opacity: 1;
    scroll-snap-align: unset;
  }
}

/* Reviews section - simplified to match other sections */
.reviews {
  padding: 60px 0;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  /* Ensure borders are contained */
  box-sizing: border-box;
}
/* Top border - full width */
.reviews::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
/* Background for entire reviews section */
.reviews::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%; /* Full height to cover section */
  background: linear-gradient(135deg, rgba(15,157,138,0.08) 0%, var(--panel) 30%, var(--panel-soft) 100%);
  z-index: -1;
  pointer-events: none;
}
/* Bottom border - full width at exact section end */
.reviews-carousel::after {
  display: none; /* Remove old border attached to carousel */
}
/* New bottom border attached to section */
.reviews-bottom-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.reviews h2 { margin-top:0; text-align: center; }

/* Center section headings */
.about h2,
.contact h2 {
  text-align: center;
}

.review-item.highlighted { box-shadow:0 0 0 2px var(--primary), 0 6px 20px -4px rgba(0,0,0,0.65); }
.review-item.highlighted { animation: reviewPulse 1.3s ease; }
@keyframes reviewPulse { 0% { transform:translateY(-4px) scale(1); } 40% { transform:translateY(-6px) scale(1.015); } 100% { transform:translateY(-4px) scale(1); } }

:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #f0f3f9;
  --panel-tint: rgba(15, 27, 45, 0.04);
  --text: #10243b;
  --muted: #5d6b80;
  --muted-soft: #7a869b;
  --primary: #0f9d8a;
  --primary-600: #0b7c6c;
  --border: rgba(16, 36, 59, 0.14);
  --shadow-soft: 0 16px 36px -18px rgba(15, 27, 45, 0.25);
  --shadow-card: 0 8px 20px -12px rgba(15, 27, 45, 0.22);
}

* { box-sizing: border-box; }
html { height: 100%; }
body { 
  margin: 0; 
  padding: 0; 
  background: var(--bg); 
  color: var(--text); 
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
.container { width: min(1100px, 92%); margin: 0 auto; }
.sr-only { position: absolute; left: -9999px; }

/* Page title styling for subpages */
.page-title {
  text-align: center;
  padding: 80px 0 60px;
  margin: 0;
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.site-header { position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); z-index: 20; box-shadow: 0 4px 14px -10px rgba(15,27,45,0.18); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; }
.brand { font-weight: 800; letter-spacing: 0.2px; font-size: 26px; line-height: 1; color: #0f9d8a; display: flex; align-items: center; gap: 10px; }
.brand img { height: 36px; width: auto; }
@media (min-width: 768px) {
  .brand { font-size: 30px; }
  .brand img { height: 40px; }
}

/* New header actions style - all buttons uniform */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.header-actions .header-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.header-actions .header-btn:hover {
  background: var(--panel-soft);
  color: var(--primary);
  transform: translateY(-1px);
}
.header-actions .header-btn:active {
  transform: translateY(0);
}

/* Cart notification dot */
.header-btn.cart-btn.has-items::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
  animation: pulse-dot 2s ease-in-out infinite;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-btn.cart-btn.has-items::after {
  opacity: 1;
  transform: scale(1);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.menu { display: none; }
@media (min-width: 768px) {
  .menu { display: flex; gap: 18px; }
  .menu a { color: var(--muted); }
}

/* Legacy cart-btn class for compatibility */
.cart-btn { background: var(--panel); color: var(--text); border: 1px solid var(--border); padding: 8px 12px; border-radius: 8px; cursor: pointer; box-shadow: 0 6px 16px -12px rgba(15,27,45,0.22); transition: background .25s, box-shadow .25s; }
.cart-btn:hover { background: var(--panel-soft); box-shadow: 0 12px 30px -14px rgba(15,27,45,0.26); }
.badge { display: none; } /* Hide old badge style */

.hero { 
  border-bottom: 1px solid var(--border); 
  background: linear-gradient(135deg, rgba(15,157,138,0.08) 0%, var(--panel) 30%, var(--panel-soft) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(15,157,138,0.12) 0%, transparent 70%);
  transform: rotate(-15deg);
  pointer-events: none;
}
.hero-inner { 
  display: grid; 
  grid-template-columns: 1.1fr 0.9fr; 
  gap: 28px; 
  align-items: center; 
  padding: 64px 0; 
  position: relative;
  z-index: 1;
}
.hero h1 { 
  font-size: 52px; 
  margin: 0 0 18px; 
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  line-height: 1.1;
}
.hero p { color: var(--muted); margin: 0 0 20px; font-size: 16px; line-height: 1.6; }

.btn { 
  background: var(--panel); 
  color: var(--text); 
  border: 1px solid var(--border); 
  padding: 12px 20px; 
  border-radius: 12px; 
  cursor: pointer; 
  box-shadow: 0 6px 16px -10px rgba(15,27,45,0.22); 
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); 
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,157,138,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s ease;
}
.btn:hover { 
  background: var(--panel-soft); 
  box-shadow: 0 12px 32px -16px rgba(15,27,45,0.35); 
  transform: translateY(-2px);
}
.btn:hover::before { opacity: 1; }
.btn-primary { 
  background: linear-gradient(135deg, var(--primary) 0%, #11b09a 100%); 
  color: #f8ffff; 
  border: 1px solid rgba(11,124,108,0.4); 
  box-shadow: 0 12px 28px -12px rgba(15,157,138,0.45);
  font-weight: 700;
}
.btn-primary::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
}
.btn-primary:hover { 
  background: linear-gradient(135deg, #11b09a 0%, #0f9d8a 100%); 
  box-shadow: 0 16px 40px -12px rgba(15,157,138,0.6);
  transform: translateY(-3px);
}
/* Subtle pressed state across buttons and clickable controls */
.btn:active,
.cart-btn:active,
.icon-btn:active,
.gallery-nav:active,
.gallery-thumb:active,
.review-toggle:active,
.remove-btn:active,
.checklist li:active,
.u-panel:active {
  border-color: rgba(15,157,138,0.35);
  background: linear-gradient(135deg, rgba(15,157,138,0.12), rgba(15,27,45,0.02));
}
/* Keep primary CTA pressed state subtle (no harsh contrast) */
.btn-primary:active { background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary) 100%); filter: brightness(0.99); }

.product { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 40px; 
  padding: 50px 40px; 
  background: linear-gradient(180deg, var(--bg) 0%, rgba(15,157,138,0.02) 50%, var(--bg) 100%);
  border-radius: 24px;
  margin: 20px auto;
  position: relative;
  max-width: 1200px;
  width: 95%;
}
.product::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  border-radius: 2px;
}
.gallery {
  margin-left: -40px;
  margin-right: -40px;
  padding-left: 40px;
  padding-right: 40px;
}
.gallery-thumb { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.gallery-thumb:hover { transform: none; box-shadow: none; filter: none; }
.gallery-thumb.selected {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(20,184,166,0.10);
}


.hero-visual { 
  display: flex; 
  align-items: center; 
  justify-content: flex-end; 
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 60% 40%, rgba(15,157,138,0.15) 0%, transparent 65%);
  border-radius: 50%;
  z-index: 0;
  animation: heroGlow 4s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 0.8; }
}
/* Keep main product image and hero image visually consistent */
#mainProductImage,
.hero-image {
  width: 420px; /* match sizes */
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  border: 2px solid rgba(15,157,138,0.2);
  box-shadow: 0 25px 60px -20px rgba(15,157,138,0.25), 0 8px 25px -8px rgba(15,27,45,0.15);
  transition: opacity .36s ease, transform .36s ease, box-shadow .3s ease;
  background: linear-gradient(135deg, var(--panel) 0%, rgba(15,157,138,0.03) 100%);
  position: relative;
  z-index: 1;
}
.hero-image:hover,
#mainProductImage:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 35px 80px -25px rgba(15,157,138,0.35), 0 15px 35px -10px rgba(15,27,45,0.2);
}
/* frame that holds main image and nav buttons */
.media-frame {
  position: relative;
  display: inline-block;
  overflow: visible;
}
.media-frame::before {
  content: "";
  position: absolute;
  top: -20px;
  bottom: -20px;
  left: -60px;
  right: -60px;
  background: inherit;
  z-index: -1;
  border-radius: inherit;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 6px 18px -14px rgba(15,27,45,0.22);
  transition: background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.gallery-nav.prev { left: -46px; }
.gallery-nav.next { right: -46px; }
.gallery-nav:hover { background: linear-gradient(135deg, rgba(15,157,138,0.16), rgba(255,255,255,0.95)); color: var(--primary); border-color: rgba(15,157,138,0.3); box-shadow: 0 12px 26px -16px rgba(15,27,45,0.24); }
.product-info h2 { margin: 0 0 8px; }
.muted { color: var(--muted); }
.checklist { 
  list-style: none; 
  padding: 0; 
  margin: 28px 0; 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
  background: transparent;
}
.checklist li {
  position: relative;
  padding: 18px 20px 18px 56px;
  margin: 0;
  line-height: 1.6;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.95) 0%, 
    rgba(15,157,138,0.02) 50%, 
    rgba(244,248,252,0.8) 100%);
  border: 1px solid rgba(15,157,138,0.12);
  border-radius: 20px;
  box-shadow: 0 8px 28px -12px rgba(15,157,138,0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 20px; 
  top: 50%; 
  transform: translateY(-50%);
  width: 20px; 
  height: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(15,157,138,0.8) 100%);
  border-radius: 50%;
  box-shadow: 0 3px 8px -2px rgba(15,157,138,0.4),
              inset 0 1px 0 rgba(255,255,255,0.3);
}

.checklist li::after {
  content: "✓";
  position: absolute;
  left: 24px; 
  top: 50%; 
  transform: translateY(-50%);
  width: 12px; 
  height: 12px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 12px; 
  font-weight: 800;
  color: white;
  line-height: 1; 
  pointer-events: none;
}
.checklist li:hover {
  border-color: rgba(15,157,138,0.25);
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.98) 0%, 
    rgba(15,157,138,0.05) 50%, 
    rgba(244,248,252,0.9) 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px -15px rgba(15,157,138,0.25);
}

.checklist li:active { 
  transform: translateY(-1px); 
}
.product-description { 
  padding: 50px 40px; 
  background: linear-gradient(180deg, var(--bg) 0%, rgba(15,157,138,0.015) 30%, rgba(244,248,252,0.4) 70%, var(--bg) 100%);
  margin: 30px auto;
  position: relative;
  max-width: 1200px;
  width: 95%;
  text-align: center;
}

.product-description::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(15,157,138,0.08) 0%, rgba(15,157,138,0.02) 40%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: descriptionBreathing 5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes descriptionBreathing {
  0% { 
    transform: translate(-50%, -50%) scale(0.8); 
    opacity: 0.4; 
  }
  100% { 
    transform: translate(-50%, -50%) scale(1.2); 
    opacity: 0.7; 
  }
}
.product-description h2 {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.product-description > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}
.product-description::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(15,157,138,0.3) 50%, transparent 100%);
  border-radius: 1px;
}
.product-description .ingredients { margin-top: 12px; }
/* Use emoji bullets for ingredients list */
.product-description .ingredients ul {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 14px 0;
}
.product-description .ingredients li {
  margin-bottom: 10px;
  line-height: 1.5;
  position: relative;
  padding-left: 28px; /* space for emoji */
}
.product-description .ingredients li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 1.05em;
  line-height: 1;
}
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; }
.price { 
  font-size: 34px; 
  font-weight: 800; 
  background: linear-gradient(135deg, var(--primary) 0%, #14bfa9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.avg-rating { display:flex; align-items:center; gap:8px; margin:8px 0 6px; font-size:14px; }
.avg-rating .stars { font-size:18px; color:#fbbf24; display:inline-block; line-height:1; }
.avg-rating .value { font-size:14px; }
.avg-rating .count { margin-left:2px; }
.qty-row { display: flex; align-items: center; gap: 10px; }
.qty-row input { width: 70px; padding: 8px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; box-shadow: inset 0 1px 2px rgba(15,27,45,0.04); }
.legal { margin-top: 12px; color: var(--muted); font-size: 13px; }

/* Enhanced About and Contact sections */
.about, .contact { 
  padding: 60px 0; 
  position: relative;
  margin-top: 40px;
}

.about::after, .contact::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: linear-gradient(135deg, 
    var(--bg) 0%, 
    rgba(15,157,138,0.02) 25%, 
    rgba(244,248,252,0.4) 75%, 
    var(--bg) 100%);
  z-index: -1;
  pointer-events: none;
}

.contact-intro { 
  max-width: 820px; 
  margin: 32px auto 56px; 
  display: flex; 
  flex-direction: column; 
  gap: 24px; 
  text-align: center;
  padding: 0;
  position: relative;
  background: transparent;
}

.contact-intro .lead { 
  font-size: 19px; 
  margin: 0; 
  line-height: 1.75;
  color: var(--text);
  font-weight: 400;
  position: relative;
  padding: 32px 48px 28px;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.9) 0%, 
    rgba(15,157,138,0.03) 100%);
  border-top: 2px solid rgba(15,157,138,0.25);
  box-shadow: 0 4px 20px -8px rgba(15,157,138,0.2);
  font-style: italic;
}

.contact-intro .sub { 
  font-size: 15px; 
  margin: 0; 
  line-height: 1.7; 
  color: var(--muted);
  padding: 0 24px;
  font-weight: 400;
}
.contact-grid { 
  display: grid; 
  gap: 32px; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  margin-top: 32px;
}

.contact-card { 
  position: relative; 
  display: flex; 
  gap: 20px; 
  padding: 32px 28px 28px; 
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.9) 0%, 
    rgba(15,157,138,0.03) 50%, 
    rgba(244,248,252,0.8) 100%); 
  border: 1px solid rgba(15,157,138,0.15); 
  border-radius: 24px; 
  box-shadow: 0 12px 40px -16px rgba(15,27,45,0.18); 
  overflow: hidden; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}

.contact-card::before { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: radial-gradient(circle at 75% 25%, 
    rgba(15,157,138,0.12) 0%, 
    rgba(15,157,138,0.06) 40%, 
    transparent 70%); 
  opacity: 0; 
  transition: opacity 0.5s ease; 
  pointer-events: none; 
}

.contact-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--primary) 50%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-card:hover { 
  border-color: rgba(15,157,138,0.3); 
  transform: translateY(-8px); 
  box-shadow: 0 20px 50px -20px rgba(15,27,45,0.25); 
}

.contact-card:hover::before { opacity: 1; }
.contact-card:hover::after { opacity: 1; }



.contact-card:active { 
  transform: translateY(-4px); 
}
.cc-icon { width:52px; height:52px; border-radius:16px; background:radial-gradient(circle at 40% 35%, rgba(15,157,138,0.18), rgba(15,27,45,0.05)); display:flex; align-items:center; justify-content:center; font-size:26px; flex-shrink:0; box-shadow:0 4px 12px -6px rgba(15,27,45,0.25), inset 0 0 0 1px rgba(255,255,255,0.65); }
.cc-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, 
    rgba(15,157,138,0.15) 0%, 
    rgba(15,157,138,0.08) 50%, 
    rgba(15,27,45,0.03) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 20px -8px rgba(15,157,138,0.25), 
              inset 0 1px 0 rgba(255,255,255,0.8);
  transition: all 0.4s ease;
  border: 1px solid rgba(15,157,138,0.1);
  flex-shrink: 0;
}

.cc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card h3 { 
  margin: 0; 
  font-size: 16px; 
  letter-spacing: 0.5px; 
  text-transform: uppercase; 
  font-weight: 700; 
  color: var(--text);
}

.contact-card p { 
  margin: 0; 
  font-size: 14px; 
  line-height: 1.6; 
  color: var(--muted); 
}
.contact-link { color: var(--primary); font-weight:600; }
.contact-link:hover { text-decoration: underline; }

@media (max-width:620px) {
  .contact-intro .lead { font-size:16px; }
  .contact-intro .sub { font-size:14px; }
  .contact-card { padding:16px 16px 18px; }
  .cc-icon { width:48px; height:48px; font-size:24px; }
}
.about-intro { 
  max-width: 900px; 
  margin: 32px auto 56px; 
  display: flex; 
  flex-direction: column; 
  gap: 28px; 
  text-align: center;
  padding: 0;
  position: relative;
  background: transparent;
}

.about-lead { 
  font-size: 20px; 
  line-height: 1.75; 
  margin: 0; 
  color: var(--text);
  font-weight: 400;
  position: relative;
  padding: 32px 48px 28px;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.9) 0%, 
    rgba(15,157,138,0.03) 100%);
  border-top: 2px solid rgba(15,157,138,0.25);
  box-shadow: 0 4px 20px -8px rgba(15,157,138,0.2);
  font-style: italic;
}

.about-sub { 
  font-size: 16px; 
  line-height: 1.7; 
  margin: 0; 
  color: var(--muted);
  padding: 0 24px;
  font-weight: 400;
}
.brand-mark { font-weight:800; letter-spacing:.5px; background:linear-gradient(90deg,var(--primary),#2ddbc6); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hl { color: var(--primary); font-weight:600; }
.about-cards { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 32px; 
  margin: 32px 0 40px; 
}

.about-card { 
  position: relative; 
  padding: 32px 28px 28px; 
  border: 1px solid rgba(15,157,138,0.15); 
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.9) 0%, 
    rgba(15,157,138,0.03) 50%, 
    rgba(244,248,252,0.8) 100%); 
  border-radius: 24px; 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
  box-shadow: 0 12px 40px -16px rgba(15,27,45,0.18); 
  overflow: hidden; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}

.about-card::before { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: radial-gradient(circle at 75% 25%, 
    rgba(15,157,138,0.12) 0%, 
    rgba(15,157,138,0.06) 40%, 
    transparent 70%); 
  opacity: 0; 
  transition: opacity 0.5s ease; 
  pointer-events: none; 
}

.about-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--primary) 50%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-card:hover::before { opacity: 1; }
.about-card:hover::after { opacity: 1; }

.about-card h3 { 
  margin: 8px 0 0; 
  font-size: 16px; 
  letter-spacing: 0.5px; 
  text-transform: uppercase; 
  font-weight: 700; 
  color: var(--text);
}

.about-card p { 
  margin: 0; 
  font-size: 14px; 
  line-height: 1.6; 
  color: var(--muted); 
}

.about-card .ac-icon { 
  width: 56px; 
  height: 56px; 
  border-radius: 18px; 
  background: linear-gradient(135deg, 
    rgba(15,157,138,0.15) 0%, 
    rgba(15,157,138,0.08) 50%, 
    rgba(15,27,45,0.03) 100%); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 28px; 
  box-shadow: 0 8px 20px -8px rgba(15,157,138,0.25), 
              inset 0 1px 0 rgba(255,255,255,0.8); 
  transition: all 0.4s ease;
  border: 1px solid rgba(15,157,138,0.1);
}

.about-card:hover { 
  border-color: rgba(15,157,138,0.3); 
  box-shadow: 0 20px 50px -20px rgba(15,27,45,0.25); 
  transform: translateY(-8px); 
}



.about-card:active { 
  transform: translateY(-4px); 
}

@media (max-width: 768px) {
  .about, .contact { 
    padding: 40px 0; 
  }
  
  .about-intro, .contact-intro {
    padding: 24px 20px;
    margin: 16px auto 32px;
  }
  
  .about-lead { font-size: 17px; }
  .about-sub { font-size: 15px; }
  .contact-intro .lead { font-size: 16px; }
  .contact-intro .sub { font-size: 14px; }
  
  .about-cards, .contact-grid { 
    gap: 20px; 
    grid-template-columns: 1fr;
  }
  
  .about-card, .contact-card { 
    padding: 24px 20px 20px; 
  }
  
  .about-card p, .contact-card p { 
    font-size: 13px; 
  }
  
  .ac-icon, .cc-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

main {
  position: relative;
}

@keyframes cornerBreathing {
  0% { 
    transform: scale(0.7); 
    opacity: 0.6; 
  }
  100% { 
    transform: scale(1.1); 
    opacity: 1; 
  }
}

.site-footer {
  border-top: 1px solid rgba(15,157,138,0.1);
  padding: 40px 0 32px;
  margin: 0;
  background: linear-gradient(135deg, rgba(15,157,138,0.06) 0%, var(--panel) 30%, var(--panel-soft) 100%);
  box-shadow: 0 -12px 32px -20px rgba(15,157,138,0.15);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 20%, var(--primary) 80%, transparent 100%);
  border-radius: 2px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  width: 100%;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 16px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px 0;
  color: var(--primary);
}

.footer-column nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-column nav a:hover {
  color: var(--primary);
}

.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(15,157,138,0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.site-footer .brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 0; white-space: nowrap; }
.site-footer .brand img { height: 32px; width: auto; }
.footer-section {
  flex: 1;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  margin: 0;
}
.footer-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.overlay { position: fixed; inset: 0; background: rgba(15,27,45,0.26); z-index: 30; backdrop-filter: blur(2px); }

.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 92%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  z-index: 40;
  box-shadow: 0 24px 60px -32px rgba(15,27,45,0.35);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h3 {
  margin: 0;
}

.modal-container {
  max-width: 100%;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
}

@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}
.form-row { margin-bottom: 12px; display: block; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type="text"], input[type="email"] {
  width: 100%; padding: 10px; background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(15,27,45,0.05);
}
.checkbox { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.summary-list { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--panel); box-shadow: inset 0 1px 2px rgba(15,27,45,0.03); }
.summary-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px; border-bottom: 1px dashed var(--border); }
.summary-row:last-child { border-bottom: 0; }
.summary-total { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }

.success { padding: 40px 0; text-align: center; }

.hidden { display: none; }

.social-icon {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

/* Cookie consent banner */
.cookie-consent {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
  border: 1px solid rgba(15,157,138,0.15);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 
    0 20px 60px -12px rgba(15,27,45,0.25),
    0 0 0 1px rgba(255,255,255,0.5) inset;
  backdrop-filter: blur(10px);
  z-index: 1000;
  animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInUp {
  from {
    transform: translateY(120px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutDown {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(120px) scale(0.95);
    opacity: 0;
  }
}

.cookie-content {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.cookie-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}

.cookie-text h4 {
  margin: 0 0 8px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary), #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cookie-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.85;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-buttons .btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.cookie-buttons .btn-primary {
  background: linear-gradient(135deg, var(--primary), #0d9488);
  box-shadow: 0 4px 14px -2px rgba(15,157,138,0.4);
}

.cookie-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -2px rgba(15,157,138,0.5);
}

.cookie-buttons .btn:not(.btn-primary) {
  background: rgba(15,27,45,0.05);
  border: 1px solid rgba(15,27,45,0.1);
  color: var(--text);
}

.cookie-buttons .btn:not(.btn-primary):hover {
  background: rgba(15,27,45,0.08);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .menu { display: none; }
  .hero-visual { justify-content: center; margin-top: 18px; }
  #mainProductImage,
  .hero-image { width: 260px; }
  .gallery-nav { display: none; }
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  /* Mobile Header & Reviews Fixes */
  .nav {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 32px;
  }
  .reviews {
    padding-top: 60px;
    padding-bottom: 60px; /* Ensure bottom padding for border */
  }
  
  /* Blog section mobile fix */
  .blog-section {
    padding: 60px 24px 120px; /* Increased bottom padding for footer spacing */
  }
  
  /* Hero spacing fix */
  .hero-inner {
    padding-top: 40px;
  }
  .hero h1 {
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cookie-consent {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
  .cookie-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cookie-buttons {
    justify-content: center;
    flex-direction: column;
  }
  .cookie-buttons .btn {
    width: 100%;
  }
}

/* Blog section default padding */
.blog-section {
  padding: 60px 0 120px;
}

/* Reviews carousel spacing */
.reviews-carousel {
  margin-bottom: 40px;
}

/* A11y + UX improvements */
:root { color-scheme: light; }

html.smooth-scroll { scroll-behavior: smooth; }
/* Zapobiega „podcinaniu” sekcji przez sticky header */
[id] { scroll-margin-top: 72px; }

/* Bardziej solidne visually-hidden (zachowuje się lepiej przy focusie) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Widoczny focus dla klawiatury */
button:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Stabilna szerokość odznaki koszyka */
.badge {
  min-width: 1.6em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Szanuj preferencje ograniczenia ruchu */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* Na wszelki wypadek – ukrywanie [hidden] */
[hidden] { display: none !important; }

.success-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 92%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  z-index: 40;
  box-shadow: 0 22px 56px -30px rgba(15,27,45,0.34);
}

.success-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.success-modal .modal-content {
  text-align: center;
}

.success-modal .modal-content p {
  margin-bottom: 16px;
}

.cart-panel { position: fixed; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: var(--panel); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .25s ease; z-index: 40; display: flex; flex-direction: column; box-shadow: -12px 0 32px -24px rgba(15,27,45,0.28); }
.cart-panel.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(244,248,252,0.88)); }
.icon-btn { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 6px 10px; cursor: pointer; box-shadow: 0 4px 12px -10px rgba(15,27,45,0.2); transition: background .25s, box-shadow .25s; }
.icon-btn:hover { background: var(--panel-soft); box-shadow: 0 10px 22px -14px rgba(15,27,45,0.26); }
.cart-items { padding: 10px 14px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.cart-footer { border-top: 1px solid var(--border); padding: 14px; }
.totals { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

/* Cart item visual improvements */
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(244,248,252,0.88));
  border: 1px solid transparent;
  box-shadow: 0 6px 18px -14px rgba(15,27,45,0.22);
}
.cart-item:hover {
  border-color: rgba(15,157,138,0.22);
}
.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(16,36,59,0.12);
  box-shadow: 0 4px 10px -8px rgba(15,27,45,0.2);
}
.item-name { font-weight: 700; margin-bottom: 6px; }
.item-meta { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.remove-btn { color: #fca5a5; background: transparent; border: none; cursor: pointer; font-size: 13px; padding: 0; }

.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-controls button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); color: var(--text); cursor: pointer; box-shadow: 0 4px 10px -8px rgba(15,27,45,0.22); }
.qty-controls button[disabled] { opacity: 0.45; cursor: not-allowed; filter: grayscale(20%); }
.qty-display { min-width: 2rem; text-align: center; }

/* Toast notifications */
#toastContainer { pointer-events: none; }
#toastContainer > div { pointer-events: auto; }

/* --- Enhanced Product Description --- */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 28px 0 32px;
}
.ingredient-card {
  position: relative;
  padding: 18px 18px 16px 18px;
  background: linear-gradient(150deg, rgba(255,255,255,0.95), rgba(244,248,252,0.88));
  border: 1px solid rgba(16,36,59,0.10);
  border-radius: 18px;
  box-shadow: 0 8px 24px -16px rgba(15,27,45,0.28);
  display: flex;
  flex-direction: column;
  gap: 8px;
  isolation: isolate;
  overflow: hidden;
  min-height: 170px;
}
.ingredient-card::before {
  content: attr(data-icon);
  position: absolute;
  top: 10px; right: 12px;
  font-size: 40px;
  filter: saturate(1.1) brightness(1.1);
  opacity: 0.20;
  pointer-events: none;
  transition: opacity .3s;
}
.ingredient-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(15,157,138,0.18), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.ingredient-card:hover::after { opacity: 1; }
.ingredient-card:hover::before { opacity: 0.32; }
.ingredient-head { display:flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ingredient-name { margin:0; font-size: 17px; letter-spacing: .3px; }
.ingredient-dose { font-size: 13px; background: rgba(15,157,138,0.12); padding:4px 8px; border-radius: 8px; line-height:1; font-weight:600; color: var(--primary-600); }
.ingredient-desc { margin:0; font-size:14px; color: var(--muted); line-height:1.55; }

.usage-block {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(244,248,252,0.88));
  border: 1px solid rgba(16,36,59,0.1);
  padding: 22px 22px 20px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 26px -18px rgba(15,27,45,0.26);
}
.usage-block::before {
  content:"";
  position:absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle at 30% 20%, rgba(15,157,138,0.14), transparent 60%);
  top:-160px; left:-120px;
  opacity:.6;
  pointer-events:none;
}
.usage-col p { margin:0; font-size:14px; line-height:1.55; }
.usage-col.warnings p strong { color:#fca5a5; }
.usage-col.warnings p { color:#fca5a5; }

@media (max-width: 640px) {
  .ingredient-card { padding: 16px 16px 14px; }
  .ingredient-card::before { font-size: 34px; }
  .ingredient-name { font-size: 16px; }
  .ingredient-desc { font-size: 13.5px; }
  .usage-block { padding: 18px 16px 16px; }
}

/* --- Alternative refined style for product description (second iteration) --- */
.ingredients-grid.alt { gap: 26px; margin-top: 34px; display:flex; flex-direction:column; }
.ingredient-card.alt { display:flex; flex-direction:row; align-items:stretch; padding:0; background:linear-gradient(135deg, rgba(255,255,255,0.95), rgba(244,248,252,0.88)); border:1px solid rgba(16,36,59,0.1); border-radius:22px; overflow:hidden; position:relative; box-shadow:0 12px 30px -18px rgba(15,27,45,0.28); }
.ingredient-card.alt .ic-badge { width:90px; min-width:90px; display:flex; align-items:center; justify-content:center; font-size:44px; background: radial-gradient(circle at 40% 35%, rgba(15,157,138,0.24), rgba(244,248,252,0.9)); border-right:1px solid rgba(16,36,59,0.08); }
.ingredient-card.alt .ic-body { padding:20px 24px 20px 22px; display:flex; flex-direction:column; gap:10px; }
.ingredient-card.alt .ic-row { display:flex; justify-content:space-between; align-items:baseline; gap:18px; flex-wrap:wrap; }
.ingredient-card.alt .dose { font-size:15px; font-weight:700; background:linear-gradient(135deg, var(--primary) 0%, #13b6a2 100%); color:#f8ffff; padding:6px 12px 6px; border-radius:12px; line-height:1; letter-spacing:.3px; box-shadow:0 4px 12px -5px rgba(15,157,138,0.45); }
.ingredient-card.alt h3 { margin:0; font-size:19px; letter-spacing:.4px; font-weight:700; line-height:1.15; }
.ingredient-card.alt p { margin:0; font-size:15px; color:var(--muted); line-height:1.6; }
.ingredient-card.alt::after { content:""; position:absolute; inset:0; background:linear-gradient(145deg, rgba(15,157,138,0.12), transparent 70%); opacity:0; transition:opacity .35s; pointer-events:none; }
.ingredient-card.alt:hover::after { opacity:1; }

.usage-panels { display:grid; gap:22px; margin-top:42px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
.u-panel { position:relative; display:flex; gap:16px; background:linear-gradient(115deg, rgba(255,255,255,0.96), rgba(244,248,252,0.88)); border:1px solid rgba(16,36,59,0.08); padding:18px 18px 16px; border-radius:18px; box-shadow:0 10px 24px -18px rgba(15,27,45,0.26); overflow:hidden; }
.u-panel::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 85% 20%, rgba(15,157,138,0.16), transparent 65%); opacity:0; transition:opacity .35s; }
.u-panel:hover::before { opacity:1; }
.u-panel .u-icon { font-size:30px; line-height:1; filter:drop-shadow(0 2px 6px rgba(15,27,45,0.2)); }
.u-panel .u-content { display:flex; flex-direction:column; gap:6px; }
.u-panel h4 { margin:0; font-size:15px; letter-spacing:.5px; font-weight:700; }
.u-panel p { margin:0; font-size:13.5px; line-height:1.55; color:var(--muted); }
.u-panel.warn { border-color: rgba(252,165,165,0.45); background: linear-gradient(120deg, rgba(255,255,255,0.95), rgba(254,241,241,0.92)); }
.u-panel.warn h4 { color:#fca5a5; }
.u-panel.warn p { color:#fca5a5; }

/* --- New stacked ingredients style (revision 2) --- */
.ingredients-stack { 
  margin: 20px 0 20px; 
  position: relative;
  z-index: 1;
}
.ingredients-list { 
  list-style: none; 
  margin: 0 auto; 
  padding: 0; 
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px; 
  max-width: 1100px;
}

@media (min-width: 768px) {
  .ingredients-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
.ingredient-item { 
  position: relative; 
  display: flex; 
  gap: 14px; 
  padding: 16px 18px; 
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(15,157,138,0.03) 100%);
  border: 1px solid rgba(15,157,138,0.12); 
  border-radius: 16px; 
  box-shadow: 0 8px 20px -12px rgba(15,157,138,0.2), 0 4px 12px -8px rgba(15,27,45,0.1);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.ingredient-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #14bfa9 100%);
  transform: scaleX(0);
  transition: transform .4s ease;
}
.ingredient-item::after { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: radial-gradient(circle at 85% 15%, rgba(15,157,138,0.12), transparent 65%); 
  opacity: 0; 
  transition: opacity .4s ease; 
  pointer-events: none; 
}
.ingredient-item:hover { 
  border-color: rgba(15,157,138,0.3); 
  transform: translateY(-4px); 
  box-shadow: 0 12px 30px -15px rgba(15,157,138,0.3), 0 8px 20px -8px rgba(15,27,45,0.15);
}
.ingredient-item:hover::before {
  transform: scaleX(1);
}
.ingredient-item:hover::after { 
  opacity: 1; 
}
.ing-icon { 
  width: 52px; 
  height: 52px; 
  border-radius: 14px; 
  background: linear-gradient(135deg, rgba(15,157,138,0.15) 0%, rgba(15,157,138,0.05) 100%);
  border: 1px solid rgba(15,157,138,0.2);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 28px; 
  flex-shrink: 0; 
  box-shadow: 0 6px 15px -10px rgba(15,157,138,0.35), inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
}
.ing-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
  border-radius: inherit;
}
.ing-main { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ing-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ing-name { 
  margin: 0; 
  font-size: 17px; 
  letter-spacing: 0.3px; 
  font-weight: 800; 
  line-height: 1.2;
  color: var(--text);
}
.ing-dose {
  font-size: 13px; 
  font-weight: 700;
  background: linear-gradient(135deg, rgba(15,157,138,0.15) 0%, rgba(15,157,138,0.08) 100%);
  color: var(--primary);
  padding: 5px 12px; 
  border-radius: 12px; 
  line-height: 1; 
  letter-spacing: 0.4px;
  box-shadow: 0 4px 10px -8px rgba(15,157,138,0.3);
  border: 1px solid rgba(15,157,138,0.2);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ingredient-item:hover .ing-dose { 
  background: linear-gradient(135deg, var(--primary) 0%, #13b6a2 100%); 
  color: #f8ffff; 
  box-shadow: 0 6px 15px -6px rgba(15,157,138,0.45);
  transform: translateY(-1px);
}
.ing-desc { margin:0; font-size:14px; line-height:1.5; color:var(--muted); text-align: left; }

@media (max-width: 640px) {
  .ingredient-item { padding:16px 16px 16px; gap:14px; }
  .ing-icon { width:50px; height:50px; font-size:26px; }
  .ing-name { font-size:18px; }
  .ing-desc { font-size:14.5px; }
}

/* Refined hover gradient for warn panel */
.u-panel.warn::before {
  /* Override default teal background to avoid flicker when leaving hover */
  background: radial-gradient(circle at 75% 28%, rgba(252,165,165,0.10), transparent 58%);
}
.u-panel.warn:hover::before {
  opacity: 1;
  /* Smaller, paler warning glow */
  background: radial-gradient(circle at 70% 30%, rgba(252,165,165,0.20), rgba(252,165,165,0.06) 48%, transparent 68%);
  transition: opacity .30s ease, background .35s ease;
}
/* Ensure base hover on warn doesn't reintroduce primary color */
.u-panel.warn:hover { border-color: rgba(252,165,165,0.55); }

/* --- Minimal variant to reduce "kafelkowy" look --- */
.usage-panels.minimal { gap:10px; margin-top:30px; }
.usage-panels.minimal .u-panel { background: transparent; border: 0; border-radius:0; box-shadow:none; padding:10px 0 10px; position:relative; }
.usage-panels.minimal .u-panel::before { display:none; }
.usage-panels.minimal .u-panel + .u-panel { border-top: 1px solid var(--border); }
.usage-panels.minimal .u-panel .u-icon { font-size:18px; width:auto; height:auto; display:flex; align-items:flex-start; justify-content:center; background:transparent; border-radius:0; box-shadow:none; flex-shrink:0; line-height:1.2; margin-top:2px; padding:0; }
.usage-panels.minimal .u-panel h4 { font-size:14px; letter-spacing:.5px; margin:0 0 4px; text-transform:uppercase; font-weight:700; }
.usage-panels.minimal .u-panel p { font-size:13.5px; line-height:1.55; margin:0; color: var(--muted); }
.usage-panels.minimal .u-panel.warn h4, .usage-panels.minimal .u-panel.warn p { color:#fca5a5; }
.usage-panels.minimal .u-panel:hover { background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0)); }
.usage-panels.minimal .u-panel:hover .u-icon { background:none; }
.usage-panels.minimal { grid-template-columns: 1fr; }

@media (max-width: 720px) {
  .ingredient-card.alt { flex-direction:column; }
  .ingredient-card.alt .ic-badge { width:100%; min-width:0; padding:18px 0 14px; border-right:none; border-bottom:1px solid rgba(255,255,255,0.08); font-size:48px; }
  .ingredient-card.alt .ic-body { padding:18px 18px 22px; }
  .ingredient-card.alt .ic-row { gap:12px; }
  .ingredient-card.alt .dose { font-size:14px; padding:5px 10px; }
  .ingredient-card.alt h3 { font-size:18px; }
  .ingredient-card.alt p { font-size:14.5px; }
}

/* Make checkout button full width on small screens */
@media (max-width: 420px) {
  .cart-panel { width: 100%; }
  .cart-footer button { width: 100%; }
}

/* Pale focus border for review textarea */
#reviewText:focus {
  outline: none;
  border-color: rgba(255,255,255,0.35) !important; /* bardziej blady */
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
  background: #0f1116;
  transition: border-color .25s, background .25s;
}
/* Ocena + gwiazdki w jednej linii w formularzu */
/* Enhanced Review Form Styling */
#reviewForm {
  margin-top: 20px !important;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.rating-row { 
  display: flex; 
  align-items: center; 
  justify-content: center;
  gap: 16px;
}

.rating-row label { 
  font-weight: 600; 
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.3px;
  min-width: 60px;
}

#starRating {
  padding: 8px 12px;
  background: rgba(251,191,36,0.08);
  border-radius: 10px;
  border: 1px solid rgba(251,191,36,0.2);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0;
}

#starRating:hover {
  background: rgba(251,191,36,0.12);
  border-color: rgba(251,191,36,0.35);
}

#starRating span {
  padding: 2px 4px;
  border-radius: 4px;
  cursor: pointer;
}

#starRating span[data-value] {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rating-value { 
  color: #fbbf24;
  font-size: 15px; 
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(251,191,36,0.15);
  border-radius: 8px;
  border: 1px solid rgba(251,191,36,0.25);
  min-width: 45px;
  text-align: center;
}

/* Enhanced textarea styling */
#reviewForm textarea {
  background: var(--bg) !important;
  border: 2px solid rgba(15,157,138,0.15) !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  font-size: 15px;
  line-height: 1.6;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 6px rgba(15,27,45,0.05);
}

#reviewForm textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(15,157,138,0.15), inset 0 2px 6px rgba(15,27,45,0.05);
  outline: none;
  transform: translateY(-2px);
}

#reviewForm textarea::placeholder {
  color: rgba(var(--text-rgb), 0.5);
  font-style: italic;
}

/* Enhanced submit button */
#reviewForm .btn {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(15,157,138,0.9) 100%);
  border: 1px solid var(--primary);
  box-shadow: 0 4px 12px -6px rgba(15,157,138,0.4);
}

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

#reviewForm .btn:hover::before {
  left: 100%;
}

#reviewForm .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(15,157,138,0.5);
}

/* --- Review Modal --- */
.review-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.05) inset;
  z-index: 1100;
  max-width: 500px;
  width: 90%;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.review-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.review-modal-content {
  padding: 0;
}

.review-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.review-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.review-modal-body {
  padding: 24px;
}

.review-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#reviewModalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1099;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#reviewModalOverlay.open {
  opacity: 1;
  pointer-events: auto;
}

.icon-btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #1a1a1a;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  background: rgba(15, 157, 138, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}

/* --- Lightbox (powiększenie zdjęcia produktu) --- */
#mainProductImage { cursor: zoom-in; }
.lightbox { position:fixed; inset:0; background:rgba(0,0,0,0.85); display:flex; align-items:center; justify-content:center; z-index:120; padding:40px 48px; gap:24px; }
.lightbox { opacity:0; background:rgba(0,0,0,0); transition: background .38s ease, opacity .38s ease; pointer-events:none; }
.lightbox.open { opacity:1; background:rgba(0,0,0,0.85); pointer-events:auto; }
.lightbox.closing { opacity:0; background:rgba(0,0,0,0); }
.lightbox[hidden] { display:none !important; }
.lightbox-inner { position:relative; max-width:100%; }
.lightbox-img { max-width:min(92vw,1100px); max-height:82vh; width:auto; height:auto; border-radius:18px; box-shadow:0 28px 70px -18px rgba(0,0,0,0.85), 0 4px 18px -4px rgba(0,0,0,0.6); object-fit:contain; background:#0d0f14; cursor:default; transform:scale(.90) translateY(4px); opacity:0; transition: transform .42s cubic-bezier(.4,.15,.1,1), opacity .34s ease-out; }
.lightbox.open .lightbox-img { transform:scale(1) translateY(0); opacity:1; }
.lightbox.closing .lightbox-img { transform:scale(1) translateY(0); opacity:0; }
.lightbox-close { position:absolute; top:-14px; right:-14px; background:#15191f; color:#fff; border:1px solid var(--border); width:42px; height:42px; border-radius:14px; cursor:pointer; font-size:20px; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 22px -6px rgba(0,0,0,0.6); }
.lightbox-close:hover { background:#1d2229; color:var(--primary); }
.lightbox-nav { position:absolute; top:50%; transform:translateY(-50%); background:linear-gradient(145deg, rgba(32,36,42,0.92), rgba(22,26,32,0.92)); border:1px solid rgba(255,255,255,0.10); color:#fff; width:60px; height:60px; border-radius:20px; cursor:pointer; font-size:30px; line-height:1; display:flex; align-items:center; justify-content:center; backdrop-filter:blur(6px); box-shadow:0 10px 34px -10px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.04) inset; transition: background .25s, transform .25s, color .25s, border-color .25s; }
.lightbox-nav:hover { background:linear-gradient(145deg, rgba(45,212,191,0.25), rgba(22,26,32,0.95)); color:var(--primary); border-color:rgba(255,255,255,0.18); }
.lightbox-nav:active { transform:translateY(-50%) scale(.94); }
.lightbox-nav.prev { left:28px; }
.lightbox-nav.next { right:28px; }
@media (max-width:1100px){ .lightbox-nav.prev { left:18px; } .lightbox-nav.next { right:18px; } }
@media (max-width:680px){
  .lightbox { padding:20px 20px; }
  .lightbox-img { max-width:100%; max-height:70vh; border-radius:14px; }
  .lightbox-nav { width:46px; height:46px; font-size:24px; border-radius:12px; }
  .lightbox-nav.prev { left:10px; }
  .lightbox-nav.next { right:10px; }
  .lightbox-close { width:38px; height:38px; font-size:18px; top:-10px; right:-10px; }
}
@media (prefers-reduced-motion: reduce){ .lightbox-img { transition:none !important; } }

/* Blokada scrolla z kompensacją szerokości paska przewijania */
/* Lock page scroll when lightbox is open, while compensating for scrollbar width to avoid layout shift */
html.scroll-lock, body.scroll-lock { overflow:hidden; }
html.scroll-lock { padding-right: var(--scrollbar-comp, 0px); }

/* ==================== MOBILE RESPONSIVE FIXES ==================== */

/* Fix text overflow and spacing on mobile devices */
@media (max-width: 768px) {
  /* Container: more padding on mobile */
  .container { 
    width: 96%; 
    padding: 0 12px;
  }

  /* Hero section - prevent text overflow */
  .hero-inner {
    padding: 40px 0;
    gap: 20px;
  }
  
  .hero h1 {
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.2;
    margin-bottom: 14px;
    word-wrap: break-word;
  }
  
  .hero p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  /* Navigation header */
  .nav {
    padding: 16px 0;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .brand {
    font-size: 22px;
  }
  
  .brand img {
    height: 32px;
  }

  /* Header actions - stack on very small screens */
  .header-actions {
    gap: 8px;
  }
  
  .header-actions .header-btn {
    padding: 8px 14px;
    font-size: 13px;
    min-height: 36px;
    white-space: nowrap;
  }

  /* Product section - prevent overflow */
  .product {
    padding: 30px 20px;
    gap: 24px;
    width: 100%;
    margin: 10px auto;
    border-radius: 16px;
  }
  
  .product::before {
    width: 120px;
    height: 3px;
  }

  /* Product info - better text wrapping */
  .product-info h2 {
    font-size: clamp(24px, 6vw, 32px);
    word-wrap: break-word;
    line-height: 1.25;
  }

  /* Checklist items - prevent overflow */
  .checklist li {
    padding: 14px 16px 14px 48px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    border-radius: 14px;
  }
  
  .checklist li::before {
    left: 16px;
    width: 18px;
    height: 18px;
  }
  
  .checklist li::after {
    left: 19px;
    font-size: 11px;
  }

  /* Price row - stack on small screens */
  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .price {
    font-size: 28px;
  }

  /* Buttons - full width on mobile */
  .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
  }
  
  .qty-row {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .qty-row input {
    width: 100%;
  }

  /* Gallery - prevent image overflow */
  .gallery {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  #mainProductImage,
  .hero-image {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
  }

  /* Product description */
  .product-description {
    padding: 30px 20px;
    width: 100%;
    margin: 20px auto;
  }
  
  .product-description::before {
    display: none; /* Hide turquoise line on mobile */
  }
  
  .product-description h2 {
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 16px;
  }
  
  .product-description > p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Ingredients - stack properly */
  .ingredients-list {
    gap: 12px;
  }
  
  .ingredient-item {
    padding: 14px 14px;
    gap: 12px;
    border-radius: 12px;
  }
  
  .ing-icon {
    width: 44px;
    height: 44px;
    font-size: 24px;
    border-radius: 10px;
  }
  
  .ing-name {
    font-size: 15px;
  }
  
  .ing-dose {
    font-size: 12px;
    padding: 4px 10px;
  }
  
  .ing-desc {
    font-size: 13px;
  }

  /* Usage panels - stack and prevent overflow */
  .usage-panels {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .u-panel {
    padding: 14px 14px;
    gap: 12px;
    border-radius: 12px;
  }
  
  .u-panel .u-icon {
    font-size: 24px;
  }
  
  .u-panel h4 {
    font-size: 14px;
  }
  
  .u-panel p {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Reviews section */
  .reviews {
    padding: 40px 0 40px 0 !important; /* Equal top/bottom padding so background wraps border */
  }

  .reviews::after {
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) calc(100% - 40px), rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) calc(100% - 40px), rgba(0,0,0,0) 100%);
  }
  
  .reviews > div:first-child {
    margin-top: 0 !important; /* No extra margin - padding handles top space */
  }
  
  .reviews-carousel {
    margin-top: 0 !important;
    margin-bottom: 40px !important; /* Space between reviews and bottom border */
  }
  
  .reviews-bottom-border {
    margin-bottom: 40px !important; /* Space between bottom border and blog heading */
  }
  
  .reviews h2 {
    font-size: clamp(24px, 6vw, 32px);
    padding: 0 12px;
    margin-bottom: 30px; /* Added bottom margin to heading */
  }

  /* Review cards - prevent overflow */
  .review-item {
    padding: 20px 16px !important; /* Ensure horizontal padding is preserved */
    min-width: 0;
    flex: 0 0 calc(100% - 24px);
    border-radius: 12px;
  }
  
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .review-header-left,
  .review-header-right {
    width: 100%;
  }
  
  .review-header .review-user {
    max-width: 100%;
    font-size: 14px;
  }
  
  .review-text {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Review form */
  #reviewForm {
    max-width: 100%;
    padding: 0 12px;
  }
  
  .rating-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .rating-row label {
    min-width: auto;
  }
  
  #starRating {
    justify-content: center;
    padding: 10px;
  }

  /* About & Contact sections */
  .about-intro,
  .contact-intro {
    padding: 20px 16px;
    gap: 16px;
  }
  
  .about-lead,
  .contact-intro .lead {
    font-size: 16px;
    padding: 20px 20px 18px;
    line-height: 1.6;
  }
  
  .about-sub,
  .contact-intro .sub {
    font-size: 14px;
    padding: 0 12px;
  }
  
  .about-cards,
  .contact-grid {
    gap: 16px;
  }
  
  .about-card,
  .contact-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  /* Footer */
  .site-footer {
    padding: 30px 0 24px;
    margin-top: 80px; /* Added top margin for spacing from blog section */
  }
  
  .footer-columns {
    gap: 24px;
  }
  
  .footer-column h4 {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  .footer-column nav a {
    font-size: 13px;
  }
  
  .footer-bottom {
    padding-top: 20px;
  }
  
  .footer-bottom p {
    font-size: 12px;
  }

  /* Modals - full screen on mobile */
  .checkout-modal,
  .success-modal {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    padding: 20px;
  }

  /* Page titles */
  .page-title {
    font-size: clamp(28px, 8vw, 36px);
    padding: 50px 12px 40px;
    line-height: 1.3;
  }
}

/* Extra small devices - 480px and below */
@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 0 24px;
  }
  
  /* Fix header spacing on mobile */
  .nav {
    padding: 20px 20px 32px 20px;
  }
  
  .hero h1 {
    font-size: clamp(24px, 7vw, 32px);
  }
  
  .brand {
    font-size: 20px;
  }
  
  .brand img {
    height: 28px;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .header-actions .header-btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 12px;
  }
  
  .product {
    padding: 20px 12px;
  }
  
  .product-info h2 {
    font-size: 22px;
  }
  
  .checklist li {
    padding: 12px 12px 12px 42px;
    font-size: 13px;
  }
  
  .price {
    font-size: 24px;
  }
  
  .ingredient-item {
    padding: 12px;
  }
  
  .ing-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .ing-name {
    font-size: 14px;
  }
  
  .ing-desc {
    font-size: 12px;
  }
  
  .review-item {
    padding: 14px;
  }
  
  .about-lead,
  .contact-intro .lead {
    font-size: 15px;
    padding: 16px 16px 14px;
  }
  
  .cart-panel {
    width: 100%;
  }
}

/* Landscape orientation fixes for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-inner {
    padding: 30px 0;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .product {
    padding: 25px 16px;
  }
  
  #mainProductImage,
  .hero-image {
    width: 50%;
    max-width: 300px;
  }
}