/* ===============================
   EPAGE MENU - FRONTEND
   Responsive + hard overrides for Elementor/theme conflicts
   =============================== */

/* ----------------------------------------------------------
   0) Optional breakout (ONLY if you need it)
   If you don't need full-viewport breakout, you can remove this block.
---------------------------------------------------------- */
.epd-menu-wrap {
  position: relative !important;

  /* full viewport width breakout */
  width: 100vw !important;
  max-width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;

  box-sizing: border-box !important;
  display: block !important;
  min-width: 0 !important;

  /* prevent tiny horizontal scroll in some themes */
  overflow-x: clip;

  padding: clamp(28px, 4.5vw, 72px) 0;
  color: rgba(255, 255, 255, .88);
  font-family: inherit;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.55;
}

.epd-menu-wrap {
  flex: 0 0 auto !important;
  align-self: stretch;
  justify-self: stretch;
}

/* ----------------------------------------------------------
   1) Inner menu container (centered)
---------------------------------------------------------- */
.epd-menu-grid {
  width: min(1280px, 92vw) !important;
  max-width: 1280px !important;
  margin: 0 auto !important;

  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4.5vw, 70px);

  min-width: 0;
}

.epd-menu-intro {
  width: min(1280px, 92vw);
  max-width: 1280px;
  margin: 0 auto clamp(18px, 2.5vw, 34px);
  opacity: .92;
  max-width: 75ch;
}

/* ----------------------------------------------------------
   2) Rows & sections (HARD FIX)
   Ensures FULL rows never become 2 columns due to theme CSS
---------------------------------------------------------- */
.epd-row {
  display: grid !important;
  gap: clamp(18px, 4vw, 70px);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* FULL row ALWAYS 1 column */
.epd-row.epd-row-1 {
  grid-template-columns: 1fr !important;
}

/* HALF row 2 columns on desktop */
.epd-row.epd-row-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.epd-section {
  min-width: 0;
  width: 100%;
}

/* FULL blocks span full width even if something tries to override */
.epd-section.epd-full {
  grid-column: 1 / -1 !important;
}

/* Mobile stack */
@media (max-width: 900px) {
  .epd-row.epd-row-2 {
    grid-template-columns: 1fr !important;
  }
}

/* ----------------------------------------------------------
   3) Section header
---------------------------------------------------------- */
.epd-section-header {
  text-align: center;
  margin-bottom: clamp(14px, 2vw, 26px);
}

.epd-ornament {
  opacity: .85;
  letter-spacing: .25em;
  margin-bottom: 10px;
  font-size: 14px;
}

.epd-section-title {
  margin: 0;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 650;
  font-size: clamp(22px, 2.4vw, 44px);
  color: rgba(214, 177, 120, .97);
  overflow-wrap: anywhere;
}

.epd-section-subtitle {
  margin-top: 10px;
  opacity: .9;
  line-height: 1.55;
  font-size: clamp(14px, 1.1vw, 18px);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------
   4) Items
---------------------------------------------------------- */
.epd-item {
  padding: clamp(14px, 1.6vw, 22px) 0;
}

.epd-item-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.epd-item-name {
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 650;
  color: rgba(214, 177, 120, .97);
  font-size: clamp(14px, 1.25vw, 18px);
  overflow-wrap: anywhere;
  min-width: 0;
}

.epd-item-rule {
  height: 2px;
  background: rgba(214, 177, 120, .42);
}

.epd-item-price {
  letter-spacing: .10em;
  color: rgba(214, 177, 120, .97);
  font-weight: 650;
  font-size: clamp(14px, 1.25vw, 18px);
  white-space: nowrap;
}

.epd-item-desc {
  margin-top: 10px;
  opacity: .92;
  line-height: 1.6;
  font-size: clamp(14px, 1.1vw, 17px);
  max-width: 72ch;
  overflow-wrap: anywhere;
}

.epd-item-note {
  margin-top: 8px;
  opacity: .78;
  font-size: clamp(13px, 1vw, 16px);
  overflow-wrap: anywhere;
}

.epd-item-vert-desc {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.epd-item-vert-desc li {
  opacity: .82;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.6;
  padding-left: 16px;
  overflow-wrap: anywhere;
}

/* ----------------------------------------------------------
   5) Extras
---------------------------------------------------------- */
.epd-extras {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.epd-extra {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding-left: 18px;
  min-width: 0;
}

.epd-extra-name {
  opacity: .92;
  font-size: clamp(13px, 1.05vw, 16px);
  overflow-wrap: anywhere;
  min-width: 0;
}

.epd-extra-rule {
  height: 2px;
  background: rgba(214, 177, 120, .28);
}

.epd-extra-price {
  white-space: nowrap;
  opacity: .92;
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 600;
}

/* ----------------------------------------------------------
   6) Responsive refinements
---------------------------------------------------------- */
@media (max-width: 1100px) {
  .epd-menu-grid {
    width: min(980px, 92vw) !important;
    max-width: 980px !important;
  }

  .epd-row {
    gap: clamp(16px, 3vw, 40px);
  }
}

@media (max-width: 900px) {
  .epd-menu-grid {
    width: min(720px, 92vw) !important;
    max-width: 720px !important;
  }

  .epd-item-line {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .epd-item-rule {
    display: none;
  }

  .epd-extra {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-left: 14px;
  }

  .epd-extra-rule {
    display: none;
  }
}

@media (max-width: 480px) {
  .epd-section-title {
    letter-spacing: .18em;
  }

  .epd-item-name {
    letter-spacing: .18em;
  }
}