/* gem-pages.css: cart, checkout, my account, blog posts, the blog index and
   regular pages in the V216 branding (Treyson, 2026-10-29). Restyle only:
   the markup is WooCommerce's, Blocksy's and the checkout/membership
   plugins'; nothing here hides or moves a field, a notice, the payment box,
   coupons, store credit or the membership offer. Scoped to html.gem-pages6
   (inc/gem-pdp.php: gem_pages_active()).

   V216 language: ink #01010C Quasimoda headings, body #61616B, a gold caps
   eyebrow over the H1, 16px corners, #EBEBED hairlines, white cards on the
   off-white ground, gold-gradient primary buttons, navy outline secondary
   buttons with the blue-to-navy hover, rounded hairline inputs with a gold
   focus ring. */

html.gem-pages6 {
  --gp-ink: #01010C; --gp-slate: #61616B; --gp-line: #EBEBED; --gp-field: #DADAE0;
  --gp-navy: #090960; --gp-blue: #3762B7; --gp-gold-text: #8A6200;
  --gp-gold: linear-gradient(180deg, #EAC66E, #D39700);
  --gp-ring: 0 0 0 3px rgba(234, 198, 110, .6);
  --gp-ease: cubic-bezier(.16, 1, .3, 1);
}
/* Blocksy's own form and button tokens, so its WooCommerce styles follow */
html.gem-pages6 body {
  --theme-text-color: #61616B;
  --theme-headings-color: #01010C;
  --theme-heading-1-color: #01010C; --theme-heading-2-color: #01010C; --theme-heading-3-color: #01010C;
  --theme-heading-4-color: #01010C; --theme-heading-5-color: #01010C; --theme-heading-6-color: #01010C;
  --theme-border-color: #EBEBED;
  --theme-form-field-border-initial-color: #DADAE0;
  --theme-form-field-border-focus-color: #090960;
  --theme-form-field-border-radius: 12px;
  --theme-form-field-height: 48px;
  --theme-form-text-initial-color: #01010C;
  --theme-form-text-focus-color: #01010C;
  --theme-button-border-radius: 999px;
}

/* ---- page title: gold caps eyebrow (blocksy:hero:title:before) + ink H1 ---- */
html.gem-pages6 .hero-section { padding-top: 34px; }
html.gem-pages6 .gp-eye,
html.gem-pages6 .sec-lead .r2-eye { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 .76rem/1.2 "Quasimoda", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gp-gold-text); }
html.gem-pages6 .gp-eye::before { content: ""; width: 30px; height: 2px; background: #E1A91B; flex: none; }
html.gem-pages6 body .hero-section .page-title,
html.gem-pages6 body .sec-lead h1 { margin: 0; font: 700 clamp(2.1rem, 3.4vw, 2.9rem)/1.1 "Quasimoda", system-ui, sans-serif !important; letter-spacing: -.02em !important; text-transform: none; color: var(--gp-ink) !important; }
html.gem-pages6 .hero-section .entry-meta { margin-top: 14px; color: var(--gp-slate); font-size: .9rem; }
html.gem-pages6 .hero-section .entry-meta a { color: var(--gp-navy); }

/* ---- content: slate body, ink Quasimoda headings (explicit light-on-dark
   colors in the content keep winning: these rules are low specificity) ---- */
html.gem-pages6 :where(.entry-content, .woocommerce, .gac-checkout, .entries) { color: var(--gp-slate); }
html.gem-pages6 :where(.entry-content, .woocommerce, .gac-checkout, .entries, .hero-section, .comments-area, #comments, .ct-comments, .gam-membership-page) :where(h1, h2, h3, h4, h5, h6) { font-family: "Quasimoda", system-ui, sans-serif; font-weight: 700; letter-spacing: -.01em; color: var(--gp-ink); text-transform: none; }
html.gem-pages6 .entry-content :where(h1) { font-size: clamp(1.9rem, 2.8vw, 2.4rem); line-height: 1.15; }
html.gem-pages6 .entry-content :where(h2) { font-size: clamp(1.45rem, 2.1vw, 1.8rem); line-height: 1.2; }
html.gem-pages6 .entry-content :where(h3) { font-size: 1.2rem; line-height: 1.3; }
html.gem-pages6 .entry-content :where(a:not(.button):not(.wp-block-button__link)) { color: var(--gp-navy); text-underline-offset: 3px; }
html.gem-pages6 .entry-content :where(a:not(.button):not(.wp-block-button__link)):hover { color: var(--gp-blue); }
html.gem-pages6 .ct-container-full { padding-bottom: 88px; }

/* membership (the membership plugin's own page): its headings in
   Quasimoda, ink on light sections; the dark sections keep their white */
html.gem-pages6 .gam-membership-page :is(h1, h2, h3, h4) { font-family: "Quasimoda", system-ui, sans-serif !important; }
html.gem-pages6 .gam-membership-page .gam-mp-section:not(.gam-mp-section--dark) :is(h1, h2, h3, h4) { color: var(--gp-ink); }

/* ---- blog posts: a ~70ch reading measure, comfortable leading; the
   article's own blocks, images and links are left exactly as written ---- */
html.gem-pages6 body.single-post .hero-section .entry-header,
html.gem-pages6 body.single-post .entry-content { max-width: 760px; margin-left: auto; margin-right: auto; }
html.gem-pages6 body.single-post .hero-section .page-title { font-size: clamp(2rem, 3.2vw, 2.7rem) !important; }
html.gem-pages6 body.single-post .entry-content { font-size: 1.08rem; line-height: 1.75; }
html.gem-pages6 body.single-post .entry-content :where(p, li) { max-width: 70ch; }
html.gem-pages6 body.single-post .entry-content :where(h2) { margin-top: 2.2em; }
html.gem-pages6 body.single-post .entry-content :where(h3) { margin-top: 1.8em; }
html.gem-pages6 body.single-post .entry-content img { max-width: 100%; height: auto; border-radius: 16px; }
/* the Divi-shim rows break out to the viewport; inside the reading column
   they stay in the column */
html.gem-pages6 body.single-post .entry-content .gds-section { width: auto; max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
html.gem-pages6 body.single-post .entry-content .gds-row { max-width: none; padding-left: 0; padding-right: 0; }

/* ---- blog index: white cards ---- */
/* Blog index: the loop_start header sits inside the .entries grid; make it span the full row. */
html.gem-pages6 .entries > .shell.gem-h { grid-column: 1 / -1; width: 100%; max-width: none; padding: 0; margin: 0 0 6px; }
html.gem-pages6 .entries .entry-card { background: #fff; border: 1px solid var(--gp-line); border-radius: 16px; overflow: hidden; box-shadow: none; transition: transform .55s var(--gp-ease), box-shadow .55s var(--gp-ease); }
html.gem-pages6 .entries .entry-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(1, 1, 12, .35); }
html.gem-pages6 .entries .entry-card .entry-title { font: 700 1.15rem/1.3 "Quasimoda", system-ui, sans-serif !important; letter-spacing: -.01em; }
html.gem-pages6 .entries .entry-card .entry-title a { color: var(--gp-ink); }
html.gem-pages6 .entries .entry-card .entry-title a:hover { color: var(--gp-navy); }
html.gem-pages6 .entries .entry-card :is(.entry-excerpt, .entry-meta) { color: var(--gp-slate); }
html.gem-pages6 .entries .entry-card .ct-media-container img { border-radius: 0; }
html.gem-pages6 .sec-lead p:not(.r2-eye) { color: var(--gp-slate) !important; }

/* ---- form fields: rounded, hairline, a clear gold focus ring ---- */
html.gem-pages6 :where(.woocommerce, .entry-content, .gac-checkout, .comment-form) :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], select, textarea) { border: 1px solid var(--gp-field); border-radius: 12px; background-color: #fff; color: var(--gp-ink); font-family: "Quasimoda", system-ui, sans-serif; font-size: 1rem; box-shadow: none; transition: border-color .2s, box-shadow .2s; }
html.gem-pages6 :where(.woocommerce, .entry-content, .gac-checkout, .comment-form) :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], select, textarea):focus { border-color: var(--gp-navy); box-shadow: var(--gp-ring); outline: none; }
html.gem-pages6 .select2-container--default .select2-selection--single { min-height: 48px; border: 1px solid var(--gp-field); border-radius: 12px; }
html.gem-pages6 .select2-container--default.select2-container--focus .select2-selection--single,
html.gem-pages6 .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--gp-navy); box-shadow: var(--gp-ring); }
html.gem-pages6 :where(.woocommerce, .gac-checkout) label:not(#payment label):not(.woocommerce-form__label-for-checkbox):not(.gac-billing-toggle__label) { color: var(--gp-ink); font-weight: 600; font-family: "Quasimoda", system-ui, sans-serif; }

/* ---- buttons: gold primary, navy outline secondary ---- */
html.gem-pages6 body :is(.wc-proceed-to-checkout .checkout-button, #place_order, .gac-btn--primary, .woocommerce-form-login__submit, .woocommerce-form-register__submit, .return-to-shop .button, .woocommerce-ResetPassword .button) {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: 14px 30px;
  background: var(--gp-gold) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
  font: 600 1rem/1.2 "Quasimoda", system-ui, sans-serif !important; letter-spacing: 0; text-transform: none !important;
  box-shadow: 0 3px 14px rgba(211, 151, 0, .3); transition: transform .35s var(--gp-ease), box-shadow .35s var(--gp-ease), filter .35s;
}
html.gem-pages6 body :is(.wc-proceed-to-checkout .checkout-button, #place_order, .gac-btn--primary, .woocommerce-form-login__submit, .woocommerce-form-register__submit, .return-to-shop .button, .woocommerce-ResetPassword .button):is(:hover, :focus, :active) { background: var(--gp-gold) !important; color: #fff !important; border-radius: 999px !important; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(138, 98, 0, .7); filter: brightness(1.04) saturate(1.05); }
html.gem-pages6 body :is(.wc-proceed-to-checkout .checkout-button, #place_order, .gac-btn--primary, .woocommerce-form-login__submit, .woocommerce-form-register__submit, .return-to-shop .button):focus-visible { outline: 3px solid var(--gp-navy); outline-offset: 2px; }
html.gem-pages6 .wc-proceed-to-checkout .checkout-button { width: 100%; }
html.gem-pages6 body :is(.woocommerce-cart-form button.button, .woocommerce-cart-form .coupon .button, .gac-coupon__apply) {
  min-height: 46px; padding: 11px 22px; background: #fff !important; color: var(--gp-navy) !important; border: 1.5px solid var(--gp-navy) !important; border-radius: 999px !important;
  font: 600 .95rem/1.2 "Quasimoda", system-ui, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; box-shadow: none;
  transition: color .35s var(--gp-ease), background .35s var(--gp-ease);
}
html.gem-pages6 body :is(.woocommerce-cart-form button.button, .woocommerce-cart-form .coupon .button, .gac-coupon__apply):not(:disabled):hover { background: linear-gradient(180deg, var(--gp-blue), var(--gp-navy)) !important; color: #fff !important; }
html.gem-pages6 body :is(.woocommerce-cart-form button.button, .gac-coupon__apply):disabled { opacity: .5; }

/* ---- cart: the table and the totals as white cards ---- */
html.gem-pages6 .woocommerce-cart-form .shop_table { background: #fff; border: 1px solid var(--gp-line) !important; border-radius: 16px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
html.gem-pages6 .woocommerce-cart-form .shop_table :is(th, td) { border-color: var(--gp-line) !important; border-bottom-width: 1px !important; }
html.gem-pages6 .woocommerce-cart-form .shop_table :is(th, td):first-child { padding-left: 20px; }
html.gem-pages6 .woocommerce-cart-form .shop_table :is(th, td):last-child { padding-right: 20px; }
html.gem-pages6 .woocommerce-cart-form .shop_table td.actions { padding: 18px 20px; }
html.gem-pages6 .woocommerce-cart-form .shop_table thead th { color: var(--gp-ink); font: 600 .82rem/1.3 "Quasimoda", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
html.gem-pages6 .woocommerce-cart-form .shop_table .product-name a { color: var(--gp-ink); font-weight: 600; }
html.gem-pages6 .woocommerce-cart-form .shop_table .product-thumbnail img { border-radius: 10px; background: linear-gradient(160deg, #F5F5F8, #EDEDF3); }
html.gem-pages6 .woocommerce .cart_totals { background: #fff; border: 1px solid var(--gp-line) !important; border-radius: 16px; padding: 28px; }
html.gem-pages6 .woocommerce .cart_totals > h2 { margin: 0 0 12px; font-size: 1.3rem; text-transform: none; }
html.gem-pages6 .woocommerce .cart_totals .shop_table { border: 0 !important; }
html.gem-pages6 .woocommerce .cart_totals .shop_table :is(th, td) { border-color: var(--gp-line) !important; border-bottom-width: 1px !important; }
html.gem-pages6 .woocommerce .cart_totals .order-total :is(th, td, .amount) { color: var(--gp-ink); }
html.gem-pages6 .cart-empty { color: var(--gp-ink); }

/* ---- my account: login and register as two white cards ---- */
html.gem-pages6 .woocommerce-account #customer_login :is(.u-column1, .u-column2) { background: #fff; border: 1px solid var(--gp-line); border-radius: 16px; padding: 32px; }
html.gem-pages6 .woocommerce-account #customer_login h2 { margin: 0 0 18px; font-size: 1.5rem !important; text-transform: none !important; letter-spacing: -.01em !important; }
html.gem-pages6 .woocommerce-account #customer_login :is(form.login, form.register) { border: 0; padding: 0; margin: 0; }
html.gem-pages6 .woocommerce-account .woocommerce-MyAccount-navigation ul { background: #fff; border: 1px solid var(--gp-line); border-radius: 16px; padding: 10px; }
html.gem-pages6 .woocommerce-account .woocommerce-MyAccount-navigation a { border-radius: 10px; color: var(--gp-ink); }
html.gem-pages6 .woocommerce-account .woocommerce-LostPassword a { color: var(--gp-navy); }

/* ---- checkout (the Gem Awards checkout plugin's own layout) ---- */
html.gem-pages6 .gac-checkout { font-family: "Quasimoda", system-ui, sans-serif; }
html.gem-pages6 .gac-checkout :is(.gac-checkout__section, .gac-checkout__summary-inner) { border: 1px solid var(--gp-line); border-radius: 16px; box-shadow: none; }
html.gem-pages6 .gac-checkout :is(h3, h4, .gac-subsection-heading) { color: var(--gp-ink); font-family: "Quasimoda", system-ui, sans-serif; text-transform: none; }
html.gem-pages6 .gac-checkout .foot :is(h3, h4) { font-size: 1.02rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-lt); font-family: "alga", "Playfair Display", Georgia, serif; font-weight: 500; margin: 0 0 14px; } /* the store footer inside the checkout keeps its own headings (same as .foot h4 in gem-h.css; Nov 17) */
html.gem-pages6 .gac-stepnav__item.is-active .gac-stepnav__link { background: linear-gradient(180deg, var(--gp-blue), var(--gp-navy)); }
html.gem-pages6 .gac-link-back { color: var(--gp-navy); }
html.gem-pages6 .gac-summary__row--total { color: var(--gp-ink); }
html.gem-pages6 .gac-checkout #payment { border-radius: 16px; }

@media (max-width: 760px) {
  html.gem-pages6 .hero-section { padding-top: 24px; }
  html.gem-pages6 .ct-container-full { padding-bottom: 64px; }
  html.gem-pages6 .woocommerce-account #customer_login :is(.u-column1, .u-column2) { padding: 22px; }
  html.gem-pages6 body.single-post .entry-content { font-size: 1.03rem; }
}

/* ---- empty cart (woocommerce/cart/cart-empty.php; Treyson 2026-11-11:
   "needs a nothing in the cart message"). The cart-meta mu-plugin's
   Divi-era card can't find a target on this theme; if it ever does, hide it
   so there is one message. ---- */
html.gem-pages6 .gem-empty-cart { display: none !important; }
html.gem-pages6 .gem-cart-empty {
  max-width: 620px; margin: 8px auto 0; padding: 48px 40px 40px; box-sizing: border-box;
  background: #fff; border: 1px solid var(--gp-line); border-radius: 16px; text-align: center;
}
html.gem-pages6 .gem-cart-empty__icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 0 18px;
  border-radius: 50%; background: #FBF5E6; color: #B07E00;
}
html.gem-pages6 .gem-cart-empty__icon svg { width: 30px; height: 30px; }
html.gem-pages6 .gem-cart-empty .gem-cart-empty__title { margin: 0 0 10px; font: 700 clamp(1.5rem, 2.2vw, 1.85rem)/1.2 "Quasimoda", system-ui, sans-serif; color: var(--gp-ink); }
html.gem-pages6 .gem-cart-empty__text { margin: 0 auto 26px; max-width: 420px; font-size: 1rem; line-height: 1.55; color: var(--gp-slate); }
html.gem-pages6 .gem-cart-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
html.gem-pages6 .gem-cart-empty .gem-cart-empty__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  border-radius: 999px; font: 700 .98rem/1 "Quasimoda", system-ui, sans-serif; text-decoration: none;
  background: var(--gp-gold); color: #fff; border: 1.5px solid transparent;
  transition: filter .18s var(--gp-ease), background-color .18s var(--gp-ease), color .18s var(--gp-ease);
}
html.gem-pages6 .gem-cart-empty .gem-cart-empty__btn:hover { filter: brightness(1.05); color: #fff; }
html.gem-pages6 .gem-cart-empty .gem-cart-empty__btn.is-outline { background: transparent; color: #D39700; border-color: #D39700; }
html.gem-pages6 .gem-cart-empty .gem-cart-empty__btn.is-outline:hover { background: #D39700; color: #fff; filter: none; }
html.gem-pages6 .gem-cart-empty .gem-cart-empty__btn:focus-visible { outline: none; box-shadow: var(--gp-ring); }
html.gem-pages6 .gem-cart-empty__popular { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--gp-line); font-size: .92rem; color: var(--gp-slate); }
html.gem-pages6 .gem-cart-empty__popular span { font-weight: 700; color: var(--gp-ink); }
html.gem-pages6 .gem-cart-empty .gem-cart-empty__popular a { color: #61616B; text-decoration: underline; text-decoration-color: #61616B; text-underline-offset: 3px; }
html.gem-pages6 .gem-cart-empty .gem-cart-empty__popular a:hover { color: var(--gp-ink); text-decoration-color: var(--gp-ink); }
@media (max-width: 600px) {
  html.gem-pages6 .gem-cart-empty { padding: 36px 22px 30px; }
  html.gem-pages6 .gem-cart-empty__actions { flex-direction: column; }
  html.gem-pages6 .gem-cart-empty .gem-cart-empty__btn { width: 100%; }
}
