/*
Theme Name: MĒYIA Base
Description: Full-width WooCommerce and Elementor base for MĒYIA.
Version: 0.1.1
Text Domain: meyia-base
*/

:root {
  --meyia-ink: #111;
  --meyia-paper: #fff;
  --meyia-muted: #777;
  --meyia-line: #d8d8d8;
  --meyia-gutter: clamp(12px, 1.4vw, 28px);
  --meyia-header-height: 76px;
  --meyia-font: "Acumin Pro", acumin-pro, "Untitled Sans", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--meyia-ink); background: var(--meyia-paper); font-family: var(--meyia-font); font-weight: 300; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
img, video { max-width: 100%; height: auto; }
.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; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 8px; padding: 8px; background: #fff; z-index: 10000; }

/* The header overlays a full-bleed home hero; other pages begin beneath it. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--meyia-header-height); color: var(--meyia-ink); background: transparent; transition: background-color .25s ease, box-shadow .25s ease; }
.site-header.is-sticky { background: var(--meyia-paper); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.site-header__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100%; padding-inline: var(--meyia-gutter); gap: 24px; }
.site-header__nav { position: relative; z-index: 1000; }
.site-header__nav--right { justify-self: end; }
.site-header .menu { display: flex; align-items: center; gap: clamp(12px, 1.1vw, 24px); list-style: none; margin: 0; padding: 0; }
.site-header .menu a { text-decoration: none; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.site-header .menu a:hover, .site-header .current-menu-item > a { text-decoration: underline; text-underline-offset: 3px; }
.site-header__brand { position: relative; z-index: 1000; display: block; min-width: 120px; text-align: center; text-decoration: none; }
.site-header__brand img { display: block; width: auto; max-width: 180px; max-height: 42px; margin: auto; }
.site-header__brand-text { display: block; font-family: Arial, Helvetica, sans-serif; font-size: 24px; font-weight: 400; letter-spacing: .18em; line-height: 1; }
.site-header__brand--sticky { display: none; }
.site-header.is-sticky .site-header__brand--default.has-sticky-logo { display: none; }
.site-header.is-sticky .site-header__brand--sticky { display: block; }
.site-header__toggle { position: relative; z-index: 1000; display: none; border: 0; background: transparent; color: inherit; padding: 8px; cursor: pointer; }
.site-header__toggle span { display: block; width: 23px; height: 1px; margin: 5px 0; background: currentColor; }
.site-header__mobile { display: none; }
.site-header.has-mega { background: #fff; }
.site-header::before { content: ''; position: fixed; z-index: 0; top: var(--meyia-header-height); right: 0; bottom: 0; left: 0; background: #fff; transform: translateY(calc(-100% - var(--meyia-header-height))); transition: transform .46s cubic-bezier(.45,0,.55,1); pointer-events: none; }
.site-header.has-mega::before { transform: translateY(0); transition-timing-function: cubic-bezier(.18,.7,.25,1); transition-duration: .43s; }
.meyia-mega { position: fixed; z-index: 999; top: var(--meyia-header-height); right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 50% 50%; background: #fff; opacity: 0; visibility: hidden; transform: translateY(calc(-100% - var(--meyia-header-height))); transition: transform .46s cubic-bezier(.45,0,.55,1), opacity .23s ease, visibility 0s linear .23s; pointer-events: none; }
.site-header.has-mega .meyia-mega { transform: translateY(0); }
.meyia-mega.is-open { opacity: 1; visibility: visible; transition: transform .43s cubic-bezier(.18,.7,.25,1), opacity .23s ease, visibility 0s; pointer-events: auto; }
.site-header:not(.has-mega) .meyia-mega { pointer-events: none; }
.site-header:not(.has-mega) .meyia-mega.is-open { transition: transform .46s cubic-bezier(.45,0,.55,1), opacity .23s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .site-header::before, .meyia-mega { transition-duration: .01ms; } }
.meyia-mega__links { padding: clamp(38px,5vw,90px) var(--meyia-gutter); overflow-y: auto; }
.meyia-mega__all { display: inline-block; margin-bottom: 34px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.meyia-mega__links ul { list-style: none; padding: 0; margin: 0; }
.meyia-mega__links li { margin-bottom: 19px; }
.meyia-mega__links li a { font-size: clamp(18px,2.1vw,34px); font-weight: 300; text-decoration: none; }
.meyia-mega__links li a:hover { text-decoration: underline; text-underline-offset: 5px; }
.meyia-mega__feature { position: relative; min-width: 0; overflow: hidden; background: #eee; }
.meyia-mega__feature img { display: block; width: 100%; height: 100%; object-fit: cover; }
.meyia-mega__feature span { position: absolute; left: 28px; bottom: 28px; color: #fff; font-size: 16px; text-shadow: 0 1px 5px rgba(0,0,0,.55); }
.site-content { width: 100%; min-height: 50vh; padding-top: var(--meyia-header-height); }
.home .site-content, .page-template-template-full-bleed .site-content { padding-top: 0; }
.site-footer { padding: 64px var(--meyia-gutter) 32px; font-size: 12px; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--meyia-line); padding-top: 24px; }
.meyia-footer-grid { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(18px,3vw,52px); width: 100%; border-top: 1px solid #eee; padding-top: 25px; }
.meyia-footer-col { min-width: 0; }
.meyia-footer-col h3 { margin: 0 0 15px; color: #111 !important; font-size: 12px; font-weight: 300; }
.meyia-footer-col p, .meyia-footer-col a { margin: 0 0 7px; color: #111 !important; font-size: 12px; font-weight: 300; line-height: 1.55; text-decoration: none; }
.meyia-footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.meyia-socials { display: flex; align-items: center; gap: 15px; }
.meyia-socials a { display: inline-flex; width: 18px; height: 18px; background-position: center; background-repeat: no-repeat; background-size: contain; }
.meyia-socials a[aria-label="Instagram"] { background-image: url('assets/instagram.svg'); }
.meyia-socials a[aria-label="TikTok"] { background-image: url('assets/tiktok.svg'); }
.meyia-socials a[aria-label="Facebook"] { background-image: url('assets/facebook.svg'); }
.meyia-footer-bottom { display: flex; justify-content: space-between; gap: 20px; width: 100%; margin-top: 60px; font-size: 11px; }
.meyia-footer-bottom a { color: #111; text-decoration: none; }
.meyia-home-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: end; min-height: 600px; gap: 5vw; padding: calc(var(--meyia-header-height) + 30px) var(--meyia-gutter) 55px; }
.meyia-home-hero__copy { align-self: center; max-width: 480px; margin: auto; text-align: center; font-size: 16px; line-height: 1.5; }
.meyia-home-hero__copy h1 { font-size: 18px; font-weight: 300; }
.meyia-home-hero__copy a { display: inline-block; margin-top: 22px; text-underline-offset: 4px; }
.meyia-home-hero img { display: block; width: 100%; height: 500px; object-fit: cover; }
.meyia-home-products { padding-bottom: 70px; }
.meyia-home-products h2 { margin: 30px var(--meyia-gutter); text-align: center; font-size: 17px; font-weight: 300; }
.home .meyia-home-products .elementor-heading-title { color: #111 !important; font-size: 17px; font-weight: 300; text-align: center; }

/* Standard WooCommerce archives. Handcrafted pages are rendered by the planned plugin. */
.woocommerce .woocommerce-products-header, .woocommerce .woocommerce-notices-wrapper, .woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering, .woocommerce .meyia-subcategories, .woocommerce ul.products, .woocommerce nav.woocommerce-pagination { margin-inline: var(--meyia-gutter); }
.woocommerce .woocommerce-products-header { margin-block: 28px 36px; }
.woocommerce .woocommerce-products-header__title { font-size: 17px; font-weight: 300; margin: 0 0 20px; }
.woocommerce .term-description { max-width: 760px; line-height: 1.5; }
.woocommerce .meyia-subcategories { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; list-style: none; padding: 0; margin-block: 24px 32px; font-size: 13px; }
.woocommerce .meyia-subcategories a { text-decoration: none; }
.woocommerce .meyia-subcategories a:hover, .woocommerce .meyia-subcategories .is-current a { text-decoration: underline; text-underline-offset: 3px; }
.woocommerce .woocommerce-result-count { float: left; font-size: 12px; }
.woocommerce .woocommerce-ordering { float: right; }
.woocommerce ul.products { clear: both; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 8px; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; min-width: 0; text-align: center; }
.woocommerce ul.products li.product a { text-decoration: none; }
.woocommerce ul.products li.product img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin: 0 0 10px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price { color: var(--meyia-ink); font-size: 13px; font-weight: 300; line-height: 1.35; padding: 0; margin: 0; }
.woocommerce ul.products li.product .price { margin-top: 2px; }
.woocommerce ul.products li.product .button { display: none; }
.woocommerce ul.products li.product .onsale { top: 8px; right: 8px; left: auto; min-height: 0; min-width: 0; padding: 0; margin: 0; border-radius: 0; background: transparent; color: var(--meyia-ink); font-size: 12px; font-weight: 300; line-height: 1.2; }
.woocommerce nav.woocommerce-pagination { padding-block: 48px 70px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li span, .woocommerce nav.woocommerce-pagination ul li a { background: transparent; color: var(--meyia-ink); font-size: 13px; }

@media (max-width: 800px) {
  :root { --meyia-header-height: 64px; --meyia-gutter: 12px; }
  .site-header__inner { grid-template-columns: 1fr auto 1fr; }
  .site-header__nav { display: none; }
  .site-header__toggle { display: block; grid-column: 1; grid-row: 1; justify-self: start; }
  .site-header__brand { grid-column: 2; grid-row: 1; }
  .site-header__brand-text { font-size: 20px; }
  .site-header__mobile { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--meyia-header-height)); overflow: auto; padding: 20px var(--meyia-gutter) 30px; background: var(--meyia-paper); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
  .site-header__mobile.is-open { display: block; }
  .site-header__mobile .menu { display: block; }
  .site-header__mobile .menu li { margin-bottom: 16px; }
  .site-header__mobile .menu a { font-size: 17px; }
  .site-header__mobile .sub-menu { display: block; list-style: none; padding: 10px 0 0 18px; }
  .site-header__mobile .sub-menu a { font-size: 14px; }
  .meyia-mega { display: none; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 45vw); justify-content: space-evenly; column-gap: 0; row-gap: 24px; margin-inline: 0; }
  .woocommerce ul.products li.product { width: 100% !important; margin: 0 !important; }
  .woocommerce .meyia-subcategories { justify-content: flex-start; gap: 18px; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
  .site-footer__inner { display: block; }
  .meyia-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 30px; }
  .meyia-footer-bottom { margin-top: 45px; }
  .meyia-home-hero { grid-template-columns: 1fr; min-height: 0; padding-top: calc(var(--meyia-header-height) + 24px); gap: 24px; }
  .meyia-home-hero img { height: 360px; }
}
