/*
Theme Name: EATBOX Philippines Astra Child
Theme URI: https://eatbox.ph/
Description: Clean Astra child theme for the EATBOX Philippines marketplace.
Author: EATBOX
Template: astra
Version: 1.0.1
Text Domain: eatbox-ph
*/

:root {
  --eb-ink: #183126;
  --eb-ink-soft: #355247;
  --eb-cream: #f7f1e6;
  --eb-paper: #fffdf8;
  --eb-coral: #ce5d3d;
  --eb-coral-dark: #aa462d;
  --eb-gold: #edb457;
  --eb-sage: #dce6d9;
  --eb-line: rgba(24, 49, 38, 0.14);
  --eb-shadow: 0 24px 60px rgba(47, 59, 39, 0.13);
}

html { scroll-behavior: smooth; }
body {
  background: var(--eb-paper);
  color: var(--eb-ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

body.home .site-content > .ast-container,
body.home #primary {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.home .entry-header,
body.home .entry-title { display: none; }

.ast-primary-header-bar {
  background: rgba(255, 253, 248, 0.96);
  border: 0;
  border-bottom: 1px solid var(--eb-line);
  backdrop-filter: blur(14px);
}

.site-title a,
.site-title a:focus,
.site-title a:hover {
  color: var(--eb-ink);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.main-header-menu > .menu-item > .menu-link {
  color: var(--eb-ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.main-header-menu > .current-menu-item > .menu-link,
.main-header-menu > .menu-item > .menu-link:hover { color: var(--eb-coral); }

.site-header-focus-item:focus,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(206, 93, 61, 0.42);
  outline-offset: 3px;
}

.eatbox-home { overflow: hidden; background: var(--eb-paper); }
.eb-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.eb-section { padding: 92px 0 104px; }
.eb-section--cream { background: var(--eb-cream); }
.eb-section--sage { background: var(--eb-sage); }

.eb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--eb-coral-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eb-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.eb-hero {
  position: relative;
  min-height: 690px;
  background: var(--eb-cream);
}
.eb-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  min-height: 690px;
}
.eb-hero__copy { position: relative; z-index: 2; padding: 84px 44px 98px 0; }
.eb-hero h1 {
  max-width: 780px;
  margin: 0 0 24px;
  color: var(--eb-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 6vw, 6.9rem);
  line-height: 0.91;
  letter-spacing: -0.07em;
  text-wrap: balance;
}
.eb-hero h1 em { color: var(--eb-coral); font-weight: 400; }
.eb-hero__lede { max-width: 580px; margin: 0 0 34px; color: var(--eb-ink-soft); font-size: 1.1rem; line-height: 1.75; }
.eb-hero__media {
  align-self: stretch;
  position: relative;
  min-height: 560px;
  background: var(--eb-ink) center / cover no-repeat;
  border-radius: 0 0 0 120px;
  box-shadow: var(--eb-shadow);
}
.eb-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(24,49,38,.18), transparent 62%);
  border-radius: inherit;
}
.eb-hero__badge {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  width: 144px;
  padding: 20px;
  background: var(--eb-paper);
  color: var(--eb-ink);
  border-radius: 20px 4px 20px 20px;
  box-shadow: var(--eb-shadow);
  font-size: 0.8rem;
  line-height: 1.45;
}
.eb-hero__badge strong { display: block; color: var(--eb-coral); font-size: 1.85rem; font-variant-numeric: tabular-nums; }

.eb-search {
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 610px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--eb-line);
  border-radius: 8px 22px 22px 8px;
  box-shadow: 0 15px 34px rgba(47, 59, 39, .1);
}
.eb-search input[type="search"] {
  min-height: 52px;
  padding: 0 18px;
  background: transparent;
  border: 0;
  color: var(--eb-ink);
  font-size: 1rem;
}
.eb-search button,
.eb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border: 0;
  border-radius: 16px 4px 16px 16px;
  background: var(--eb-coral);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .22s ease, background .22s ease;
}
.eb-search button:hover,
.eb-button:hover { background: var(--eb-coral-dark); color: #fff; transform: translateY(-2px); }
.eb-search button:active,
.eb-button:active { transform: translateY(1px); }
.eb-button--light { background: var(--eb-paper); color: var(--eb-ink); }
.eb-button--light:hover { background: #fff; color: var(--eb-coral-dark); }

.eb-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: -36px;
  position: relative;
  z-index: 3;
  background: var(--eb-line);
  border: 1px solid var(--eb-line);
  box-shadow: var(--eb-shadow);
}
.eb-trust__item { padding: 26px 30px; background: var(--eb-paper); }
.eb-trust__item strong { display: block; font-size: 1.35rem; font-weight: 800; }
.eb-trust__item span { color: var(--eb-ink-soft); font-size: .88rem; }

.eb-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.eb-heading-row h2,
.eb-split h2,
.eb-cta h2 {
  max-width: 760px;
  margin: 0;
  color: var(--eb-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.eb-text-link { color: var(--eb-coral-dark); font-weight: 800; text-decoration: none; white-space: nowrap; }
.eb-text-link:hover { color: var(--eb-ink); }

.eb-category-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.eb-category {
  position: relative;
  grid-column: span 3;
  min-height: 250px;
  overflow: hidden;
  background: var(--eb-ink);
  border-radius: 4px 28px 4px 28px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.eb-category:nth-child(1), .eb-category:nth-child(6) { grid-column: span 6; }
.eb-category__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.eb-category::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(to top, rgba(18,37,28,.9), rgba(18,37,28,.06) 70%); }
.eb-category__copy { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; }
.eb-category__copy strong { display: block; color: #fff; font-family: Georgia, serif; font-size: 1.65rem; line-height: 1.05; }
.eb-category__copy span { color: rgba(255,255,255,.76); font-size: .82rem; }
.eb-category:hover { color: #fff; }
.eb-category:hover .eb-category__image { transform: scale(1.045); }

.eb-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.eb-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--eb-paper);
  border-bottom: 3px solid transparent;
  border-radius: 24px 6px 24px 6px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.eb-product:hover { transform: translateY(-6px); box-shadow: var(--eb-shadow); border-color: var(--eb-coral); }
.eb-product__image { aspect-ratio: 1 / .82; overflow: hidden; background: #e9e4d9; }
.eb-product__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.eb-product:hover img { transform: scale(1.04); }
.eb-product__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px; }
.eb-product__body h3 { margin: 0; color: var(--eb-ink); font-size: 1.03rem; line-height: 1.35; }
.eb-product__meta { margin-top: auto; color: var(--eb-coral-dark); font-weight: 800; }

.eb-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 78px; align-items: center; }
.eb-split__media { min-height: 560px; background: center / cover no-repeat; border-radius: 80px 8px 80px 8px; box-shadow: var(--eb-shadow); }
.eb-split__copy > p { max-width: 600px; color: var(--eb-ink-soft); font-size: 1.04rem; line-height: 1.75; }
.eb-steps { display: grid; gap: 0; margin: 34px 0; }
.eb-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 19px 0; border-top: 1px solid rgba(24,49,38,.18); }
.eb-step:last-child { border-bottom: 1px solid rgba(24,49,38,.18); }
.eb-step__number { color: var(--eb-coral-dark); font-family: Georgia, serif; font-size: 1.5rem; }
.eb-step strong { display: block; margin-bottom: 3px; }
.eb-step span { color: var(--eb-ink-soft); font-size: .9rem; }

.eb-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
  padding: 62px;
  background: var(--eb-ink);
  border-radius: 8px 70px 8px 70px;
  color: #fff;
  box-shadow: var(--eb-shadow);
}
.eb-cta h2 { color: #fff; }
.eb-cta p { max-width: 680px; margin: 18px 0 0; color: rgba(255,255,255,.7); line-height: 1.7; }

.site-footer { background: #11231b; color: rgba(255,255,255,.7); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--eb-gold); }

body:not(.home) .site-content > .ast-container {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  padding: 0;
}
body:not(.home) #primary { padding: 54px 0 96px; }
body:not(.home) .entry-title,
.woocommerce-products-header__title.page-title {
  color: var(--eb-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--eb-ink); font-weight: 700; }
.woocommerce ul.products li.product .price { color: var(--eb-coral-dark); font-weight: 800; }
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border-radius: 14px 4px 14px 14px;
  background: var(--eb-coral);
  color: #fff;
  font-weight: 800;
  transition: transform .22s ease, background .22s ease;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--eb-coral-dark); color: #fff; transform: translateY(-2px); }
.woocommerce ul.products li.product img {
  border-radius: 22px 5px 22px 5px;
  transition: transform .35s ease;
}
.woocommerce ul.products li.product:hover img { transform: translateY(-4px); }
.woocommerce .woocommerce-ordering select,
.woocommerce .quantity .qty,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid var(--eb-line);
  border-radius: 5px 14px 5px 14px;
  background: #fff;
}

/* The imported vendor coordinates are incomplete, so suppress the misleading
   world map until vendors verify their locations. The searchable store list
   remains fully available. */
#wcfmmp-store-list-map,
.wcfmmp-store-list-map { display: none !important; }
#wcfmmp-stores-wrap { box-shadow: none !important; }
#wcfmmp-stores-wrap .wcfmmp-store-search-form { background: var(--eb-cream) !important; }
#wcfmmp-stores-wrap ul.wcfmmp-store-wrap li {
  overflow: hidden;
  border: 0 !important;
  border-radius: 24px 5px 24px 5px !important;
  box-shadow: 0 14px 38px rgba(47, 59, 39, .1) !important;
}
#wcfmmp-stores-wrap a.wcfmmp-visit-store,
#wcfmmp-stores-wrap a.wcfm_catalog_enquiry {
  border-color: var(--eb-coral) !important;
  color: var(--eb-coral-dark) !important;
}
#wcfmmp-stores-wrap a.wcfmmp-visit-store:hover,
#wcfmmp-stores-wrap a.wcfm_catalog_enquiry:hover {
  background: var(--eb-coral) !important;
  color: #fff !important;
}

@media (max-width: 980px) {
  .eb-hero__grid { grid-template-columns: 1fr; padding-top: 18px; }
  .eb-hero__copy { padding: 66px 0 50px; }
  .eb-hero__media { min-height: 480px; border-radius: 8px 80px 8px 80px; }
  .eb-product-grid { grid-template-columns: repeat(2, 1fr); }
  .eb-category { grid-column: span 6; }
  .eb-split { grid-template-columns: 1fr; gap: 48px; }
  .eb-split__media { min-height: 460px; }
  .eb-cta { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 620px) {
  .eb-shell { width: min(100% - 28px, 1180px); }
  .eb-section { padding: 70px 0 80px; }
  .eb-hero { min-height: auto; }
  .eb-hero__grid { min-height: auto; }
  .eb-hero__copy { padding-top: 54px; }
  .eb-hero h1 { font-size: clamp(3.15rem, 16vw, 4.8rem); }
  .eb-hero__lede { font-size: 1rem; }
  .eb-search { grid-template-columns: 1fr; border-radius: 8px 22px 8px 22px; }
  .eb-search button { width: 100%; }
  .eb-hero__media { min-height: 370px; margin-bottom: 28px; border-radius: 5px 52px 5px 52px; }
  .eb-hero__badge { right: 16px; bottom: 16px; }
  .eb-trust { grid-template-columns: 1fr; margin-top: 0; }
  .eb-trust__item { padding: 18px 22px; }
  .eb-heading-row { align-items: start; flex-direction: column; margin-bottom: 30px; }
  .eb-heading-row h2, .eb-split h2, .eb-cta h2 { font-size: 2.65rem; }
  .eb-category-grid { gap: 12px; }
  .eb-category, .eb-category:nth-child(1), .eb-category:nth-child(6) { grid-column: span 12; min-height: 230px; }
  .eb-product-grid { grid-template-columns: 1fr; }
  .eb-split__media { min-height: 350px; border-radius: 52px 6px 52px 6px; }
  .eb-cta { gap: 32px; padding: 38px 26px 42px; border-radius: 6px 42px 6px 42px; }
  body:not(.home) .site-content > .ast-container { width: min(100% - 28px, 1180px); }
  body:not(.home) #primary { padding: 38px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
