/*
Theme Name: Penelopa
Theme URI: https://penelopacorsets.com
Author: Penelopa
Description: Handcrafted corsets from Paphos, Cyprus. Black and ivory, arch frames, orders and payment on WhatsApp. Works with WooCommerce.
Version: 1.0.5
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: penelopa
*/

:root {
  --ink: #0A0A0A;
  --paper: #F8F6F1;
  --sand: #F1EDE5;
  --stone: #EEE9E0;
  --line: #D9D3C8;
  --line-soft: #E6E1D8;
  --muted: #55514B;
  --muted-2: #66625B;
  --ivory-text: #E6E1D8;
  --field: #FFFDF8;
  --danger: #8A2B2B;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Pinyon Script', cursive;
  --sans: 'Jost', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
button { font: inherit; }
.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- shared pieces ---------- */
.container { max-width: 1440px; margin: 0 auto; padding: 0 88px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  margin: 0; font-family: var(--sans); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted-2);
}
.script-title {
  margin: 0; font-family: var(--script); font-weight: 400;
  font-size: clamp(52px, 6vw, 84px); line-height: 1.1;
}
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; }
.divider span { width: 96px; height: 1px; background: currentColor; }
.divider i { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.lead { margin: 0; font-size: 20px; font-weight: 300; color: var(--muted); max-width: 580px; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }

.btn, .btn-outline, .btn-light, .btn-ghost-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 40px; border: 1px solid var(--ink);
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: opacity .2s;
}
.btn { background: var(--ink); color: var(--paper); }
.btn:hover { color: var(--paper); opacity: .85; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost-light:hover { color: var(--paper); opacity: .8; }
.btn-block { width: 100%; }
.link-caps {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  text-underline-offset: 6px; padding: 10px 0; display: inline-block;
}

/* ---------- top bar + header ---------- */
.topbar {
  background: var(--ink); color: var(--paper); text-align: center;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 10px 16px;
}
.site-header { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
  padding: 22px 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.site-logo { line-height: 0; }
.site-logo img { width: 170px; height: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 32px; }
.main-nav a, .bag-link { text-decoration: none; padding: 12px 0; display: inline-block; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .is-current > a {
  text-decoration: underline; text-underline-offset: 6px;
}

/* ---------- homepage ---------- */
.hero { max-width: 1440px; margin: 0 auto; padding: 0 88px; }
.hero-inner {
  background: var(--sand); padding: 72px 6%;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; padding-left: 4%; }
.hero-title { margin: 0; font-weight: 400; font-size: clamp(56px, 6vw, 96px); line-height: 0.98; }
.hero-title em { font-family: var(--script); font-style: normal; font-size: 1.05em; line-height: 1.1; display: block; }
.hero-text { margin: 0; font-size: 20px; color: #4A4640; max-width: 400px; }
.hero-copy .btn { align-self: flex-start; }
.arch-frame { width: 100%; max-width: 520px; margin: 0 auto; border: 1px solid var(--ink); border-radius: 300px 300px 0 0; padding: 10px; }
.arch-inner {
  height: 640px; border: 1px solid var(--ink); border-radius: 290px 290px 0 0; background: #E9E4DA;
  overflow: hidden; position: relative; display: flex; align-items: flex-end; justify-content: center;
}
.arch-inner img, .arch-inner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch-placeholder { margin: 0 0 28px; font-family: var(--sans); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted-2); }

.home-collection { padding: 120px 0 100px; }
.home-collection .find { margin: 0; padding-top: 28px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; }
.home-collection .more { text-align: center; padding-top: 48px; }

.master { max-width: 1440px; margin: 0 auto; padding: 0 88px; }
.master-inner {
  background: var(--ink); color: var(--paper); padding: 100px 8%;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 64px; align-items: center;
}
.master .arch-frame { max-width: 440px; border-color: var(--paper); border-radius: 240px 240px 0 0; }
.master .arch-inner { height: 560px; border-color: var(--paper); border-radius: 230px 230px 0 0; background: #141414; }
.master .arch-inner img { object-position: 50% 30%; }
.master-copy { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.master-copy .eyebrow { color: #A8A39A; }
.master-copy h2 { margin: 0; font-weight: 400; font-style: italic; font-size: clamp(44px, 4.5vw, 64px); line-height: 1.05; }
.master-copy .divider { justify-content: flex-start; color: var(--paper); }
.master-copy .divider span { width: 72px; }
.master-copy p { margin: 0; font-size: 21px; color: var(--ivory-text); }
.master-copy .btn-ghost-light { align-self: flex-start; }

.three-cols { padding: 100px 0 72px; }
.three-cols .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px; text-align: center; }
.three-cols h3 { margin: 0; font-family: var(--script); font-weight: 400; font-size: 44px; line-height: 1.2; }
.three-cols p { margin: 0 0 8px; font-family: var(--sans); font-weight: 300; font-size: 14px; color: var(--muted); }

.before-order { padding: 0 0 120px; text-align: center; }
.before-order a { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; padding: 8px 16px; }
.before-order h2 { margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(48px, 5vw, 68px); line-height: 1.1; }
.before-order span { font-family: var(--sans); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- envelope (Member Club) ---------- */
.club-section { padding: 0 24px 120px; }
.envelope { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; container-type: inline-size; line-height: 0; }
.envelope > img { width: 100%; }
.envelope-letter {
  position: absolute; left: 28.9%; top: 18.5%; width: 41.2%; height: 27%; background: #EEEAE3;
  padding: 2.4cqw 4.5cqw 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.8cqw; line-height: 1.2;
}
.envelope-letter h2 { margin: 0; font-family: var(--script); font-weight: 400; font-size: 5.6cqw; line-height: 1.1; }
.envelope-letter p { margin: 0; font-size: 1.6cqw; color: #4A4640; }
.envelope-letter form { display: flex; gap: 1.6cqw; width: 100%; padding-top: 1.4cqw; align-items: flex-end; }
.envelope-letter input {
  flex: 1 1 auto; min-width: 0; height: 3.8cqw; min-height: 28px; border: 0; border-bottom: 1px solid var(--ink);
  background: transparent; font-family: var(--sans); font-size: max(11px, 1.3cqw); color: var(--ink); padding: 0 2px;
}
.envelope-letter button {
  flex: none; height: 3.8cqw; min-height: 28px; padding: 0 2.6cqw; border: 0; background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: max(9px, 1cqw); letter-spacing: 0.26em; text-transform: uppercase; cursor: pointer;
}
.club-mobile { display: none; flex-direction: column; align-items: center; gap: 12px; padding-top: 20px; text-align: center; }
.club-mobile p { margin: 0; font-size: 17px; color: #4A4640; }
.club-form-row { display: flex; gap: 10px; width: 100%; max-width: 420px; align-items: flex-end; }
.club-form-row input {
  flex: 1 1 auto; min-width: 0; height: 46px; border: 0; border-bottom: 1px solid var(--ink); background: transparent;
  font-family: var(--sans); font-size: 16px; color: var(--ink); padding: 0 2px;
}
.club-form-row button {
  flex: none; height: 46px; padding: 0 18px; border: 0; background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer;
}
.club-msg { margin: 0; font-size: 15px; line-height: 1.4; }
.club-msg.is-error { color: var(--danger); }

/* ---------- product cards (shop, home, limited) ---------- */
ul.products, .cards {
  list-style: none; margin: 0; padding: 64px 0 0;
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 72px 32px;
}
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product, .card {
  width: auto !important; float: none !important; margin: 0 !important;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.card-arch {
  position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%;
  height: 420px; border-radius: 210px 210px 0 0; background: var(--stone); overflow: hidden; text-decoration: none;
}
.card-arch img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; margin: 0 !important; }
.card-arch .no-photo { margin: 0 0 34px; font-family: var(--sans); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted-2); }
.card-badge {
  position: absolute; top: 22%; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 2;
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink); background: var(--paper); padding: 6px 12px;
}
.is-limited .card-arch { background: var(--ink); outline: 1px solid var(--ink); outline-offset: 6px; }
.is-soldout { opacity: .55; }
.card-title { margin: 18px 0 0; font-weight: 400; font-size: 26px; line-height: 1.25; }
.card-title a { text-decoration: none; }
.card-kind { margin: 0; font-size: 16px; color: var(--muted); }
.card-price { margin: 0; font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; color: var(--muted-2); }
.card-price del { opacity: .6; margin-right: 6px; }
.card-price ins { text-decoration: none; }

/* ---------- shop page ---------- */
.shop-page { padding: 80px 0 120px; }
.shop-tabs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 460px; margin-top: 22px;
  border: 1px solid var(--ink); font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
}
.shop-tabs a { display: flex; align-items: center; justify-content: center; min-height: 50px; text-decoration: none; }
.shop-tabs a.is-active { background: var(--ink); color: var(--paper); }
.shop-note { margin: 40px auto 0; max-width: 560px; text-align: center; font-size: 16px; color: var(--muted); }
.mtm-band {
  margin-top: 96px; background: var(--ink); color: var(--paper); padding: 56px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.mtm-band h2 { margin: 0; font-family: var(--script); font-weight: 400; font-size: 52px; line-height: 1.1; }
.mtm-band p { margin: 0; max-width: 520px; font-weight: 300; color: var(--ivory-text); }
.woocommerce-pagination { text-align: center; padding-top: 48px; font-family: var(--sans); }
.woocommerce-result-count, .woocommerce-ordering { display: none; }

/* ---------- single product ---------- */
.product-page { max-width: 1240px; margin: 0 auto; padding: 20px 24px 72px; }
.woocommerce-breadcrumb { font-size: 13px; color: var(--muted); padding: 0 0 24px; }
.product-page div.product { display: flex; flex-wrap: wrap; gap: 56px; position: relative; }
.product-page div.product .woocommerce-product-gallery { flex: 999 1 520px; min-width: 0; float: none !important; width: auto !important; margin: 0 !important; }
.product-page div.product .summary { flex: 1 1 380px; min-width: 0; float: none !important; width: auto !important; display: flex; flex-direction: column; gap: 18px; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image:first-child img,
.woocommerce-product-gallery__image--placeholder img { border-radius: 340px 340px 0 0; width: 100%; max-height: 720px; object-fit: cover; background: var(--stone); }
.flex-control-thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flex-control-thumbs img { cursor: pointer; opacity: .7; }
.flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--ink); outline-offset: -2px; }
.woocommerce-product-gallery__trigger { display: none; }
.product_title { margin: 0; font-family: var(--script); font-weight: 400; font-size: 64px; line-height: 1.15; }
.summary .price { margin: 0; font-size: 22px; }
.summary .woocommerce-product-details__short-description { font-weight: 300; color: var(--muted); }
.summary .woocommerce-product-details__short-description p { margin: 0; }
table.variations { border: 0; border-collapse: collapse; width: 100%; margin: 0 0 12px; }
table.variations th, table.variations td { display: block; padding: 0; text-align: left; border: 0; }
table.variations th.label { font-size: 14px; font-weight: 400; padding-bottom: 6px; }
table.variations select {
  width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); background: var(--field);
  font: inherit; color: var(--ink);
}
.reset_variations { font-size: 13px; }
.single_variation_wrap .woocommerce-variation-price { margin: 8px 0; }
form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 0; }
form.cart.variations_form { display: block; }
.woocommerce-variation-add-to-cart { display: flex; gap: 10px; flex-wrap: wrap; }
.quantity input.qty { width: 72px; min-height: 56px; border: 1px solid var(--line); background: var(--field); text-align: center; font: inherit; }
.single_add_to_cart_button, .woocommerce button.button.alt, .woocommerce a.button.alt {
  flex: 1 1 200px; min-height: 56px; border: 0 !important; background: var(--ink) !important; color: var(--paper) !important;
  font-family: var(--sans) !important; font-size: 12px !important; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; border-radius: 0 !important; padding: 0 24px !important;
}
.single_add_to_cart_button.disabled { opacity: .5; }
.product-extras { display: flex; flex-direction: column; gap: 10px; }
.product-extras .note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.product-extras .mtm-box { background: var(--sand); padding: 18px 20px; font-size: 15px; }
.product-extras .mtm-box p { margin: 0 0 6px; }
.stock { font-size: 14px; color: var(--muted); margin: 0; }
.stock.out-of-stock { color: var(--danger); }
.product_meta { display: none; }
.woocommerce-tabs { flex: 1 1 100%; border-top: 1px solid var(--line); }
.woocommerce-tabs ul.tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs li a { display: inline-block; padding: 16px 0; text-decoration: none; font-size: 18px; }
.woocommerce-tabs ul.tabs li.active a { text-decoration: underline; text-underline-offset: 6px; }
.woocommerce-tabs .panel { padding: 20px 0; font-weight: 300; color: var(--muted); }
.woocommerce-tabs .panel h2 { display: none; }
.related.products, .upsells.products { flex: 1 1 100%; padding-top: 40px; }
.related.products > h2, .upsells.products > h2 { font-family: var(--script); font-weight: 400; font-size: 48px; text-align: center; margin: 0; }
.onsale { display: none; }

/* notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none; background: var(--sand); padding: 14px 18px; margin: 0 0 24px; font-size: 15px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px;
}
.woocommerce-error { color: var(--danger); }
.woocommerce-message .button { font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; order: 2; }

/* ---------- generic pages ---------- */
.page-wrap { padding: 80px 0 120px; }
.page-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-bottom: 32px; }
.prose { font-size: 19px; }
.prose h2 { font-weight: 400; font-size: 28px; margin: 40px 0 10px; }
.prose h3 { font-weight: 400; font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { font-weight: 300; color: #4A4640; }
.prose details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.prose details:first-of-type { border-top: 1px solid var(--line); }
.prose summary { cursor: pointer; font-size: 22px; color: var(--ink); }
.prose details p { margin: 12px 0 0; }
.prose .group-title { margin: 48px 0 8px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-2); font-weight: 400; }
.prose .cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0; }
.prose .card-dark { background: var(--ink); color: var(--paper); padding: 36px; }
.prose .card-dark p { color: var(--ivory-text); }
.prose .card-sand { background: var(--sand); padding: 36px; }
.prose .closing { background: var(--sand); padding: 40px 32px; text-align: center; margin-top: 40px; }
.prose .closing.dark { background: var(--ink); color: var(--paper); }
.prose .closing.dark p { color: var(--ivory-text); }
.prose .signature { font-family: var(--script); font-size: 40px; line-height: 1.2; color: inherit; }
.prose .care-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.prose .care-grid li { background: var(--field); border: 1px solid var(--line-soft); padding: 28px; }
.prose .care-grid b { display: block; font-family: var(--script); font-weight: 400; font-size: 40px; line-height: 1; color: var(--ink); }
.prose .care-grid strong { display: block; font-weight: 400; font-size: 24px; color: var(--ink); margin: 6px 0; }

/* ---------- forms (bag, made to measure, contact) ---------- */
.form-layout { display: flex; flex-wrap: wrap; gap: 48px; }
.form-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.form-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend, .form-h { font-size: 26px; padding: 0 0 14px; font-weight: 400; margin: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 0 12px; border: 1px solid var(--line); background: var(--field);
  font: inherit; font-size: 17px; color: var(--ink); width: 100%;
}
.field textarea { padding: 12px; resize: vertical; }
.unit-wrap { display: flex; align-items: center; border: 1px solid var(--line); background: var(--field); }
.unit-wrap input { border: 0 !important; }
.unit-wrap span { padding: 0 12px; font-size: 13px; color: var(--muted); }
.toggle { display: inline-flex; border: 1px solid var(--ink); }
.toggle button { min-width: 64px; min-height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 14px; }
.toggle button.is-on { background: var(--ink); color: var(--paper); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.choice-grid button { min-height: 64px; padding: 12px; text-align: left; border: 1px solid var(--line); background: var(--field); cursor: pointer; }
.choice-grid button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.side-box { background: var(--sand); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.side-box h2 { margin: 0; font-weight: 400; font-size: 24px; }
.bag-item { display: flex; gap: 16px; }
.bag-item .thumb { width: 88px; height: 110px; flex: none; background: var(--stone); overflow: hidden; }
.bag-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.bag-item .info { display: flex; flex-direction: column; gap: 2px; font-size: 15px; min-width: 0; }
.bag-item .info strong { font-weight: 400; font-size: 18px; }
.bag-item .info .meta { color: var(--muted); }
.bag-item .remove-link { font-size: 13px; color: var(--muted); }
.bag-totals { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.bag-totals div { display: flex; justify-content: space-between; gap: 12px; }
.bag-totals .total { font-size: 18px; font-weight: 500; border-top: 1px solid var(--line); padding-top: 12px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.how-steps li { background: var(--sand); padding: 16px 18px; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.how-steps b { font-family: var(--script); font-weight: 400; font-size: 30px; line-height: 1; }
.form-error { margin: 0; color: var(--danger); font-size: 15px; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.form-done { display: none; text-align: center; font-size: 15px; }
.form-done.is-visible { display: block; }
.measure-figure { margin: 0; background: #fff; border: 1px solid #E4DED3; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.measure-figure img { max-width: 300px; width: 100%; }
.measure-figure figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.contact-dark { background: var(--ink); color: var(--paper); padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 18px; text-align: center; }
.contact-dark h2 { margin: 0; font-weight: 400; font-style: italic; font-size: 30px; }
.contact-dark p { margin: 0; font-weight: 300; color: var(--ivory-text); }

/* ---------- footer ---------- */
.site-footer { max-width: 1440px; margin: 0 auto; padding: 0 88px 40px; }
.footer-inner {
  background: var(--ink); color: var(--paper); padding: 80px 6% 40px;
  display: flex; flex-direction: column; align-items: center; gap: 48px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.footer-inner > img { width: 240px; }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 88px; text-align: center; }
.footer-cols div { display: flex; flex-direction: column; gap: 4px; }
.footer-cols h3 { margin: 0 0 6px; font-weight: 400; font-size: 10px; color: #A8A39A; }
.footer-cols a { color: var(--paper); text-decoration: none; padding: 6px 0; }
.footer-rule { width: 100%; height: 1px; background: #3A3733; }
.footer-mono { width: 64px; height: 64px; border: 1px solid var(--paper); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-mono img { width: 52px; height: 52px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; color: #A8A39A; font-size: 10px; }
.footer-legal a { color: #A8A39A; text-decoration: none; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px 0 16px; border-radius: 26px; background: var(--ink); color: var(--paper);
  text-decoration: none; font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.wa-float:hover { color: var(--paper); }

/* ---------- Member Club pop-up ---------- */
.pop { position: fixed; inset: 0; z-index: 80; background: rgba(10,10,10,.55); display: none; align-items: center; justify-content: center; padding: 16px; }
.pop.is-open { display: flex; }
.pop-box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--paper); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.pop-close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); font-size: 26px; line-height: 1; cursor: pointer; }
.pop .envelope-letter { top: 17.5%; height: 28%; padding: 8cqw 0 0; justify-content: center; gap: 1.2cqw; }
.pop .envelope-letter p { font-family: var(--script); font-size: 7.4cqw; color: var(--ink); line-height: 1.1; }
.pop-body { padding: 4px 28px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pop-body .big { margin: 0; font-size: 22px; line-height: 1.35; }
.pop-body .later { min-height: 40px; padding: 0 8px; border: 0; background: transparent; color: var(--muted); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.pop-body .small { margin: 0; font-size: 12px; color: var(--muted-2); }
.pop-done { display: none; padding: 8px 28px 32px; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.pop.is-done .pop-body { display: none; }
.pop.is-done .pop-done { display: flex; }
.member-card {
  width: 100%; max-width: 320px; aspect-ratio: 1.6; border-radius: 14px; background: var(--ink); color: var(--paper);
  padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.member-card .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.member-card .row:last-child { align-items: flex-end; }
.member-card img { width: 120px; }
.member-card small { font-family: var(--sans); font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: #A8A39A; padding-top: 6px; }
.member-card .code { font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--line); }
.member-card .pct { font-size: 40px; line-height: 1; }

/* ---------- cookies ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 200px; bottom: 16px; z-index: 70; max-width: 720px; margin: 0 auto;
  background: var(--ink); color: var(--paper); padding: 18px 20px; display: none; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); font-family: var(--sans); font-size: 13px; line-height: 1.5;
}
.cookie-bar.is-open { display: flex; }
.cookie-bar p { margin: 0; flex: 1 1 300px; color: var(--ivory-text); }
.cookie-bar a { color: var(--paper); }
.cookie-bar .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-bar button { min-height: 44px; padding: 0 16px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }
.cookie-bar .ck-nec { border: 1px solid var(--paper); background: transparent; color: var(--paper); }
.cookie-bar .ck-all { border: 0; background: var(--paper); color: var(--ink); }

/* ---------- mobile ---------- */
@media (max-width: 700px) {
  .container, .hero, .master, .site-footer { padding-left: 16px; padding-right: 16px; }
  .header-inner { justify-content: center; text-align: center; }
  .main-nav ul { justify-content: center; gap: 0 18px; }
  .hero-inner { padding: 40px 20px; grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-left: 0; }
  .arch-inner { height: 440px; }
  .home-collection { padding: 64px 0 56px; }
  ul.products, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 12px; padding-top: 36px; }
  .card-arch { height: 230px; }
  .card-arch .no-photo { margin-bottom: 18px; font-size: 8px; }
  .card-title { font-size: 19px; margin-top: 10px; }
  .card-kind { font-size: 13px; }
  .card-badge { font-size: 8px; letter-spacing: 0.16em; padding: 4px 8px; }
  .master-inner { padding: 48px 20px; grid-template-columns: minmax(0, 1fr); }
  .master .arch-inner { height: 440px; }
  .three-cols { padding: 56px 0; }
  .before-order { padding-bottom: 64px; }
  .club-section { padding-bottom: 64px; }
  .club-section .envelope-letter p, .club-section .envelope-letter form { display: none; }
  .club-mobile { display: flex; }
  .footer-inner { padding: 56px 20px 32px; }
  .footer-cols { gap: 28px 40px; }
  .site-footer { padding-bottom: 84px; }
  .shop-page, .page-wrap { padding: 48px 0 72px; }
  .product_title { font-size: 46px; }
  .wa-float { font-size: 0; gap: 0; width: 52px; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
  .cookie-bar { right: 16px; bottom: 80px; }
  .form-layout { flex-direction: column; }
  .bag-page .form-side { order: -1; }
  .mtm-page .measure-figure { order: -1; }
  .prose .card-dark, .prose .card-sand { padding: 24px 20px; }
}
