/* Maison Lumière – component styles on top of theme.json tokens. */

:root {
  --mlp-label: 0.6875rem;
  --mlp-transition: 180ms ease;
}

/* ---------- Header ---------- */
.mlp-header { position: sticky; top: 0; z-index: 50; }
.mlp-header__row { gap: 2rem; }
.mlp-wordmark__name a { text-decoration: none; color: var(--wp--preset--color--charcoal); }
.mlp-nav .wp-block-navigation-item__content { padding: 0.25rem 0; border-bottom: 1px solid transparent; transition: border-color var(--mlp-transition); }
.mlp-nav .wp-block-navigation-item__content:hover { border-bottom-color: var(--wp--preset--color--brass); text-decoration: none; }
.mlp-nav .mlp-nav__cta .wp-block-navigation-item__content {
  border: 1px solid var(--wp--preset--color--charcoal); padding: 0.55rem 1rem;
}
.mlp-nav .mlp-nav__cta .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--ivory); }
@media (max-width: 1100px) { .mlp-nav .wp-block-navigation-item__content { font-size: 0.6875rem; } .mlp-header__row { gap: 1rem; } }

/* ---------- Links with arrow ---------- */
.mlp-link-arrow a { text-decoration: none; font-size: var(--mlp-label); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; border-bottom: 1px solid var(--wp--preset--color--brass); padding-bottom: 0.2rem; }
.mlp-link-arrow a::after { content: " →"; }

/* ---------- Tiles ---------- */
.mlp-tile { overflow: hidden; }
.mlp-tile img { transition: transform 700ms ease; }
.mlp-tile:hover img { transform: scale(1.04); }
.mlp-tile__link { color: inherit; text-decoration: none; }
.mlp-tile__link::after { content: ""; position: absolute; inset: 0; }
.mlp-tiles--7 > .wp-block-cover:first-child { grid-row: span 2; min-height: 100%; }
@media (min-width: 1024px) { .mlp-tiles--7 { grid-template-columns: repeat(4, 1fr) !important; } }
.mlp-coll h3 a { text-decoration: none; }
.mlp-coll h3 a:hover { color: var(--wp--preset--color--brass-ink); }
.mlp-coll img { transition: opacity var(--mlp-transition); }
.mlp-coll:hover img { opacity: 0.92; }
.mlp-room h3 a { text-decoration: none; }
.mlp-room:hover { background: var(--wp--preset--color--ivory-deep) !important; }

/* ---------- Product grids ---------- */
.mlp-products .wc-block-product-template__responsive, .mlp-products .products-block-post-template { gap: 2.5rem 1.5rem; }
.mlp-products li.product, .mlp-products .wc-block-product, .mlp-products li.wp-block-post { background: transparent; }
.mlp-products .wc-block-components-product-image img, .mlp-products .wp-block-post-featured-image img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--wp--preset--color--paper); }
.mlp-products .wp-block-post-title a { text-decoration: none; }
.mlp-products .wp-block-post-title a:hover { color: var(--wp--preset--color--brass-ink); }
.mlp-strip { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--stone); display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.mlp-strip__quote { color: var(--wp--preset--color--brass-ink); text-decoration: none; border-bottom: 1px solid var(--wp--preset--color--brass); }

/* ---------- Shop layout ---------- */
.mlp-shop__filters h5 { margin: 0 0 0.5rem; letter-spacing: 0.16em; text-transform: uppercase; font-size: var(--mlp-label); font-weight: 500; color: var(--wp--preset--color--brass-ink); }
.mlp-shop__filters .wc-block-product-filter { padding: 1rem 0; border-top: 1px solid var(--wp--preset--color--line); }
.mlp-shop__filters .wc-block-product-filter-checkbox-list__label { font-size: 0.875rem; }
.mlp-subcats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.mlp-subcats a { font-size: var(--mlp-label); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--wp--preset--color--line); padding: 0.5rem 0.9rem; background: var(--wp--preset--color--paper); transition: all var(--mlp-transition); }
.mlp-subcats a:hover, .mlp-subcats a.is-current { border-color: var(--wp--preset--color--charcoal); background: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--ivory); }
@media (max-width: 781px) { .mlp-shop__filters { order: -1; flex-basis: auto !important; } .mlp-shop__filters > *:not(.wp-block-woocommerce-product-filters) { display: none; } }
.mlp-seo-text { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--wp--preset--color--line); max-width: 68ch; }
.mlp-seo-text h2 { font-size: 1.5rem; }
.mlp-seo-text p { color: var(--wp--preset--color--charcoal-soft); font-size: 0.9375rem; }

/* ---------- Product page ---------- */
.mlp-eyebrow { font-size: var(--mlp-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--wp--preset--color--brass-ink); font-weight: 500; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.mlp-eyebrow a { text-decoration: none; color: inherit; }
.mlp-keyspecs { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.875rem; color: var(--wp--preset--color--charcoal-soft); padding: 1rem 0; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); margin: 1.25rem 0; }
.mlp-keyspecs b { font-weight: 500; color: var(--wp--preset--color--stone); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.6875rem; margin-right: 0.35rem; }
.mlp-quote-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.mlp-btn { display: inline-block; background: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--ivory); font-size: var(--mlp-label); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; padding: 1rem 1.75rem; text-decoration: none; border: 1px solid var(--wp--preset--color--charcoal); transition: all var(--mlp-transition); }
.mlp-btn:hover { background: var(--wp--preset--color--brass); border-color: var(--wp--preset--color--brass); color: var(--wp--preset--color--charcoal); }
.mlp-btn--ghost { background: transparent; color: var(--wp--preset--color--charcoal); }
.mlp-btn--ghost:hover { background: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--ivory); border-color: var(--wp--preset--color--charcoal); }
.mlp-link-quiet { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--brass-ink); text-decoration: underline; text-underline-offset: 4px; }
.mlp-pdp__gallery .woocommerce-product-gallery { margin: 0; }
.mlp-pdp__gallery .woocommerce-product-gallery__image img { background: var(--wp--preset--color--paper); }
.mlp-pdp__gallery .flex-control-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.mlp-pdp__gallery .flex-control-thumbs li { width: 72px; opacity: 0.6; }
.mlp-pdp__gallery .flex-control-thumbs li img.flex-active { opacity: 1; }

/* Tabs (WooCommerce product-details block / classic tabs) */
.mlp-pdp__tabs .wc-tabs, .mlp-pdp__tabs .woocommerce-tabs ul.tabs { display: flex; gap: 2rem; border-bottom: 1px solid var(--wp--preset--color--line); padding: 0; margin: 0 0 1.75rem; list-style: none; overflow-x: auto; }
.mlp-pdp__tabs .woocommerce-tabs ul.tabs::before, .mlp-pdp__tabs .woocommerce-tabs ul.tabs li::before, .mlp-pdp__tabs .woocommerce-tabs ul.tabs li::after { display: none; }
.mlp-pdp__tabs .woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-radius: 0; margin: 0; padding: 0; }
.mlp-pdp__tabs .woocommerce-tabs ul.tabs li a { font-size: var(--mlp-label); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--wp--preset--color--stone); padding: 0 0 0.75rem; display: block; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.mlp-pdp__tabs .woocommerce-tabs ul.tabs li.active a { color: var(--wp--preset--color--charcoal); border-bottom-color: var(--wp--preset--color--brass); }
.mlp-pdp__tabs .woocommerce-tabs .panel { max-width: 70ch; }
.mlp-pdp__tabs .woocommerce-tabs .panel h2 { display: none; }
.mlp-pdp__tabs .woocommerce-tabs .panel h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.mlp-pdp__tabs .woocommerce-product-attributes { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.mlp-pdp__tabs .woocommerce-product-attributes th, .mlp-pdp__tabs .woocommerce-product-attributes td { text-align: left; padding: 0.7rem 0; border-bottom: 1px solid var(--wp--preset--color--line); background: transparent; font-style: normal; }
.mlp-pdp__tabs .woocommerce-product-attributes th { width: 38%; font-weight: 500; color: var(--wp--preset--color--stone); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; }
.mlp-pdp__tabs .woocommerce-product-attributes td p { margin: 0; }
.mlp-quote-note { color: var(--wp--preset--color--stone); font-size: 0.9375rem; }

/* Store mode. Quote mode hides anything price- or cart-related WooCommerce might still render (never on invoice pay pages).
   Hybrid/Full shop: only pieces marked quote-only lose their price and button. */
body.mlp-store-quote:not(.mlp-payment-page) :is(.price, .woocommerce-Price-amount, .add_to_cart_button, .single_add_to_cart_button, form.cart, .wc-block-components-product-price, .wc-block-grid__product-price, .wc-block-grid__product-add-to-cart, .wp-block-woocommerce-product-price, .wp-block-woocommerce-product-button, .wc-block-components-product-button, .wp-block-woocommerce-mini-cart, .wc-block-mini-cart),
.mlp-quote-only :is(.price, .add_to_cart_button, .wp-block-woocommerce-product-price, .wp-block-woocommerce-product-button, .wc-block-components-product-button),
.woocommerce-product-rating { display: none !important; }
.mlp-buy__price { font-family: var(--wp--preset--font-family--display); font-size: 1.75rem; margin: 0 0 1rem; }
.mlp-buy form.cart { display: flex; gap: .75rem; align-items: stretch; margin: 0 0 1rem; }
.mlp-buy .single_add_to_cart_button { background: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--ivory); border: 0; padding: .95rem 2rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.mlp-buy .quantity input { width: 4.5rem; padding: .8rem; border: 1px solid var(--wp--preset--color--line); }
.mlp-quote-actions--secondary { margin-top: .5rem; }
.mlp-strip__price { margin-left: auto; font-weight: 500; }
.mlp-cart-link { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
/* Invoice pay page */
.mlp-pay-intro { border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--paper); padding: 1.25rem 1.5rem; margin: 0 0 2rem; }
.mlp-pay-intro__eyebrow { font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--brass-ink); margin: 0 0 .35rem; }
.mlp-pay-intro p:last-child { margin: 0; }

/* ---------- Quote form ---------- */
.mlp-form { display: grid; gap: 1.25rem; max-width: 640px; }
.mlp-form__row { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .mlp-form__row { grid-template-columns: 1fr; } }
.mlp-form label { display: grid; gap: 0.4rem; font-size: var(--mlp-label); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--wp--preset--color--brass-ink); }
.mlp-form input, .mlp-form select, .mlp-form textarea { font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 300; color: var(--wp--preset--color--charcoal); background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line); padding: 0.85rem 1rem; border-radius: 0; width: 100%; }
.mlp-form input:focus, .mlp-form select:focus, .mlp-form textarea:focus { outline: 2px solid var(--wp--preset--color--brass); outline-offset: 1px; border-color: var(--wp--preset--color--brass); }
.mlp-form__hp { position: absolute; left: -9999px; }
.mlp-form__products { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mlp-form__product { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--paper); padding: 0.4rem 0.75rem; font-size: 0.8125rem; letter-spacing: 0; text-transform: none; font-weight: 300; }
.mlp-form__product img { width: 32px; height: 40px; object-fit: cover; }
.mlp-notice { border-left: 2px solid var(--wp--preset--color--brass); padding: 1rem 1.25rem; background: var(--wp--preset--color--paper); }
.mlp-notice--error { border-left-color: #a33; }

/* ---------- Same-collection strip ---------- */
.mlp-same { margin-top: 4rem; }
.mlp-same__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.mlp-same__item { text-decoration: none; font-size: 0.875rem; line-height: 1.3; }
.mlp-same__item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--wp--preset--color--paper); display: block; margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.mlp-footer a { color: var(--wp--preset--color--ivory); text-decoration: none; }
.mlp-footer a:hover { color: var(--wp--preset--color--brass); }
.mlp-footer__list { list-style: none; padding: 0; margin: 0; font-size: 0.9375rem; }
.mlp-footer__list li { margin-bottom: 0.4rem; }

/* ---------- Misc ---------- */
.mlp-hero .wp-block-cover__inner-container { width: 100%; }
.is-style-outline .wp-block-button__link { background: transparent; }
@media (prefers-reduced-motion: reduce) { .mlp-tile img, .mlp-coll img { transition: none; } }

/* ---------- Chips (collection pages) ---------- */
.mlp-chip { margin: 0; }
.mlp-chip a { font-size: var(--mlp-label); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--wp--preset--color--line); padding: 0.5rem 0.9rem; background: var(--wp--preset--color--paper); display: inline-block; }
.mlp-chip a:hover { border-color: var(--wp--preset--color--charcoal); background: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--ivory); }
/* Classic [products] shortcode grid */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2.5rem 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product img { aspect-ratio: 4/5; object-fit: cover; width: 100%; background: var(--wp--preset--color--paper); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--wp--preset--font-family--display); font-size: 1.125rem; font-weight: 500; line-height: 1.25; padding: 0.75rem 0 0; }
.woocommerce ul.products li.product a { text-decoration: none; }
.mlp-faq { border-top: 1px solid var(--wp--preset--color--line); padding: 1rem 0; }
.mlp-faq summary { font-family: var(--wp--preset--font-family--display); font-size: 1.25rem; font-weight: 500; cursor: pointer; }
.mlp-faq p { color: var(--wp--preset--color--charcoal-soft); margin-top: 0.5rem; }

/* Header fit (added at launch) */
.mlp-header .wp-block-navigation-item__label, .mlp-header .wp-block-navigation-item__content { white-space: nowrap; }
.mlp-header .mlp-nav { gap: 1.25rem !important; font-size: 0.75rem; }
.mlp-header .mlp-wordmark__sub { white-space: nowrap; }
@media (max-width: 1280px) { .mlp-header .mlp-nav { gap: 0.9rem !important; font-size: 0.6875rem; } }

/* Split hero (text never sits on the photo) */
.mlp-hero-split { margin-top: 0 !important; margin-bottom: 0 !important; gap: 0 !important; min-height: 78vh; align-items: stretch !important; }
.mlp-hero-split__copy { position: relative; z-index: 1; }
.mlp-hero-split__media { position: relative; overflow: hidden; min-height: 78vh; }
.mlp-hero-split__img, .mlp-hero-split__img img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.mlp-hero-split__img img { object-fit: cover; object-position: 50% 40%; }
.mlp-hero-split__copy::after { content: ""; position: absolute; top: 0; bottom: 0; right: -60px; width: 60px; background: linear-gradient(90deg, var(--wp--preset--color--charcoal), transparent); pointer-events: none; z-index: 2; }
@media (max-width: 781px) {
  .mlp-hero-split { flex-direction: column-reverse !important; min-height: 0; }
  .mlp-hero-split__media { min-height: 0; aspect-ratio: 4 / 3; flex-basis: auto !important; }
  .mlp-hero-split__copy { flex-basis: auto !important; padding: 3rem 1.25rem !important; }
  .mlp-hero-split__copy::after { display: none; }
}

/* Launch fixes: no sideways scroll; hero photo height on phones */
html, body { overflow-x: clip; }
.mlp-hero-split { overflow: hidden; }
@media (max-width: 781px) {
  .mlp-hero-split > .wp-block-column { flex: 0 0 auto !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
  .mlp-hero-split__media { height: 78vw; min-height: 78vw !important; flex-basis: auto !important; aspect-ratio: auto; }
}
