/*
Theme Name:   EverGreen Grove (GeneratePress Child)
Theme URI:    https://evergreengrovepublishing.com
Description:  Child theme for EverGreen Grove Publishing. Dark navy site design: amber for Shadow Grove, moon-silver for the Moon and Star Saga. Home page, shared header/footer, and WooCommerce shop styling.
Author:       STS
Template:     generatepress
Version:      0.3.5
Text Domain:  eg-grove-child
*/

/* ---------- Tokens ---------- */
:root {
  --ground: #0a0e16;
  --panel: #121826;
  --panel-alt: #0d1220;
  --footer-bg: #080b12;
  --line: #26304a;
  --line-soft: #1d2638;
  --line-btn: #3a4766;
  --ink: #ece8df;
  --ink-soft: #b4bccd;
  --ink-mute: #aab3c6;
  --ink-dim: #8c97ae;
  --amber: #e8993e;
  --silver: #b8c7e6;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Work Sans', system-ui, sans-serif;
}

/* ---------- Base (every page) ---------- */
body.eg-dark { margin: 0; background: #0a0e16; color: #ece8df; color-scheme: dark; }
:is(.eg-home, .eg-chrome, .eg-page) {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
:is(.eg-home, .eg-chrome, .eg-page) *, :is(.eg-home, .eg-chrome, .eg-page) *::before, :is(.eg-home, .eg-chrome, .eg-page) *::after { box-sizing: border-box; }
:is(.eg-home, .eg-chrome, .eg-page) a { color: inherit; text-decoration: none; }
:is(.eg-home, .eg-chrome, .eg-page) a:hover { color: #ffffff; }
:is(.eg-home, .eg-chrome, .eg-page) :is(a, input, button, select, textarea):focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
:where(.eg-home, .eg-chrome, .eg-page) :where(h1, h2, h3, p) { margin: 0; }
:is(.eg-home, .eg-chrome, .eg-page) img { display: block; max-width: 100%; }
:is(.eg-home, .eg-chrome, .eg-page) .screen-reader-text:focus,
.eg-skip:focus { position: static; clip: auto; width: auto; height: auto; }
.eg-skip { position: absolute; left: -9999px; }
.eg-skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; color: #000; padding: 8px 12px; }

.eg-wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.eg-eyebrow { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; color: var(--ink-dim); }
.eg-eyebrow--amber { color: var(--amber); }
.eg-eyebrow--silver { color: var(--silver); }
.eg-h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 48px); line-height: 1.05; }

.eg-btn {
  display: inline-block; font-weight: 600; padding: 14px 28px; border-radius: 4px;
  letter-spacing: 0.03em; background: var(--eg-accent, var(--amber)); color: #0a0e16;
  min-height: 44px;
}
:is(.eg-home, .eg-chrome, .eg-page) a.eg-btn { color: #0a0e16; }
:is(.eg-home, .eg-chrome, .eg-page) a.eg-btn:hover { color: #0a0e16; filter: brightness(1.1); }
.eg-btn--ghost { background: transparent; border: 1px solid var(--line-btn); font-weight: 500; }
:is(.eg-home, .eg-chrome, .eg-page) a.eg-btn--ghost { color: var(--ink); }
:is(.eg-home, .eg-chrome, .eg-page) a.eg-btn--ghost:hover { color: #fff; border-color: #fff; }
.eg-btn--silver { --eg-accent: var(--silver); }
.eg-note { font-size: 13px; color: var(--ink-dim); }

/* ---------- Header ---------- */
.eg-header { border-bottom: 1px solid var(--line-soft); }
.eg-header .eg-wrap { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.eg-logo { display: flex; flex-direction: column; line-height: 1.05; }
.eg-logo-name { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: 0.02em; }
.eg-logo-sub { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--amber); }
.eg-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; font-size: 15px; font-weight: 500; letter-spacing: 0.04em; }
.eg-nav a { padding: 10px 0; }
.eg-nav a.eg-cart { padding: 10px 18px; border: 1px solid var(--line-btn); border-radius: 999px; }

/* ---------- Hero ---------- */
.eg-hero { background: radial-gradient(ellipse at 80% 20%, #17223a 0%, #0a0e16 60%); }
.eg-hero .eg-wrap { padding-top: 72px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.eg-hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.eg-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(46px, 7vw, 76px); line-height: 0.98; letter-spacing: -0.01em; }
.eg-hero-lede { max-width: 520px; font-size: 19px; color: var(--ink-soft); }
.eg-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.eg-hero-art { flex: 1 1 340px; max-width: 520px; min-width: 0; }
.eg-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.eg-frame--hero { box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.eg-hero-art--cover { flex: 0 1 360px; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.eg-frame--cover { display: block; aspect-ratio: auto; border-color: #2d3858; }
.eg-frame--cover img { height: auto; }
.eg-hero-cap { font-size: 14px; font-style: italic; color: var(--ink-mute); }
.eg-frame img { width: 100%; height: 100%; object-fit: cover; }
.eg-frame-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; background: linear-gradient(180deg, rgba(10,14,22,0) 0%, rgba(10,14,22,0.92) 100%); font-size: 14px; color: #c9cfdc; font-style: italic; }

/* ---------- Books ---------- */
.eg-books { background: var(--panel-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.eg-books .eg-wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 48px; }
.eg-sechead { display: flex; flex-direction: column; gap: 10px; }
.eg-cards { display: flex; flex-wrap: wrap; gap: 32px; }
.eg-card { flex: 1 1 520px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 32px; display: flex; flex-wrap: wrap; gap: 32px; }
.eg-cover { flex: 0 0 200px; width: 200px; align-self: flex-start; border-radius: 4px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,0.55); border: 1px solid #2d3858; }
.eg-cover img { width: 100%; height: auto; }
.eg-card-body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.eg-card .eg-kicker { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 600; }
.eg-card h3 { font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1; }
.eg-byline { font-size: 15px; letter-spacing: 0.08em; color: var(--ink-soft); margin-top: -6px; }
.eg-tagline { font-family: var(--serif); font-style: italic; font-size: 21px; color: #c9cfdc; }
.eg-blurb { font-size: 16px; color: var(--ink-mute); }
.eg-meta { font-size: 14px; color: var(--ink-dim); }
.eg-buyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 6px; }

/* ---------- Saga ---------- */
.eg-saga .eg-wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.eg-saga-art { flex: 0 1 340px; width: 340px; max-width: 100%; min-width: 0; }
.eg-saga-art img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
.eg-saga-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.eg-saga h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5.5vw, 52px); line-height: 1.02; }
.eg-saga-lede { max-width: 560px; color: var(--ink-soft); }
.eg-booklist { display: flex; flex-direction: column; max-width: 600px; margin-top: 8px; border-bottom: 1px solid var(--line); }
.eg-bookrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.eg-bookrow-num { flex: 0 0 76px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver); }
.eg-bookrow-text { flex: 1 1 260px; display: flex; flex-direction: column; }
.eg-bookrow-title { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.eg-soon { display: inline-block; margin: 4px 0 0 4px; padding: 3px 11px; border: 1px solid var(--line-btn); border-radius: 999px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver); vertical-align: middle; white-space: nowrap; }
.eg-bookrow-line { font-size: 15px; color: #98a3ba; }
.eg-saga-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 8px; }

/* ---------- From the Pages ---------- */
.eg-pages { background: var(--panel-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.eg-pages .eg-wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 44px; }
.eg-pages-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.eg-more { font-size: 15px; font-weight: 500; letter-spacing: 0.04em; color: var(--amber); padding: 10px 0; }
.eg-gallery { display: flex; flex-wrap: wrap; gap: 20px; }
.eg-gallery .eg-frame { flex: 1 1 340px; }
.eg-plate-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px; background: linear-gradient(180deg, rgba(10,14,22,0) 0%, rgba(10,14,22,0.94) 100%); display: flex; flex-direction: column; gap: 2px; }
.eg-plate-no { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); }
.eg-plate-title { font-family: var(--serif); font-size: 28px; font-weight: 600; }

/* ---------- Author ---------- */
.eg-author .eg-wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 72px; }
.eg-author-row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.eg-portrait { flex: 0 1 280px; width: 280px; max-width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; border: 1px solid var(--line-btn); background: radial-gradient(circle at 50% 35%, #1a2540 0%, #0f1526 100%); display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; font-size: 14px; color: var(--ink-dim); letter-spacing: 0.08em; overflow: hidden; }
.eg-portrait--photo { padding: 0; }
.eg-portrait--photo img { width: 100%; height: 100%; object-fit: cover; }
.eg-author-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.eg-author h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 6vw, 56px); line-height: 1; }
.eg-bio { max-width: 620px; font-size: 18px; color: var(--ink-soft); }
.eg-publisher { max-width: 620px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.eg-publisher p { font-size: 16px; color: var(--ink-mute); }

/* ---------- Newsletter ---------- */
.eg-join { background: var(--panel-alt); border-top: 1px solid var(--line-soft); }
.eg-join .eg-wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; }
.eg-join-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.eg-join h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 44px); line-height: 1.05; }
.eg-join-copy p { max-width: 460px; color: var(--ink-mute); }
.eg-form { flex: 1 1 380px; min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.eg-field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.eg-field label { font-size: 13px; letter-spacing: 0.06em; color: var(--ink-soft); }
.eg-field input { width: 100%; background: var(--panel); border: 1px solid var(--line-btn); color: var(--ink); padding: 14px 16px; border-radius: 4px; font-size: 16px; font-family: inherit; }
.eg-form button.eg-btn { border: 0; cursor: pointer; font-family: inherit; font-size: 17px; }

/* ---------- Footer ---------- */
.eg-footer { border-top: 1px solid var(--line-soft); background: var(--footer-bg); }
.eg-footer .eg-wrap { padding-top: 44px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px 48px; }
.eg-footer-brand { display: flex; flex-direction: column; gap: 8px; }
.eg-footer-name { font-family: var(--serif); font-size: 26px; font-weight: 700; }
.eg-footer-copy { font-size: 14px; color: var(--ink-dim); }
.eg-footer-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 14px; color: var(--ink-mute); }
.eg-footer-nav :is(a, span) { padding: 8px 0; }

/* =========================================================
   v0.3 - every other page (plain pages, posts, shop, cart, checkout)
   GeneratePress's own CSS is switched off in functions.php, so the
   basics GeneratePress used to give us are restated here.
   ========================================================= */

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }
.eg-page .screen-reader-text:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; padding: 8px 12px; background: #fff; color: #000; z-index: 10; }

.eg-page { min-height: 55vh; }
.eg-main { padding-top: 56px; padding-bottom: 96px; }
.eg-wrap--read { max-width: 884px; }

.eg-title { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 6vw, 56px); line-height: 1.04; margin-bottom: 28px; }
.eg-title--list { font-size: clamp(30px, 4.5vw, 40px); margin-bottom: 8px; }
.eg-title a:hover { color: var(--amber); }
.eg-postmeta { font-size: 14px; color: var(--ink-dim); letter-spacing: 0.06em; margin-bottom: 18px; }
.eg-article { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line-soft); }
.eg-article:last-of-type { border-bottom: 0; }

/* Text pages */
.eg-entry { color: var(--ink-soft); font-size: 18px; }
.eg-entry > * + * { margin-top: 1.1em; }
.eg-entry p { margin: 0 0 1.1em; }
.eg-entry h2, .eg-entry h3, .eg-entry h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.1; margin: 1.6em 0 0.5em; }
.eg-entry h2 { font-size: 34px; }
.eg-entry h3 { font-size: 27px; }
.eg-entry h4 { font-size: 22px; }
.eg-entry :is(p, li, blockquote, h2, h3, h4) a:not(.eg-btn):not(.button):not(.wp-element-button) { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.eg-entry :is(p, li, blockquote, h2, h3, h4) a:not(.eg-btn):not(.button):not(.wp-element-button):hover { color: #fff; }
.eg-entry ul, .eg-entry ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.eg-entry li { margin-bottom: 0.4em; }
.eg-entry blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--amber); font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink); }
.eg-entry hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.eg-entry img { height: auto; border-radius: 4px; }
.eg-entry figcaption { font-size: 14px; color: var(--ink-dim); margin-top: 8px; }
.eg-entry table { width: 100%; border-collapse: collapse; }
.eg-entry th, .eg-entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.eg-entry code, .eg-entry pre { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; font-size: 0.9em; }
.eg-entry pre { padding: 14px; overflow-x: auto; }
.eg-page .alignleft { float: left; margin: 0 1.2em 1em 0; }
.eg-page .alignright { float: right; margin: 0 0 1em 1.2em; }
.eg-page .aligncenter { margin-left: auto; margin-right: auto; }
.eg-page .wp-block-image img { height: auto; }

.eg-page .navigation.pagination { margin-top: 32px; }
.eg-page .nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.eg-page .page-numbers { padding: 8px 14px; border: 1px solid var(--line-btn); border-radius: 4px; }
.eg-page .page-numbers.current { background: var(--amber); border-color: var(--amber); color: #0a0e16; }

/* ---------- Form fields (everywhere on inner pages) ---------- */
.eg-page :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], textarea, select) {
  width: 100%; background: var(--panel); border: 1px solid var(--line-btn); color: var(--ink);
  padding: 12px 14px; border-radius: 4px; font: inherit; font-size: 16px; line-height: 1.4; min-height: 46px;
}
.eg-page textarea { min-height: 120px; }
.eg-page :is(input, textarea, select):focus { border-color: var(--silver); outline: none; }
.eg-page ::placeholder { color: var(--ink-dim); opacity: 1; }
.eg-page label { font-size: 14px; letter-spacing: 0.04em; color: var(--ink-soft); }
.eg-page label .required, .eg-page abbr.required { color: var(--amber); text-decoration: none; border: 0; }
.eg-page input[type="checkbox"], .eg-page input[type="radio"] { accent-color: var(--amber); width: auto; min-height: 0; margin-right: 8px; }

/* ---------- Buttons (WooCommerce buttons look like our buttons) ---------- */
.eg-page :is(a.button, button.button, input.button, button[type="submit"], input[type="submit"], .wp-element-button, .wc-block-components-button) {
  display: inline-block; font: inherit; font-weight: 600; font-size: 16px; letter-spacing: 0.03em; line-height: 1.3;
  padding: 13px 26px; min-height: 46px; border-radius: 4px; cursor: pointer; text-align: center;
  background: transparent; color: var(--ink); border: 1px solid var(--line-btn); text-decoration: none;
}
.eg-page :is(a.button, button.button, input.button, button[type="submit"], input[type="submit"], .wp-element-button, .wc-block-components-button):hover { color: #fff; border-color: #fff; background: transparent; }
/* Main buttons: amber */
.eg-page :is(a.button.alt, button.button.alt, input.button.alt, .single_add_to_cart_button, #place_order, .checkout-button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) {
  background: var(--amber); color: #0a0e16; border-color: var(--amber);
}
.eg-page :is(a.button.alt, button.button.alt, input.button.alt, .single_add_to_cart_button, #place_order, .checkout-button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button):hover { background: var(--amber); color: #0a0e16; border-color: var(--amber); filter: brightness(1.1); }
.eg-page :is(button, input[type="submit"]):disabled, .eg-page .button.disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Notices ---------- */
.eg-page :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice) {
  list-style: none; margin: 0 0 28px; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--silver); border-radius: 4px; color: var(--ink);
}
.eg-page .woocommerce-message { border-left-color: var(--amber); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.eg-page .woocommerce-message .button { order: 2; margin-left: auto; padding: 8px 18px; min-height: 40px; }
.eg-page .woocommerce-error { border-left-color: #e5604d; }
.eg-page .woocommerce-error li { margin: 0 0 4px; }
.eg-page :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a:not(.button) { color: var(--amber); text-decoration: underline; }
.eg-page .woocommerce-NoticeGroup { margin-bottom: 8px; }

/* ---------- Shop grid ---------- */
.eg-shop .woocommerce-products-header { margin-bottom: 8px; }
.eg-shop .page-title, .eg-shop .product_title { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 6vw, 56px); line-height: 1.04; margin: 0 0 28px; }
.eg-shop .woocommerce-result-count, .eg-shop .woocommerce-ordering { display: none; }
.eg-shop .term-description { color: var(--ink-soft); max-width: 640px; margin-bottom: 28px; }

.eg-page ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; align-items: start; list-style: none; margin: 0 0 28px; padding: 0; }
.eg-page ul.products::before, .eg-page ul.products::after { content: none !important; display: none !important; }
.eg-page ul.products li.product {
  float: none !important; width: auto !important; margin: 0 !important; clear: none !important; position: relative;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px;
}
.eg-page ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; gap: 10px; }
.eg-page ul.products li.product img { width: 100%; height: auto; border-radius: 4px; margin: 0 0 6px; box-shadow: 0 14px 30px rgba(0,0,0,0.5); border: 1px solid #2d3858; }
.eg-page .woocommerce-loop-product__title { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.08; margin: 0; padding: 0; color: var(--ink); }
.eg-page ul.products li.product .price { font-size: 17px; color: var(--ink-soft); }
.eg-page ul.products li.product .button { margin-top: 6px; align-self: flex-start; }
.eg-page ul.products li.product a.added_to_cart { font-size: 14px; color: var(--amber); padding: 8px 0; }
.eg-page span.onsale { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--amber); color: #0a0e16; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }

/* Prices */
.eg-page .price del { color: var(--ink-dim); margin-right: 6px; }
.eg-page .price ins { background: none; text-decoration: none; color: var(--amber); }
.eg-page .woocommerce-Price-amount { font-weight: 600; }

/* ---------- Single product ---------- */
.eg-shop div.product { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 0 56px; align-items: start; position: relative; }
.eg-shop div.product > * { grid-column: 1 / -1; }
.eg-shop div.product div.images, .eg-shop div.product div.woocommerce-product-gallery { grid-column: 1; grid-row: 1 / span 4; float: none !important; width: auto !important; margin: 0 0 32px; }
.eg-shop div.product div.summary { grid-column: 2; grid-row: 1; float: none !important; width: auto !important; margin: 0 0 32px; display: flex; flex-direction: column; gap: 14px; }
.eg-shop div.product .woocommerce-product-gallery__image img, .eg-shop div.product div.images img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 24px 60px rgba(0,0,0,0.55); border: 1px solid #2d3858; }
.eg-shop .woocommerce-product-gallery__trigger { display: none; }
.eg-shop .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 16px 0 0; }
.eg-shop .flex-control-thumbs li { width: 72px; float: none; }
.eg-shop .flex-control-thumbs img { opacity: 0.55; cursor: pointer; box-shadow: none; }
.eg-shop .flex-control-thumbs img.flex-active, .eg-shop .flex-control-thumbs img:hover { opacity: 1; }
.eg-shop div.summary .product_title { margin: 0; font-size: clamp(34px, 5vw, 48px); }
.eg-shop div.summary .price { font-size: 26px; color: var(--ink); margin: 0; }
.eg-shop .woocommerce-product-details__short-description { color: var(--ink-soft); font-size: 18px; }
.eg-shop .woocommerce-product-details__short-description p { margin: 0 0 0.8em; }
.eg-shop form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 6px 0 0; }
.eg-shop .quantity input.qty { width: 84px; text-align: center; }
.eg-shop .product_meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-dim); padding-top: 14px; border-top: 1px solid var(--line); }
.eg-shop .product_meta a { color: var(--amber); }
.eg-shop .woocommerce-tabs { margin: 24px 0 40px; }
.eg-shop .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 6px 28px; list-style: none; margin: 0 0 24px; padding: 0; border-bottom: 1px solid var(--line); }
.eg-shop .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; background: none; border: 0; }
.eg-shop .woocommerce-tabs ul.tabs li::before, .eg-shop .woocommerce-tabs ul.tabs li::after { content: none; display: none; }
.eg-shop .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 0; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-dim); border-bottom: 2px solid transparent; }
.eg-shop .woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--amber); }
.eg-shop .woocommerce-tabs .panel { color: var(--ink-soft); font-size: 18px; max-width: 760px; }
.eg-shop .woocommerce-tabs .panel > h2 { font-family: var(--serif); font-size: 30px; color: var(--ink); margin: 0 0 14px; }
.eg-shop .related > h2, .eg-shop .upsells > h2 { font-family: var(--serif); font-size: 36px; font-weight: 600; margin: 24px 0 24px; }
.eg-shop .woocommerce-breadcrumb { font-size: 14px; color: var(--ink-dim); margin-bottom: 20px; }
.eg-shop .woocommerce-breadcrumb a { color: var(--amber); }

/* ---------- Tables (cart, order review, account) ---------- */
.eg-page table.shop_table { width: 100%; border-collapse: collapse; border: 0; margin: 0 0 28px; }
.eg-page table.shop_table :is(th, td) { padding: 16px 12px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; background: none; color: var(--ink); }
.eg-page table.shop_table thead th { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); }
.eg-page table.shop_table td.product-name a { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.eg-page table.shop_table td.product-name a:hover { color: var(--amber); }
.eg-page table.shop_table td.product-thumbnail img { width: 72px; height: auto; border-radius: 3px; }
.eg-page table.shop_table :is(td.product-price, td.product-subtotal, td.product-total, th.product-subtotal, th.product-total, th.product-price) { text-align: right; }
.eg-page table.shop_table .quantity input.qty { width: 72px; min-height: 42px; padding: 8px; text-align: center; }
.eg-page table.shop_table :is(tfoot td, .cart_totals td) { text-align: right; }
.eg-page table.shop_table tfoot th { font-weight: 500; color: var(--ink-soft); }
.eg-page table.shop_table tr.order-total :is(th, td) { font-size: 20px; border-bottom: 0; }
.eg-page a.remove { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--line-btn); border-radius: 50%; color: var(--ink-soft); font-size: 20px; line-height: 1; text-decoration: none; }
.eg-page a.remove:hover { color: #fff; background: #e5604d; border-color: #e5604d; }
.eg-page td.actions { padding-top: 20px; }
.eg-page td.actions .coupon { display: flex; flex-wrap: wrap; gap: 10px; float: left; max-width: 100%; }
.eg-page td.actions .coupon input#coupon_code { width: 200px; }
.eg-page td.actions > button[name="update_cart"] { float: right; }

/* Cart totals and the checkout button */
.eg-page .cart-collaterals { display: flex; justify-content: flex-end; }
.eg-page .cart-collaterals .cart_totals { float: none !important; width: 100% !important; max-width: 460px; }
.eg-page .cart_totals > h2, .eg-page #order_review_heading, .eg-page .woocommerce-billing-fields > h3, .eg-page .woocommerce-shipping-fields > h3, .eg-page .woocommerce-additional-fields > h3, .eg-page .woocommerce-column > h2, .eg-page .woocommerce-order-details > h2, .eg-page .woocommerce-customer-details > h2 {
  font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.1; margin: 0 0 18px;
}
.eg-page .wc-proceed-to-checkout a.checkout-button { display: block; width: 100%; }

/* ---------- Checkout (classic) ---------- */
.eg-page form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); grid-template-rows: auto 1fr; gap: 0 56px; align-items: start; }
.eg-page form.checkout > * { grid-column: 1 / -1; }
.eg-page form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
.eg-page form.checkout #order_review_heading { grid-column: 2; grid-row: 1; }
.eg-page form.checkout #order_review { grid-column: 2; grid-row: 2; }
.eg-page #customer_details .col-1, .eg-page #customer_details .col-2 { float: none !important; width: 100% !important; }
.eg-page .woocommerce-billing-fields__field-wrapper, .eg-page .woocommerce-shipping-fields__field-wrapper, .eg-page .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.eg-page .form-row { float: none !important; width: auto !important; margin: 0 0 18px !important; padding: 0; grid-column: span 1; }
.eg-page .form-row-wide, .eg-page .form-row.notes, .eg-page #order_comments_field { grid-column: 1 / -1; }
.eg-page .form-row label { display: block; margin-bottom: 6px; }
.eg-page .form-row .woocommerce-input-wrapper { display: block; }
.eg-page .clear { display: none; }
.eg-page .woocommerce-additional-fields { margin-top: 12px; }
.eg-page #ship-to-different-address label, .eg-page .woocommerce-form__label-for-checkbox { display: flex; align-items: center; font-size: 16px; color: var(--ink); }
.eg-page .woocommerce-form-coupon-toggle, .eg-page .woocommerce-form-login-toggle { margin-bottom: 8px; }
.eg-page :is(form.checkout_coupon, form.woocommerce-form-login, form.login, form.register, form.lost_reset_password) { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 22px; margin: 0 0 28px; }

/* Payment box */
.eg-page #payment { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 20px; margin-top: 8px; }
.eg-page #payment ul.payment_methods { list-style: none; margin: 0 0 16px; padding: 0; border: 0; }
.eg-page #payment ul.payment_methods li { padding: 10px 0; margin: 0; border-bottom: 1px solid var(--line-soft); }
.eg-page #payment ul.payment_methods li:last-child { border-bottom: 0; }
.eg-page #payment ul.payment_methods li img { display: inline-block; max-height: 24px; width: auto; margin-left: 8px; vertical-align: middle; }
.eg-page #payment div.payment_box { background: var(--panel-alt); border-radius: 4px; padding: 14px 16px; margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; }
.eg-page #payment div.payment_box::before { display: none; }
.eg-page #payment .place-order { padding: 0; margin: 0; }
.eg-page #place_order { width: 100%; float: none; }
.eg-page .woocommerce-privacy-policy-text, .eg-page .woocommerce-terms-and-conditions-wrapper { font-size: 14px; color: var(--ink-dim); margin: 14px 0; }
.eg-page .woocommerce-privacy-policy-text a, .eg-page .woocommerce-terms-and-conditions-wrapper a { color: var(--amber); text-decoration: underline; }

/* Country / state dropdown (select2 draws into <body>, so no .eg-page here) */
body.eg-dark .select2-container--default .select2-selection--single { background: var(--panel); border: 1px solid var(--line-btn); border-radius: 4px; height: 46px; }
body.eg-dark .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ink); line-height: 44px; padding-left: 14px; }
body.eg-dark .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
body.eg-dark .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--ink-soft) transparent transparent transparent; }
body.eg-dark .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--silver); }
body.eg-dark .select2-dropdown { background: var(--panel); border: 1px solid var(--line-btn); color: var(--ink); }
body.eg-dark .select2-container--default .select2-results__option { color: var(--ink); }
body.eg-dark .select2-container--default .select2-results__option--highlighted, body.eg-dark .select2-container--default .select2-results__option[aria-selected="true"] { background: var(--line); color: #fff; }
body.eg-dark .select2-container--default .select2-search--dropdown .select2-search__field { background: var(--panel-alt); border: 1px solid var(--line-btn); color: var(--ink); }

/* ---------- Order received / account ---------- */
.eg-page ul.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 14px 40px; list-style: none; padding: 20px 0; margin: 0 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eg-page ul.woocommerce-order-overview li { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); border: 0; padding: 0; margin: 0; }
.eg-page ul.woocommerce-order-overview li strong { display: block; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--ink); margin-top: 4px; }
.eg-page .woocommerce-MyAccount-navigation { float: left; width: 24%; }
.eg-page .woocommerce-MyAccount-content { float: right; width: 70%; }
.eg-page .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.eg-page .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }
.eg-page .woocommerce-MyAccount-navigation li.is-active a { color: var(--amber); }
.eg-page .woocommerce-account .woocommerce::after, .eg-page .woocommerce::after { content: ""; display: table; clear: both; }
.eg-page address { font-style: normal; color: var(--ink-soft); line-height: 1.7; }

/* ---------- Block-based Cart and Checkout (newer WooCommerce default) ---------- */
.eg-page :is(.wc-block-cart, .wc-block-checkout) { color: var(--ink); }
.eg-page :is(.wc-block-components-product-name, .wc-block-cart-item__product a) { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); }
.eg-page .wc-block-components-product-metadata, .eg-page .wc-block-components-product-details { color: var(--ink-dim); font-size: 14px; }
.eg-page :is(.wc-block-cart-items th, .wc-block-cart__totals-title) { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); }
.eg-page :is(.wc-block-cart-items, .wc-block-cart-items__row, .wc-block-cart-items td, .wc-block-components-totals-wrapper, .wc-block-components-totals-item, .wc-block-components-order-summary, .wc-block-components-order-summary-item, .wc-block-components-panel, .wc-block-components-checkout-step) { border-color: var(--line) !important; }
.eg-page :is(.wc-block-components-title, .wc-block-components-checkout-step__title) { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--ink); }
.eg-page :is(.wc-block-components-checkout-step__description, .wc-block-components-checkbox__label, .wc-block-components-radio-control__label, .wc-block-components-radio-control__description, .wc-block-components-totals-item__label, .wc-block-components-totals-item__description) { color: var(--ink-soft); }
.eg-page :is(.wc-block-components-totals-item__value, .wc-block-formatted-money-amount, .wc-block-components-product-price) { color: var(--ink); }
.eg-page .wc-block-components-text-input input, .eg-page .wc-block-components-textarea, .eg-page .wc-block-components-combobox .components-combobox-control__input, .eg-page .wc-block-components-country-input select, .eg-page .wc-block-components-state-input select, .eg-page .wc-block-components-select-input select, .eg-page .wc-block-components-quantity-selector, .eg-page .wc-block-components-quantity-selector input {
  background: var(--panel) !important; color: var(--ink) !important; border-color: var(--line-btn) !important;
}
.eg-page .wc-block-components-text-input label, .eg-page .wc-block-components-combobox label, .eg-page .wc-block-components-select-input label { color: var(--ink-dim) !important; }
.eg-page .wc-block-components-quantity-selector > .wc-block-components-quantity-selector__button { color: var(--ink-soft); }
.eg-page .wc-block-components-radio-control-accordion-option, .eg-page .wc-block-components-radio-control__option { border-color: var(--line) !important; }
.eg-page .wc-block-components-radio-control__option-checked, .eg-page .wc-block-components-radio-control-accordion-option--checked-option-highlighted { background: var(--panel); }
.eg-page .wc-block-components-button:not(.is-link) { width: auto; }
.eg-page :is(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) { width: 100%; }
.eg-page .wc-block-components-button.is-link, .eg-page .wc-block-cart-item__remove-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--amber); text-decoration: underline; }
.eg-page .wc-block-components-notice-banner { background: var(--panel); border-color: var(--line); color: var(--ink); }
.eg-page .wc-block-components-notice-banner > svg { background: var(--amber); fill: #0a0e16; }
.eg-page .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--ink); }
.eg-page .wc-block-components-checkbox input[type="checkbox"] { background: var(--panel) !important; border-color: var(--line-btn) !important; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .eg-page table.shop_table_responsive.cart thead { display: none; }
  .eg-page table.shop_table_responsive.cart :is(tbody, tr, td) { display: block; width: 100%; }
  .eg-page table.shop_table_responsive.cart tr.cart_item { position: relative; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .eg-page table.shop_table_responsive.cart tr.cart_item td { border: 0; padding: 6px 0; text-align: right; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .eg-page table.shop_table_responsive.cart tr.cart_item td::before { content: attr(data-title); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
  .eg-page table.shop_table_responsive.cart tr.cart_item td.product-remove, .eg-page table.shop_table_responsive.cart tr.cart_item td.product-thumbnail { justify-content: flex-start; }
  .eg-page table.shop_table_responsive.cart td.product-remove::before, .eg-page table.shop_table_responsive.cart td.product-thumbnail::before { content: none; }
  .eg-page table.shop_table_responsive.cart td.actions { display: block; border: 0; }
  .eg-page td.actions > button[name="update_cart"] { margin-top: 12px; width: 100%; }
}

@media (max-width: 860px) {
  .eg-shop div.product { grid-template-columns: minmax(0, 1fr); }
  .eg-shop div.product div.images, .eg-shop div.product div.woocommerce-product-gallery { grid-column: 1; grid-row: auto; max-width: 420px; }
  .eg-shop div.product div.summary { grid-column: 1; grid-row: auto; }
  .eg-page form.checkout { grid-template-columns: minmax(0, 1fr); }
  .eg-page form.checkout #customer_details, .eg-page form.checkout #order_review_heading, .eg-page form.checkout #order_review { grid-column: 1; grid-row: auto; }
  .eg-page .woocommerce-MyAccount-navigation, .eg-page .woocommerce-MyAccount-content { float: none; width: 100%; }
  .eg-page td.actions .coupon, .eg-page td.actions > button[name="update_cart"] { float: none; }
}

@media (max-width: 600px) {
  .eg-wrap { padding-left: 20px; padding-right: 20px; }
  .eg-card { padding: 22px; }
  .eg-cover { flex-basis: 150px; width: 150px; }
  .eg-card h3 { font-size: 32px; }
  .eg-main { padding-top: 36px; padding-bottom: 64px; }
  .eg-page .woocommerce-billing-fields__field-wrapper, .eg-page .woocommerce-shipping-fields__field-wrapper, .eg-page .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
  .eg-page td.actions .coupon input#coupon_code { width: 100%; }
}
