/* ==========================================================================
   MISTER OX — WordPress / WooCommerce design system
   Pure-white base · oxblood + brass accents · Fraunces + Inter
   ========================================================================== */

:root {
  --ink: #141414;
  --charcoal: #1c1c1e;
  --cream: #ffffff;
  --bone: #f5f5f6;
  --sand: #ececee;
  --line: #e6e6e9;
  --muted: #8b8b90;
  --ox: #7c2d2a;
  --ox-dark: #5e1f1d;
  --ox-light: #9a453f;
  --brass: #b8895a;
  --brass-dark: #996f44;
  --brass-light: #d2ae82;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.mox {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.mox h1, body.mox h2, body.mox h3, body.mox h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.mox a { color: inherit; text-decoration: none; }
.mox img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--ox); color: #fff; }

.mox-container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .mox-container { padding: 0 32px; } }
@media (min-width: 1024px) { .mox-container { padding: 0 48px; } }
.mox-main { min-height: 60vh; padding: 48px 0 72px; }
.mox-section { padding: 64px 0; }

.mox-eyebrow {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.28em; color: var(--brass-dark);
}
.mox-eyebrow--light { color: var(--brass-light); }

/* ---- Buttons ---------------------------------------------------------- */
.mox-btn,
.mox a.button, .mox button.button, .mox .woocommerce a.button,
.mox #add_payment_method .button, .mox .wc-block-components-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  border: none; cursor: pointer; transition: all .3s var(--ease);
  background: var(--ink); color: var(--cream); white-space: nowrap;
}
.mox-btn:hover, .mox a.button:hover, .mox button.button:hover { background: var(--ox); color: #fff; }
.mox-btn--lg { height: 52px; padding: 0 32px; font-size: 15px; }
.mox-btn--ox { background: var(--ox); }
.mox-btn--ox:hover { background: var(--ox-dark); }
.mox-btn--outline { background: transparent; color: var(--ink); border: 1px solid rgba(20,20,20,.25); }
.mox-btn--outline:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.mox-btn--light { background: transparent; color: var(--cream); border: 1px solid rgba(255,255,255,.3); }
.mox-btn--light:hover { background: var(--cream); color: var(--ink); }
.mox .button.alt, .mox .single_add_to_cart_button, .mox #place_order { background: var(--ox); color: #fff; }
.mox .button.alt:hover, .mox .single_add_to_cart_button:hover, .mox #place_order:hover { background: var(--ox-dark); }

/* ==========================================================================
   Header
   ========================================================================== */
.mox-header { position: sticky; top: 0; z-index: 50; }
.mox-promo { background: var(--ink); color: var(--cream); }
.mox-promo__inner { display: flex; align-items: center; justify-content: center; gap: 12px; height: 36px; font-size: 12.5px; text-align: center; }
.mox-promo a { color: var(--brass-light); font-weight: 600; }
.mox-bar { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(10px); }
.mox-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.mox-logo { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.16em; }
.mox-logo .ox { color: var(--ox); }

.mox-nav { display: none; align-items: center; gap: 28px; }
@media (min-width: 1024px) { .mox-nav { display: flex; } }
.mox-nav__item { position: relative; }
.mox-nav__link { font-size: 13.5px; font-weight: 500; letter-spacing: .02em; color: rgba(20,20,20,.8); padding: 8px 0; display: inline-block; }
.mox-nav__link:hover { color: var(--ink); }
.mox-nav__link--accent { color: var(--ox); }
.mox-menu {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  padding-top: 16px; min-width: 220px; opacity: 0; visibility: hidden;
  transition: all .2s var(--ease); z-index: 60;
}
.mox-nav__item:hover .mox-menu { opacity: 1; visibility: visible; }
.mox-menu__inner { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 24px 60px -24px rgba(20,20,20,.32); }
.mox-menu a { display: block; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; color: rgba(20,20,20,.75); }
.mox-menu a:hover { background: var(--bone); color: var(--ink); }
.mox-menu a.all { color: var(--ox); font-weight: 600; margin-top: 4px; }

.mox-actions { display: flex; align-items: center; gap: 6px; }
.mox-icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: none; border: none; cursor: pointer; color: var(--ink); }
.mox-icon-btn:hover { background: rgba(20,20,20,.05); }
.mox-lang { font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.mox-cart-link { position: relative; }
.mox-cart-count { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--ox); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.mox-burger { display: grid; }
@media (min-width: 1024px) { .mox-burger { display: none; } }

/* Mobile drawer */
.mox-drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.mox-drawer.open { display: block; }
.mox-drawer__scrim { position: absolute; inset: 0; background: rgba(20,20,20,.4); }
.mox-drawer__panel { position: absolute; left: 0; top: 0; height: 100%; width: 82%; max-width: 360px; background: var(--cream); box-shadow: 0 24px 60px -24px rgba(20,20,20,.4); overflow-y: auto; padding: 20px; }
.mox-drawer__panel a { display: block; padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.mox-drawer__panel a:hover { background: var(--bone); }
.mox-drawer__label { padding: 8px 16px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .28em; color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.mox-footer { background: var(--charcoal); color: var(--cream); margin-top: 64px; }
.mox-footer a { color: rgba(255,255,255,.6); }
.mox-footer a:hover { color: #fff; }
.mox-footer__trust { border-bottom: 1px solid rgba(255,255,255,.1); }
.mox-footer__trust .mox-container { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
@media (min-width: 768px) { .mox-footer__trust .mox-container { grid-template-columns: repeat(4,1fr); } }
.mox-trust { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.85); }
.mox-footer__main { display: grid; gap: 40px; padding: 56px 0; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .mox-footer__main { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.mox-footer h4 { font-family: var(--font-sans); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.9); margin: 0 0 16px; }
.mox-footer ul { list-style: none; margin: 0; padding: 0; }
.mox-footer li { margin-bottom: 12px; font-size: 14px; }
.mox-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.5); }
.mox-footer__bottom .mox-container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding: 24px 20px; }
.mox-pay span { border: 1px solid rgba(255,255,255,.2); border-radius: 4px; padding: 4px 8px; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.55); margin-left: 6px; }

/* ==========================================================================
   WooCommerce — product grid + cards
   ========================================================================== */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid; gap: 40px 20px; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .woocommerce ul.products { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(4,1fr); } }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; text-align: left; }

.mox-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--cream); transition: border-color .3s var(--ease); height: 100%; }
.mox-card:hover { border-color: rgba(20,20,20,.4); }
.mox-card__media { position: relative; aspect-ratio: 4 / 5; background: #fff; }
.mox-card__media a { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; }
.mox-card__media img { max-height: 100%; width: auto; object-fit: contain; transition: transform .5s var(--ease); }
.mox-card:hover .mox-card__media img { transform: scale(1.04); }
.mox-card__eyebrow { position: absolute; left: 14px; top: 14px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); z-index: 2; }
.mox-badge-sale, .mox-card .onsale { position: absolute; right: 0; top: 14px; background: var(--ox); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 0; margin: 0; min-height: 0; min-width: 0; line-height: 1.3; z-index: 2; }
.mox-card__heart { position: absolute; left: 14px; bottom: 14px; z-index: 3; color: rgba(20,20,20,.7); background: none; border: none; cursor: pointer; }
.mox-card__heart:hover { color: var(--ox); }
.mox-card__add { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: all .3s var(--ease); border: none; }
.mox-card:hover .mox-card__add { opacity: 1; transform: translateY(0); }
.mox-card__add:hover { background: var(--ox); color: #fff; }
.mox-card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.mox-card__title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; line-height: 1.35; color: var(--ink); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mox-card__cat { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.mox-card__price { margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.mox-card__price .amount { color: var(--ink); }
.mox-card__price ins { text-decoration: none; color: var(--ox); }
.mox-card__price del { color: var(--muted); margin-left: 8px; font-weight: 400; }

/* Shop page header + toolbar */
.mox-shop-head { border-bottom: 1px solid var(--line); padding: 32px 0; }
.mox-shop-head h1 { font-size: clamp(28px, 4vw, 44px); margin: 8px 0 0; }
.woocommerce .woocommerce-result-count { color: var(--muted); font-size: 14px; }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--line); border-radius: 999px; padding: 8px 32px 8px 16px; font-size: 13px; background: var(--bone); }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul { border: none; margin-top: 48px; display: flex; justify-content: center; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: none; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 999px; min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 10px; font-size: 14px; color: rgba(20,20,20,.7); background: none;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--bone); color: var(--ink); }

/* ==========================================================================
   Single product
   ========================================================================== */
.single-product div.product { display: grid; gap: 40px; }
@media (min-width: 1024px) { .single-product div.product { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.single-product .product .images { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.single-product .product_title { font-size: clamp(28px, 4vw, 44px); margin: 8px 0 12px; }
.single-product .price { font-size: 24px; font-weight: 500; color: var(--ox); font-family: var(--font-display); }
.single-product .price del { color: var(--muted); font-size: 18px; }
.single-product .woocommerce-product-details__short-description { color: rgba(20,20,20,.7); margin: 16px 0; }
.single-product .quantity input.qty { height: 44px; width: 64px; border: 1px solid var(--line); border-radius: 999px; text-align: center; }
.single-product .single_add_to_cart_button { height: 52px; width: 100%; margin-top: 8px; }
.single-product .product_meta { margin-top: 24px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
.single-product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 24px; }
.single-product .woocommerce-tabs ul.tabs { border: none; padding: 0; display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.single-product .woocommerce-tabs ul.tabs::before { display: none; }
.single-product .woocommerce-tabs ul.tabs li { background: none; border: none; padding: 0 0 12px; }
.single-product .woocommerce-tabs ul.tabs li a { font-weight: 500; color: var(--muted); }
.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); }

/* ==========================================================================
   Cart & checkout
   ========================================================================== */
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: 16px; border-collapse: separate; }
.woocommerce .cart_totals, .woocommerce-checkout #order_review { border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-checkout input[type=text], .woocommerce-checkout input[type=email], .woocommerce-checkout input[type=tel] {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px;
}
.woocommerce-info, .woocommerce-message { border-top-color: var(--ox); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--ox); }

/* ==========================================================================
   Age gate
   ========================================================================== */
.mox-age { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(28,28,30,.95); backdrop-filter: blur(10px); }
.mox-age.hidden { display: none; }
.mox-age__card { position: relative; width: 100%; max-width: 448px; background: var(--charcoal); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 40px; text-align: center; color: var(--cream); }
.mox-age__glyph { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 999px; background: rgba(124,45,42,.15); color: var(--brass-light); display: grid; place-items: center; font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.mox-age h2 { color: var(--cream); font-size: 24px; margin: 12px 0 8px; }
.mox-age p { color: rgba(255,255,255,.7); font-size: 14px; margin: 0 auto; max-width: 20rem; }
.mox-age__actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.mox-age small { display: block; margin-top: 24px; font-size: 11px; color: rgba(255,255,255,.4); }

/* ==========================================================================
   Home sections
   ========================================================================== */
.mox-hero { position: relative; display: flex; align-items: flex-end; min-height: calc(100svh - 100px); overflow: hidden; background: var(--charcoal); color: var(--cream); }
.mox-hero__bg { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.mox-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,28,30,.95), rgba(28,28,30,.3) 40%, transparent); }
.mox-hero__inner { position: relative; z-index: 2; padding: 64px 0 80px; text-align: center; max-width: 640px; margin: 0 auto; }
.mox-hero h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); margin: 20px 0; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.mox-hero h1 .accent { color: var(--brass-light); }
.mox-hero p { color: rgba(255,255,255,.8); max-width: 28rem; margin: 0 auto 24px; }
.mox-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.mox-values { border-bottom: 1px solid var(--line); }
.mox-values .mox-container { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px 32px; padding: 48px 20px; }
@media (min-width: 1024px) { .mox-values .mox-container { grid-template-columns: repeat(4,1fr); } }
.mox-value__icon { width: 44px; height: 44px; border-radius: 999px; background: var(--bone); color: var(--ox); display: grid; place-items: center; margin-bottom: 12px; }
.mox-value h4 { font-size: 16px; margin: 0; }
.mox-value p { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

.mox-collections { display: grid; gap: 24px; grid-template-columns: repeat(2,1fr); }
@media (min-width: 1024px) { .mox-collections { grid-template-columns: repeat(4,1fr); } }
.mox-collection { position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end; padding: 24px; color: #fff; }
.mox-collection__art { position: absolute; inset: 0; }
.mox-collection h3 { position: relative; z-index: 2; font-size: 22px; color: #fff; }

.mox-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.mox-section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 8px 0 0; }
.mox-section-head a { color: var(--ox); font-weight: 500; font-size: 14px; }

.mox-band { background: var(--charcoal); color: var(--cream); border-radius: 20px; padding: 48px; text-align: center; }
.mox-band h2 { color: var(--cream); }

.mox-hide { display: none !important; }

/* -----------------------------------------------------------------------
 * Template gap-fillers (placeholder, newsletter, search, social, brand)
 * -------------------------------------------------------------------- */
.mox-card__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 40%, rgba(184,137,90,.14), transparent 60%),
    var(--bone, #f5f5f6);
  border: 1px solid var(--line, #e6e6e9);
}

/* Footer brand + newsletter */
.mox-footer__brand { max-width: 320px; }
.mox-footer__brand .mox-logo { color: #fff; font-size: 1.35rem; }
.mox-footer__brand p { margin: 12px 0 18px; color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.6; }
.mox-newsletter { display: flex; gap: 8px; }
.mox-newsletter input {
  flex: 1 1 auto; min-width: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; border-radius: 999px;
  padding: 10px 16px; font: inherit; font-size: .875rem;
}
.mox-newsletter input::placeholder { color: rgba(255,255,255,.45); }
.mox-newsletter input:focus { outline: none; border-color: var(--brass, #b8895a); }
.mox-newsletter .mox-btn { flex: 0 0 auto; padding-inline: 20px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* Header search panel */
.mox-search { border-top: 1px solid var(--line, #e6e6e9); background: #fff; }
.mox-search form { display: flex; gap: 10px; }
.mox-search input[type="search"], .mox-search input.search-field {
  flex: 1 1 auto; min-width: 0;
  border: 1px solid var(--line, #e6e6e9); border-radius: 999px;
  padding: 12px 20px; font: inherit;
}
.mox-search input[type="search"]:focus, .mox-search input.search-field:focus {
  outline: none; border-color: var(--ox, #7c2d2a);
}
.mox-search button[type="submit"] {
  border: none; background: var(--ink, #141414); color: #fff;
  border-radius: 999px; padding: 0 22px; font: inherit; cursor: pointer;
}

/* Footer social row */
.mox-social { display: inline-flex; gap: 14px; align-items: center; }
.mox-social a { color: rgba(255,255,255,.6); display: inline-flex; transition: color .2s ease; }
.mox-social a:hover { color: #fff; }
