:root {
  --esc507-ink: #261812;
  --esc507-muted: #75665c;
  --esc507-border: #eadfd2;
  --esc507-sun: #f4c300;
  --esc507-coral: #f45b5b;
  --esc507-teal: #149e8e;
  --esc507-cream: #fff7ee;
  --esc507-shadow: 0 22px 60px rgba(92, 50, 24, .14);
}

.esc507-deals,
.esc507-categories,
.esc507-trust {
  width: min(1180px, calc(100% - 32px));
  margin: 64px auto;
}

.esc507-editor-hero {
  margin-top: 0;
  overflow: hidden;
}

.esc507-editor-hero--small h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.esc507-editor-hero .wp-block-cover__inner-container {
  width: min(920px, calc(100% - 32px));
}

.esc507-editor-hero h1 {
  margin: 0 auto 18px;
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: .96;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}

.esc507-editor-hero p {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 255, 255, .92);
  font-size: 1.15rem;
}

.esc507-kicker-block {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 14px;
  color: #ffe08a !important;
  font-size: .85rem !important;
  font-weight: 950;
  text-transform: uppercase;
}

.esc507-search-strip {
  position: relative;
  z-index: 3;
  width: min(1080px, calc(100% - 32px));
  margin: -42px auto 40px;
}

.esc507-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--esc507-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--esc507-shadow);
}

.esc507-search-card input,
.esc507-search-card select,
.esc507-subscribe input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--esc507-border);
  border-radius: 999px;
  background: #fff;
  color: var(--esc507-ink);
}

.esc507-editor-search {
  position: relative;
  z-index: 3;
  width: min(1080px, calc(100% - 32px));
  margin: -42px auto 40px;
  padding: 16px;
  border: 1px solid var(--esc507-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--esc507-shadow);
}

.esc507-editor-search .wp-block-search__inside-wrapper {
  gap: 12px;
}

.esc507-editor-search input {
  min-height: 48px;
  border: 1px solid var(--esc507-border);
  border-radius: 999px;
}

.esc507-editor-search button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--esc507-teal), #43c2ad);
  color: #fff;
  font-weight: 950;
}

.esc507-editor-section {
  width: min(1180px, calc(100% - 32px));
  margin: 64px auto;
}

.esc507-editor-card {
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(92, 50, 24, .08);
}

.esc507-editor-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 950;
}

.esc507-editor-card p {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-weight: 650;
}

.esc507-editor-category {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--esc507-shadow);
}

.esc507-editor-category h3 {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 950;
}

.esc507-editor-flash {
  max-width: none !important;
  margin: 42px 0;
  padding: 18px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(90deg, var(--esc507-coral), var(--esc507-sun), var(--esc507-teal));
  color: #fff;
}

.esc507-editor-flash h3,
.esc507-editor-flash p {
  margin: 0;
  color: #fff;
}

.esc507-editor-subscribe {
  width: min(1180px, calc(100% - 32px));
  margin: 70px auto;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--esc507-shadow);
}

.esc507-section-head {
  margin-bottom: 30px;
  text-align: center;
}

.esc507-section-head h2 {
  margin: 0;
  color: var(--esc507-ink);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.esc507-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.esc507-product-card {
  overflow: hidden;
  border: 1px solid var(--esc507-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--esc507-shadow);
}

.esc507-product-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1.35;
  overflow: hidden;
  background: #ecdcc9;
}

.esc507-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.esc507-product-card:hover .esc507-product-card__image img {
  transform: scale(1.04);
}

.esc507-card-badge-stack {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
}

.esc507-card-badge-stack {
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.esc507-card-badges-left,
.esc507-card-badges-right {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.esc507-card-badges-left {
  grid-column: 1;
  grid-row: 1;
  justify-content: flex-start;
}

.esc507-card-badges-right {
  grid-column: 1;
  grid-row: 1;
  justify-content: flex-end;
  padding-left: 96px;
}

.esc507-card-subbadges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
}

.esc507-product-card__image > span,
.esc507-card-badges-left span,
.esc507-card-badges-right span,
.esc507-card-subbadges span {
  position: static !important;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--esc507-sun), var(--esc507-coral));
  color: #fff;
  font-size: .82rem;
  font-weight: 950;
  pointer-events: auto;
  white-space: nowrap;
}

.esc507-deadline-pill {
  background: #f04e23 !important;
}

.esc507-deadline-pill--soon {
  background: #c8912d !important;
}

.esc507-new-pill {
  background: #087966 !important;
}

.esc507-featured-pill {
  background: #005040 !important;
}

.esc507-product-card__body {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.esc507-product-card__category,
.esc507-product-card__category a {
  color: var(--esc507-teal);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.esc507-product-card h3 {
  margin: 0;
  color: var(--esc507-ink);
  font-size: 1.35rem;
  line-height: 1.12;
}

.esc507-product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.esc507-product-card p {
  margin: 0;
  color: var(--esc507-muted);
}

.esc507-product-card .esc507-price-row {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(92px, 1fr);
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  color: var(--esc507-ink);
  font-weight: 950;
}

.esc507-product-card .esc507-price-row .price {
  display: grid;
  min-width: 0;
  gap: 4px;
  line-height: 1;
}

.esc507-product-card .esc507-price-row del {
  display: block;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: #93877f;
  font-size: .9rem;
  line-height: 1;
}

.esc507-product-card .esc507-price-row ins {
  display: block;
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  color: var(--esc507-ink);
  font-size: 1.42rem;
  line-height: 1;
  text-decoration: none;
}

.esc507-product-card .esc507-price-row strong {
  color: var(--esc507-teal);
}

.esc507-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.esc507-product-card .esc507-countdown {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.esc507-countdown span {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 42px;
  border-radius: 10px;
  background: var(--esc507-ink);
  color: #fff;
  font-size: .66rem;
  font-weight: 850;
  text-align: center;
}

.esc507-countdown strong {
  display: block;
  font-size: .9rem;
  line-height: 1;
}

.esc507-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.esc507-card-foot > span,
.esc507-sold-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(20, 158, 142, .22);
  border-radius: 999px;
  background: rgba(20, 158, 142, .09);
  color: #0c6f64;
  font-size: .85rem;
  font-weight: 900;
}

.esc507-product-card .esc507-price-row .esc507-sold-pill {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  max-width: 126px;
  min-height: 32px;
  padding: 0 10px;
  font-size: .74rem;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
}

.esc507-button,
.esc507-loop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--esc507-teal), #43c2ad);
  color: #fff;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(20, 158, 142, .24);
}

.esc507-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}

.esc507-category-card {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 190px;
  overflow: hidden;
  padding: 22px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--esc507-shadow);
}

.esc507-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .68));
}

.esc507-category-card span {
  position: relative;
  font-size: 1.35rem;
  font-weight: 950;
}

.esc507-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.esc507-trust-grid > div {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--esc507-border);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, var(--esc507-cream));
  box-shadow: 0 18px 48px rgba(92, 50, 24, .08);
}

.esc507-trust-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--esc507-bg);
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  opacity: .16;
  transform: scale(1.04);
}

.esc507-trust-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 247, 238, .86));
}

.esc507-trust-grid strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  color: var(--esc507-ink);
  font-size: 1.05rem;
}

.esc507-trust-grid p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--esc507-muted);
}

.esc507-flash-band {
  margin: 42px 0;
  padding: 0;
  background: linear-gradient(90deg, var(--esc507-coral), var(--esc507-sun), var(--esc507-teal));
}

.esc507-flash-band > div {
  width: min(1180px, calc(100% - 32px));
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 20px;
  align-items: center;
  margin: 0 auto;
  color: #fff;
}

.esc507-flash-band strong {
  font-size: 1.35rem;
  font-weight: 950;
}

.esc507-flash-band a {
  display: inline-flex;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  text-decoration: none;
}

.esc507-subscribe {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: center;
  margin: 70px auto;
  padding: 42px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(38, 24, 18, .88), rgba(20, 158, 142, .78)),
    url("../img/hero-panama-beach.jpg") center/cover;
  color: #fff;
  box-shadow: var(--esc507-shadow);
}

.esc507-subscribe span {
  color: #ffe08a;
  font-size: .84rem;
  font-weight: 950;
  text-transform: uppercase;
}

.esc507-subscribe h2 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.esc507-subscribe p {
  margin: 0;
  color: rgba(255, 255, 255, .86);
}

.esc507-subscribe__form {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
}

.esc507-subscribe__form form {
  display: grid;
  gap: 14px;
}

.esc507-subscribe label {
  display: grid;
  gap: 6px;
  font-weight: 850;
}

.esc507-subscribe small,
.esc507-subscribe-message {
  color: rgba(255, 255, 255, .8);
}

body.single-product .esc-content > .entry-title,
body.single-product article.product > .entry-title {
  display: none;
}

body.single-product .summary .esc507-single-product-title {
  margin: 0 0 10px;
  color: #005040;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: 0;
}

body.single-product .summary p.price,
body.single-product .summary span.price {
  display: block;
  margin: 0 0 18px;
  color: var(--esc507-ink);
  font-size: 1.12rem;
  font-weight: 950;
}

body.single-product .summary p.price del,
body.single-product .summary span.price del {
  margin-right: 8px;
  color: #8f8378;
  opacity: 1;
}

body.single-product .summary p.price ins,
body.single-product .summary span.price ins {
  color: var(--esc507-ink);
  text-decoration: none;
}

.esc507-single-panel {
  display: grid;
  gap: 12px;
  margin: 12px 0 18px;
  padding: 14px 0;
  border-top: 1px solid var(--esc507-border);
  border-bottom: 1px solid var(--esc507-border);
}

.esc507-single-panel > div:first-child > span {
  display: block;
  margin-bottom: 7px;
  color: #0c6f64;
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.esc507-countdown--single {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 300px;
  gap: 7px;
}

.esc507-countdown--single span {
  min-height: 42px;
  border-radius: 10px;
  font-size: .66rem;
}

.esc507-countdown--single strong {
  font-size: .92rem;
}

.esc507-purchase-options {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
}

.esc507-purchase-option {
  display: block;
  cursor: pointer;
}

.esc507-purchase-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.esc507-purchase-option > span {
  display: grid;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid var(--esc507-border);
  border-radius: 15px;
  background: #fff;
  color: var(--esc507-ink);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.esc507-purchase-option input:checked + span {
  border-color: var(--esc507-sun);
  box-shadow: 0 10px 26px rgba(244, 195, 0, .16);
}

.esc507-purchase-option > span:hover {
  transform: translateY(-1px);
}

.esc507-purchase-option strong {
  font-size: 1rem;
  line-height: 1.15;
}

.esc507-purchase-option em {
  color: var(--esc507-muted);
  font-size: .92rem;
  font-style: normal;
  font-weight: 700;
}

.esc507-purchase-option b {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.esc507-purchase-option del {
  color: #9b8b80;
  font-size: .9rem;
  font-weight: 850;
}

.esc507-purchase-option ins {
  color: var(--esc507-ink);
  font-size: 1.38rem;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
}

.esc507-purchase-option small {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(20, 158, 142, .12);
  color: #0c6f64;
  font-size: .78rem;
  font-weight: 950;
}

body.single-product form.cart {
  margin-top: 12px;
}

body.single-product form.cart .quantity .qty {
  max-width: 54px;
  min-height: 42px;
}

body.single-product form.cart .single_add_to_cart_button {
  min-height: 42px;
  padding-inline: 20px;
}

.esc507-offer-accordions {
  width: min(980px, calc(100% - 32px));
  display: grid;
  gap: 14px;
  margin: 36px auto 64px;
}

.esc507-offer-accordion {
  overflow: hidden;
  border: 1px solid var(--esc507-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(92, 50, 24, .07);
}

.esc507-offer-accordion summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 26px;
  color: var(--esc507-ink);
  font-weight: 950;
  list-style: none;
  cursor: pointer;
}

.esc507-offer-accordion summary::-webkit-details-marker {
  display: none;
}

.esc507-offer-accordion summary::after {
  content: "+";
  color: var(--esc507-sun);
  font-size: 1.6rem;
  line-height: 1;
}

.esc507-offer-accordion[open] summary::after {
  content: "-";
}

.esc507-offer-accordion > div {
  padding: 0 26px 24px;
  color: var(--esc507-muted);
}

.esc507-offer-accordion p:last-child {
  margin-bottom: 0;
}

.esc507-vouchers {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--esc507-border);
  border-radius: 18px;
  background: #fff;
}

.esc507-voucher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.esc507-voucher {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 16px;
  border-radius: 14px;
  background: var(--esc507-cream);
  text-align: center;
}

.esc507-voucher img {
  width: 150px;
  max-width: 100%;
  height: auto;
}

.esc507-lookup {
  width: min(780px, calc(100% - 32px));
  margin: 70px auto;
}

.esc507-lookup section {
  padding: 34px;
  border: 1px solid var(--esc507-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--esc507-shadow);
}

.esc507-kicker {
  color: var(--esc507-teal);
  font-weight: 950;
  text-transform: uppercase;
}

.esc507-notice {
  padding: 18px;
  border-radius: 14px;
  background: var(--esc507-cream);
  color: var(--esc507-muted);
}

.esc507-protected {
  -webkit-touch-callout: none;
}

.esc507-protected img {
  -webkit-user-drag: none;
}

@media (max-width: 720px) {
  .esc507-deals,
  .esc507-categories,
  .esc507-trust {
    width: min(100% - 20px, 1180px);
    margin: 42px auto;
  }

  .esc507-editor-hero {
    min-height: 620px !important;
  }

  .esc507-search-strip {
    width: min(100% - 20px, 1080px);
    margin-top: -28px;
  }

  .esc507-editor-search {
    width: min(100% - 20px, 1080px);
    margin-top: -28px;
  }

  .esc507-search-card,
  .esc507-flash-band > div,
  .esc507-subscribe {
    grid-template-columns: 1fr;
  }

  .esc507-flash-band > div {
    padding: 22px 0;
  }

  .esc507-subscribe {
    width: min(100% - 20px, 1180px);
    padding: 28px 18px;
  }

  .esc507-product-card__body {
    padding: 18px;
  }

  .esc507-product-card .esc507-price-row {
    grid-template-columns: minmax(0, max-content) minmax(88px, 1fr);
    column-gap: 10px;
    row-gap: 4px;
  }

  .esc507-product-card .esc507-price-row .esc507-sold-pill {
    justify-self: end;
    align-self: center;
    max-width: 112px;
    white-space: normal;
  }

  .esc507-product-card .esc507-countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .esc507-product-card .esc507-countdown span {
    min-height: 38px;
    border-radius: 9px;
    font-size: .58rem;
  }

  .esc507-product-card .esc507-countdown strong {
    font-size: .78rem;
  }

  .esc507-card-foot {
    display: grid;
    justify-items: start;
  }

  body.single-product .summary .esc507-single-product-title {
    font-size: clamp(1.9rem, 9vw, 2.75rem);
  }

  .esc507-purchase-option > span {
    padding: 15px;
  }

  .esc507-purchase-option b {
    display: grid;
    gap: 6px;
    justify-items: start;
  }

  .esc507-purchase-option ins {
    font-size: 1.28rem;
  }

  .esc507-purchase-option small {
    min-height: 24px;
  }

  body.single-product .summary p.price del,
  body.single-product .summary span.price del,
  body.single-product .summary p.price ins,
  body.single-product .summary span.price ins {
    display: block;
  }

  body.single-product .summary p.price del,
  body.single-product .summary span.price del {
    margin: 0 0 5px;
  }
}
