/*
Theme Name: OurMoment
Theme URI: https://ourmoment.com
Description: Custom child theme for OurMoment — Meaningful Gifts for Couples
Author: OurMoment
Author URI: https://ourmoment.com
Template: astra
Version: 1.30.1
Text Domain: ourmoment
*/

/* ── Brand Tokens ── */
:root {
  --bg:         #F7F3EF;
  --bg-warm:    #F0EAE3;
  --bg-card:    #FFFFFF;
  --text:       #3A2F2A;
  --text-soft:  #8A7E74;
  --btn-bg:     #E4D9CE;
  --btn-hover:  #D6C8BA;
  --accent:     #C9A98B;
  --border:     #E4D9CE;
  --frame-wood: #C4A882;
  --shadow:     0 2px 16px rgba(58,47,42,.06);
  --shadow-lg:  0 8px 32px rgba(58,47,42,.09);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

/* ── Global ── */
body {
  font-family: var(--font-body) !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  /* Kills the blue flash when tapping links/buttons on mobile */
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* Belt-and-suspenders: hide Astra's scroll-to-top even if the filter misses */
#ast-scroll-top,
.ast-scroll-to-top-wrapper { display: none !important; }

/* Accessibility text must stay off-screen, not render inline. Without this,
   WooCommerce's "Price range: X through Y" a11y span shows next to variable
   product prices. Canonical WordPress screen-reader-text rule. */
.screen-reader-text {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  word-wrap: normal !important;
  white-space: nowrap !important;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6,
.entry-title,
.woocommerce-loop-product__title,
.product_title {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  color: var(--text) !important;
}

/* ── Nav ── */
.om-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--bg);
  transition: box-shadow .3s;
}
.om-nav.scrolled {
  box-shadow: 0 1px 8px rgba(58,47,42,.06);
}
/* WP admin bar pushes the fixed nav down so it stays visible */
body.admin-bar .om-nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .om-nav { top: 46px; }
}

.om-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.om-nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 56px; /* balances .om-nav-actions so the links stay centred */
}
.om-nav-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  transition: opacity .2s;
}
.om-nav-brand:hover img { opacity: .75; }

.om-nav-links {
  display: flex;
  gap: clamp(1.4rem, 2.8vw, 2.6rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.om-nav-links a,
.om-nav-links a:link,
.om-nav-links a:visited,
.om-nav-links a:active {
  font-family: var(--font-body) !important;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
  background: none;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
.om-nav-links a:hover,
.om-nav-links a:focus-visible { color: var(--text); }
/* Kill the blue tap/active state left on a link after tapping it on mobile */
.om-nav-links a:focus { outline: none; color: var(--text); }

.om-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px 4px;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}
.om-nav-toggle { -webkit-tap-highlight-color: transparent; }
.om-nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
}

/* Tablet and below: collapse links behind the hamburger */
@media (max-width: 900px) {
  .om-nav-toggle { display: flex; order: -1; }
  .om-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    background: var(--bg) !important;
    border-top: 1px solid var(--border);
    padding: 1.8rem clamp(1.25rem, 4vw, 2.5rem);
    gap: 1.5rem;
    box-shadow: var(--shadow);
  }
  .om-nav-links a { -webkit-tap-highlight-color: transparent; }
  .om-nav-links.open { display: flex; }
  .om-nav-links a { font-size: .88rem; }
}

/* ── Buttons ── */
.btn,
.ast-button,
.button,
button[type="submit"],
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.checkout-button {
  display: inline-block;
  font-family: var(--font-body) !important;
  font-size: .62rem !important;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 500 !important;
  background: var(--btn-bg) !important;
  color: var(--text) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: .6rem 1.8rem !important;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s;
}
.btn:hover,
.ast-button:hover,
.button:hover,
button[type="submit"]:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--btn-hover) !important;
  color: var(--text) !important;
}

/* ── Hero ──
   Portrait photo behind a cream scrim. The photo is cropped by object-fit,
   so object-position picks which slice shows: the wall and the top of the
   frames on wide screens, more of the frames as the viewport narrows. */
.om-hero {
  position: relative;
  /* A portrait photo at full width is cropped by however much the hero is
     shorter than the scaled image. Growing the hero with the viewport width
     claws back a third of the frame that a flat 100vh would cut off. */
  min-height: 100svh;
  height: clamp(660px, 58vw, 1120px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: clamp(6rem, 13vh, 8rem) 1.5rem 3rem;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.om-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}
.om-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 44% keeps the wall behind the headline and the frames in the lower half */
  object-position: center 44%;
  display: block;
}
.om-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(247, 243, 239, .94) 0%,
    rgba(247, 243, 239, .82) 20%,
    rgba(247, 243, 239, .40) 38%,
    rgba(247, 243, 239, 0)   56%
  );
}
.om-hero-content {
  max-width: 600px;
  margin: 0 auto;
}
.om-hero h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(2.8rem, 8vw, 4.8rem) !important;
  font-weight: 400 !important;
  font-style: italic;
  letter-spacing: .01em;
  line-height: 1.05;
  margin-bottom: .6rem;
}
.om-hero-tagline {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .35em;
  color: var(--text-soft);
  margin-bottom: 2rem;
}
.om-hero-logo {
  width: 78px;
  height: auto;
  margin: 0 auto 1.2rem;
  display: block;
}

/* A phone is already close to the photo's own aspect ratio, so it barely
   crops. Let it fill the screen and lean the scrim harder for legibility. */
@media (max-width: 700px) {
  .om-hero { height: auto; min-height: 100svh; }
  .om-hero-photo img { object-position: center 50%; }
  .om-hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(247, 243, 239, .96) 0%,
      rgba(247, 243, 239, .90) 28%,
      rgba(247, 243, 239, .55) 48%,
      rgba(247, 243, 239, 0)   70%
    );
  }
}

/* ── Framed artwork (About section) ── */
.om-frame {
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--frame-wood);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}
.om-frame svg { flex-shrink: 0; }
.om-frame-label {
  margin-top: auto;
  text-align: center;
  padding-bottom: .5rem;
}
.om-frame-label span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(.65rem, 1.1vw, .85rem);
  letter-spacing: .1em;
}
.om-frame-label small {
  font-size: .55rem;
  letter-spacing: .18em;
  color: var(--text-soft);
  display: block;
  margin-top: .15rem;
}

/* ── Section title ── */
.om-section-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.4rem, 3vw, 2rem) !important;
  font-weight: 400 !important;
  text-align: center;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* ── About ── single centred column */
.om-about { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.om-about .om-container { text-align: center; }
.om-about-frame {
  width: min(300px, 78vw);
  aspect-ratio: 3/4;
  margin: 0 auto clamp(1.8rem, 4vw, 2.6rem);
}
.om-about-frame svg { width: 60%; height: auto; }
.om-about-text p {
  color: var(--text-soft);
  font-size: .85rem;
  line-height: 1.95;
  margin: 0 auto .9rem;
  max-width: 56ch;
}
.om-about-text .btn { margin-top: 1.4rem; }

/* ── Contact ── single centred column */
.om-contact { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.om-contact .om-container { text-align: center; }
.om-contact-frame {
  width: min(340px, 80vw);
  aspect-ratio: 4/3;
  border: 5px solid var(--frame-wood);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin: 0 auto clamp(1.8rem, 4vw, 2.4rem);
}
.om-contact-frame svg { width: 45%; height: auto; }
.om-contact-intro {
  color: var(--text-soft);
  font-size: .84rem;
  line-height: 1.85;
  max-width: 52ch;
  margin: 0 auto 2.2rem;
}
.om-contact-intro a { color: var(--accent); }

.om-contact-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}
.om-contact-form input,
.om-contact-form textarea {
  width: 100%;
  padding: .75rem .9rem;
  font-family: var(--font-body);
  font-size: .78rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  margin-bottom: .8rem;
  transition: border-color .2s;
  box-sizing: border-box;
}
.om-contact-form input:focus,
.om-contact-form textarea:focus { border-color: var(--accent); }
.om-contact-form textarea { resize: vertical; min-height: 110px; }
.om-contact-form input::placeholder,
.om-contact-form textarea::placeholder { color: var(--text-soft); opacity: .55; }
.om-contact-form .btn { display: block; margin: .4rem auto 0; }

/* Honeypot — kept in the DOM for bots, invisible and unfocusable for people */
.om-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.om-form-note {
  max-width: 480px;
  margin: 0 auto 1.2rem;
  padding: .8rem 1rem;
  font-size: .8rem;
  text-align: center;
  border: 1px solid var(--border);
}
.om-form-ok {
  background: #ECF2EC;
  border-color: #7A9E7E;
  color: #3F5F43;
}
.om-form-error {
  background: #F7EBE7;
  border-color: #A85A4A;
  color: #7A3A2E;
}

/* ── Footer ── */
.om-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-warm);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.om-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 860px) {
  .om-footer-grid { grid-template-columns: 1fr 1fr; }
  .om-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .om-footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* Brand column */
.om-footer-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: .9rem;
}
.om-footer-tagline {
  font-family: var(--font-display);
  font-size: .88rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1.3rem;
  max-width: 30ch;
}

.om-footer-social { display: flex; gap: .7rem; }
.om-footer-social a {
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: border-color .2s, color .2s, background .2s;
}
.om-footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card);
}
@media (max-width: 460px) {
  .om-footer-logo,
  .om-footer-tagline { margin-inline: auto; }
  .om-footer-social { justify-content: center; }
}

/* Link columns */
.om-footer-col h3 {
  font-family: var(--font-body) !important;
  font-size: .6rem !important;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin: .3rem 0 1rem;
}
.om-footer-col ul { list-style: none; margin: 0; padding: 0; }
.om-footer-col li { margin-bottom: .55rem; }
.om-footer-col a {
  font-size: .78rem;
  color: var(--text-soft);
  transition: color .2s;
}
.om-footer-col a:hover { color: var(--accent); }

/* Newsletter */
.om-footer-newsletter {
  border-top: 1px solid var(--border);
  padding: clamp(1.8rem, 3vw, 2.4rem) 0;
  text-align: center;
}
.om-footer-newsletter h3 {
  font-family: var(--font-display) !important;
  font-size: 1.1rem !important;
  font-weight: 400 !important;
  margin: 0 0 .3rem;
}
.om-footer-newsletter p {
  font-size: .78rem;
  color: var(--text-soft);
  margin: 0 auto 1.2rem;
  max-width: 40ch;
}

/* Bottom bar */
.om-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.om-footer-bottom p {
  font-size: .68rem;
  color: var(--text-soft);
  letter-spacing: .06em;
  margin: 0;
}
.om-footer-pay {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--faint, var(--text-soft));
}
.om-footer-pay > svg { width: 15px; height: 15px; flex-shrink: 0; }
.om-pay-label {
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text-soft);
  white-space: nowrap;
}
.om-footer-pay ul {
  display: flex;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.om-footer-pay li {
  font-size: .55rem;
  letter-spacing: .04em;
  color: var(--text-soft);
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 3px;
  padding: .28rem .5rem;
  line-height: 1;
}
@media (max-width: 560px) {
  .om-footer-bottom { justify-content: center; text-align: center; }
  .om-footer-pay { justify-content: center; flex-wrap: wrap; }
}

/* ── WooCommerce product grid ──
   Override Woo's float/percentage-width columns with a responsive grid. */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100% !important;
  height: 100%; /* fill the stretched grid cell so buttons bottom-align */
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  text-align: center;
  display: flex;
  flex-direction: column;
}
/* Woo adds .first/.last for its float layout — neutralise them */
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last { clear: none !important; }

/* Product image sits in a wooden frame with a fixed aspect ratio,
   so mixed-ratio Printify mockups still line up in the grid. */
.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 5px solid var(--frame-wood);
  box-shadow: var(--shadow);
  border-radius: 0;
  margin: 0 0 .9rem;
  transition: transform .35s ease, box-shadow .35s ease;
}
.woocommerce ul.products li.product:hover a img {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Reserve a fixed height for the title so cards stay the same size whether
   the title is one line, two lines, or missing entirely. */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display) !important;
  font-size: .85rem !important;
  font-weight: 400 !important;
  letter-spacing: .02em;
  line-height: 1.4;
  padding: 0 0 .35rem !important;
  margin: 0;
  min-height: 2.75em; /* ~2 lines, keeps rows aligned */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.woocommerce ul.products li.product .price {
  font-family: var(--font-body) !important;
  font-size: .62rem !important;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-soft) !important;
  margin: 0 0 .9rem;
}
.woocommerce ul.products li.product .price del { opacity: .5; margin-right: .4rem; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--text) !important; }

/* Push the button to the bottom so cards with 1- and 2-line titles align */
.woocommerce ul.products li.product .button {
  margin-top: auto !important;
  align-self: center;
}

.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-size: .55rem !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3em .8em !important;
  min-height: 0 !important;
  min-width: 0 !important;
  line-height: 1.6 !important;
  top: .6rem !important;
  left: .6rem !important;
  right: auto !important;
  margin: 0 !important;
}

/* Woo's own result count / sorting bar on the shop archive */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering select {
  font-family: var(--font-body) !important;
  font-size: .68rem;
  color: var(--text-soft);
}
.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: .5rem .7rem;
  border-radius: 0;
}

/* ── Centring every inner page ──
   Shop, cart, checkout, account and the legal pages all run through
   Astra's default templates. Give them one centred column. */
.woocommerce-page .ast-container,
.woocommerce.archive .site-content {
  max-width: 1140px;
  margin-inline: auto;
}

.woocommerce .woocommerce-products-header,
.woocommerce-page .woocommerce-products-header {
  text-align: center;
  margin-bottom: 2rem;
}
.woocommerce-products-header__title,
.woocommerce-page .entry-title,
.woocommerce div.product .product_title {
  text-align: center;
}
.woocommerce .woocommerce-result-count { float: none; text-align: center; }
.woocommerce .woocommerce-ordering { float: none; display: flex; justify-content: center; margin-bottom: 1.6rem; }

/* Generic pages (Terms, Privacy, Returns, and anything you add later).
   The column is centred; running text stays left-aligned, because
   centred paragraphs are markedly harder to read at this length. */
.page .entry-title,
.page .ast-article-single .entry-title {
  text-align: center;
}
.page .entry-content,
.page .ast-article-single .entry-content {
  max-width: 68ch;
  margin-inline: auto;
}
.page .entry-content > h2,
.page .entry-content > h3 { text-align: left; }
.page .entry-content table { font-size: .85rem; }

@media (max-width: 520px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: .75rem !important;
  }
  .woocommerce ul.products li.product .button {
    font-size: .55rem !important;
    padding: .55rem 1rem !important;
    letter-spacing: .15em;
  }
}

/* ── Single Product ── */
.woocommerce div.product .product_title {
  font-size: clamp(1.4rem, 3vw, 2rem) !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--font-body) !important;
  color: var(--text-soft) !important;
  font-size: .75rem !important;
  letter-spacing: .15em;
}
.woocommerce div.product .woocommerce-product-gallery img {
  border: 5px solid var(--frame-wood);
}

/* ── Cart & Checkout ── */
.woocommerce table.shop_table {
  border-color: var(--border) !important;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid var(--border) !important;
  background: var(--bg-card) !important;
  color: var(--text) !important;
  font-family: var(--font-body) !important;
  border-radius: 0 !important;
  padding: .75rem .9rem !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: none !important;
}

/* ── Layout helpers ── */
.om-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
/* fixed nav clearance on inner pages (front page hero handles its own) */
body:not(.home) #page,
body:not(.home) .hfeed.site {
  padding-top: 76px;
}
/* anchor targets clear the fixed nav */
[id] { scroll-margin-top: 92px; }
html { scroll-behavior: smooth; }

/* ── Inner pages ──
   Astra wraps content in a fixed-width .ast-container; our page templates
   manage their own containers and need full-bleed section backgrounds. */
body.om-fullwidth #content .ast-container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  /* Astra lays the container out with flex for the content/sidebar pair.
     Our <main> then behaves as a flex item and shrinks to its content,
     hugging the left edge. Block layout lets it span the full width so the
     inner .om-container can centre itself. */
  display: block;
}
body.om-fullwidth .om-page { width: 100%; }
body.om-fullwidth #content,
body.om-fullwidth #primary,
body.om-fullwidth .site-main,
body.om-fullwidth .ast-article-single {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  width: 100%;
  max-width: none;
}
body.om-fullwidth .om-page > section:last-child { padding-bottom: clamp(3.5rem, 7vw, 6rem); }

/* Page banner */
.om-page-banner {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg);
}
.om-page-banner-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 1.2rem;
  display: block;
}
.om-page-banner h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.7rem, 4vw, 2.6rem) !important;
  font-weight: 400 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 .6rem;
}
.om-page-banner p {
  font-size: .78rem;
  color: var(--text-soft);
  letter-spacing: .04em;
  max-width: 46ch;
  margin: 0 auto;
}

/* Closing CTA band */
.om-page-cta {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bg);
}
.om-page-cta h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem) !important;
  font-weight: 400 !important;
  font-style: italic;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

/* Current page gets a subtle underline in the nav */
.om-nav-links a[aria-current="page"] {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}

/* ── Nav actions: account + cart ── */
.om-nav-actions {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-shrink: 0;
  min-width: 56px; /* balances the brand so the links stay centred */
  justify-content: flex-end;
}

.om-nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-soft);
  transition: color .2s;
}
.om-nav-icon svg { width: 21px; height: 21px; }
.om-nav-icon:hover,
.om-nav-icon:focus-visible { color: var(--text); }

/* Small dot marks a signed-in account */
.om-nav-dot {
  position: absolute;
  top: -1px;
  right: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.om-cart-count {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-soft);
}
.om-cart-count.has-items {
  background: var(--accent);
  color: #fff;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

@media (max-width: 380px) {
  .om-nav-actions { gap: 1rem; }
}

/* ── Categories ── */
.om-categories { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.om-categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .om-categories-grid { grid-template-columns: 1fr; max-width: 360px; }
}
.om-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: transform .3s, box-shadow .3s;
  display: block;
}
.om-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.om-category-visual {
  width: 130px;
  height: 130px;
  margin: 0 auto 1.2rem;
}
.om-category-card h3 {
  font-family: var(--font-display) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.om-category-card p {
  font-size: .75rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
}
.om-category-link {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ── How It Works ── */
.om-how {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--bg-warm);
}
.om-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 680px) {
  .om-steps { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
}
.om-step {
  text-align: center;
  position: relative;
}
.om-step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.om-step-icon svg { width: 100%; height: 100%; }
.om-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: .75rem;
  color: var(--accent);
  letter-spacing: .2em;
  margin-bottom: .4rem;
}
.om-step h3 {
  font-family: var(--font-display) !important;
  font-size: .95rem !important;
  font-weight: 400 !important;
  margin-bottom: .5rem;
}
.om-step p {
  font-size: .75rem;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 28ch;
  margin: 0 auto;
}

/* ── Shop section ── */
.om-shop { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.om-shop-cta { text-align: center; margin-top: 2.5rem; }
.om-shop-empty {
  text-align: center;
  color: var(--text-soft);
  font-size: .85rem;
}
/* Homepage New Arrivals: 4 across on desktop, 2 on tablet/phone */
.om-shop .woocommerce ul.products,
.om-shop ul.products {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 900px) {
  .om-shop .woocommerce ul.products,
  .om-shop ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Shop archive: filters sidebar + products ── */
.post-type-archive-product .entry-content,
.tax-product_cat .entry-content { max-width: none !important; }

.om-shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 2rem auto 0;
  align-items: start;
}
@media (max-width: 820px) {
  .om-shop-layout { grid-template-columns: 1fr; gap: 1rem; }
}

/* On the shop archive the products area is narrower, so let the grid reflow */
.om-shop-main .woocommerce ul.products,
.om-shop-main ul.products {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
}

/* Filters sidebar */
.om-shop-sidebar-inner { position: sticky; top: 92px; }
.om-filters-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-family: var(--font-body);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text);
  cursor: pointer;
}
.om-filters-toggle svg { width: 18px; height: 18px; }

.om-filter-group { margin-bottom: 1.8rem; }
.om-filter-group h3 {
  font-family: var(--font-body);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

/* Sort dropdown inside the sidebar (full width) */
.om-filters .woocommerce-ordering { margin: 0; display: block; }
.om-filters .woocommerce-ordering select { width: 100%; }

/* Category list */
.om-filters .product-categories,
.om-filters .product-categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.om-filters .product-categories li {
  margin: 0;
}
.om-filters .product-categories li a {
  display: inline-block;
  padding: .3rem 0;
  font-size: .82rem;
  color: var(--text-soft) !important;
  transition: color .2s;
}
.om-filters .product-categories li a:hover,
.om-filters .product-categories li.current-cat > a {
  color: var(--accent) !important;
}
.om-filters .product-categories .count {
  color: var(--faint, var(--text-soft));
  font-size: .72rem;
}
.om-filters .product-categories .children {
  padding-left: .9rem;
  border-left: 1px solid var(--border);
  margin-left: .2rem;
}

/* Price filter */
.om-filters .price_slider_wrapper { margin-top: .3rem; }
.om-filters .price_slider_amount {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-top: .9rem;
}
.om-filters .price_slider_amount .price_label {
  font-size: .78rem;
  color: var(--text-soft);
  order: 1;
}
.om-filters .price_slider_amount .button {
  order: 2;
  align-self: flex-start;
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: .6rem !important;
  text-transform: uppercase;
  letter-spacing: .18em;
  padding: .55rem 1.4rem !important;
}
.om-filters .price_slider_amount .button:hover { background: var(--accent-hover) !important; }
/* Slider track/range/handles — override WooCommerce's default purple-blue.
   Its selectors (.widget_price_filter .ui-slider …) are specific, so match
   them with !important. */
.om-filters .price_slider.ui-slider,
.om-filters .widget_price_filter .ui-slider {
  position: relative;
  height: 3px !important;
  background: var(--border) !important;
  border: none !important;
  border-radius: 0 !important;
  margin: .4rem 0 .2rem;
}
.om-filters .price_slider .ui-slider-range,
.om-filters .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
  background: var(--accent) !important;
  height: 100%;
  position: absolute;
  border: none !important;
}
.om-filters .price_slider .ui-slider-handle,
.om-filters .widget_price_filter .ui-slider .ui-slider-handle,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
  width: 14px !important;
  height: 14px !important;
  background: var(--accent) !important;
  border: 2px solid var(--bg-card) !important;
  border-radius: 50% !important;
  top: -6px;
  margin-left: -7px;
  cursor: grab;
  box-shadow: 0 1px 3px rgba(58,47,42,.2);
}

.om-filter-clear {
  display: inline-block;
  font-size: .72rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}
.om-filter-clear:hover { color: var(--accent); border-color: var(--accent); }

/* Mobile: collapse the sidebar behind a Filters button */
@media (max-width: 820px) {
  .om-filters-toggle { display: flex; }
  .om-shop-sidebar-inner {
    position: static;
    display: none;
    margin-top: .8rem;
    padding: 1.2rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
  }
  .om-shop-sidebar.open .om-shop-sidebar-inner { display: block; }
}

/* ── Testimonials ── */
.om-testimonials {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--bg-warm);
}
.om-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
@media (max-width: 680px) {
  .om-testimonials-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}
.om-testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.om-testimonial-hearts {
  color: var(--accent);
  font-size: .7rem;
  letter-spacing: .3em;
  margin-bottom: .8rem;
}
.om-testimonial p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .85rem;
  line-height: 1.7;
  margin-bottom: .8rem;
}
.om-testimonial span {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-soft);
}


/* ── Customily personalizer area ── */
.customily-personalizer,
#customily-container,
.cly-container {
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-family: var(--font-body) !important;
}

/* ── My Account (geral) ── */
/* Centre the page heading ("A minha conta") in the brand's display face */
.woocommerce-account .entry-title,
.woocommerce-account .ast-container .entry-title {
  text-align: center !important;
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2rem) !important;
  margin-bottom: 2rem;
}
/* Astra caps .entry-content at ~720px; let our own widths govern instead */
.woocommerce-account #primary,
.woocommerce-account .site-main,
.woocommerce-account .ast-article-single,
.woocommerce-account .entry-content,
.woocommerce-account article.page {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}
/* Keep the account content in a centred column */
.woocommerce-account .woocommerce {
  max-width: 980px;
  margin-inline: auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* The login/register heading is a sibling of the form — centre it too */
.woocommerce-account .woocommerce > h2 {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-size: 1.25rem !important;
  text-align: center;
  letter-spacing: .04em;
  margin: 0 0 1.4rem;
}

/* Kill the browser autofill blue/lavender fill on every form field */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}

/* ── My Account: signed out ── */
.woocommerce-account:not(.logged-in) .entry-title { margin-bottom: 2.5rem; }

/* Centre everything in the logged-out account: heading + form(s) */
.woocommerce-account:not(.logged-in) .woocommerce {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.woocommerce-account:not(.logged-in) .woocommerce > * {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Registration on: login + register side by side, centred */
.woocommerce-account #customer_login.col2-set,
.woocommerce-account .u-columns#customer_login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}
.woocommerce-account #customer_login .col-1,
.woocommerce-account #customer_login .col-2 {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
@media (max-width: 720px) {
  .woocommerce-account #customer_login.col2-set,
  .woocommerce-account .u-columns#customer_login { grid-template-columns: 1fr; max-width: 440px; }
}

/* Registration off: a single login form, centred */
.woocommerce-account:not(.logged-in) .woocommerce > form.woocommerce-form-login,
.woocommerce-account .woocommerce > .woocommerce-form-login {
  max-width: 440px;
  margin-inline: auto;
}

.woocommerce-account #customer_login h2,
.woocommerce-account .woocommerce-form-login h2 {
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  text-align: center;
  letter-spacing: .06em;
  margin: 0 0 1.4rem;
}

.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3vw, 2.4rem) !important;
  margin: 0 !important;
  height: 100%;
}
.woocommerce-account .woocommerce-form-row { margin-bottom: 1rem; }
.woocommerce-account .woocommerce-form-row label {
  display: block;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text-soft);
  margin-bottom: .4rem;
}
.woocommerce-account .woocommerce-form-row input.input-text,
.woocommerce-account .woocommerce-form-row input.woocommerce-Input {
  width: 100%;
  padding: .8rem .9rem !important;
  font-family: var(--font-body) !important;
  font-size: .85rem !important;
  border: 1px solid var(--border) !important;
  background: var(--bg) !important;
  border-radius: 0 !important;
  color: var(--text);
}
.woocommerce-account .woocommerce-form-row input:focus {
  border-color: var(--accent) !important;
  outline: none;
  box-shadow: none !important;
}
.woocommerce-account .woocommerce-form-login__rememberme {
  display: block;
  font-size: .74rem;
  color: var(--text-soft);
  margin: .2rem 0 1.1rem;
}
.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register__submit {
  width: 100%;
  margin: 0 0 1rem !important;
}
.woocommerce-account .woocommerce-LostPassword {
  text-align: center;
  margin: 0;
}
.woocommerce-account .woocommerce-LostPassword a {
  font-size: .72rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.woocommerce-account .woocommerce-LostPassword a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.woocommerce-account .woocommerce-privacy-policy-text p {
  font-size: .72rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── My Account: signed in — single centred column, nav as top tabs ── */
.woocommerce-account.logged-in .woocommerce {
  display: block;
  max-width: 820px;
  margin-inline: auto;
}
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* Navigation as a centred row of tabs */
.woocommerce-account .woocommerce-MyAccount-navigation {
  margin-bottom: 2rem !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  border: none;
  background: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li { border: none !important; }
/* !important beats the scoped WooCommerce "kill Astra blue" accent rule that
   otherwise repaints these links (and hid the active tab's text). */
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: .55rem 1rem;
  border: 1px solid var(--border);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 500;
  color: var(--text-soft) !important;
  transition: color .2s, background .2s, border-color .2s;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  color: var(--text) !important;
  border-color: var(--text-soft);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  color: #fff !important;
  background: var(--text);
  border-color: var(--text);
  box-shadow: none;
}

/* Content panel */
.woocommerce-account .woocommerce-MyAccount-content {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  font-size: .9rem;
}
.woocommerce-account .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.woocommerce-account .woocommerce-MyAccount-content a:not(.button) { color: var(--accent); }

/* Dashboard: welcome + tiles */
.om-account-hi {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-align: center;
  color: var(--text);
  margin: 0 0 1.8rem !important;
}
.om-account-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 520px) {
  .om-account-tiles { grid-template-columns: 1fr; }
}
.om-account-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.om-account-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.om-account-tile svg { width: 26px; height: 26px; color: var(--accent); }
.om-tile-label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text) !important;
}
.om-tile-desc {
  font-size: .78rem;
  line-height: 1.5;
  color: var(--text-soft) !important;
}

/* Woo notices, used across account, cart and checkout */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top: 2px solid var(--accent) !important;
  background: var(--bg-card) !important;
  border-radius: 0 !important;
  font-size: .82rem;
}
.woocommerce-error { border-top-color: #A85A4A !important; }

/* ── Cookie banner (Complianz / CookieYes) ── */
.cmplz-cookiebanner,
.cky-consent-container .cky-consent-bar {
  font-family: var(--font-body) !important;
  border-radius: 0 !important;
  border: 1px solid var(--border) !important;
  background: var(--bg-card) !important;
}
.cmplz-cookiebanner .cmplz-btn.cmplz-accept,
.cky-btn-accept {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  border-radius: 0 !important;
}

/* ── Product-page trust block ── */
.om-trust {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.om-trust-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
}
.om-trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.om-trust-item strong {
  display: block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .01em;
  margin-bottom: .1rem;
}
.om-trust-item span {
  font-size: .78rem;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ── Image-quality tip (product page) ── */
.om-imgtip {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin: 1rem 0 0;
  padding: .9rem 1rem;
  background: var(--bg-warm);
  border: 1px solid var(--border);
}
.om-imgtip svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.om-imgtip strong {
  display: block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .15rem;
}
.om-imgtip span {
  font-size: .75rem;
  line-height: 1.55;
  color: var(--text-soft);
}

/* Variation dropdown ("Choose an option") — branded to match */
.woocommerce div.product .variations select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  border: 1px solid var(--border) !important;
  background: var(--bg-card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A7E74' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 1rem center;
  border-radius: 0 !important;
  padding: .8rem 2.2rem .8rem 1rem !important;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--text);
  cursor: pointer;
}
.woocommerce div.product .variations select:focus { border-color: var(--accent) !important; outline: none; }
.woocommerce div.product .variations th.label label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Product page: quantity + Preview + Add-to-Cart row ──
   Customily puts these inside .woocommerce-variation-add-to-cart, not
   form.cart directly, so lay that out as the row. */
.woocommerce div.product form.cart,
.woocommerce div.product .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .7rem;
  margin-top: 1.2rem;
}
.woocommerce div.product form.cart .quantity,
.woocommerce div.product .woocommerce-variation-add-to-cart .quantity {
  margin: 0;
}
.woocommerce div.product .quantity input.qty {
  min-height: 48px;
  width: 66px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
}

/* Shared button sizing */
.woocommerce div.product .single_add_to_cart_button,
.woocommerce div.product .customily-preview-button,
.woocommerce div.product button.customily-preview {
  min-height: 48px;
  padding: 0 2rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem !important;
  line-height: 1 !important;
  transition: background .25s, color .25s, border-color .25s;
}

/* Preview — secondary, filled beige so it's clearly a button */
.woocommerce div.product .customily-preview-button,
.woocommerce div.product button.customily-preview {
  background: var(--btn-bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--btn-bg) !important;
}
.woocommerce div.product .customily-preview-button:hover,
.woocommerce div.product button.customily-preview:hover {
  background: var(--btn-hover) !important;
  border-color: var(--btn-hover) !important;
}

/* Add to Cart — primary, accent filled */
.woocommerce div.product .single_add_to_cart_button {
  background: var(--accent) !important;
  color: #fff !important;
  border: 1px solid var(--accent) !important;
}
.woocommerce div.product .single_add_to_cart_button:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
}
/* Disabled (no option chosen yet) — defined outline, clearly inactive */
.woocommerce div.product .single_add_to_cart_button.disabled,
.woocommerce div.product .single_add_to_cart_button:disabled {
  background: var(--bg-card) !important;
  color: var(--text-soft) !important;
  border: 1px solid var(--border) !important;
  opacity: 1 !important;
  cursor: not-allowed;
}

@media (max-width: 460px) {
  .woocommerce div.product .quantity input.qty { width: 100%; }
  .woocommerce div.product .single_add_to_cart_button,
  .woocommerce div.product .customily-preview-button { flex: 1; }
}

/* Customily clones the add-to-cart button and hides its copy (.hidden-cart-btn),
   triggering it in JS once the personalized design is generated. Its own
   `display:none !important` is only one class specific, so our
   `.woocommerce div.product .single_add_to_cart_button` rule above out-specifies
   it and un-hides the clone — which is why the page showed two Add to Cart
   buttons. Re-hide the clones; the real button is the one WITHOUT these classes.
   Do not "fix" this by hiding .single_add_to_cart_button generally: the clone is
   the one carrying the Customily design payload. */
.woocommerce div.product .single_add_to_cart_button.hidden-cart-btn,
.woocommerce div.product .single_add_to_cart_button.hidden-buy-now-btn,
.woocommerce div.product .single_add_to_cart_button.customily-modal-hidden {
  display: none !important;
}

/* ── Kill Astra's blue accent inside WooCommerce content ──
   Scoped to .site-main only, so the brand nav and footer links (which live
   in the header/footer, outside .site-main) keep their own colors. */
.woocommerce-page .site-main a:not(.button):not(.wp-block-button__link),
.woocommerce .site-main a:not(.button):not(.wp-block-button__link) {
  color: var(--accent);
}
.woocommerce-page .site-main a:not(.button):hover,
.woocommerce .site-main a:not(.button):hover { color: var(--accent-hover); }

/* Checkout: place-order and proceed buttons in the brand accent, not blue */
#place_order,
button#place_order,
.woocommerce #place_order,
.woocommerce .checkout-button,
.woocommerce a.checkout-button {
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem !important;
}
#place_order:hover,
.woocommerce .checkout-button:hover { background: var(--accent-hover) !important; }

/* Checkout/cart field focus + links, no blue */
.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.select2-container--focus .select2-selection {
  border-color: var(--accent) !important;
  outline: none !important;
  box-shadow: none !important;
}
.woocommerce-info,
.woocommerce-message { border-top-color: var(--accent) !important; }
.woocommerce-info::before,
.woocommerce-message::before { color: var(--accent) !important; }

/* ── My Account: buttons + polish ── */
.woocommerce-account .woocommerce-Button,
.woocommerce-account button.button,
.woocommerce-account input.button {
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .64rem !important;
  padding: .8rem 1.4rem !important;
}
.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account button.button:hover { background: var(--accent-hover) !important; }
/* Give the signed-out account area breathing room and centre it */
.woocommerce-account:not(.logged-in) .woocommerce { padding-top: .5rem; }

/* ── Shop ordering dropdown: cleaner ── */
.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid var(--border) !important;
  background: var(--bg-card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A7E74' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right .7rem center;
  border-radius: 0 !important;
  padding: .55rem 2rem .55rem .9rem !important;
  font-size: .68rem !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-soft) !important;
  cursor: pointer;
}
.woocommerce .woocommerce-ordering select:focus { border-color: var(--accent) !important; outline: none; }

/* ── FAQ page ── */
.om-faq { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.om-faq .om-container { max-width: 760px; }
.om-faq-item {
  border-bottom: 1px solid var(--border);
}
.om-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  transition: color .2s;
}
.om-faq-item summary::-webkit-details-marker { display: none; }
.om-faq-item summary:hover { color: var(--accent); }
.om-faq-item summary svg {
  width: 18px; height: 18px;
  color: var(--text-soft);
  flex-shrink: 0;
  transition: transform .25s;
}
.om-faq-item[open] summary svg { transform: rotate(180deg); }
.om-faq-answer {
  padding: 0 0 1.2rem;
  max-width: 62ch;
}
.om-faq-answer p {
  font-size: .85rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0;
}
.om-faq-answer a { color: var(--accent); }
.om-faq-more {
  text-align: center;
  margin-top: 2.2rem;
  font-size: .82rem;
  color: var(--text-soft);
}
.om-faq-more a { color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }

/* ── Fade animation ── */
.om-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.om-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .om-fade { opacity: 1; transform: none; transition: none; }
}
