:root {
  --pantry-cream: #f6efe6;
  --pantry-paper: #fbf7f0;
  --pantry-warm: #e5d3bd;
  --pantry-brown: #3f2c22;
  --pantry-soft: rgba(63, 44, 34, 0.72);
  --pantry-muted: rgba(63, 44, 34, 0.56);
  --pantry-line: rgba(137, 102, 68, 0.24);
  --pantry-accent: #9b7348;
  --pantry-green: #879060;
  --pantry-serif: "Cormorant Garamond", Georgia, serif;
  --pantry-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.df-pantry-page {
  overflow: hidden;
  background: var(--pantry-cream);
  color: var(--pantry-brown);
  font-family: var(--pantry-sans);
}

.df-pantry-page *,
.df-pantry-page *::before,
.df-pantry-page *::after {
  box-sizing: border-box;
}

.df-pantry-container {
  width: min(1420px, calc(100% - 64px));
  margin-inline: auto;
}

.df-pantry-hero {
  position: relative;
  min-height: clamp(680px, 92vh, 980px);
  display: grid;
  align-items: center;
  padding: 120px 0 96px;
  background: var(--pantry-paper);
}

.df-pantry-hero__image {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center end;
  padding: 9vw 5vw 7vw 42vw;
  background:
    linear-gradient(90deg, rgba(251, 247, 240, 0.98) 0%, rgba(251, 247, 240, 0.86) 35%, rgba(251, 247, 240, 0.54) 100%),
    url("/images/ensemble-hero-desktop-16x9.png") center right / cover no-repeat;
}

.df-pantry-pack-row {
  width: min(720px, 48vw);
  min-height: 390px;
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  gap: clamp(10px, 1vw, 18px);
  align-items: end;
  transform: translateY(32px);
}

.df-pack {
  position: relative;
  min-height: clamp(240px, 23vw, 360px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 12px 24px;
  border: 1px solid rgba(112, 82, 56, 0.18);
  border-radius: 6px;
  background: linear-gradient(180deg, #fffaf3 0%, #efe1cf 100%);
  box-shadow: 0 18px 45px rgba(65, 43, 26, 0.12);
}

.df-pack::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  width: 58%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: center / cover no-repeat;
  box-shadow: inset 0 0 0 999px rgba(255, 247, 235, 0.14);
}

.df-pack span {
  position: relative;
  max-width: 120px;
  color: var(--pantry-brown);
  font-family: var(--pantry-serif);
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.05;
  text-align: center;
}

.df-pack--rum::before,
.df-pantry-card__image--rum { background-image: url("/images/cantucci.jpg"); }
.df-pack--original::before,
.df-pantry-card__image--original { background-image: url("/images/cantucci2.png"); }
.df-pack--taralli::before,
.df-pantry-card__image--taralli { background-image: url("/images/taralli.jpg"); }
.df-pack--brutti::before,
.df-pantry-card__image--brutti { background-image: url("/images/brutti-e-buoni.jpg"); }
.df-pack--pistachio::before,
.df-pantry-card__image--pistachio { background-image: url("/images/pistachio.JPG"); }

.df-pantry-hero__copy {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 64px));
  margin-left: max(32px, calc((100vw - 1420px) / 2 + 32px));
}

.df-pantry-eyebrow {
  margin: 0 0 12px !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #6f6258 !important;
}

.df-pantry-hero h1,
.df-pantry-section-title,
.df-pantry-seasonal h2,
.df-pantry-retailers h2 {
  margin: 0;
  font-family: var(--pantry-serif);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--pantry-brown);
}

.df-pantry-hero h1 {
  max-width: 540px;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(46px, 4vw, 68px) !important;
  line-height: 1.08 !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  color: #3f2c22 !important;
}

.df-pantry-hero p:not(.df-pantry-eyebrow) {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--pantry-soft);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.72;
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: break-word;
}

.df-pantry-section {
  padding: 110px 0 96px;
  background: var(--pantry-cream);
}

.df-pantry-section-title {
  margin-bottom: 34px;
  font-size: clamp(2.8rem, 4vw, 4.7rem);
  line-height: 1;
}

.df-pantry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.df-pantry-card {
  min-width: 0;
}

.df-pantry-card__front {
  width: 100%;
  min-height: 530px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--pantry-line);
  border-radius: 8px;
  background: var(--pantry-paper);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(64, 43, 29, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.df-pantry-card__front:hover,
.df-pantry-card__front[aria-expanded="true"] {
  border-color: rgba(155, 115, 72, 0.48);
  box-shadow: 0 18px 44px rgba(64, 43, 29, 0.1);
  transform: translateY(-2px);
}

.df-pantry-card__image {
  width: 100%;
  aspect-ratio: 1 / 1.03;
  margin-bottom: 24px;
  border-radius: 6px;
  background-color: #efe1cf;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.df-pantry-card__name {
  display: block;
  min-height: 72px;
  font-family: var(--pantry-serif);
  font-size: clamp(2rem, 2.2vw, 2.7rem);
  line-height: 0.98;
}

.df-pantry-card__flag {
  display: block;
  margin: 10px 0 0;
  color: var(--pantry-green);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.df-pantry-card__descriptor {
  display: block;
  min-height: 48px;
  margin-top: 12px;
  color: var(--pantry-soft);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.45;
}

.df-pantry-card__more {
  display: inline-block;
  margin-top: auto;
  padding-top: 24px;
  color: var(--pantry-accent);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.df-pantry-card__details {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--pantry-line);
  border-radius: 8px;
  background: #f8efe3;
  animation: pantryExpand 0.28s ease both;
}

.df-pack-back {
  min-height: 430px;
  padding: 28px 26px 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0)),
    repeating-linear-gradient(0deg, rgba(92, 63, 42, 0.045) 0 1px, transparent 1px 36px),
    #f5eadb;
  color: var(--pantry-brown);
}

.df-pack-back h3 {
  margin: 0 0 22px;
  font-family: var(--pantry-serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.df-pack-back dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.df-pack-back div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(125, 92, 61, 0.18);
}

.df-pack-back dt,
.df-pack-back dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.48;
}

.df-pack-back dt {
  color: var(--pantry-muted);
  font-weight: 600;
}

.df-pack-back dd {
  color: var(--pantry-soft);
}

.df-pantry-seasonal {
  padding: 96px 0 108px;
  background: var(--pantry-paper);
}

.df-pantry-seasonal__image,
.df-pantry-closing {
  overflow: hidden;
  border-radius: 8px;
  background: var(--pantry-warm);
}

.df-pantry-seasonal__image img,
.df-pantry-closing img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.df-pantry-seasonal__image {
  height: clamp(440px, 54vw, 760px);
  margin-bottom: 32px;
}

.df-pantry-seasonal h2 {
  font-size: clamp(2.7rem, 4vw, 4.6rem);
  line-height: 1;
}

.df-pantry-seasonal p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--pantry-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.df-pantry-retailers {
  padding: 112px 0;
  background: var(--pantry-cream);
}

.df-pantry-retailers__inner {
  max-width: 920px;
}

.df-pantry-retailers h2 {
  font-size: clamp(2.7rem, 4vw, 4.6rem);
  line-height: 1;
}

.df-pantry-retailers p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--pantry-soft);
  font-size: 1.08rem;
  line-height: 1.72;
}

.df-pantry-retailers__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 32px;
}

.df-pantry-retailers__links a {
  color: var(--pantry-accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.df-pantry-closing {
  width: min(1420px, calc(100% - 64px));
  height: clamp(420px, 54vw, 760px);
  margin: 0 auto 112px;
}

.df-pantry-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.df-pantry-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pantryExpand {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .df-pantry-container,
  .df-pantry-closing {
    width: min(100% - 48px, 980px);
  }

  .df-pantry-hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 112px 0 0;
  }

  .df-pantry-hero__image {
    position: relative;
    inset: auto;
    order: 2;
    height: auto;
    min-height: 500px;
    margin-top: 52px;
    place-items: center;
    padding: 72px 32px 86px;
    background:
      linear-gradient(180deg, rgba(251, 247, 240, 0.72) 0%, rgba(251, 247, 240, 0.24) 100%),
      url("/images/ensemble-hero-desktop-16x9.png") center / cover no-repeat;
  }

  .df-pantry-pack-row {
    width: min(720px, 88vw);
    transform: none;
  }

  .df-pantry-hero__copy {
    width: min(620px, calc(100% - 48px));
    margin-inline: auto;
  }

  .df-pantry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .df-pantry-container,
  .df-pantry-closing {
    width: calc(100% - 34px);
  }

  .df-pantry-hero {
    padding: 92px 0 0;
  }

  .df-pantry-hero__copy {
    width: calc(100vw - 56px);
    max-width: calc(100vw - 56px);
    margin-inline: auto;
    padding: 0;
  }

  .df-pantry-hero h1 {
    font-size: clamp(40px, 10.5vw, 46px) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  .df-pantry-hero p:not(.df-pantry-eyebrow) {
    width: 100%;
    max-width: 300px !important;
    font-size: 0.98rem;
    line-height: 1.62;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .df-pantry-hero__image {
    min-height: 360px;
    margin-top: 36px;
    overflow: hidden;
    padding: 42px 16px 54px;
  }

  .df-pantry-pack-row {
    width: 100%;
    min-height: 250px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
  }

  .df-pack {
    min-width: 0;
    min-height: 190px;
    padding: 14px 6px 18px;
  }

  .df-pack::before {
    top: 18px;
    width: 64%;
  }

  .df-pack span {
    max-width: 100%;
    font-size: 0.68rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .df-pantry-section,
  .df-pantry-seasonal,
  .df-pantry-retailers {
    padding: 74px 0;
  }

  .df-pantry-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .df-pantry-card__front {
    min-height: 0;
    padding: 16px;
  }

  .df-pantry-card__name {
    min-height: auto;
    font-size: 2.2rem;
  }

  .df-pantry-card__descriptor {
    min-height: auto;
  }

  .df-pack-back {
    min-height: 0;
    padding: 24px 18px;
  }

  .df-pack-back div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .df-pantry-seasonal__image,
  .df-pantry-closing {
    height: 430px;
  }

  .df-pantry-retailers__links {
    display: grid;
  }
}
