/* ===========================================================
   Marvolous shop theme — design system & WooCommerce shell
   Tokens sourced from /main/assets/css/store.css
   Classic theme; preserves native WooCommerce hooks/forms.
   =========================================================== */

:root {
  /* Core warm neutrals */
  --ivory: #fbf7ef;
  --cream: #f6ede2;
  --cream-2: #f1e6d6;
  --linen: #ece0cf;
  --sand: #e3d4bf;

  /* Brand accents */
  --botanical: #5a6f4e;
  --botanical-deep: #3f5238;
  --teal: #1f5d63;
  --teal-deep: #16464b;
  --copper: #b5703f;
  --copper-soft: #c98a5c;
  --gold-oil: #c9a55f;
  --gold-soft: #d8c084;
  --blush: #e3b7af;
  --blush-soft: #efd2cb;
  --berry: #9c5a63;

  /* Ink */
  --ink: #2f261f;
  --ink-mid: #5a4a3e;
  --ink-soft: #897465;
  --line: rgba(90, 70, 56, 0.16);
  --line-soft: rgba(90, 70, 56, 0.10);

  /* Surfaces */
  --surface: #ffffff;
  --surface-warm: #fdfaf4;
  --shadow-sm: 0 2px 10px rgba(60, 45, 33, 0.06);
  --shadow-md: 0 8px 28px rgba(60, 45, 33, 0.10);
  --shadow-lg: 0 18px 50px rgba(60, 45, 33, 0.14);

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;

  /* Spacing / radius */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --gap: clamp(1rem, 3vw, 1.75rem);
  --section-pad: clamp(3rem, 8vw, 6rem);
  --maxw: 1200px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body.marvolous-theme {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

body.marvolous-theme.is-ready { opacity: 1; }
body.marvolous-theme #wpadminbar { position: fixed; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.visually-hidden,
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 0; top: -60px; z-index: 200;
  background: var(--ink); color: var(--ivory); padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.site-main { flex: 1 0 auto; }

/* ---------------- Typography ---------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--copper);
}

.section { padding: var(--section-pad) 0; }
.section--tint { background: var(--surface-warm); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
  line-height: 1;
}

.btn--primary {
  background: var(--ink);
  color: var(--ivory);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--teal-deep);
}

.btn--ghost {
  background: var(--surface-warm);
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--copper);
  color: var(--copper);
  transform: translateY(-2px);
}

.btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

/* ---------------- Section heading ---------------- */
.sh { text-align: center; max-width: 42rem; margin: 0 auto clamp(1.75rem, 4vw, 2.75rem); }
.sh__title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0.5rem 0; }
.sh__lead { color: var(--ink-mid); font-size: 1.02rem; margin-top: 0.75rem; }
.sh__cta { justify-content: center; }

/* ===========================================================
   Header
   =========================================================== */
.topnote {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--teal-deep);
  padding: 0.45rem 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.brand { text-decoration: none; }
.brand__word {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav { display: none; }
.nav__list {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: center;
  justify-content: center;
}

.nav__link {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-mid);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav__link:hover,
.nav__link:focus-visible { color: var(--copper); }
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-warm);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.iconbtn:hover {
  border-color: var(--copper);
  color: var(--copper);
  transform: translateY(-1px);
}

.cart-link { position: relative; }

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}

.nav-toggle { display: inline-flex; }

.mobile-nav {
  border-top: 1px solid var(--line-soft);
  background: var(--ivory);
  padding: 1rem 0 1.25rem;
}

.mobile-nav__list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.mobile-nav__link {
  display: block;
  padding: 0.65rem 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav__link:hover { color: var(--copper); }

@media (min-width: 900px) {
  .header__bar { grid-template-columns: 1fr auto 1fr; }
  .brand { justify-self: start; }
  .nav { display: block; }
  .header__actions { justify-self: end; }
  .nav-toggle,
  .mobile-nav { display: none; }
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: var(--ivory);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer__tag {
  margin-top: 0.5rem;
  color: rgba(251, 247, 239, 0.72);
  font-size: 0.95rem;
}

.footer__links ul {
  list-style: none;
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.footer__links a {
  color: rgba(251, 247, 239, 0.82);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}

.footer__links a:hover { color: var(--gold-oil); }

.footer__legal {
  font-size: 0.82rem;
  color: rgba(251, 247, 239, 0.62);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

/* ===========================================================
   Homepage hero
   =========================================================== */
.hero {
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(2rem, 6vw, 4rem);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(90, 111, 78, 0.06), transparent),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(181, 112, 63, 0.05), transparent),
    var(--ivory);
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  margin: 0.75rem 0;
  letter-spacing: -0.01em;
}

.hero__title em {
  font-style: italic;
  color: var(--teal);
  font-weight: 500;
}

.hero__lead {
  max-width: 38ch;
  color: var(--ink-mid);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  min-height: clamp(260px, 40vw, 380px);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--cream), var(--linen));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(31, 93, 99, 0.08), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(181, 112, 63, 0.06), transparent 45%);
}

.hero__texture {
  text-align: center;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.hero__texture svg {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  fill: var(--botanical);
  opacity: 0.28;
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
}

/* ===========================================================
   Generic page shell
   =========================================================== */
.mv-page > h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.mv-content {
  color: var(--ink-mid);
}

.mv-content > * + * { margin-top: 1rem; }

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.empty-state h1 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--ink-mid); }

/* ===========================================================
   WooCommerce shell — styling hooks only; no form HTML overrides
   =========================================================== */
.marvolous-wc-shell .woocommerce-products-header__title,
.mv-page > h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.woocommerce ul.products {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.75rem 0 0.35rem;
  padding: 0;
}

.woocommerce ul.products li.product .price {
  color: var(--copper);
  font-weight: 400;
  font-size: 0.95rem;
}

.woocommerce ul.products li.product .button {
  margin-top: 0.75rem;
}

.woocommerce span.onsale { display: none; }

.woocommerce div.product {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .woocommerce div.product { grid-template-columns: 1fr 1fr; align-items: start; }
}

.woocommerce div.product .product_title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.woocommerce div.product p.price {
  color: var(--copper);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--ink-mid);
  margin-bottom: 1.25rem;
}

.woocommerce table.shop_table,
.woocommerce-checkout #order_review,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-cart-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  background: var(--surface-warm);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(181, 112, 63, 0.12);
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 100px;
  background: var(--ink);
  color: var(--ivory);
  border: 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--teal);
  color: var(--ivory);
  transform: translateY(-1px);
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--copper);
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: var(--copper-soft);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  list-style: none;
}

.woocommerce-message { border-left: 3px solid var(--botanical); }
.woocommerce-info { border-left: 3px solid var(--teal); }
.woocommerce-error { border-left: 3px solid var(--berry); }

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--line-soft);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink-mid);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: var(--cream);
  color: var(--copper);
}

/* Do not style or modify future PUDO map/container IDs yet. */

/* Hide block checkout remnants if any theme/plugin tries to load them */
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-cart { display: none !important; }
