/* Flat pastel palette sampled from the supplied PUFFHS reference. */
:root {
  --pastel-maroon: #6f2528;
  --pastel-pink: #e7a6aa;
  --pastel-sage: #bcc7a0;
  --pastel-peach: #efb765;
  --pastel-lime: #dcefad;
  --pastel-cream: #fff1dd;
}

body,
.app-container {
  background: var(--pastel-cream) !important;
}

.header__inner,
.header__meta { color: var(--pastel-maroon); }

.logo__image {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(18%) sepia(26%) saturate(2527%) hue-rotate(310deg) brightness(83%) contrast(97%);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(111, 37, 40, .45);
  font-size: .66rem;
  font-weight: 800;
}

.language-switcher__button {
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: rgba(111, 37, 40, .48);
  font: inherit;
  cursor: pointer;
}

.language-switcher__button.is-active {
  color: var(--pastel-maroon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-container::before,
.app-container::after,
.detail-overlay::before,
.detail-overlay::after {
  display: none !important;
}

.panel--classic { background: var(--pastel-peach); }
.panel--pistachio { background: var(--pastel-sage); }
.panel--berry { background: var(--pastel-pink); }

.panel__title,
.panel.is-active .panel__title,
.panel:not(.is-active) .panel__title {
  background: none;
  color: var(--pastel-maroon);
  -webkit-text-fill-color: currentColor;
}

.panel:not(.is-active) .panel__title {
  color: rgba(111, 37, 40, .38);
}

/* Ground the transparent can cutouts with ambient and contact shadows. */
.panel .image-wrapper::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 64%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(57, 25, 18, .42) 0%, rgba(57, 25, 18, .2) 45%, transparent 74%);
  filter: blur(7px);
  transform: translateX(-50%) scaleX(1.08);
  transform-origin: center;
  z-index: 0;
  animation: canShadow 5.5s ease-in-out infinite;
}

.floating-image {
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 7px 5px rgba(48, 20, 15, .2))
    drop-shadow(0 24px 18px rgba(48, 20, 15, .27));
}

@keyframes canShadow {
  0%, 100% { opacity: .92; transform: translateX(-50%) scaleX(1.08); }
  50% { opacity: .62; transform: translateX(-50%) scaleX(.88); }
}

.btn--reveal,
.menu-btn {
  background: var(--pastel-lime);
  color: var(--pastel-maroon);
}

.btn--reveal:hover {
  background: var(--pastel-cream);
  color: var(--pastel-maroon);
}

.footer__socials a {
  background: var(--pastel-pink);
  color: var(--pastel-maroon);
}

.detail-overlay,
.side-nav { background: var(--pastel-maroon); }

/* Product detail: three clear editorial objects on the burgundy field. */
.detail-overlay {
  padding: clamp(28px, 4vw, 54px);
  color: var(--pastel-cream);
  border-color: var(--pastel-cream);
  box-shadow: 10px 10px 0 #421719;
}

.detail-content { justify-content: center; }

.detail-title {
  width: min(920px, calc(100% - 80px));
  margin: 0 auto clamp(22px, 4vh, 46px);
  color: var(--pastel-cream);
  font-size: clamp(2.4rem, 5.4vw, 5.6rem);
  line-height: .88;
  letter-spacing: -.06em;
  text-shadow: none;
}

.detail-grid {
  grid-template-columns: minmax(220px, .9fr) minmax(320px, 1.35fr) minmax(220px, .9fr);
  gap: clamp(24px, 3vw, 54px);
}

.btn-close {
  top: 20px;
  right: 20px;
  width: auto;
  height: 42px;
  padding: 0 15px;
  gap: 7px;
  border-radius: 999px;
  background: var(--pastel-lime);
  color: var(--pastel-maroon);
  border: 2px solid var(--pastel-cream);
  box-shadow: 4px 4px 0 #421719;
}

.receipt-container { transform: rotate(-2deg); }

.receipt {
  max-width: 320px;
  padding: 38px 26px 30px;
  color: var(--pastel-maroon);
  background: var(--pastel-pink);
  border: 2px solid var(--pastel-cream);
  border-top: 0;
  border-radius: 3px 3px 12px 12px;
  box-shadow: 7px 7px 0 #421719;
  -webkit-mask: radial-gradient(circle at 16px 0, transparent 7px, #000 7.5px) 0 0 / 32px 100% repeat-x;
  mask: radial-gradient(circle at 16px 0, transparent 7px, #000 7.5px) 0 0 / 32px 100% repeat-x;
}

.receipt::before,
.receipt::after { display: none; }

.receipt__header {
  padding-top: 0;
  border-top: 0;
}
.receipt__header h2,
.receipt__item-amount,
.receipt__row--bold { color: var(--pastel-maroon); }
.receipt__divider { border-color: rgba(111, 37, 40, .28); }
.receipt__item-dot { border-color: rgba(111, 37, 40, .35); }

.detail-image-wrapper {
  width: min(34vw, 470px);
  height: min(48vh, 470px);
}

.detail-image-wrapper::before {
  width: 82%;
  height: 82%;
  background: var(--pastel-sage);
  border: 2px solid var(--pastel-cream);
  box-shadow: 8px 8px 0 #421719;
}

.detail-image-wrapper::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 58%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34, 9, 10, .48) 0%, rgba(34, 9, 10, .2) 48%, transparent 75%);
  filter: blur(8px);
  transform: translateX(-50%);
  z-index: 0;
}

.detail-image {
  filter:
    drop-shadow(0 8px 6px rgba(34, 9, 10, .2))
    drop-shadow(0 28px 20px rgba(34, 9, 10, .32));
}

.info-card {
  max-width: 310px;
  padding: 28px;
  align-items: flex-start;
  text-align: left;
  background: var(--pastel-peach);
  border: 2px solid var(--pastel-cream);
  border-radius: 18px;
  box-shadow: 7px 7px 0 #421719;
}

.chef-badge-wrapper { color: var(--pastel-maroon); }
.chef-badge-icon { background: var(--pastel-lime); border-color: var(--pastel-maroon); }

.info-description {
  color: var(--pastel-maroon);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 700;
  opacity: 1;
}

.btn--order {
  background: var(--pastel-lime);
  color: var(--pastel-maroon);
  border-color: var(--pastel-maroon);
  box-shadow: 5px 5px 0 var(--pastel-maroon);
}

.btn--order:hover {
  background: var(--pastel-cream);
  color: var(--pastel-maroon);
  box-shadow: 7px 7px 0 var(--pastel-maroon);
}

@media (max-width: 1024px) {
  .detail-overlay { overflow-y: auto; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail-image-wrapper { grid-column: 1 / -1; grid-row: 1; }
  .info-card { height: 100%; }
}

@media (max-width: 760px) {
  html,
  body { min-height: 100%; }

  body { overflow: hidden; }

  .app-container {
    min-height: 100dvh;
    height: 100dvh;
    padding: 68px 10px 12px;
  }

  .header {
    top: 10px;
    left: 12px;
    right: 12px;
    height: 48px;
  }

  .header__inner { padding: 0; }
  .logo__image { width: 86px; height: 38px; }
  .header__meta { display: none; }
  .header__actions { gap: 8px; }

  .language-switcher { gap: 4px; font-size: .72rem; }
  .language-switcher__button {
    min-width: 38px;
    min-height: 44px;
  }

  .slider-container {
    height: calc(100dvh - 80px);
    min-height: 0;
    border-radius: 16px;
    box-shadow: 5px 5px 0 var(--pastel-maroon);
  }

  .panel {
    min-width: 0;
    padding: 22px 8px 92px;
  }

  .panel.is-active { flex: 7; }
  .panel:not(.is-active) { flex: .42; }
  .panel:not(.is-active) .panel__heading { display: none; }

  .panel__title,
  .panel.is-active .panel__title {
    width: 100%;
    font-size: clamp(1.7rem, 8vw, 2.5rem);
    line-height: .86;
    letter-spacing: -.07em;
  }

  .panel .image-wrapper,
  .panel.is-active .image-wrapper {
    top: 51%;
    width: min(78vw, 390px);
  }

  .panel .image-wrapper::after { bottom: 5%; width: 70%; }

  .slider-footer {
    height: 84px;
    padding: 0 12px;
  }

  .btn--reveal {
    min-height: 48px;
    max-width: calc(100vw - 72px);
    padding: 13px 18px;
    font-size: .72rem;
    white-space: nowrap;
  }

  .footer {
    left: 12px;
    right: 12px;
    bottom: 30px;
    height: 44px;
    padding: 0 8px;
  }

  .footer__socials { gap: 5px; }
  .footer__socials a,
  .menu-btn {
    width: 40px;
    height: 40px;
  }

  .menu-btn { right: 8px; bottom: 2px; }

  .side-nav {
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    padding: 88px 26px 28px;
    border-radius: 18px;
  }

  .side-nav__link {
    min-height: 56px;
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .detail-overlay {
    inset: 8px;
    padding: 76px 16px 30px;
    border-radius: 16px;
    box-shadow: 5px 5px 0 #421719;
    overscroll-behavior: contain;
  }

  .btn-close {
    top: 14px;
    left: 14px;
    right: auto;
    min-height: 44px;
    padding: 0 16px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
  }

  .detail-title {
    width: 100%;
    margin-bottom: 24px;
    font-size: clamp(2rem, 11vw, 3.7rem);
    line-height: .9;
  }

  .detail-grid { display: flex; gap: 24px; }
  .detail-image-wrapper { width: min(72vw, 280px); height: min(72vw, 280px); }
  .receipt-container { transform: none; }
  .receipt,
  .info-card { width: calc(100vw - 58px); max-width: 380px; }
  .receipt { padding: 36px 22px 26px; }
  .info-card { padding: 24px; }
  .info-description { font-size: .92rem; }
  .btn--order { min-height: 50px; }
}

@media (max-width: 380px), (max-height: 700px) and (max-width: 760px) {
  .app-container { padding-top: 60px; }
  .slider-container { height: calc(100dvh - 70px); }
  .panel { padding-top: 16px; }
  .panel__title,
  .panel.is-active .panel__title { font-size: clamp(1.55rem, 8.5vw, 2.35rem); }
  .panel .image-wrapper,
  .panel.is-active .image-wrapper { width: min(68vw, 310px); }
  .detail-overlay { padding-top: 70px; }
}
