/*
Theme Name: MAUH Atelier
Theme URI: https://hat.l-langji.com/
Author: MAUH
Description: Editorial WooCommerce theme for a modern hat atelier.
Version: 1.0.0
Text Domain: mauh
*/

:root {
  --ink: #171713;
  --paper: #f8f6ef;
  --white: #fff;
  --olive: #7f7632;
  --olive-dark: #5f5825;
  --rust: #963c2e;
  --sand: #d8c19c;
  --line: rgba(23, 23, 19, .14);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.site-shell { width: min(1440px, calc(100% - 64px)); margin-inline: auto; }

.announcement { background: var(--olive); color: #fff; text-align: center; padding: 7px 16px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(248,246,239,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { font-family: var(--serif); font-size: 28px; font-style: italic; font-weight: 700; letter-spacing: -.04em; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 32px; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.main-nav .menu { display: flex; align-items: center; justify-content: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.main-nav a { position: relative; padding-block: 28px; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 20px; height: 1px; background: currentColor; transition: right .25s ease; }
.main-nav a:hover::after, .main-nav .current-menu-item a::after { right: 0; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.icon-link, .menu-toggle { width: 22px; height: 22px; display: grid; place-items: center; border: 0; padding: 0; background: transparent; cursor: pointer; position: relative; }
.icon-link svg, .menu-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cart-count { position: absolute; right: -8px; top: -8px; min-width: 16px; height: 16px; border-radius: 99px; display: grid; place-items: center; background: var(--rust); color: #fff; font-size: 9px; }
.menu-toggle { display: none; }

.search-drawer { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(23,23,19,.52); }
.search-drawer.is-open { display: block; }
.search-panel { background: var(--paper); padding: 52px max(32px, calc((100vw - 1040px)/2)); }
.search-form { display: flex; gap: 12px; align-items: end; }
.search-form label { flex: 1; }
.search-form span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.search-field { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 0; font-family: var(--serif); font-size: clamp(26px, 4vw, 50px); }
.search-close { border: 0; background: transparent; font-size: 30px; cursor: pointer; }

.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: min(720px, calc(100vh - 108px)); }
.hero-card { position: relative; overflow: hidden; min-height: 620px; background: #b79974; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.hero-card:hover img { transform: scale(1.025); }
.hero-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.3)); padding-top: 34%; }
.hero-overlay h1 { font-family: var(--serif); font-size: clamp(40px, 5vw, 74px); line-height: 1; margin: 0 0 24px; font-weight: 400; letter-spacing: -.035em; }
.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border: 1px solid var(--ink); border-radius: 0; padding: 11px 24px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: .25s ease; }
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: transparent; color: var(--ink); }
.hero-overlay .button { background: #fff; color: var(--ink); border-color: #fff; }
.hero-overlay .button:hover { background: transparent; color: #fff; }

.marquee { overflow: hidden; background: var(--olive); color: #fff; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 56px; padding: 11px 0; min-width: 200%; animation: ticker 26s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 14px; font-style: italic; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: clamp(72px, 10vw, 144px) 0; }
.eyebrow { display: block; margin-bottom: 14px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.display-title { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 88px); line-height: .98; letter-spacing: -.05em; margin: 0; }
.editorial { display: grid; grid-template-columns: .8fr 1.5fr; gap: clamp(48px, 9vw, 140px); align-items: center; }
.editorial-copy p { max-width: 390px; color: #5f5d54; margin: 28px 0; }
.editorial-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.editorial-grid img { width: 100%; height: 100%; object-fit: cover; background: #eeeae0; }
.editorial-grid img:first-child { grid-row: 1 / 3; min-height: 600px; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 42px; }
.section-heading h2 { font-family: var(--serif); font-size: clamp(38px, 4.5vw, 64px); line-height: 1; font-weight: 400; letter-spacing: -.04em; margin: 0; }
.text-link { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; border-bottom: 1px solid; padding-bottom: 4px; }
.product-grid, .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 18px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; content: none !important; }
.product-card, .woocommerce ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; position: relative; }
.product-media, .woocommerce ul.products li.product a img { aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: cover; background: #f1eee5; margin: 0 0 18px !important; transition: transform .35s ease; }
.product-card:hover .product-media, .woocommerce ul.products li.product:hover a img { transform: translateY(-5px); }
.product-card h3, .woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--serif); font-size: 17px !important; font-weight: 400; margin: 0 0 4px; padding: 0 !important; }
.price, .woocommerce ul.products li.product .price { color: #6f6b61 !important; font-size: 12px !important; }
.product-badge, .woocommerce span.onsale { position: absolute; z-index: 2; top: 12px; left: 12px; min-height: auto; min-width: auto; line-height: 1; border-radius: 0; margin: 0; padding: 7px 9px; background: var(--rust); color: #fff; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.woocommerce ul.products li.product .button { display: none !important; }

.feature-panel { display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; background: #1e1e19; color: #fff; }
.feature-panel-media { overflow: hidden; }
.feature-panel-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-panel-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(54px, 8vw, 120px); }
.feature-panel-copy h2 { font-family: var(--serif); font-size: clamp(44px, 6vw, 84px); line-height: .98; font-weight: 400; margin: 0 0 26px; letter-spacing: -.05em; }
.feature-panel-copy p { max-width: 480px; color: rgba(255,255,255,.68); }
.feature-panel-copy .button { align-self: flex-start; margin-top: 22px; background: #fff; color: #171713; border-color: #fff; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service { padding: 42px 28px; text-align: center; border-right: 1px solid var(--line); }
.service:last-child { border-right: 0; }
.service svg { width: 28px; height: 28px; margin: 0 auto 16px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.service h3 { font-family: var(--serif); font-size: 17px; font-weight: 400; margin: 0 0 5px; }
.service p { margin: 0; color: #757267; font-size: 11px; }

.site-footer { background: #e9e6dc; padding: 72px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 64px; }
.footer-brand p { max-width: 310px; color: #66645c; }
.footer-title { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; margin: 8px 0 20px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 8px 0; color: #5e5b52; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 54px; padding-top: 22px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #747168; }

.content-area { padding: 80px 0 120px; min-height: 55vh; }
.page-header { padding: 76px 0 52px; text-align: center; }
.page-header h1, .entry-title, .woocommerce-products-header__title { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 76px); letter-spacing: -.045em; }
.woocommerce .woocommerce-breadcrumb { color: #77736a; font-size: 11px; }
.woocommerce .woocommerce-ordering select { background: transparent; border: 1px solid var(--line); padding: 10px 36px 10px 12px; }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto; float: none; }
.woocommerce div.product .product_title { font-family: var(--serif); font-size: clamp(38px, 5vw, 64px); font-weight: 400; letter-spacing: -.04em; }
.woocommerce div.product p.price { font-size: 19px !important; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; width: 100%; }
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 50px); font-weight: 400; }
.woocommerce .quantity .qty { min-height: 44px; border: 1px solid var(--line); }
.woocommerce button.button.alt, .woocommerce button.single_add_to_cart_button, .woocommerce a.button.alt, .woocommerce input.button.alt { background: var(--ink) !important; color: #fff !important; border: 1px solid var(--ink) !important; }
.woocommerce button.button.alt:hover, .woocommerce button.single_add_to_cart_button:hover, .woocommerce a.button.alt:hover, .woocommerce input.button.alt:hover { background: transparent !important; color: var(--ink) !important; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--olive); background: #eeece4; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--olive); }
.woocommerce table.shop_table { border-radius: 0; border-color: var(--line); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { padding: 12px; border: 1px solid var(--line); background: #fff; }

@media (max-width: 960px) {
  .site-shell { width: min(100% - 36px, 760px); }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: grid; order: -1; }
  .main-nav { position: fixed; inset: 108px 0 0; z-index: 45; display: none; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; background: var(--paper); padding: 34px; }
  .main-nav .menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.is-open { display: flex; }
  .main-nav a { font-family: var(--serif); font-size: 34px; letter-spacing: -.03em; text-transform: none; padding: 12px 0; }
  .main-nav a::after { display: none; }
  .hero-split { min-height: auto; }
  .hero-card { min-height: 520px; }
  .editorial { grid-template-columns: 1fr; }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-panel { grid-template-columns: 1fr; }
  .feature-panel-media { min-height: 520px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .woocommerce div.product { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-shell { width: calc(100% - 28px); }
  .announcement { font-size: 9px; }
  .header-inner { min-height: 66px; }
  .brand { font-size: 24px; }
  .header-actions .account-link { display: none; }
  .main-nav { inset: 98px 0 0; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-card { min-height: 72vh; }
  .hero-overlay { padding-top: 45%; }
  .section { padding: 72px 0; }
  .editorial-grid { grid-template-columns: 1fr 1fr; }
  .editorial-grid img:first-child { min-height: 420px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .product-grid, .woocommerce ul.products { gap: 26px 10px; }
  .product-card h3, .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; }
  .feature-panel-media { min-height: 410px; }
  .feature-panel-copy { padding: 52px 28px; }
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--line); }
  .service:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
