/*
Theme Name: EZ Minim Shell
Theme URI: https://ezminim.com/
Author: EZ Minim
Description: Lightweight global shell for EZ Minim. Header, footer, WooCommerce foundation, and neutral page defaults only. Page designs are built independently in WordPress.
Version: 2.0.8
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: ez-minim
*/

:root {
  --ez-forest: #0d2c22;
  --ez-forest-deep: #071d17;
  --ez-cream: #f4efe5;
  --ez-cream-soft: #fbf8f1;
  --ez-gold: #c69a30;
  --ez-ink: #14251f;
  --ez-muted: #69736d;
  --ez-border: rgba(13,44,34,.12);
  --ez-shell: min(1280px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ez-ink);
  background: var(--ez-cream-soft);
  font-family: "Roboto", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.ez-shell { width: var(--ez-shell); margin-inline: auto; }

/* The front page is intentionally neutral: WordPress page content owns its design. */
.ez-front-page,
.ez-front-page-content { margin: 0; padding: 0; width: 100%; max-width: none; }
.ez-front-page-content > :first-child { margin-top: 0; }
.ez-front-page-content > :last-child { margin-bottom: 0; }
.ez-front-page-content .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.ez-front-page-content .alignwide { width: var(--ez-shell); max-width: var(--ez-shell); margin-left: auto; margin-right: auto; }

/* Neutral defaults for pages that have not been custom-designed yet. */
.ez-content { width: var(--ez-shell); margin: 72px auto; }
.ez-content h1,
.ez-content h2,
.ez-content h3 { color: var(--ez-forest); font-family: "Playfair Display", Georgia, serif; }
.ez-content h1 { font-size: clamp(42px, 5vw, 68px); line-height: 1; font-weight: 500; letter-spacing: -.035em; }

/* Order deadline */
.ez-deadline-bar { position: sticky; top: 0; z-index: 1002; min-height: 38px; display: flex; align-items: center; background: var(--ez-forest); color: rgba(244,239,229,.88); font-size: 11px; letter-spacing: .045em; }
.ez-deadline-inner { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.ez-deadline-label { color: rgba(244,239,229,.62); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ez-deadline-date,
.ez-deadline-time { color: var(--ez-cream); font-weight: 500; }
.ez-deadline-separator { color: var(--ez-gold); }

/* Header */
.ez-site-header { position: relative; top: auto; z-index: 1000; background: var(--ez-cream); border-bottom: 1px solid rgba(13,44,34,.085); }
.admin-bar .ez-deadline-bar { top: 32px; }
.ez-nav { min-height: 72px; display: grid; grid-template-columns: minmax(150px,1fr) auto minmax(150px,1fr); align-items: center; gap: 38px; }
.ez-brand { width: fit-content; display: inline-flex; align-items: center; text-decoration: none; }
.ez-brand img,
.ez-brand-image { width: 76px; max-height: 56px; object-fit: contain; }
.ez-primary-nav { justify-self: center; }
.ez-menu { margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: clamp(27px,2.5vw,42px); list-style: none; }
.ez-menu li { margin: 0; padding: 0; }
.ez-menu a { position: relative; display: inline-block; color: var(--ez-forest); font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none; transition: opacity .2s ease; }
.ez-menu a:hover { opacity: .62; }
.ez-menu .current-menu-item > a::after,
.ez-menu .current_page_item > a::after { content: ""; position: absolute; left: 50%; bottom: -11px; width: 3px; height: 3px; border-radius: 50%; background: var(--ez-gold); transform: translateX(-50%); }
.ez-nav-tools { justify-self: end; display: flex; align-items: center; gap: 21px; }
.ez-nav-tools a { color: var(--ez-forest); font-size: 13px; font-weight: 600; text-decoration: none; transition: opacity .2s ease; }
.ez-nav-tools a:hover { opacity: .62; }
.ez-cart-link { display: inline-flex; align-items: center; gap: 7px; }
.ez-cart-count { min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50px; background: var(--ez-forest); color: var(--ez-cream); font-size: 9px; font-weight: 700; line-height: 1; }

/* Mobile navigation */
.ez-mobile-toggle { width: 34px; height: 34px; padding: 0; display: none; position: relative; border: 0; background: transparent; cursor: pointer; }
.ez-mobile-toggle > span { position: absolute; left: 7px; width: 20px; height: 1px; background: var(--ez-forest); transition: transform .3s cubic-bezier(.2,.75,.2,1), top .3s cubic-bezier(.2,.75,.2,1); }
.ez-mobile-toggle > span:first-child { top: 12px; }
.ez-mobile-toggle > span:last-child { top: 20px; }
.ez-mobile-toggle.is-open > span:first-child { top: 16px; transform: rotate(45deg); }
.ez-mobile-toggle.is-open > span:last-child { top: 16px; transform: rotate(-45deg); }
.ez-mobile-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ez-cream); border-bottom: 1px solid rgba(13,44,34,.10); box-shadow: 0 18px 40px rgba(13,44,34,.045); }
.ez-mobile-menu.is-open { display: block; }
.ez-mobile-menu-inner { padding-top: 25px; padding-bottom: 27px; }
.ez-mobile-links { margin: 0; padding: 0; display: flex; flex-direction: column; list-style: none; }
.ez-mobile-links li { margin: 0; }
.ez-mobile-links a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid rgba(13,44,34,.07); color: var(--ez-forest); font-size: 15px; font-weight: 500; text-decoration: none; }
.ez-mobile-utility { padding-top: 18px; display: flex; align-items: center; gap: 24px; }
.ez-mobile-utility a { display: inline-flex; align-items: center; gap: 7px; color: rgba(13,44,34,.68); font-size: 12px; font-weight: 600; text-decoration: none; }

/* Footer */
.ez-site-footer { background: var(--ez-forest-deep); color: rgba(244,239,229,.72); }
.ez-footer-main { padding-top: 50px; padding-bottom: 34px; display: grid; grid-template-columns: minmax(330px,1.55fr) minmax(170px,.65fr) minmax(210px,.75fr); gap: clamp(65px,8vw,130px); }
.ez-footer-brand { max-width: 440px; }
.ez-footer-logo { width: fit-content; margin-bottom: 15px; display: inline-flex; text-decoration: none; }
.ez-footer-logo img,
.ez-footer-logo-image { width: 88px; max-height: 68px; object-fit: contain; }
.ez-footer-division { margin: 0 0 17px; color: rgba(244,239,229,.78); font-size: 14px; line-height: 1.6; }
.ez-footer-division span { color: var(--ez-gold); }
.ez-footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.ez-footer-contact a,
.ez-footer-contact span { color: rgba(244,239,229,.62); font-size: 13px; line-height: 1.5; text-decoration: none; }
.ez-footer-contact a:hover { color: var(--ez-cream); }
.ez-footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.ez-footer-heading { margin: 0 0 11px; color: var(--ez-cream); font-family: "Playfair Display", Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1.1; letter-spacing: -.015em; }
.ez-footer-column a,
.ez-footer-column > span { color: rgba(244,239,229,.66); font-size: 13px; line-height: 1.5; text-decoration: none; }
.ez-footer-column a:hover { color: var(--ez-cream); }
.ez-footer-delivery { margin: 9px 0 0; padding-top: 12px; border-top: 1px solid rgba(244,239,229,.10); color: rgba(244,239,229,.76); font-size: 12px; font-weight: 500; line-height: 1.5; }
.ez-footer-bottom { min-height: 42px; display: flex; align-items: center; border-top: 1px solid rgba(244,239,229,.09); color: rgba(244,239,229,.38); font-size: 11px; }

/* WooCommerce: neutral foundation only */
.woocommerce .ez-content,
.woocommerce-page .ez-content { width: var(--ez-shell); }
.woocommerce .woocommerce-breadcrumb { color: var(--ez-muted); font-size: 13px; margin-bottom: 28px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--ez-forest); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 20px; }
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product a img { background: var(--ez-cream); aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 18px; border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--ez-forest); font-family: "Playfair Display", Georgia, serif; font-size: 19px; font-weight: 500; letter-spacing: -.02em; padding: 0; }
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--ez-forest); font-weight: 700; }
.woocommerce ul.products li.product .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button { background: var(--ez-forest); color: var(--ez-cream); border-radius: 6px; font-weight: 700; }
.woocommerce div.product .product_title { color: var(--ez-forest); font-family: "Playfair Display", Georgia, serif; font-size: clamp(38px,4vw,62px); line-height: 1; letter-spacing: -.045em; }
.woocommerce div.product div.images img { background: var(--ez-cream); }
.woocommerce-cart table.cart,
.woocommerce-checkout-review-order-table,
.woocommerce table.shop_table { border-color: var(--ez-border); border-radius: 0; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select { min-height: 48px; border: 1px solid var(--ez-border); background: #fff; padding: 10px 12px; }

@media (max-width: 900px) {
  .admin-bar .ez-deadline-bar { top: 46px; }
  .ez-nav { min-height: 64px; grid-template-columns: 1fr auto; gap: 20px; }
  .ez-brand img,
  .ez-brand-image { width: 68px; max-height: 50px; }
  .ez-primary-nav { display: none; }
  .ez-account-link { display: none; }
  .ez-nav-tools { gap: 15px; }
  .ez-mobile-toggle { display: block; }
  .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 850px) {
  .ez-footer-main { grid-template-columns: 1.25fr .75fr; gap: 42px 70px; padding-top: 42px; padding-bottom: 30px; }
  .ez-footer-service { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .ez-shell { width: min(calc(100% - 36px),1280px); }
  .ez-deadline-bar,
  .ez-deadline-inner { min-height: 34px; }
  .ez-deadline-bar { font-size: 10.5px; }
  .ez-deadline-inner { gap: 5px; }
  .ez-deadline-label { font-size: 9px; }
  .ez-nav { min-height: 60px; }
  .ez-brand img,
  .ez-brand-image { width: 64px; }
  .ez-nav-tools { gap: 12px; }
  .ez-cart-label { display: none; }
  .ez-footer-main { grid-template-columns: 1fr; gap: 30px; padding-top: 36px; padding-bottom: 26px; }
  .ez-footer-service { grid-column: auto; }
  .ez-footer-brand { max-width: 100%; }
  .ez-footer-bottom { min-height: auto; padding: 10px 0; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
}

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