/*
Theme Name: Maison Lyra Store
Author: Codex
Description: A refined WooCommerce storefront for Maison Lyra LLC.
Version: 1.0.0
Text Domain: borvila-clone
*/

:root {
  --ink: #171717;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --cream: #f7f4ee;
  --blue: #2f68d8;
  --max: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 15px/1.6 Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.topbar { background: #1d1d1d; color: #fff; padding: 8px 0; text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-main { min-height: 86px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.brand img { width: 112px; height: 86px; object-fit: contain; }
.brand-text { font-size: 26px; font-weight: 800; letter-spacing: .14em; }
.header-spacer { min-width: 1px; }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 21px; font-size: 13px; }
.header-search { position: relative; }
.search-toggle,
.search-popover button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5e5e5e;
  cursor: pointer;
}
.search-toggle { width: 36px; height: 44px; }
.search-toggle svg,
.search-popover button svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.search-popover {
  position: absolute;
  top: calc(100% + 24px);
  right: -28px;
  z-index: 80;
  display: flex;
  align-items: center;
  width: min(470px, calc(100vw - 28px));
  min-height: 112px;
  padding: 0 28px;
  border: 1px solid #eee;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.header-search.is-open .search-popover { opacity: 1; visibility: visible; transform: translateY(0); }
.search-popover::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 36px;
  width: 16px;
  height: 16px;
  border-top: 1px solid #eee;
  border-left: 1px solid #eee;
  background: #fff;
  transform: rotate(45deg);
}
.search-popover input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 70px;
  padding: 0 18px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #252525;
  font-size: 20px;
}
.search-popover input[type="search"]::placeholder { color: #777; opacity: 1; }
.search-popover button { flex: 0 0 46px; height: 70px; }
.search-popover button:hover,
.search-toggle:hover { color: #173d59; }
.main-nav { border-top: 1px solid var(--line); }
.main-nav ul { display: flex; justify-content: center; gap: 38px; padding: 15px 0; margin: 0; list-style: none; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.hero { min-height: 610px; background: #d7e4f1 url('assets/hero-maison-lyra.png') center/cover no-repeat; display: flex; align-items: center; }
.hero-copy { display: none; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 700; }
.hero h1 { margin: 13px 0 18px; font: 700 clamp(42px, 6vw, 78px)/.98 Georgia, serif; }
.hero p { max-width: 450px; font-size: 17px; }
.btn { display: inline-block; margin-top: 18px; padding: 13px 27px; background: var(--ink); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.section { padding: 76px 0; }
.section-title { margin: 0 0 32px; text-align: center; font: 700 35px/1.2 Georgia, serif; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card { position: relative; overflow: hidden; aspect-ratio: 1 / 1.15; background: #eee; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.category-card:hover img { transform: scale(1.04); }
.category-card span { position: absolute; inset: auto 22px 22px; padding: 14px 18px; background: rgba(255,255,255,.94); font: 700 20px Georgia, serif; text-align: center; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; text-align: center; }
.woocommerce ul.products li.product img { aspect-ratio: 4/5; object-fit: cover; margin-bottom: 16px !important; background: #f3f3f3; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 !important; font-size: 15px !important; font-weight: 500; }
.woocommerce ul.products li.product .price { color: #333 !important; font-size: 14px !important; }
.woocommerce ul.products li.product .button { background: transparent !important; color: #111 !important; border-bottom: 1px solid #111; border-radius: 0; padding: 7px 0 !important; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.benefits { background: var(--cream); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 35px; text-align: center; }
.benefit-icon { font-size: 31px; }
.benefit h3 { margin: 10px 0 4px; font-size: 16px; }
.story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 500px; background: #f2f2f2; }
.story-image { min-height: 500px; background: url('assets/story.jpg') center/cover; }
.story-copy { padding: 70px clamp(35px, 7vw, 110px); }
.story-copy h2 { font: 700 40px Georgia, serif; }
.site-footer { padding: 65px 0 25px; background: #171717; color: #eee; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 55px; }
.site-footer h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { padding: 0; list-style: none; }
.site-footer li { margin: 8px 0; color: #aaa; }
.copyright { margin-top: 45px; padding-top: 20px; border-top: 1px solid #333; color: #888; font-size: 12px; }
.content-area { padding: 55px 0; }
.page .content-area > article { max-width: 900px; margin: 0 auto; }
.page .content-area > article > h1 { margin: 0 0 34px; font-size: clamp(38px, 5vw, 58px); line-height: 1.1; }
.page .content-area .entry-content h2,
.page .content-area article h2 { margin: 34px 0 12px; font-size: 24px; }
.page .content-area article p,
.page .content-area article li { color: #424242; font-size: 16px; line-height: 1.8; }
.page .content-area article ul { padding-left: 22px; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(45px, 8vw, 110px); align-items: start; }
.contact-copy h2 { margin: 10px 0 20px !important; font-size: clamp(34px, 4vw, 50px) !important; }
.contact-copy > p:not(.eyebrow) { margin-bottom: 34px; color: #555; }
.contact-detail { padding: 20px 0; border-top: 1px solid #e5e5e5; }
.contact-detail strong,
.contact-detail span,
.contact-detail a { display: block; }
.contact-detail strong { margin-bottom: 4px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.contact-detail span,
.contact-detail a { color: #5f5f5f; font-size: 16px; }
.contact-form-card { padding: clamp(28px, 4vw, 48px); background: #f7f5f1; }
.maison-contact-form label { display: block; margin-bottom: 20px; color: #2d2d2d; font-size: 14px; font-weight: 700; }
.maison-contact-form label span { color: #9b2d2d; }
.maison-contact-form input,
.maison-contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid #d8d5cf;
  border-radius: 0;
  background: #fff;
  color: #222;
  font: inherit;
  outline: none;
}
.maison-contact-form input:focus,
.maison-contact-form textarea:focus { border-color: #285979; box-shadow: 0 0 0 1px #285979; }
.contact-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.maison-contact-form button {
  min-height: 54px;
  padding: 0 30px;
  border: 0;
  background: #285979;
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.maison-contact-form button:hover { background: #183d57; }
.contact-notice { margin-bottom: 24px; padding: 14px 16px; border-left: 4px solid; background: #fff; }
.contact-notice-success { border-color: #2f7b4e; color: #245f3d; }
.contact-notice-error { border-color: #a63d3d; color: #8a3030; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.woocommerce-page-shell { padding-top: 34px; }
.woocommerce .woocommerce-breadcrumb {
  margin: 0 0 42px;
  color: #777;
  font-size: 17px;
  font-weight: 400;
}
.woocommerce .woocommerce-breadcrumb a { color: #777; }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--ink); }
.breadcrumb-separator { display: inline-block; padding: 0 13px; color: #aaa; }

/* Single product: WoodMart-inspired editorial layout. */
body.single-product.woocommerce div.product { margin-top: 0; }
body.single-product.woocommerce div.product::after { content: ""; display: table; clear: both; }
body.single-product.woocommerce div.product div.images {
  width: 52%;
  margin-bottom: 70px;
}
body.single-product.woocommerce div.product div.images img {
  background: #f7f7f7;
  width: 100%;
}
body.single-product.woocommerce div.product div.images .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 0;
}
body.single-product.woocommerce div.product div.images .flex-control-thumbs li {
  float: none;
  width: auto;
  margin: 0;
}
body.single-product.woocommerce div.product div.images .flex-control-thumbs img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: .55;
  transition: opacity .2s ease;
}
body.single-product.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
body.single-product.woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; }
body.single-product.woocommerce div.product .summary {
  width: 43%;
  margin: 0 0 70px;
  padding: 0 0 0 24px;
}
body.single-product.woocommerce div.product .product_title {
  margin: -8px 0 28px;
  color: #2a2a2a;
  font-size: clamp(34px, 3.1vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
}
body.single-product.woocommerce div.product p.price,
body.single-product.woocommerce div.product span.price {
  color: #173d59;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}
body.single-product.woocommerce div.product form.cart { margin: 42px 0 0; }
body.single-product.woocommerce div.product form.cart .variations { margin: 0 0 28px; }
body.single-product.woocommerce div.product form.cart .variations tr {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  margin-bottom: 20px;
}
body.single-product.woocommerce div.product form.cart .variations th,
body.single-product.woocommerce div.product form.cart .variations td {
  display: block;
  padding: 0;
  text-align: left;
  line-height: 1.2;
}
body.single-product.woocommerce div.product form.cart .variations label {
  color: #2e2e2e;
  font-size: 17px;
  font-weight: 700;
  text-transform: capitalize;
}
body.single-product.woocommerce div.product form.cart .variations label::after { content: ":"; }
body.single-product.woocommerce div.product form.cart .variations select {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 44px 0 20px;
  border: 2px solid #e2e2e2;
  border-radius: 0;
  outline: none;
  background: #fff;
  color: #737373;
  font: 400 16px/1 Arial, Helvetica, sans-serif;
}
body.single-product.woocommerce div.product form.cart .variations select:focus { border-color: #9ba9b3; }
body.single-product.woocommerce div.product form.cart .reset_variations {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  color: #6c6c6c;
  font-size: 16px;
}
body.single-product.woocommerce div.product form.cart .reset_variations::before { content: "×"; font-size: 28px; line-height: .7; }
body.single-product.woocommerce div.product .single_variation_wrap { margin-top: 12px; }
body.single-product.woocommerce div.product .single_variation .woocommerce-variation-price { margin-bottom: 18px; }
body.single-product.woocommerce div.product .single_variation .price { font-size: 25px; }
body.single-product.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
body.single-product.woocommerce div.product form.cart:not(.variations_form) {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 18px;
}
body.single-product.woocommerce .quantity {
  display: inline-grid;
  grid-template-columns: 42px 56px 42px;
  height: 56px;
  margin: 0 !important;
  border: 2px solid #e2e2e2;
  background: #fff;
}
body.single-product.woocommerce .quantity .qty,
body.single-product.woocommerce .quantity .qty-btn {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #666;
  font-size: 18px;
  text-align: center;
  appearance: textfield;
}
body.single-product.woocommerce .quantity .qty { border-right: 1px solid #e2e2e2; border-left: 1px solid #e2e2e2; }
body.single-product.woocommerce .quantity .qty::-webkit-outer-spin-button,
body.single-product.woocommerce .quantity .qty::-webkit-inner-spin-button { margin: 0; appearance: none; }
body.single-product.woocommerce .quantity .qty-btn { cursor: pointer; }
body.single-product.woocommerce .quantity .qty-btn:hover { color: #173d59; background: #f7f7f7; }
body.single-product.woocommerce div.product form.cart .button {
  min-height: 56px;
  padding: 0 32px;
  border-radius: 0;
  background: #285979;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .015em;
  text-transform: uppercase;
}
body.single-product.woocommerce div.product form.cart .button:hover { background: #183d57; }
body.single-product.woocommerce div.product form.cart .button.disabled { background: #9bb1c1; color: #fff; }
.product-utilities {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 30px;
}
.product-utility-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}
.product-utility-link span { font-size: 26px; font-weight: 400; line-height: 1; }
.product-utility-link:hover,
.product-utility-link.is-active { color: #285979; }
.product-share {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  color: #666;
  font-size: 15px;
}
.product-share strong { color: #333; }
.product-share a { font-weight: 700; }
body.single-product.woocommerce div.product .product_meta {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #ececec;
  color: #555;
  font-size: 15px;
}
body.single-product.woocommerce div.product .woocommerce-tabs {
  clear: both;
  padding-top: 28px;
}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; border-bottom: 1px solid #ddd; }
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0 30px 0 0;
  padding: 0 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid #285979; }
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 0; font-size: 17px; }
body.single-product.woocommerce div.product .related { clear: both; padding-top: 50px; }

@media (max-width: 900px) {
  .header-main { grid-template-columns: 1fr auto; }
  .main-nav ul { gap: 20px; overflow-x: auto; justify-content: flex-start; }
  .hero { min-height: 480px; }
  .category-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  body.single-product.woocommerce div.product div.images,
  body.single-product.woocommerce div.product .summary { float: none; width: 100%; }
  body.single-product.woocommerce div.product .summary { padding-left: 0; }
  body.single-product.woocommerce div.product .product_title { font-size: clamp(32px, 7vw, 44px); }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .header-tools span { display: none; }
  .header-tools { gap: 12px; }
  .search-popover { position: fixed; top: 106px; right: 12px; left: 12px; width: auto; min-height: 86px; padding-inline: 20px; }
  .search-popover::before { display: none; }
  .search-popover input[type="search"] { height: 60px; font-size: 17px; }
  .hero { min-height: 430px; background-position: 62% center; }
  .hero-copy { max-width: 75%; }
  .category-grid { gap: 10px; }
  .woocommerce ul.products { gap: 22px 10px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .woocommerce-page-shell { padding-top: 20px; }
  .woocommerce .woocommerce-breadcrumb { margin-bottom: 26px; font-size: 14px; }
  body.single-product.woocommerce div.product form.cart .variations tr { grid-template-columns: 1fr; gap: 9px; }
  body.single-product.woocommerce div.product form.cart .variations select { height: 52px; }
  body.single-product.woocommerce .quantity { grid-template-columns: 38px 50px 38px; height: 52px; }
  body.single-product.woocommerce .quantity .qty,
  body.single-product.woocommerce .quantity .qty-btn { height: 48px; }
  body.single-product.woocommerce div.product form.cart .button { min-height: 52px; padding-inline: 22px; }
  .product-utilities { gap: 20px; }
  .contact-field-grid { grid-template-columns: 1fr; gap: 0; }
}
