/* ==========================================================================
   The Modern Flooring Co. — main.css
   ========================================================================== */

/* ── Custom properties (mirrors theme.json for use in plain CSS) ── */
:root {
  --mfc-ink:        #0e0d0b;
  --mfc-ink-2:      #3a3630;
  --mfc-ink-3:      #7a7268;
  --mfc-cream:      #f5f1ea;
  --mfc-cream-2:    #ede8df;
  --mfc-cream-3:    #e2ddd4;
  --mfc-gold:       #a07830;
  --mfc-gold-light: #c4973e;
  --mfc-dark:       #141210;
  --mfc-dark-2:     #1e1b18;
  --mfc-white:      #fdfaf6;
  --mfc-serif:      'Cormorant Garamond', Georgia, serif;
  --mfc-sans:       'Jost', system-ui, sans-serif;
  --mfc-ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --mfc-shadow:     0 8px 32px rgba(14, 13, 11, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--mfc-sans);
  background: var(--mfc-cream);
  color: var(--mfc-ink);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Utilities ─────────────────────────────────────────────────────────────── */

.mfc-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mfc-gold);
  display: block;
  margin-bottom: 1rem;
}

.mfc-rule {
  width: 36px;
  height: 1px;
  background: var(--mfc-gold);
  margin: 1.5rem 0;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.mfc-btn {
  font-family: var(--mfc-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  display: inline-block;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.mfc-btn--primary {
  background: var(--mfc-gold);
  color: var(--mfc-white);
}
.mfc-btn--primary:hover { background: var(--mfc-gold-light); }

.mfc-btn--dark {
  background: var(--mfc-ink);
  color: var(--mfc-white);
}
.mfc-btn--dark:hover { background: var(--mfc-ink-2); }

.mfc-btn--outline {
  background: transparent;
  color: var(--mfc-ink);
  border: 1px solid var(--mfc-ink);
}
.mfc-btn--outline:hover { background: var(--mfc-ink); color: var(--mfc-white); }

.mfc-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.mfc-btn--ghost:hover { color: var(--mfc-white); border-color: rgba(255, 255, 255, 0.6); }

/* ── Navigation ────────────────────────────────────────────────────────────── */

.mfc-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 3rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: background 0.3s, border-color 0.3s;
}

.mfc-nav.is-scrolled {
  background: var(--mfc-cream);
  border-bottom: 1px solid var(--mfc-cream-3);
}

/* Site title / brand */
.mfc-nav .wp-site-title,
.mfc-nav .mfc-brand,
.wp-block-site-title a {
  font-family: var(--mfc-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mfc-white);
  text-decoration: none;
  transition: color 0.3s;
  line-height: 1.4;
}

.mfc-nav.is-scrolled .wp-site-title a,
.mfc-nav.is-scrolled .mfc-brand,
.mfc-nav.is-scrolled .wp-block-site-title a { color: var(--mfc-ink); }

/* Nav links */
.mfc-nav__links .wp-block-navigation__container { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.mfc-nav__links .wp-block-navigation-item__content {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.mfc-nav.is-scrolled .mfc-nav__links .wp-block-navigation-item__content { color: var(--mfc-ink-3); }
.mfc-nav__links .wp-block-navigation-item__content:hover { color: var(--mfc-white); }
.mfc-nav.is-scrolled .mfc-nav__links .wp-block-navigation-item__content:hover { color: var(--mfc-ink); }

/* Cart icon */
.mfc-nav__actions { display: flex; align-items: center; gap: 1rem; }

.mfc-nav__cart {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--mfc-white);
  text-decoration: none;
  transition: color 0.2s;
}
.mfc-nav.is-scrolled .mfc-nav__cart { color: var(--mfc-ink); }

.mfc-nav__cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: var(--mfc-gold);
  color: var(--mfc-white);
  font-size: 0.6rem;
  font-weight: 500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.mfc-nav__cart-badge.has-items { opacity: 1; }

/* ── Scroll reveal ─────────────────────────────────────────────────────────── */

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--mfc-ease), transform 0.7s var(--mfc-ease);
}
[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: none;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.mfc-footer {
  background: var(--mfc-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4rem 3rem 2.5rem;
}

.mfc-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.mfc-footer__logo,
.mfc-footer .wp-block-site-title a {
  font-family: var(--mfc-sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}

.mfc-footer__tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.7;
  max-width: 240px;
}

.mfc-footer__col-title {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.mfc-footer__list { list-style: none; }
.mfc-footer__list li { margin-bottom: 0.6rem; }
.mfc-footer__list a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  transition: color 0.2s;
}
.mfc-footer__list a:hover { color: rgba(255, 255, 255, 0.55); }

.mfc-footer__links { list-style: none; }
.mfc-footer__links li { margin-bottom: 0.6rem; }
.mfc-footer__links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  transition: color 0.2s;
}
.mfc-footer__links a:hover { color: rgba(255, 255, 255, 0.55); }

.mfc-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.mfc-footer__legal {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.05em;
}

.mfc-footer__badge {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(160, 120, 48, 0.4);
  border: 1px solid rgba(160, 120, 48, 0.2);
  padding: 0.3rem 0.8rem;
}

/* ── WooCommerce Archive (Shop) ────────────────────────────────────────────── */

.mfc-archive-page { padding-top: 72px; }

.mfc-archive__header {
  background: var(--mfc-cream-2);
  padding: 5rem 3rem 3.5rem;
  border-bottom: 1px solid var(--mfc-cream-3);
}
.mfc-archive__header-inner { max-width: 1200px; margin: 0 auto; }

.mfc-archive__title {
  font-family: var(--mfc-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--mfc-ink);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.mfc-archive__desc {
  font-size: 0.95rem;
  color: var(--mfc-ink-3);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.mfc-archive__count {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--mfc-ink-3);
}

/* Filter bar */
.mfc-archive__filter-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 3rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mfc-filter-pill {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mfc-ink-3);
  border: 1px solid var(--mfc-cream-3);
  padding: 0.45rem 1.1rem;
  background: var(--mfc-cream);
  transition: all 0.2s;
}
.mfc-filter-pill:hover,
.mfc-filter-pill.is-active {
  background: var(--mfc-ink);
  color: var(--mfc-white);
  border-color: var(--mfc-ink);
}

/* Product grid */
.mfc-product-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 3rem 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--mfc-cream-3);
}

.mfc-product-card {
  background: var(--mfc-cream);
  display: flex;
  flex-direction: column;
}

.mfc-product-card__img-link { display: block; overflow: hidden; }
.mfc-product-card__img { height: 260px; overflow: hidden; }
.mfc-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--mfc-ease);
}
.mfc-product-card:hover .mfc-product-card__img img { transform: scale(1.04); }

.mfc-product-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.mfc-product-card__cat {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mfc-gold);
  margin-bottom: 0.35rem;
  display: block;
}

.mfc-product-card__name {
  font-family: var(--mfc-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--mfc-ink);
  margin-bottom: 0;
  flex: 1;
}
.mfc-product-card__name a { text-decoration: none; color: inherit; }

.mfc-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--mfc-cream-3);
}

.mfc-product-card__price {
  font-family: var(--mfc-serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--mfc-ink);
}
.mfc-product-card__price .woocommerce-Price-currencySymbol { font-family: var(--mfc-sans); font-size: 0.85rem; }

.mfc-product-card__cta {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mfc-gold);
  text-decoration: none;
  transition: color 0.2s;
}
.mfc-product-card__cta:hover { color: var(--mfc-gold-light); }

/* Empty archive */
.mfc-archive__empty {
  max-width: 480px;
  margin: 5rem auto;
  text-align: center;
  padding: 0 1.5rem;
}
.mfc-archive__empty p {
  font-size: 0.95rem;
  color: var(--mfc-ink-3);
  margin-bottom: 2rem;
}

/* ── Single Product ────────────────────────────────────────────────────────── */

.single-product { padding-top: 72px; }

.mfc-product__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Gallery */
.mfc-product-gallery {
  position: sticky;
  top: 88px;
}

.mfc-product-gallery__main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--mfc-cream-2);
  overflow: hidden;
}
.mfc-product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mfc-product-gallery__thumbs {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0 0;
  overflow-x: auto;
}

.mfc-product-gallery__thumb {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border: 1px solid var(--mfc-cream-3);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s;
}
.mfc-product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mfc-product-gallery__thumb.is-active { border-color: var(--mfc-gold); box-shadow: 0 0 0 1px var(--mfc-gold); }

/* Product info */
.mfc-product-info__cat {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mfc-gold);
  display: block;
  margin-bottom: 0.75rem;
}

.mfc-product-info__name {
  font-family: var(--mfc-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 300;
  color: var(--mfc-ink);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.mfc-product-info__tagline {
  font-size: 0.95rem;
  color: var(--mfc-ink-3);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.mfc-product-info__price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.mfc-product-price__val {
  font-family: var(--mfc-serif);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--mfc-ink);
}
.mfc-product-price__val .woocommerce-Price-currencySymbol { font-family: var(--mfc-sans); font-size: 1rem; }

.mfc-product-price__unit {
  font-size: 0.8rem;
  color: var(--mfc-ink-3);
  letter-spacing: 0.05em;
}

.mfc-pack-price {
  font-size: 0.82rem;
  color: var(--mfc-ink-3);
  margin-bottom: 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--mfc-cream-3);
  border-bottom: 1px solid var(--mfc-cream-3);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.mfc-pack-price__val { font-family: var(--mfc-serif); font-size: 1.1rem; font-weight: 300; color: var(--mfc-ink); }
.mfc-pack-price__label { font-size: 0.78rem; }
.mfc-pack-price__note { font-size: 0.72rem; color: var(--mfc-ink-3); width: 100%; }

/* Quick specs */
.mfc-quick-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--mfc-cream-3);
  margin-bottom: 2rem;
}
.mfc-spec-item {
  background: var(--mfc-cream-2);
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--mfc-cream-3);
}
.mfc-spec-item__label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mfc-ink-3);
  display: block;
  margin-bottom: 0.15rem;
}
.mfc-spec-item__val { font-size: 0.85rem; color: var(--mfc-ink); font-weight: 400; }

/* Trust badges */
.mfc-trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--mfc-cream-3);
  border-bottom: 1px solid var(--mfc-cream-3);
}
.mfc-trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
}
.mfc-trust-badge + .mfc-trust-badge { border-left: 1px solid var(--mfc-cream-3); }

.mfc-trust-badge__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(160, 120, 48, 0.3);
  border-radius: 50%;
  background: rgba(160, 120, 48, 0.06);
  color: var(--mfc-gold);
}
.mfc-trust-badge__icon svg { width: 15px; height: 15px; }

.mfc-trust-badge__text { font-size: 0.75rem; color: var(--mfc-ink-3); line-height: 1.4; margin: 0; }
.mfc-trust-badge__text strong { display: block; font-weight: 500; font-size: 0.78rem; color: var(--mfc-ink); margin-bottom: 0.1rem; }

/* Accordions */
.mfc-accordions { border-top: 1px solid var(--mfc-cream-3); }

.mfc-accordion-item { border-bottom: 1px solid var(--mfc-cream-3); }

.mfc-accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  background: transparent;
  border: none;
  font-family: var(--mfc-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--mfc-ink);
  cursor: pointer;
  text-align: left;
}

.mfc-accordion-icon {
  font-family: var(--mfc-sans);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--mfc-gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.mfc-accordion-item.is-open .mfc-accordion-icon { transform: rotate(45deg); }

.mfc-accordion-body {
  font-size: 0.875rem;
  color: var(--mfc-ink-3);
  line-height: 1.8;
  padding-bottom: 1.5rem;
}
.mfc-accordion-body[hidden] { display: none; }
.mfc-accordion-body p { margin-bottom: 0.75rem; }
.mfc-accordion-body ul { padding-left: 1.25rem; }
.mfc-accordion-body li { margin-bottom: 0.4rem; }

/* Spec table */
.mfc-spec-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.mfc-spec-table td { padding: 0.6rem 0; border-bottom: 1px solid var(--mfc-cream-3); vertical-align: top; }
.mfc-spec-table td:first-child { color: var(--mfc-ink-3); width: 45%; padding-right: 1rem; }
.mfc-spec-table td:last-child { color: var(--mfc-ink); font-weight: 400; }

/* Related products */
.mfc-related {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 3rem 6rem;
  border-top: 1px solid var(--mfc-cream-3);
}

.mfc-related__title {
  font-family: var(--mfc-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--mfc-ink);
  margin-bottom: 2.5rem;
}
.mfc-related__title em { font-style: italic; color: var(--mfc-gold); }

.mfc-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--mfc-cream-3);
}

.mfc-related-card { background: var(--mfc-cream); text-decoration: none; display: block; }
.mfc-related-card__img { height: 180px; overflow: hidden; }
.mfc-related-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--mfc-ease); }
.mfc-related-card:hover .mfc-related-card__img img { transform: scale(1.04); }
.mfc-related-card__name { font-family: var(--mfc-serif); font-size: 1rem; font-weight: 400; color: var(--mfc-ink); padding: 0.85rem 1rem 0.3rem; }
.mfc-related-card__price { font-size: 0.85rem; color: var(--mfc-ink-3); padding: 0 1rem 1rem; }

/* ── Calculator ────────────────────────────────────────────────────────────── */

.mfc-calc { max-width: 520px; margin-bottom: 1.5rem; }

.mfc-calc__label {
  font-size: 0.62rem;
  color: var(--mfc-ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  font-weight: 500;
  display: block;
}

.mfc-calc__input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 6px;
}

.mfc-calc__input-wrap { display: flex; flex-direction: column; gap: 5px; }
.mfc-calc__input-wrap label { font-size: 0.75rem; color: var(--mfc-ink-3); }

.mfc-calc input[type="number"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--mfc-cream-3);
  background: var(--mfc-white);
  color: var(--mfc-ink);
  font-family: var(--mfc-sans);
  font-weight: 300;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}
.mfc-calc input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.mfc-calc input[type="number"]:focus {
  outline: none;
  border-color: var(--mfc-gold);
  box-shadow: 0 0 0 3px rgba(160, 120, 48, 0.12);
}

.mfc-calc__divider { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.mfc-calc__divider-line { flex: 1; height: 1px; background: var(--mfc-cream-3); }
.mfc-calc__divider-text { font-size: 0.72rem; color: var(--mfc-ink-3); white-space: nowrap; }

.mfc-calc__toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--mfc-cream-2);
  border: 1px solid var(--mfc-cream-3);
  margin-bottom: 12px;
  cursor: pointer;
}
.mfc-calc__toggle-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--mfc-gold);
}
.mfc-calc__toggle-row label { font-size: 0.875rem; color: var(--mfc-ink); cursor: pointer; flex: 1; line-height: 1.5; font-weight: 300; }
.mfc-calc__toggle-sub { font-size: 0.72rem; color: var(--mfc-ink-3); display: block; margin-top: 3px; }

.mfc-calc__lead-time {
  font-size: 0.82rem;
  color: var(--mfc-ink-3);
  background: var(--mfc-cream-2);
  border: 1px solid var(--mfc-cream-3);
  padding: 10px 14px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.mfc-calc__results {
  display: none;
  background: var(--mfc-white);
  border: 1px solid var(--mfc-cream-3);
  overflow: hidden;
  margin-bottom: 16px;
}

.mfc-calc__result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 16px;
  border-bottom: 1px solid var(--mfc-cream-3);
}
.mfc-calc__result-row:last-child { border-bottom: none; }
.mfc-calc__result-label { font-size: 0.82rem; color: var(--mfc-ink-3); }
.mfc-calc__result-value { font-size: 0.9rem; color: var(--mfc-ink); font-weight: 400; }

.mfc-calc__result-row--total {
  background: var(--mfc-cream-2);
}
.mfc-calc__result-row--total .mfc-calc__result-label { font-weight: 500; color: var(--mfc-ink); }
.mfc-calc__result-row--total .mfc-calc__result-value { font-family: var(--mfc-serif); font-size: 1.4rem; font-weight: 300; }

.mfc-calc__btn-add,
.mfc-calc__btn-sample {
  display: none;
  width: 100%;
  max-width: 520px;
  height: 52px;
  font-size: 0.75rem;
  font-weight: 400;
  font-family: var(--mfc-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
  transition: opacity 0.2s, background 0.2s;
}
.mfc-calc__btn-add { display: none; background: var(--mfc-ink); color: var(--mfc-white); }
.mfc-calc__btn-add:hover { background: var(--mfc-ink-2); }
.mfc-calc__btn-sample { display: block; background: var(--mfc-gold); color: var(--mfc-white); }
.mfc-calc__btn-sample:hover { background: var(--mfc-gold-light); }

.mfc-calc__sample-note {
  font-size: 0.72rem;
  color: var(--mfc-ink-3);
  text-align: center;
  margin: -2px 0 0;
  line-height: 1.55;
}

/* ── Cart page ─────────────────────────────────────────────────────────────── */

.woocommerce-cart { padding-top: 72px; }
.woocommerce-cart .woocommerce { max-width: 1200px; margin: 0 auto; padding: 4rem 3rem 6rem; }

.woocommerce-cart-form table.shop_table { width: 100%; border-collapse: collapse; }
.woocommerce-cart-form table.shop_table th {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mfc-ink-3);
  font-weight: 400;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--mfc-cream-3);
  text-align: left;
}
.woocommerce-cart-form table.shop_table td {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--mfc-cream-3);
  vertical-align: middle;
}
.woocommerce-cart-form .product-thumbnail img { width: 72px; height: 72px; object-fit: cover; }
.woocommerce-cart-form .product-name a { font-family: var(--mfc-serif); font-size: 1.1rem; color: var(--mfc-ink); text-decoration: none; }
.woocommerce-cart-form .product-price, .woocommerce-cart-form .product-subtotal { font-family: var(--mfc-serif); font-size: 1.1rem; color: var(--mfc-ink); }
.woocommerce-cart-form .quantity input { border: 1px solid var(--mfc-cream-3); padding: 0.4rem 0.6rem; font-family: var(--mfc-sans); font-size: 0.9rem; width: 60px; }
.woocommerce-cart-form .product-remove a { color: var(--mfc-ink-3); font-size: 1.2rem; text-decoration: none; transition: color 0.2s; }
.woocommerce-cart-form .product-remove a:hover { color: var(--mfc-ink); }

/* Cart totals */
.cart_totals { margin-top: 3rem; max-width: 420px; margin-left: auto; }
.cart_totals h2 { font-family: var(--mfc-serif); font-size: 1.5rem; font-weight: 300; color: var(--mfc-ink); margin-bottom: 1.5rem; }
.cart_totals table { width: 100%; border-collapse: collapse; }
.cart_totals table th, .cart_totals table td { padding: 0.85rem 0; border-bottom: 1px solid var(--mfc-cream-3); font-size: 0.9rem; }
.cart_totals table th { color: var(--mfc-ink-3); font-weight: 300; text-align: left; }
.cart_totals table td { color: var(--mfc-ink); text-align: right; font-weight: 400; }
.cart_totals .order-total th, .cart_totals .order-total td { font-family: var(--mfc-serif); font-size: 1.4rem; font-weight: 300; border-bottom: none; padding-top: 1.25rem; }

.wc-proceed-to-checkout { margin-top: 1.5rem; }
.wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--mfc-ink);
  color: var(--mfc-white);
  font-family: var(--mfc-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.wc-proceed-to-checkout .checkout-button:hover { background: var(--mfc-ink-2); }

/* Empty cart */
.mfc-cart-empty {
  max-width: 520px;
  margin: 6rem auto;
  text-align: center;
  padding: 0 1.5rem;
}
.mfc-cart-empty__icon { color: var(--mfc-cream-3); margin: 0 auto 2rem; }
.mfc-cart-empty__title { font-family: var(--mfc-serif); font-size: 2rem; font-weight: 300; color: var(--mfc-ink); margin-bottom: 1rem; }
.mfc-cart-empty__text { font-size: 0.9rem; color: var(--mfc-ink-3); line-height: 1.75; margin-bottom: 2.5rem; max-width: 380px; margin-left: auto; margin-right: auto; }
.mfc-cart-empty__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Checkout ──────────────────────────────────────────────────────────────── */

.woocommerce-checkout { padding-top: 72px; }
.woocommerce-checkout .woocommerce { max-width: 1200px; margin: 0 auto; padding: 4rem 3rem 6rem; }

.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

.woocommerce-checkout h3 {
  font-family: var(--mfc-serif);
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--mfc-ink);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--mfc-cream-3);
}

.woocommerce-checkout .form-row label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mfc-ink-3);
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 400;
}

.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--mfc-cream-3);
  background: var(--mfc-white);
  color: var(--mfc-ink);
  font-family: var(--mfc-sans);
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color 0.2s;
  margin-bottom: 0.5rem;
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus {
  outline: none;
  border-color: var(--mfc-gold);
  box-shadow: 0 0 0 3px rgba(160, 120, 48, 0.1);
}

/* Order review */
.woocommerce-checkout-review-order table { width: 100%; border-collapse: collapse; }
.woocommerce-checkout-review-order table th,
.woocommerce-checkout-review-order table td {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--mfc-cream-3);
  font-size: 0.88rem;
}
.woocommerce-checkout-review-order table th { color: var(--mfc-ink-3); font-weight: 300; }
.woocommerce-checkout-review-order .order-total td { font-family: var(--mfc-serif); font-size: 1.3rem; font-weight: 300; }

#place_order {
  display: block;
  width: 100%;
  background: var(--mfc-ink);
  color: var(--mfc-white);
  font-family: var(--mfc-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.1rem;
  border: none;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.2s;
}
#place_order:hover { background: var(--mfc-ink-2); }

/* ── My Account ────────────────────────────────────────────────────────────── */

.woocommerce-account { padding-top: 72px; }
.woocommerce-account .woocommerce { max-width: 1200px; margin: 0 auto; padding: 4rem 3rem 6rem; }

.mfc-account { display: grid; grid-template-columns: 220px 1fr; gap: 4rem; }

.mfc-account__nav .woocommerce-MyAccount-navigation ul { list-style: none; }
.mfc-account__nav .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--mfc-cream-3); }
.mfc-account__nav .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.85rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--mfc-ink-3);
  text-decoration: none;
  transition: color 0.2s;
}
.mfc-account__nav .woocommerce-MyAccount-navigation a:hover { color: var(--mfc-ink); }
.mfc-account__nav .woocommerce-MyAccount-navigation .is-active a { color: var(--mfc-ink); font-weight: 500; }

.mfc-account__content h2 { font-family: var(--mfc-serif); font-size: 1.5rem; font-weight: 300; color: var(--mfc-ink); margin-bottom: 1.5rem; }
.woocommerce-orders-table { width: 100%; border-collapse: collapse; }
.woocommerce-orders-table th { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mfc-ink-3); font-weight: 400; padding: 0 0 0.85rem; border-bottom: 1px solid var(--mfc-cream-3); text-align: left; }
.woocommerce-orders-table td { padding: 1rem 0; border-bottom: 1px solid var(--mfc-cream-3); font-size: 0.88rem; color: var(--mfc-ink-3); }
.woocommerce-orders-table .button { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; color: var(--mfc-gold); }

/* WooCommerce notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  list-style: none;
  border-left: 3px solid var(--mfc-gold);
  background: var(--mfc-cream-2);
  color: var(--mfc-ink);
}
.woocommerce-error { border-left-color: #c0392b; }

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .mfc-product-grid { grid-template-columns: repeat(2, 1fr); }
  .mfc-related-grid { grid-template-columns: repeat(2, 1fr); }
  .mfc-product__inner { grid-template-columns: 1fr; gap: 3rem; }
  .mfc-product-gallery { position: relative; top: auto; }
  .mfc-footer__grid { grid-template-columns: 1fr 1fr; }
  .woocommerce-checkout .col2-set { grid-template-columns: 1fr; }
  .mfc-account { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .mfc-nav { padding: 0 1.5rem; }
  .mfc-nav__links { display: none; }

  .mfc-archive__header { padding: 4rem 1.5rem 2.5rem; }
  .mfc-archive__filter-bar { padding: 1.5rem; }
  .mfc-product-grid { grid-template-columns: 1fr; padding: 1.5rem 1.5rem 4rem; }

  .mfc-product__inner { padding: 2.5rem 1.5rem; }
  .mfc-trust-badges { grid-template-columns: 1fr; }
  .mfc-trust-badge + .mfc-trust-badge { border-left: none; border-top: 1px solid var(--mfc-cream-3); }
  .mfc-quick-specs { grid-template-columns: 1fr; }
  .mfc-related { padding: 3rem 1.5rem 4rem; }
  .mfc-related-grid { grid-template-columns: repeat(2, 1fr); }

  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce { padding: 2.5rem 1.5rem 4rem; }

  .mfc-footer { padding: 3rem 1.5rem 2rem; }
  .mfc-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .mfc-footer__bottom { flex-direction: column; text-align: center; }
}

/* ── Homepage specific ─────────────────────────────────────────────────────── */

.mfc-home { padding-top: 0; }

/* Hero */
.mfc-hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 3rem 5.5rem;
  overflow: hidden;
}
.mfc-hero__bg { position: absolute; inset: 0; overflow: hidden; }
.mfc-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; animation: mfcHeroZoom 14s ease-out forwards; }
@keyframes mfcHeroZoom { from { transform: scale(1.04); } to { transform: scale(1); } }
.mfc-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(14,13,11,.18) 0%, rgba(14,13,11,.05) 40%, rgba(14,13,11,.72) 100%); }
.mfc-hero__content { position: relative; z-index: 2; max-width: 800px; }
.mfc-hero__label { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mfc-gold-light); margin-bottom: 1.5rem; display: block; animation: mfcFadeUp .8s .3s both; }
.mfc-hero__title { font-family: var(--mfc-serif); font-size: clamp(3rem,6vw,5.5rem); font-weight: 300; line-height: 1.05; color: var(--mfc-white); letter-spacing: -.01em; margin-bottom: .25rem; animation: mfcFadeUp .9s .5s both; }
.mfc-hero__title em { font-style: italic; color: var(--mfc-gold-light); }
.mfc-hero__sub { font-size: 0.95rem; color: rgba(255,255,255,.58); margin-top: 1.5rem; margin-bottom: 2.5rem; max-width: 480px; animation: mfcFadeUp .9s .75s both; }
.mfc-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: mfcFadeUp .9s 1s both; }
.mfc-hero__scroll { position: absolute; bottom: 2.5rem; right: 3rem; font-size: 0.58rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.28); writing-mode: vertical-rl; display: flex; align-items: center; gap: .75rem; }
.mfc-hero__scroll::after { content: ''; display: block; width: 1px; height: 56px; background: linear-gradient(to bottom, rgba(255,255,255,.28), transparent); }
@keyframes mfcFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Why */
.mfc-why { padding: 7rem 3rem; background: var(--mfc-cream); }
.mfc-why__inner { max-width: 1200px; margin: 0 auto; }
.mfc-why__header { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 4rem; }
.mfc-why__header h2 { font-family: var(--mfc-serif); font-size: clamp(2rem,3.5vw,3rem); font-weight: 300; color: var(--mfc-ink); }
.mfc-why__header h2 em { font-style: italic; color: var(--mfc-gold); }
.mfc-why__header p { font-size: 0.9rem; color: var(--mfc-ink-3); line-height: 1.8; }
.mfc-pillars { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; background: var(--mfc-cream-3); }
.mfc-pillar { background: var(--mfc-cream); padding: 2.5rem 2rem; }
.mfc-pillar__icon { width: 28px; height: 28px; color: var(--mfc-gold); margin-bottom: 1.5rem; }
.mfc-pillar__title { font-family: var(--mfc-serif); font-size: 1.2rem; font-weight: 400; color: var(--mfc-ink); margin-bottom: .6rem; }
.mfc-pillar__body { font-size: 0.82rem; color: var(--mfc-ink-3); line-height: 1.75; }

/* Carousel section */
.mfc-carousel-section { background: var(--mfc-cream-2); padding: 7rem 0; }
.mfc-carousel-section__header { padding: 0 3rem; max-width: 1200px; margin: 0 auto 3.5rem; }
.mfc-carousel-section__header h2 { font-family: var(--mfc-serif); font-size: clamp(1.75rem,3vw,2.75rem); font-weight: 300; color: var(--mfc-ink); }
.mfc-carousel-section__header h2 em { font-style: italic; color: var(--mfc-gold); }
.mfc-carousel-wrap { overflow: hidden; position: relative; }
.mfc-carousel-wrap::before, .mfc-carousel-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.mfc-carousel-wrap::before { left: 0; background: linear-gradient(to right, var(--mfc-cream-2), transparent); }
.mfc-carousel-wrap::after { right: 0; background: linear-gradient(to left, var(--mfc-cream-2), transparent); }
.mfc-carousel { display: flex; gap: 2px; padding: 0 3rem; transition: transform .5s cubic-bezier(.25,.8,.25,1); will-change: transform; }
.mfc-carousel .mfc-product-card { flex: 0 0 300px; }
.mfc-carousel__controls { display: flex; gap: .75rem; align-items: center; padding: 2.5rem 3rem 0; max-width: 1200px; margin: 0 auto; justify-content: flex-end; }
.mfc-carousel__btn { width: 44px; height: 44px; border: 1px solid var(--mfc-cream-3); background: var(--mfc-cream); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; color: var(--mfc-ink-3); }
.mfc-carousel__btn:hover { border-color: var(--mfc-ink); color: var(--mfc-ink); }
.mfc-carousel__dots { display: flex; gap: .4rem; flex: 1; }
.mfc-carousel__dot { width: 6px; height: 1px; background: var(--mfc-cream-3); cursor: pointer; transition: all .3s; }
.mfc-carousel__dot.is-active { width: 24px; background: var(--mfc-gold); }

/* Visualiser */
.mfc-home-vis { background: var(--mfc-dark); padding: 8rem 3rem; }
.mfc-home-vis__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.mfc-home-vis__content p { font-size: 0.9rem; color: rgba(255,255,255,.45); line-height: 1.8; margin: 1.5rem 0 2.5rem; max-width: 420px; }
.mfc-home-vis__hint { font-size: 0.72rem; color: rgba(255,255,255,.25); margin-top: 1rem; letter-spacing: .08em; }

/* Demo slider */
.mfc-demo-slider { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--mfc-dark-2); }
.mfc-demo-after, .mfc-demo-before { position: absolute; inset: 0; overflow: hidden; }
.mfc-demo-before { width: 50%; }
.mfc-demo-after img, .mfc-demo-before img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mfc-demo-handle { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.6); transform: translateX(-50%); cursor: ew-resize; z-index: 3; }
.mfc-demo-handle::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 36px; height: 36px; background: var(--mfc-white); border-radius: 50%; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.mfc-demo-handle::after { content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 14px; color: var(--mfc-ink); z-index: 4; width: 36px; text-align: center; line-height: 36px; }
.mfc-demo-label { position: absolute; bottom: .75rem; font-size: .55rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); padding: .3rem .7rem; background: rgba(0,0,0,.4); }
.mfc-demo-label--before { left: .75rem; }
.mfc-demo-label--after { right: .75rem; }

/* Samples banner */
.mfc-samples-banner { background: var(--mfc-cream-2); padding: 5rem 3rem; border-top: 1px solid var(--mfc-cream-3); border-bottom: 1px solid var(--mfc-cream-3); }
.mfc-samples-banner__inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 5rem; }
.mfc-samples-banner__text { flex: 1; }
.mfc-samples-banner__text h2 { font-family: var(--mfc-serif); font-size: clamp(1.5rem,2.5vw,2.25rem); font-weight: 300; color: var(--mfc-ink); margin-bottom: .75rem; }
.mfc-samples-banner__text h2 em { font-style: italic; color: var(--mfc-gold); }
.mfc-samples-banner__text p { font-size: .88rem; color: var(--mfc-ink-3); line-height: 1.8; margin-bottom: 1.75rem; max-width: 400px; }
.mfc-samples-banner__stat { flex-shrink: 0; text-align: center; }
.mfc-samples-banner__num { font-family: var(--mfc-serif); font-size: 3.5rem; font-weight: 300; color: var(--mfc-gold); line-height: 1; }
.mfc-samples-banner__label { font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mfc-ink-3); margin-top: .3rem; }

/* Testimonials */
.mfc-testimonials { background: var(--mfc-dark); padding: 7rem 3rem; }
.mfc-testimonials__inner { max-width: 1200px; margin: 0 auto; }
.mfc-testimonials__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: rgba(255,255,255,.05); margin-top: 3rem; }
.mfc-testi { background: var(--mfc-dark-2); padding: 2.5rem; }
.mfc-testi__stars { color: var(--mfc-gold-light); font-size: 0.9rem; margin-bottom: 1.5rem; letter-spacing: .1em; }
.mfc-testi__body { font-family: var(--mfc-serif); font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,.65); line-height: 1.65; margin-bottom: 1.75rem; font-style: italic; }
.mfc-testi__author { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.3); margin: 0; }
.mfc-testi__role { font-size: .7rem; color: rgba(255,255,255,.2); margin-top: .2rem; letter-spacing: .05em; }

/* Homepage responsive */
@media (max-width: 1024px) {
  .mfc-why__header { grid-template-columns: 1fr; }
  .mfc-pillars { grid-template-columns: repeat(2,1fr); }
  .mfc-home-vis__inner { grid-template-columns: 1fr; gap: 4rem; }
  .mfc-testimonials__grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .mfc-hero { padding: 0 1.5rem 4rem; }
  .mfc-why { padding: 5rem 1.5rem; }
  .mfc-pillars { grid-template-columns: 1fr; }
  .mfc-home-vis { padding: 5rem 1.5rem; }
  .mfc-samples-banner { padding: 4rem 1.5rem; }
  .mfc-samples-banner__inner { flex-direction: column; gap: 2.5rem; }
  .mfc-testimonials { padding: 5rem 1.5rem; }
}
