/*
Theme Name: Malihani
Theme URI: https://haizum.agency/malihani
Author: Haizum Agency
Author URI: https://haizum.agency
Description: Luxury antique occasion wear theme for Malihani
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 9.0
License: Private
Text Domain: malihani
*/

/* ============================================================
   TOKENS — Royal Plum + Aged Gold palette
   ============================================================ */
:root {
  /* Core brand */
  --plum:        #5C1A2E;   /* dominant dark — logo background */
  --plum-deep:   #3E1020;   /* darker plum for footer / overlays */
  --plum-mid:    #7A2440;   /* mid plum for hover states */
  --plum-tint:   #F5EEF2;   /* near-white with plum warmth */
  --gold:        #B8924A;   /* aged gold — logo calligraphy */
  --gold-light:  #D4AD6B;   /* lighter gold for hover / highlights */
  --gold-pale:   #F3E8D4;   /* pale gold for subtle backgrounds */
  --ivory:       #FAF6EF;   /* warm ivory — body background */
  --stone:       #9A8F82;   /* warm grey — body text secondary */
  --black:       #0A0A0A;   /* sparingly — fine detail only */
  --white:       #FFFFFF;

  --font-serif:  'Lora', Georgia, serif;
  --font-sans:   'Poppins', system-ui, sans-serif;

  --radius: 2px;
  --shadow: 0 4px 32px rgba(92,26,46,.12);
  --shadow-gold: 0 4px 24px rgba(184,146,74,.18);
  --trans:  all .3s ease;

  --header-h: 80px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--black);
  background: var(--ivory);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--plum-deep);
}

.mlh-section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.mlh-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--plum-deep);
  margin-bottom: 8px;
}

.mlh-section-sub {
  font-size: 14px;
  color: var(--stone);
  max-width: 520px;
}

.mlh-section-head {
  text-align: center;
  margin-bottom: 48px;
}

.mlh-section-head .mlh-section-sub { margin: 0 auto; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.mlh-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.mlh-section {
  padding: 80px 0;
}

/* ============================================================
   BUTTONS — gold primary, plum secondary
   ============================================================ */
.mlh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
}

/* PRIMARY — gold fill */
.mlh-btn-primary {
  background: var(--gold);
  color: var(--white);
}
.mlh-btn-primary:hover {
  background: var(--gold-light);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

/* PLUM fill */
.mlh-btn-plum {
  background: var(--plum);
  color: var(--white);
}
.mlh-btn-plum:hover {
  background: var(--plum-mid);
  color: var(--white);
}

/* GOLD outline */
.mlh-btn-gold {
  background: var(--gold);
  color: var(--white);
}
.mlh-btn-gold:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
}

/* OUTLINE on dark bg */
.mlh-btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.6);
}
.mlh-btn-outline:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* OUTLINE on light bg */
.mlh-btn-outline-dark {
  background: transparent;
  color: var(--plum);
  border: 1px solid var(--plum);
}
.mlh-btn-outline-dark:hover {
  background: var(--plum);
  color: var(--white);
}

/* WhatsApp */
.mlh-btn-wa {
  background: #25D366;
  color: var(--white);
}
.mlh-btn-wa:hover {
  background: #1ebe5d;
  color: var(--white);
}

/* ============================================================
   HEADER — ivory with plum accents
   ============================================================ */
#mlh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(250,246,239,0);  /* transparent over hero */
  transition: background .35s ease, box-shadow .35s ease;
}

#mlh-header.scrolled,
body:not(.home) #mlh-header {
  background: var(--ivory);
  box-shadow: 0 1px 0 rgba(92,26,46,.1);
}

.mlh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
}

.mlh-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--plum);
}

.mlh-logo img { height: 48px; width: auto; }

/* On the homepage hero (before scroll) header text is light; inner pages have no hero */
.home #mlh-header:not(.scrolled) .mlh-logo { color: var(--ivory); }
.home #mlh-header:not(.scrolled) .mlh-nav a { color: var(--ivory); }
.home #mlh-header:not(.scrolled) .mlh-header-icons a,
.home #mlh-header:not(.scrolled) .mlh-header-icons button { color: var(--ivory); }

.mlh-nav ul {
  display: flex;
  gap: 32px;
}

.mlh-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--plum);
  transition: color .2s;
}

.mlh-nav a:hover { color: var(--gold); }

.mlh-header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mlh-header-icons a,
.mlh-header-icons button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--plum);
  display: flex;
  align-items: center;
  position: relative;
  padding: 4px;
  transition: color .2s;
}

.mlh-header-icons a:hover,
.mlh-header-icons button:hover { color: var(--gold); }

.mlh-cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--gold);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mlh-burger { display: none; }

/* Mobile nav */
.mlh-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(62,16,32,.6);
  z-index: 1100;
}

.mlh-mobile-overlay.open { display: block; }

#mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--ivory);
  z-index: 1200;
  padding: 80px 32px 40px;
  transition: right .35s ease;
  overflow-y: auto;
  border-left: 3px solid var(--gold);
}

#mobile-nav.open { right: 0; }

.mlh-mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--plum);
}

#mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#mobile-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--plum);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(92,26,46,.1);
  transition: color .2s;
}

#mobile-nav a:hover { color: var(--gold); }

/* ============================================================
   HERO — plum-tinted dramatic overlay
   ============================================================ */
.mlh-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.mlh-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--plum);
}

.mlh-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(62,16,32,.82) 0%,
    rgba(92,26,46,.55) 50%,
    rgba(184,146,74,.15) 100%
  );
}

.mlh-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 64px;
  max-width: 680px;
}

.mlh-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.mlh-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  color: var(--ivory);
  margin-bottom: 20px;
  line-height: 1.12;
  text-shadow: 0 2px 24px rgba(62,16,32,.4);
}

.mlh-hero-sub {
  font-size: 15px;
  color: rgba(250,246,239,.8);
  margin-bottom: 36px;
  max-width: 440px;
  line-height: 1.75;
}

/* ============================================================
   FEATURES STRIP — plum background
   ============================================================ */
.mlh-features-strip {
  background: var(--plum);
  padding: 28px 0;
  border-bottom: 1px solid rgba(184,146,74,.25);
}

.mlh-features-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.mlh-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
}

.mlh-feature-icon {
  color: var(--gold);
  font-size: 20px;
}

.mlh-feature-text strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ivory);
}

.mlh-feature-text span {
  font-size: 11px;
  color: rgba(250,246,239,.6);
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.mlh-products-grid {
  display: grid;
  gap: 24px;
}

.mlh-products-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.mlh-products-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

.mlh-product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
  border: 1px solid rgba(92,26,46,.06);
}

.mlh-product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.mlh-product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.mlh-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.mlh-product-card:hover .mlh-product-img-wrap img { transform: scale(1.04); }

.mlh-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--plum);
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.mlh-card-badge--soldout {
  background: var(--ivory);
  color: var(--plum-deep);
  box-shadow: 0 1px 4px rgba(10,10,10,.15);
}

/* Sold-out pieces stay visible but read as unavailable */
.mlh-product-card:has(.mlh-card-badge--soldout) .mlh-product-img-wrap img { opacity: .72; }

.mlh-product-info {
  padding: 16px;
}

.mlh-product-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.mlh-product-name {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--plum-deep);
  margin-bottom: 6px;
  line-height: 1.3;
}

.mlh-product-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 12px;
}

.mlh-product-price ins {
  text-decoration: none;
  color: var(--plum);
}

.mlh-product-price del {
  font-weight: 400;
  color: var(--stone);
  font-size: 12px;
  margin-right: 6px;
}

.mlh-dual-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mlh-dual-buttons .mlh-btn {
  padding: 10px 8px;
  font-size: 10px;
  justify-content: center;
}

/* ============================================================
   SIZE PILLS
   ============================================================ */
.mlh-size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.mlh-size-pill {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border: 1px solid rgba(92,26,46,.2);
  border-radius: 2px;
  color: var(--stone);
  cursor: pointer;
  transition: var(--trans);
  background: none;
}

.mlh-size-pill:hover,
.mlh-size-pill.active {
  border-color: var(--gold);
  color: var(--white);
  background: var(--gold);
}

/* ============================================================
   COLLECTION BANNER
   ============================================================ */
.mlh-collection-banner {
  position: relative;
  height: min(70vh, 600px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 0 24px;
}

.mlh-collection-banner + .mlh-collection-banner { margin-top: 24px; }

.mlh-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--plum);
  transition: transform 6s ease;
}

.mlh-collection-banner:hover .mlh-banner-bg { transform: scale(1.04); }

.mlh-banner-overlay {
  position: absolute;
  inset: 0;
}

.mlh-banner-content {
  position: relative;
  z-index: 2;
  padding: 48px 64px;
  max-width: 500px;
}

.mlh-banner-content .mlh-section-label { color: var(--gold-light); }

.mlh-banner-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--ivory);
  margin-bottom: 12px;
}

.mlh-banner-content p {
  color: rgba(250,246,239,.8);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ============================================================
   CATEGORY TILES
   ============================================================ */
.mlh-cat-section { padding: 80px 0; }

.mlh-cat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.mlh-cat-tile {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
}

.mlh-cat-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.mlh-cat-tile:hover .mlh-cat-tile-img { transform: scale(1.06); }

.mlh-cat-tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 20px 20px;
  background: linear-gradient(transparent, rgba(62,16,32,.85));
}

.mlh-cat-tile-name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ivory);
  display: block;
}

.mlh-cat-tile-count {
  font-size: 11px;
  color: var(--gold-light);
}

/* ============================================================
   CLIENT DIARIES — plum-tint background
   ============================================================ */
.mlh-diaries-section {
  background: var(--plum-tint);
  padding: 80px 0;
}

.mlh-diaries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mlh-diary-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
  cursor: pointer;
}

.mlh-diary-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.mlh-diary-hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease, transform .6s ease;
}

.mlh-diary-card:hover .mlh-diary-card-img { transform: scale(1.04); }
.mlh-diary-card:hover .mlh-diary-hover-img { opacity: 1; transform: scale(1.04); }

.mlh-diary-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  padding: 56px 24px 24px;
  background: linear-gradient(transparent, rgba(62,16,32,.9));
  transition: bottom .4s ease;
  z-index: 2;
}

.mlh-diary-card:hover .mlh-diary-overlay { bottom: 0; }

.mlh-diary-quote {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: var(--ivory);
  margin-bottom: 10px;
  line-height: 1.5;
}

.mlh-diary-meta {
  font-size: 11px;
  color: var(--gold-light);
  margin-bottom: 14px;
  letter-spacing: .06em;
}

.mlh-diary-cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  display: inline-block;
}

/* ============================================================
   BRAND STORY
   ============================================================ */
.mlh-brand-story {
  padding: 80px 0;
  background: var(--ivory);
}

.mlh-brand-story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mlh-brand-story-img {
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  width: 100%;
  box-shadow: 12px 12px 0 var(--gold-pale);
}

.mlh-brand-story-text .mlh-section-label { margin-bottom: 16px; }

.mlh-brand-story-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 20px;
}

.mlh-brand-story-text p {
  color: var(--stone);
  margin-bottom: 16px;
  line-height: 1.85;
}

/* ============================================================
   NEWSLETTER STRIP — plum-deep background
   ============================================================ */
.mlh-newsletter-strip {
  background: var(--plum-deep);
  padding: 64px 0;
  border-top: 1px solid rgba(184,146,74,.2);
}

.mlh-newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.mlh-newsletter-text .mlh-section-label { color: var(--gold); }

.mlh-newsletter-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--ivory);
  margin-top: 4px;
}

.mlh-newsletter-form {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}

.mlh-newsletter-form input[type="email"] {
  padding: 14px 20px;
  border: 1px solid rgba(184,146,74,.3);
  border-right: none;
  background: rgba(250,246,239,.06);
  color: var(--ivory);
  font-size: 13px;
  width: 280px;
  outline: none;
  border-radius: 2px 0 0 2px;
  transition: border-color .2s;
}

.mlh-newsletter-form input:focus {
  border-color: var(--gold);
}

.mlh-newsletter-form input::placeholder { color: rgba(250,246,239,.4); }

.mlh-newsletter-form button {
  border-radius: 0 2px 2px 0;
}

/* ============================================================
   FOOTER — plum-deep
   ============================================================ */
#mlh-footer {
  background: var(--plum-deep);
  color: rgba(250,246,239,.7);
  border-top: 2px solid var(--gold);
}

.mlh-footer-main {
  padding: 64px 0 40px;
}

.mlh-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.mlh-footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ivory);
  margin-bottom: 14px;
}

.mlh-footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
  color: rgba(250,246,239,.65);
}

.mlh-footer-socials {
  display: flex;
  gap: 14px;
}

.mlh-footer-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(184,146,74,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(250,246,239,.7);
  transition: var(--trans);
}

.mlh-footer-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,146,74,.08);
}

.mlh-footer-col h4 {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.mlh-footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.mlh-footer-col a {
  font-size: 13px;
  color: rgba(250,246,239,.6);
  transition: color .2s;
}

.mlh-footer-col a:hover { color: var(--gold-light); }

.mlh-footer-bottom {
  border-top: 1px solid rgba(184,146,74,.15);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.mlh-footer-bottom p {
  font-size: 12px;
  color: rgba(250,246,239,.35);
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}

/* ============================================================
   SINGLE PRODUCT
   ============================================================ */
.mlh-single-product {
  padding-top: var(--header-h);
}

.mlh-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 48px 0 80px;
}

.mlh-gallery-sticky { position: sticky; top: 96px; }

.mlh-gallery-main {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 8px 8px 0 var(--gold-pale);
}

.mlh-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s;
}

.mlh-gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mlh-thumb {
  width: 72px;
  height: 90px;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s, border-color .2s;
  border: 2px solid transparent;
}

.mlh-thumb:hover,
.mlh-thumb.active { opacity: 1; border-color: var(--gold); }

/* Product info */
.mlh-product-info-col .mlh-product-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.mlh-product-info-col h1 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: var(--plum-deep);
  margin-bottom: 10px;
}

.mlh-single-price {
  font-size: 22px;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 20px;
}

.mlh-single-price del {
  font-size: 16px;
  font-weight: 400;
  color: var(--stone);
  margin-right: 8px;
  text-decoration: line-through;
}

.mlh-product-short-desc {
  color: var(--stone);
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 14px;
}

.mlh-craft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.mlh-craft-tag {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid rgba(92,26,46,.15);
  border-radius: 2px;
  color: var(--plum-mid);
  background: var(--plum-tint);
}

/* Tabs */
.mlh-tabs { margin-top: 48px; }

.mlh-tab-nav {
  display: flex;
  border-bottom: 1px solid rgba(92,26,46,.12);
  margin-bottom: 24px;
}

.mlh-tab-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--stone);
  transition: var(--trans);
  margin-bottom: -1px;
}

.mlh-tab-btn.active,
.mlh-tab-btn:hover {
  color: var(--plum);
  border-bottom-color: var(--gold);
}

.mlh-tab-panel { display: none; }
.mlh-tab-panel.active { display: block; }

.mlh-tab-panel p {
  color: var(--stone);
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Sticky add-to-cart bar */
#mlhStickyBar {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  height: 68px;
  background: var(--plum-deep);
  border-top: 1px solid rgba(184,146,74,.3);
  z-index: 800;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  transition: bottom .3s ease;
}

#mlhStickyBar.visible { bottom: 0; }

#mlhStickyBar span {
  font-family: var(--font-serif);
  color: var(--ivory);
  font-size: 15px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mlhStickyBar .mlh-btn { padding: 12px 20px; font-size: 11px; }

/* ============================================================
   ARCHIVE / SHOP
   ============================================================ */
.mlh-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}

.mlh-shop-sidebar h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 14px;
}

.mlh-sidebar-cats { margin-bottom: 32px; }

.mlh-sidebar-cats li { border-bottom: 1px solid rgba(92,26,46,.08); }

.mlh-sidebar-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13px;
  color: var(--stone);
  transition: color .2s;
}

.mlh-sidebar-cats a:hover { color: var(--gold); }

.mlh-sidebar-cats .current-cat > a { color: var(--plum); font-weight: 600; }

.mlh-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mlh-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.mlh-breadcrumb {
  padding: 16px 0;
  font-size: 12px;
  color: var(--stone);
  border-bottom: 1px solid rgba(92,26,46,.08);
}

.mlh-breadcrumb a { color: var(--stone); transition: color .2s; }
.mlh-breadcrumb a:hover { color: var(--gold); }
.mlh-breadcrumb span.sep { margin: 0 8px; opacity: .4; }

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  background: var(--plum-tint);
  border-top-color: var(--gold);
  color: var(--plum-deep);
}

.woocommerce .quantity input[type="number"] {
  border: 1px solid rgba(92,26,46,.2);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 72px;
  text-align: center;
  font-size: 14px;
  color: var(--plum);
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.mlh-dual-buttons a.button { /* homepage cards sit outside .woocommerce */
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 13px 24px;
  transition: var(--trans);
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.mlh-dual-buttons a.button:hover {
  background: var(--gold-light);
  color: var(--white);
}

/* Quantity +/- */
.mlh-qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid rgba(92,26,46,.2);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 20px;
}

.mlh-qty-btn {
  background: none;
  border: none;
  width: 40px;
  height: 46px;
  font-size: 18px;
  cursor: pointer;
  color: var(--plum);
  transition: background .2s;
}

.mlh-qty-btn:hover { background: var(--plum-tint); }

.mlh-qty-input {
  width: 56px;
  height: 46px;
  text-align: center;
  border: none;
  border-left: 1px solid rgba(92,26,46,.12);
  border-right: 1px solid rgba(92,26,46,.12);
  font-size: 14px;
  color: var(--plum);
  background: none;
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.mlh-page {
  padding-top: var(--header-h);
  min-height: 60vh;
}

.mlh-page-content {
  padding: 48px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}

/* Checkout form runs in two columns (WhatsApp checkout plugin) */
.woocommerce-checkout:not(.woocommerce-order-received) .mlh-page-content { max-width: 1040px; }

/* Block cart button in the theme style */
.wc-block-cart__submit-button {
  background: var(--plum) !important;
  color: var(--ivory) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  transition: var(--trans) !important;
}

.wc-block-cart__submit-button:hover { background: var(--plum-mid) !important; }

.mlh-page-content h1 {
  color: var(--plum-deep);
  margin-bottom: 24px;
}

.mlh-page-content p {
  color: var(--stone);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Typography for page text only: WooCommerce output sits inside .woocommerce, not directly here */
.mlh-page-content > h2 {
  color: var(--plum);
  font-size: 1.35rem;
  margin: 36px 0 12px;
}

.mlh-page-content > ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}

.mlh-page-content > ul > li {
  color: var(--stone);
  line-height: 1.8;
  margin-bottom: 6px;
}

.mlh-page-content > ul > li::marker { color: var(--gold); }

.mlh-page-content > p strong,
.mlh-page-content > ul strong { color: var(--plum-deep); }

.mlh-page-content > p a:not(.mlh-btn),
.mlh-page-content > ul a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mlh-page-content > table {
  width: 100%;
  max-width: 520px;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 14px;
}

.mlh-page-content > table th,
.mlh-page-content > table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--gold-pale);
}

.mlh-page-content > table th {
  background: var(--plum);
  color: var(--white);
  font-weight: 500;
  letter-spacing: .05em;
}

.mlh-page-content > table td:first-child {
  color: var(--plum-deep);
  font-weight: 600;
}

.mlh-page-content > table td { color: var(--stone); }

.mlh-page-content .mlh-btn { margin: 4px 0 8px; }

/* ============================================================
   404
   ============================================================ */
.mlh-404 {
  text-align: center;
  padding: 120px 24px;
}

.mlh-404 h1 {
  font-size: clamp(5rem, 12vw, 10rem);
  color: var(--plum);
  opacity: .2;
  margin-bottom: 8px;
}

.mlh-404 h2 {
  font-size: 1.8rem;
  color: var(--plum-deep);
  margin-bottom: 16px;
}

.mlh-404 p {
  color: var(--stone);
  margin-bottom: 32px;
}

/* ============================================================
   GOLD DIVIDER — decorative flourish
   ============================================================ */
.mlh-gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 48px 0;
  color: var(--gold);
  opacity: .5;
}

.mlh-gold-divider::before,
.mlh-gold-divider::after {
  content: '';
  height: 1px;
  width: 80px;
  background: var(--gold);
  opacity: .4;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .mlh-products-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .mlh-products-grid.cols-6 { grid-template-columns: repeat(4, 1fr); }
  .mlh-footer-grid { grid-template-columns: 1fr 1fr; }
  .mlh-diaries-grid { grid-template-columns: repeat(2, 1fr); }
  .mlh-shop-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  /* Portrait screens show a narrow slice of the wide images: keep the model in it */
  .mlh-hero-bg { background-position: 66% center; }
  .mlh-banner--festive .mlh-banner-bg { background-position: 32% center; }

  .mlh-nav { display: none; }
  .mlh-burger { display: flex; }

  .mlh-hero-content { padding: 0 24px; }

  .mlh-products-grid.cols-4,
  .mlh-products-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }

  .mlh-product-layout { grid-template-columns: 1fr; gap: 32px; }
  .mlh-gallery-sticky { position: static; }

  .mlh-diaries-grid { grid-template-columns: 1fr; }

  .mlh-brand-story-inner { grid-template-columns: 1fr; }

  .mlh-footer-grid { grid-template-columns: 1fr 1fr; }

  .mlh-collection-banner { height: 50vh; margin: 0 16px; }
  .mlh-banner-content { padding: 32px; }

  .mlh-shop-layout { grid-template-columns: 1fr; }
  .mlh-shop-sidebar { display: none; }
  .mlh-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .mlh-newsletter-inner { flex-direction: column; text-align: center; }
  .mlh-newsletter-form { width: 100%; max-width: 400px; }
  .mlh-newsletter-form input { width: 100%; }

  .mlh-dual-buttons { grid-template-columns: 1fr; }

  .mlh-cat-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .mlh-container { padding: 0 16px; }
  .mlh-logo img { height: 38px; }
  .mlh-section { padding: 56px 0; }

  .mlh-products-grid.cols-4,
  .mlh-products-grid.cols-6 { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .mlh-footer-grid { grid-template-columns: 1fr; }

  .mlh-features-inner { gap: 20px; flex-direction: column; }
}
