/* =================================================================
   WEIGHT & MIND ACADEMY — editorial wellness design system
   Palette: paper #F5F5F2 · ink #2B2D31 · mauve #B89AA8
   Type: Newsreader (display serif) + Hanken Grotesk (sans)
   ================================================================= */

:root {
  /* core palette */
  --paper:      #F5F5F2;
  --ink:        #2B2D31;
  --ink-soft:   #54565b;
  --ink-faint:  #8a8c90;
  --mauve:      #B89AA8;
  --mauve-deep: #8d6c7d;
  --mauve-deepest:#6f5161;
  --mauve-tint: #ece1e6;
  --mauve-wash: #f2ebee;
  --cream:      #fbfbf9;
  --line:       rgba(43,45,49,.12);
  --line-soft:  rgba(43,45,49,.07);

  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* metrics */
  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --header-h: 84px;
}

/* ----------------------------------------------------------------- reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--mauve); color: #fff; }

/* ----------------------------------------------------------------- type */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }
.display {
  font-size: clamp(2.9rem, 7.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.02em;
  font-weight: 380;
}
.h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.04; }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
.serif-it { font-style: italic; }
em, .serif-it { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--mauve);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

.lead { font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* ----------------------------------------------------------------- layout */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 880px; margin-inline: auto; padding-inline: var(--gut); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 150px); }
.section-pad-sm { padding-block: clamp(54px, 8vw, 104px); }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-mauve { background: var(--mauve-wash); }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .65em;
  font-family: var(--sans);
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  padding: 1.02em 1.7em;
  border-radius: 100px;
  transition: all .4s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--mauve-deepest); }
.btn-mauve { background: var(--mauve-deep); color: #fff; }
.btn-mauve:hover { background: var(--mauve-deepest); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-on-ink { background: var(--paper); color: var(--ink); }
.btn-on-ink:hover { background: var(--mauve); color: #fff; }
.link-underline { position: relative; font-weight: 600; padding-bottom: 2px; }
.link-underline::after { content:""; position:absolute; left:0; bottom:0; width:100%; height:1px; background: currentColor; transform: scaleX(.0); transform-origin: left; transition: transform .4s var(--ease); }
.link-underline:hover::after { transform: scaleX(1); }

/* ----------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: height .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: 100%; }
.site-header.scrolled {
  height: 66px;
  background: rgba(245,245,242,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.brand span { font-family: var(--sans); font-size: .58rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--mauve-deep); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.3rem); }
.nav a { font-size: .92rem; font-weight: 500; color: var(--ink-soft); transition: color .25s; position: relative; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; border-radius:2px; background: var(--mauve); }
.header-cta { display: flex; align-items: center; gap: 1.4rem; }
.header-cta .btn { padding: .72em 1.3em; }

.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.burger span { width: 22px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s; }
.burger.open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

/* mobile menu */
.mobile-nav {
  position: fixed; inset: 0; z-index: 55;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--gut) 40px;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  visibility: hidden;
}
.mobile-nav.open { transform: translateY(0); visibility: visible; }
.mobile-nav a.m-link { font-family: var(--serif); font-size: 2rem; padding: .42em 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.mobile-nav .m-foot { margin-top: auto; padding-top: 28px; color: var(--ink-soft); font-size: .92rem; }

/* ----------------------------------------------------------------- image placeholders */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--mauve-tint) 0 11px, var(--mauve-wash) 11px 22px);
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: var(--mauve-deepest);
}
.ph::after {
  content: attr(data-label);
  font-family: var(--sans);
  font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(251,251,249,.82);
  padding: .55em 1em; border-radius: 100px;
  backdrop-filter: blur(2px);
}
.ph-photo { background-size: cover; background-position: center; }
/* when a real image is dropped into a .ph, it fills the frame and hides the stripes/label */
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph:has(img) { background: none; }
.ph:has(img)::after { display: none; }

/* real photo frame */
.photo { border-radius: var(--radius); overflow: hidden; background: var(--mauve-wash); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------------------------------------------- reveal
   NB: animate transform only, never opacity — base state stays fully visible
   so content shows even where transitions don't advance (print / capture). */
.reveal { opacity: 1; transform: translateY(26px); transition: transform .85s var(--ease); will-change: transform; }
.reveal.in { transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){ .reveal { transform:none; transition:none; } html{ scroll-behavior:auto; } }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 7vw, 96px) 32px; }
.site-footer a { color: rgba(245,245,242,.72); transition: color .25s; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-h { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mauve); margin-bottom: 1.2em; }
.foot-list { list-style: none; display: flex; flex-direction: column; gap: .7em; font-size: .96rem; }
.foot-brand b { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.foot-brand p { color: rgba(245,245,242,.6); margin-top: 1em; max-width: 30ch; font-size: .96rem; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 72px); padding-top: 26px; border-top: 1px solid rgba(245,245,242,.13); font-size: .82rem; color: rgba(245,245,242,.5); }
.soc { display: flex; gap: 12px; }
.soc a { width: 38px; height: 38px; border: 1px solid rgba(245,245,242,.22); border-radius: 50%; display: grid; place-items: center; }
.soc a:hover { background: var(--mauve); border-color: var(--mauve); }
.soc svg { width: 16px; height: 16px; }

/* ----------------------------------------------------------------- misc utility */
.tag { display:inline-flex; align-items:center; gap:.5em; font-size:.78rem; font-weight:600; letter-spacing:.04em; color: var(--mauve-deep); background: var(--mauve-wash); border:1px solid var(--mauve-tint); padding:.45em .95em; border-radius:100px; }
.divider { height:1px; background: var(--line); border:0; }
.text-center { text-align: center; }
.maxch { max-width: 56ch; }
.mx-auto { margin-inline: auto; }
.sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* =================================================================
   SHOP · CART · CHECKOUT  (WooCommerce-shaped)
   ================================================================= */

/* ---- header cart icon + badge ---- */
.cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 13px; gap: .5em;
  border: 1px solid var(--line); border-radius: 100px;
  color: var(--ink); transition: background .25s, color .25s, border-color .25s;
}
.cart-link:hover { background: var(--mauve-wash); color: var(--mauve-deepest); border-color: var(--mauve-tint); }
.cart-link svg { width: 18px; height: 18px; }
.cart-count { position: absolute; top: 1px; right: -1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 100px; background: var(--mauve-deep); color: #fff; font-family: var(--sans); font-size: .64rem; font-weight: 700; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--paper); }
.site-header.scrolled .cart-count { box-shadow: 0 0 0 2px rgba(245,245,242,.9); }
.cart-count.is-empty { display: none; }

/* ---- generic page hero for utility pages ---- */
.util-hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 84px)); padding-bottom: clamp(8px, 3vw, 26px); }
.util-hero .display { margin-top:.2em; }
.util-hero .display em { color: var(--mauve-deep); }
.breadcrumb { display:flex; gap:.55em; align-items:center; font-size:.82rem; color:var(--ink-faint); margin-top:1.2em; }
.breadcrumb a:hover { color: var(--mauve-deep); }
.breadcrumb span { opacity:.6; }

/* ---- WooCommerce tables ---- */
.shop_table { width:100%; border-collapse: collapse; }
.shop_table th, .shop_table td { text-align:left; }

.woocommerce-cart-form .shop_table.cart thead th {
  font-family: var(--sans); font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-faint);
  font-weight:700; padding: 0 0 16px; border-bottom:1px solid var(--line);
}
.shop_table.cart tbody td { padding: 22px 14px 22px 0; border-bottom:1px solid var(--line-soft); vertical-align: middle; }
.shop_table.cart .product-thumbnail { width: 96px; }
.shop_table.cart .product-thumbnail img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.shop_table.cart .product-name a { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.shop_table.cart .product-name a:hover { color: var(--mauve-deep); }
.shop_table.cart .product-cat { display:block; font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--mauve-deep); margin-top:.4em; }
.shop_table.cart .product-meta { display:block; font-size:.85rem; color:var(--ink-faint); margin-top:.2em; }
.shop_table.cart .product-price, .shop_table.cart .product-subtotal { font-family: var(--serif); font-size: 1.1rem; white-space: nowrap; }
.shop_table.cart .product-subtotal { font-weight:500; }

/* quantity stepper */
.quantity { display:inline-flex; align-items:center; border:1px solid var(--line); border-radius: 100px; overflow:hidden; background: var(--paper); }
.qty-btn { width: 34px; height: 38px; font-size: 1.1rem; color: var(--ink-soft); transition: background .2s, color .2s; }
.qty-btn:hover { background: var(--mauve-wash); color: var(--mauve-deepest); }
.qty-input { width: 38px; height: 38px; text-align:center; border:0; border-inline:1px solid var(--line); background: transparent; font-family: var(--sans); font-size:.95rem; color: var(--ink); -moz-appearance:textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }

.product-remove .remove { width: 30px; height: 30px; border-radius:50%; border:1px solid var(--line); color:var(--ink-soft); font-size:1.1rem; line-height:1; transition: all .25s; }
.product-remove .remove:hover { background:#b4564f; border-color:#b4564f; color:#fff; }

.cart-actions-row td { border-bottom:0 !important; padding-top: 22px !important; }
.cart-actions { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.coupon { display:flex; gap:10px; }
.coupon .input-text { font-family:var(--sans); font-size:.95rem; padding:11px 15px; border:1px solid var(--line); border-radius:100px; background:var(--paper); min-width: 180px; }
.coupon .input-text:focus { outline:none; border-color: var(--mauve-deep); box-shadow:0 0 0 3px var(--mauve-tint); }

/* cart totals */
.cart-collaterals { display:flex; justify-content:flex-end; margin-top: 36px; }
.cart_totals { width: min(420px, 100%); background: var(--cream); border:1px solid var(--line); border-radius: 14px; padding: clamp(24px,3vw,34px); }
.cart_totals h2 { margin-bottom: .6em; }
.cart_totals .shop_table th, .cart_totals .shop_table td { padding: 13px 0; border-bottom:1px solid var(--line-soft); font-size:1rem; }
.cart_totals .shop_table th { color: var(--ink-soft); font-weight:500; }
.cart_totals .shop_table td { text-align:right; font-family:var(--serif); }
.cart_totals .order-total th { color: var(--ink); font-weight:600; }
.cart_totals .order-total td strong { font-size:1.5rem; color: var(--mauve-deepest); }
.cart_totals .order-total th, .cart_totals .order-total td { border-bottom:0; }
.checkout-button { width:100%; justify-content:center; margin-top: 20px; }
.cart-note { text-align:center; font-size:.78rem; color:var(--ink-faint); margin-top:14px; }

/* empty cart */
.wc-empty { text-align:center; max-width:480px; margin: 20px auto; padding: clamp(30px,5vw,60px) 0; }
.wc-empty-ic { width:72px; height:72px; margin:0 auto 22px; border-radius:50%; background:var(--mauve-wash); display:grid; place-items:center; color:var(--mauve-deep); }
.wc-empty-ic svg { width:30px; height:30px; }
.wc-empty p { margin:.6em 0 1.8em; }
.wc-empty-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* ---- CHECKOUT ---- */
.checkout-cols { display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(34px,5vw,64px); align-items:start; }
#customer_details h3, .checkout-review h3 { font-family:var(--serif); font-size:1.5rem; margin-bottom: 1em; padding-bottom:.6em; border-bottom:1px solid var(--line); }
.checkout-review { position: sticky; top: 92px; background: var(--cream); border:1px solid var(--line); border-radius:16px; padding: clamp(24px,3vw,38px); }

.woocommerce-checkout-review-order-table { margin-bottom: 1.4em; }
.woocommerce-checkout-review-order-table thead th { font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-faint); padding-bottom:12px; border-bottom:1px solid var(--line); }
.woocommerce-checkout-review-order-table tbody td { padding:14px 0; border-bottom:1px solid var(--line-soft); }
.woocommerce-checkout-review-order-table .product-name { font-weight:500; }
.woocommerce-checkout-review-order-table .product-quantity { color: var(--mauve-deep); font-family:var(--serif); }
.woocommerce-checkout-review-order-table .product-cat { display:block; font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-faint); margin-top:.3em; font-weight:400; }
.woocommerce-checkout-review-order-table .product-total { text-align:right; font-family:var(--serif); white-space:nowrap; }
.woocommerce-checkout-review-order-table tfoot th { text-align:left; padding:13px 0; color:var(--ink-soft); font-weight:500; }
.woocommerce-checkout-review-order-table tfoot td { text-align:right; padding:13px 0; font-family:var(--serif); }
.woocommerce-checkout-review-order-table tfoot .order-total th { color:var(--ink); font-weight:600; }
.woocommerce-checkout-review-order-table tfoot .order-total td strong { font-size:1.35rem; color:var(--mauve-deepest); }

#payment { margin-top: 1.4em; }
.payment-method { border:1px solid var(--line); border-radius:10px; padding:16px 18px; margin-bottom:12px; background:var(--paper); }
.payment-method label { display:flex; align-items:center; gap:12px; font-weight:600; font-size:.95rem; cursor:pointer; }
.payment-method input { accent-color: var(--mauve-deep); width:18px; height:18px; }
.payment-method .pm-desc { font-size:.86rem; color:var(--ink-soft); margin-top:10px; padding-left:30px; }
#place_order { width:100%; justify-content:center; margin-top:18px; }
.checkout-secure { display:flex; align-items:center; justify-content:center; gap:8px; font-size:.78rem; color:var(--ink-faint); margin-top:14px; }
.checkout-secure svg { width:14px; height:14px; }

.notice-empty { text-align:center; max-width:520px; margin: 10px auto; padding: clamp(30px,5vw,56px) 0; }

/* order received */
.order-received { max-width:620px; margin-inline:auto; text-align:center; }
.oc-ic { width:74px; height:74px; margin:0 auto 22px; border-radius:50%; background:var(--mauve-deep); color:#fff; display:grid; place-items:center; }
.oc-ic svg { width:32px; height:32px; }
.order-overview { list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:12px; overflow:hidden; margin: 2em 0; }
.order-overview li { background:var(--cream); padding:18px 22px; text-align:left; }
.order-overview li span { display:block; font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-faint); }
.order-overview li strong { font-family:var(--serif); font-size:1.15rem; font-weight:500; }

/* =================================================================
   BLOG  (archive + single)
   ================================================================= */
.blog-layout { display:grid; grid-template-columns: 1fr 320px; gap: clamp(34px,5vw,64px); align-items:start; }

.post-card { display:grid; grid-template-columns: 1fr; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--cream); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow:0 34px 60px -38px rgba(43,45,49,.32); }
.post-card.featured { grid-template-columns: 1.05fr .95fr; }
.post-card .pc-media { position:relative; min-height: 260px; overflow:hidden; }
.post-card .pc-media img { width:100%; height:100%; object-fit:cover; }
.post-card .pc-cat { position:absolute; top:16px; left:16px; font-size:.68rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#fff; background: var(--mauve-deep); padding:.45em .9em; border-radius:100px; }
.post-card .pc-body { padding: clamp(24px,3vw,40px); display:flex; flex-direction:column; }
.post-card .pc-meta { font-size:.8rem; color:var(--ink-faint); letter-spacing:.02em; display:flex; gap:.7em; align-items:center; }
.post-card .pc-meta .dot { width:3px; height:3px; border-radius:50%; background:var(--mauve); }
.post-card h2, .post-card h3 { font-family:var(--serif); line-height:1.1; margin:.5em 0 .4em; }
.post-card.featured h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.post-card .pc-excerpt { color:var(--ink-soft); font-size:.98rem; }
.post-card .pc-more { margin-top:1.4em; font-weight:600; color:var(--mauve-deep); display:inline-flex; align-items:center; gap:.5em; }
.post-card:hover .pc-more .arr { transform: translateX(4px); }
.post-card .pc-more .arr { transition: transform .4s var(--ease); }

.posts-col { display:flex; flex-direction:column; gap: 24px; }

/* sidebar widgets */
.sidebar { display:flex; flex-direction:column; gap: 24px; }
.widget { border:1px solid var(--line); border-radius:12px; padding: 24px; background: var(--paper); }
.widget-title { font-family:var(--sans); font-size:.72rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--mauve-deep); margin-bottom:1.1em; }
.search-form { display:flex; gap:8px; }
.search-form input { flex:1; min-width:0; font-family:var(--sans); font-size:.92rem; padding:11px 14px; border:1px solid var(--line); border-radius:8px; background:var(--cream); }
.search-form input:focus { outline:none; border-color:var(--mauve-deep); box-shadow:0 0 0 3px var(--mauve-tint); }
.search-form button { flex:none; width:42px; border-radius:8px; background:var(--ink); color:var(--paper); display:grid; place-items:center; }
.search-form button:hover { background:var(--mauve-deepest); }
.search-form svg { width:17px; height:17px; }
.cat-list, .recent-list { list-style:none; display:flex; flex-direction:column; }
.cat-list li { display:flex; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--line-soft); font-size:.95rem; }
.cat-list li:last-child { border-bottom:0; }
.cat-list a:hover { color:var(--mauve-deep); }
.cat-list .count { color:var(--ink-faint); font-size:.82rem; }
.recent-list li { padding:12px 0; border-bottom:1px solid var(--line-soft); }
.recent-list li:last-child { border-bottom:0; }
.recent-list a { font-family:var(--serif); font-size:1.02rem; line-height:1.25; }
.recent-list a:hover { color:var(--mauve-deep); }
.recent-list .r-date { display:block; font-size:.76rem; color:var(--ink-faint); margin-top:.3em; }
.widget-author { text-align:center; }
.widget-author .wa-photo { width:96px; height:96px; border-radius:50%; overflow:hidden; margin:0 auto 14px; background:var(--mauve-wash); }
.widget-author .wa-photo img { width:100%; height:100%; object-fit:cover; }
.widget-author b { font-family:var(--serif); font-size:1.2rem; font-weight:500; }
.widget-author p { font-size:.9rem; color:var(--ink-soft); margin:.5em 0 1em; }
.widget-news { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.widget-news .widget-title { color: var(--mauve); }
.widget-news p { font-size:.92rem; color:rgba(245,245,242,.74); margin-bottom:1em; }
.widget-news .news-form { display:flex; flex-direction:column; gap:10px; }
.widget-news input { font-family:var(--sans); font-size:.92rem; padding:11px 14px; border:1px solid rgba(245,245,242,.2); border-radius:8px; background:rgba(255,255,255,.06); color:#fff; }
.widget-news input::placeholder { color:rgba(245,245,242,.5); }
.widget-news input:focus { outline:none; border-color:var(--mauve); }

/* ---- single post ---- */
.article-head { max-width: 820px; margin-inline:auto; text-align:center; }
.article-head .art-cat { color:var(--mauve-deep); }
.article-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height:1.06; margin:.45em 0; }
.article-meta { display:flex; gap:1em; align-items:center; justify-content:center; font-size:.88rem; color:var(--ink-faint); flex-wrap:wrap; }
.article-meta .am-author { display:flex; align-items:center; gap:.6em; color:var(--ink-soft); font-weight:500; }
.article-meta .am-author img { width:30px; height:30px; border-radius:50%; object-fit:cover; }
.article-meta .dot { width:3px; height:3px; border-radius:50%; background:var(--mauve); }
.article-hero { max-width: 1040px; margin: clamp(34px,5vw,56px) auto 0; border-radius:14px; overflow:hidden; aspect-ratio:16/8; }
.article-hero img { width:100%; height:100%; object-fit:cover; }

.article-body { max-width: 720px; margin-inline:auto; }
.article-body > p:first-of-type { font-size:1.22rem; line-height:1.6; color:var(--ink); }
.article-body p { margin-bottom: 1.25em; color: var(--ink-soft); }
.article-body strong { color: var(--ink); font-weight:600; }
.article-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.5em 0 .5em; line-height:1.12; }
.article-body h2 + p { margin-top:0; }
.article-pull { font-family:var(--serif); font-style:italic; font-size:clamp(1.4rem,2.4vw,1.9rem); line-height:1.3; color:var(--ink); border-left:2px solid var(--mauve); padding-left: clamp(20px,3vw,34px); margin: 1.6em 0; }
.article-pull em { color: var(--mauve-deep); }

.author-box { max-width:720px; margin: clamp(40px,5vw,64px) auto 0; display:flex; gap:22px; align-items:center; background:var(--cream); border:1px solid var(--line); border-radius:14px; padding: clamp(24px,3vw,34px); }
.author-box .ab-photo { flex:none; width:96px; height:96px; border-radius:50%; overflow:hidden; background:var(--mauve-wash); }
.author-box .ab-photo img { width:100%; height:100%; object-fit:cover; }
.author-box .ab-k { font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--mauve-deep); font-weight:700; }
.author-box b { font-family:var(--serif); font-size:1.3rem; font-weight:500; display:block; margin:.2em 0 .3em; }
.author-box p { font-size:.94rem; color:var(--ink-soft); }

.article-cta { max-width:720px; margin: clamp(34px,4vw,52px) auto 0; text-align:center; background:var(--mauve-wash); border-radius:16px; padding: clamp(30px,4vw,52px); }
.article-cta h2 em { color:var(--mauve-deep); }

@media (max-width: 980px){
  .checkout-cols { grid-template-columns:1fr; }
  .checkout-review { position: static; }
  .blog-layout { grid-template-columns:1fr; }
  .post-card.featured { grid-template-columns:1fr; }
  .post-card.featured .pc-media { min-height: 240px; order:-1; }
}
@media (max-width: 760px){
  /* responsive WooCommerce cart table → stacked rows */
  .shop_table.cart thead { display:none; }
  .shop_table.cart, .shop_table.cart tbody, .shop_table.cart tr, .shop_table.cart td { display:block; width:100%; }
  .shop_table.cart tr.cart_item { position:relative; border:1px solid var(--line); border-radius:12px; padding:16px; margin-bottom:14px; display:grid; grid-template-columns:80px 1fr; gap:4px 16px; }
  .shop_table.cart .cart_item td { border:0 !important; padding:4px 0 !important; }
  .shop_table.cart .product-thumbnail { grid-row: span 4; }
  .shop_table.cart .product-price::before, .shop_table.cart .product-quantity::before, .shop_table.cart .product-subtotal::before { content: attr(data-title) ": "; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-faint); }
  .shop_table.cart .product-remove { position:absolute; top:10px; right:10px; }
  .cart-actions-row td { border:0 !important; padding:0 !important; }
  .order-overview { grid-template-columns:1fr; }
}
@media (max-width: 480px){
  .author-box { flex-direction:column; text-align:center; }
  .coupon { width:100%; }
  .coupon .input-text { flex:1; }
}

/* =================================================================
   MINI CART  (off-canvas drawer)
   ================================================================= */
.mini-cart-overlay { position:fixed; inset:0; background:rgba(43,45,49,.42); backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px); opacity:0; visibility:hidden; transition:opacity .35s var(--ease); z-index:80; }
.mini-cart-overlay.open { opacity:1; visibility:visible; }
.mini-cart { position:fixed; top:0; right:0; height:100%; width:min(400px, 92vw); background:var(--paper); z-index:90; display:flex; flex-direction:column; transform:translateX(100%); transition:transform .42s var(--ease); box-shadow:-30px 0 70px -40px rgba(43,45,49,.55); }
.mini-cart.open { transform:none; }
.mini-cart-head { display:flex; align-items:center; justify-content:space-between; padding:22px 24px; border-bottom:1px solid var(--line); }
.mini-cart-head h3 { font-family:var(--serif); font-size:1.3rem; font-weight:500; }
.mini-cart-close { width:38px; height:38px; border-radius:50%; font-size:1.5rem; line-height:1; color:var(--ink-soft); transition:background .2s; }
.mini-cart-close:hover { background:var(--mauve-wash); }
.mini-cart-body { flex:1; overflow-y:auto; padding:6px 24px; }
.woocommerce-mini-cart { list-style:none; }
.woocommerce-mini-cart .mini_cart_item { display:grid; grid-template-columns:56px 1fr auto; gap:14px; align-items:center; padding:16px 0; border-bottom:1px solid var(--line-soft); }
.mini_cart_item img { width:56px; height:56px; border-radius:8px; object-fit:cover; }
.mini_cart_item .mc-name { font-family:var(--serif); font-size:1.02rem; line-height:1.2; }
.mini_cart_item .mc-qty { font-size:.85rem; color:var(--ink-soft); margin-top:.3em; }
.mini_cart_item .mc-remove { width:26px; height:26px; border-radius:50%; border:1px solid var(--line); color:var(--ink-soft); font-size:1rem; line-height:1; transition:all .2s; }
.mini_cart_item .mc-remove:hover { background:#b4564f; border-color:#b4564f; color:#fff; }
.mini-cart-empty { text-align:center; color:var(--ink-soft); padding:48px 0; }
.mini-cart-foot { border-top:1px solid var(--line); padding:20px 24px; }
.mini-cart-subtotal { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:16px; }
.mini-cart-subtotal span { font-size:.74rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-faint); }
.mini-cart-subtotal strong { font-family:var(--serif); font-size:1.5rem; font-weight:500; }
.mini-cart-actions { display:flex; flex-direction:column; gap:10px; }
.mini-cart-actions .btn { width:100%; justify-content:center; }

/* =================================================================
   LANGUAGE SWITCHER  (TranslatePress-style)
   ================================================================= */
.lang-switch { position:relative; }
.lang-btn {
  display:flex; align-items:center; gap:.5em;
  height: 38px; padding: 0 13px; border-radius:100px;
  border: 1px solid var(--line);
  font-family:var(--sans); font-size:.82rem; font-weight:600; color:var(--ink-soft);
  transition:background .2s, color .2s, border-color .2s;
}
.lang-btn:hover { background:var(--mauve-wash); color:var(--ink); border-color:var(--mauve-tint); }
.lang-btn .curr-sym { font-weight:700; color:var(--mauve-deep); }
.lang-btn .lang-code { font-weight:700; letter-spacing:.04em; }
.lang-btn .chev { width:12px; height:12px; transition:transform .25s var(--ease); opacity:.6; }
.lang-switch.open .lang-btn .chev { transform:rotate(180deg); }
.lang-menu { position:absolute; top:calc(100% + 8px); right:0; min-width:210px; background:var(--paper); border:1px solid var(--line); border-radius:10px; box-shadow:0 20px 44px -22px rgba(43,45,49,.4); padding:6px; opacity:0; visibility:hidden; transform:translateY(-6px); transition:opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; z-index:70; }
.lang-switch.open .lang-menu { opacity:1; visibility:visible; transform:none; }
.lang-opt { display:flex; align-items:center; gap:.7em; width:100%; padding:.62em .7em; border-radius:7px; font-size:.9rem; color:var(--ink-soft); text-align:left; transition:background .2s, color .2s; }
.lang-opt:hover { background:var(--mauve-wash); color:var(--ink); }
.lang-opt.active { color:var(--ink); font-weight:600; }
.lang-code-sm { display:inline-grid; place-items:center; width:26px; height:19px; border-radius:4px; background:var(--mauve-wash); color:var(--mauve-deepest); font-size:.6rem; font-weight:700; letter-spacing:.04em; flex:none; }
.lang-opt.active .lang-code-sm { background:var(--mauve-deep); color:#fff; }
/* mobile variant lives in the slide-down menu footer */
.lang-switch-mobile { margin-bottom:20px; }
.lang-switch-mobile .lang-btn { border:1px solid var(--line); justify-content:center; padding:.7em 1em; font-size:.9rem; }
.lang-switch-mobile .lang-menu { left:0; right:auto; }
@media (max-width: 760px){
  /* header — global rule; covers pages without a page-specific <style> */
  .site-header .nav { display: none; }
  .site-header .header-cta .btn { display: none; }
  .site-header .burger { display: flex; }
  .site-header .header-cta .lang-switch:not(.lang-switch-mobile) { display: none; }
  /* footer */
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px){
  .foot-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   SHARED FORM FIELDS  (contact + checkout)
   ================================================================= */
.field { margin-bottom: 20px; }
.field label { display:block; font-size:.82rem; font-weight:600; letter-spacing:.02em; margin-bottom:.5em; color:var(--ink); }
.field input, .field textarea {
  width:100%; font-family:var(--sans); font-size:1rem; color:var(--ink);
  background:var(--paper); border:1px solid var(--line); border-radius:8px;
  padding:13px 15px; transition:border-color .25s, box-shadow .25s;
}
.field textarea { resize:vertical; min-height:130px; }
.field input::placeholder, .field textarea::placeholder { color:var(--ink-faint); }
.field input:focus, .field textarea:focus { outline:none; border-color:var(--mauve-deep); box-shadow:0 0 0 3px var(--mauve-tint); }
.field.err input, .field.err textarea { border-color:#b4564f; box-shadow:0 0 0 3px rgba(180,86,79,.12); }
.field-err { display:block; font-size:.78rem; color:#b4564f; margin-top:.4em; min-height:1em; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.consent { display:flex; gap:12px; align-items:flex-start; }
.consent input { width:20px; height:20px; flex:none; accent-color:var(--mauve-deep); margin-top:2px; cursor:pointer; }
.consent label { font-size:.88rem; color:var(--ink-soft); font-weight:400; letter-spacing:0; margin:0; cursor:pointer; }
.consent a { color:var(--mauve-deep); text-decoration:underline; text-underline-offset:2px; }
.field.err.consent label { color:#b4564f; }
@media (max-width: 480px){ .field-row { grid-template-columns:1fr; } }

/* =================================================================
   WP ADMIN BAR — keep the fixed header below it
   ================================================================= */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .mobile-nav { top: 32px; }
body.admin-bar #wm-mini-cart { top: 32px; height: calc(100% - 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .mobile-nav { top: 46px; }
  body.admin-bar #wm-mini-cart { top: 46px; height: calc(100% - 46px); }
}

/* =================================================================
   MINI-CART drawer internal layout (scrolling list + pinned foot)
   ================================================================= */
.mini-cart-body.widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; padding: 0; }
.mini-cart-scroll { flex: 1; overflow-y: auto; padding: 6px 24px; }
.mini-cart .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
