@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600;700&family=Noto+Serif+JP:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --font-sans: 'Google Sans', 'Noto Serif JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Noto Serif JP', 'Google Sans', serif;
  
  /* --- 1. SINGLE SOURCE OF TRUTH (CORE VARIABLES) --- */
  
  /* Font Weight Standards */
  --font-bold: 700; /* H1 Standard: 600-700 */
  --font-medium: 600; /* H2 Standard: 500-600 */
  --font-regular: 400;

  /* Spacing Standards (8pt Grid) */
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;

  /* Shape Standards (Pill-shape) */
  --btn-radius: 999px;
  --input-radius: 999px; /* Pill shape for inputs */
  --card-radius: 8px;

  /* Color Standards */
  --color-primary: #2D5A27; /* Xanh Weme Farm */
  --color-ink: #1b1d21;
  --color-cream: #FFFFFF;
  --color-sand: #F9F9F9;
  --color-paper: #FFFFFF;
  --color-purple: #3f2f5b; /* Secondary/Accent */
  --color-berry: #d7263d;
  --border-neutral: #E0E0E0;
  
  /* Status Colors */
  --color-success: #2e7d32;
  --color-error: #d32f2f;
  --color-warning: #ed6c02;

  /* Layout & Rhythm */
  --container-width: 1200px;
  --section-gap: 80px; /* Standard Section Vertical Padding */
  --header-height: 80px;

  /* Aliases & Compat */
  --radius: var(--card-radius);
  --radius-pill: var(--btn-radius);
  --border: var(--border-neutral);
  --bg: var(--color-cream);
  --surface: var(--color-paper);
  --black: var(--color-ink);
  --muted: rgba(27, 29, 33, 0.6);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --transition: all 260ms ease;
  
  /* Legacy Spacing Aliases */
  --s-8: var(--space-8);
  --s-16: var(--space-16);
  --s-24: var(--space-24);
  --s-32: var(--space-32);
  --s-64: var(--space-64);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--color-ink);
  font-size: 16px; /* 5. TYPOGRAPHY SCALING */
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word; /* 3. Chống vỡ Layout: Text Wrapping */
  /* Reset WordPress default styles that might squeeze the layout */
  max-width: 100% !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
}

/* --- Global Form Elements (Standardized) --- */
input[type='text'],
input[type='email'],
input[type='password'],
input[type='search'],
input[type='tel'],
input[type='number'],
input[type='url'],
.woocommerce input.input-text,
select,
.woocommerce select,
textarea {
  width: 100%;
  padding: 0 16px; /* 3. COMPONENT DIMENSIONS: Form Inputs */
  height: 48px;
  border: 1px solid #E0E0E0; /* Fix Border Color: Neutral */
  border-radius: var(--input-radius); /* Pill shape */
  background: #fff;
  font-family: inherit;
  font-size: 16px !important; /* 5. Đặc tả kỹ thuật: Ngăn chặn Zoom lỗi trên iPhone */
  color: var(--color-ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea {
  height: auto;
  min-height: 120px;
  padding: 16px;
  border-radius: 24px; /* Slightly less rounded for textarea */
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2D5A27; /* Focus State: Xanh Weme Farm */
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1); /* Green shadow */
}

/* Accessibility: Focus styles */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Form Validation Feedback */
.woocommerce-invalid input,
input:not(:placeholder-shown):invalid,
textarea:not(:placeholder-shown):invalid,
select:not(:placeholder-shown):invalid {
  border-color: var(--color-error);
}

html {
  overflow-y: scroll;
  width: 100%;
  scroll-behavior: smooth;
}

/* 5. Đặc tả kỹ thuật: Đảm bảo ảnh không tràn màn hình */
img {
  max-width: 100%;
  height: auto;
}

/* Disable tap highlight to avoid background flash on press */
a,
button,
[role='button'],
input[type='button'],
input[type='submit'],
input[type='reset'],
.wl-btn,
.mo-btn {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
}

.container > *:first-child {
  margin-top: 0 !important;
}

.container > *:last-child {
  margin-bottom: 0 !important;
}

.wl-site {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  animation: wlPageIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.wl-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.wl-shell--header,
.wl-shell--content,
.wl-shell--footer {
  width: 100%;
}

.wl-shell--content {
  padding: 0;
}

.page-header {
  padding-top: 16px;
}

.woocommerce-shop .wl-shell--content,
.tax-product_cat .wl-shell--content {
  padding-top: 20px;
}

.wl-container,
.wl-woo {
  width: 100%;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* 2. GRID CONFIGURATION */
@media (min-width: 768px) {
  .wl-site {
    padding-bottom: 0;
  }
}

/* 2. GRID CONFIGURATION */
@media (min-width: 768px) {
  .wl-container,
  .wl-woo {
    max-width: 720px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .wl-container,
  .wl-woo {
    max-width: 960px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1440px) {
  .wl-container,
  .wl-woo {
    max-width: var(--container-width);
  }
}

/* Modern Organic & Playful Retro hero + sections */
.mo-main {
  background: var(--color-cream);
}

.brand-hero {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 720px; /* 4. VERTICAL RHYTHM: Hero Min-height */
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.brand-hero__content {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
  padding: clamp(60px, 8vw, 110px) clamp(1.5rem, 4vw, 3rem);
  padding-right: 2rem;
  z-index: 10;
}

.brand-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 11px;
  color: rgba(27, 29, 33, 0.65);
}

.brand-hero__content h1 {
  font-size: clamp(48px, 5vw, 56px); /* 5. TYPOGRAPHY SCALING: H1 */
  margin: 0;
  line-height: 1.2; /* H1 Line-height */
  font-weight: var(--font-bold);
}

.brand-hero__lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: rgba(27, 29, 33, 0.78);
  max-width: 520px;
}

.brand-hero__cta {
  display: flex;
  gap: 16px; /* Content to CTA Gap handled by margin/padding usually, but gap is fine here */
  margin-top: 40px; /* 4. VERTICAL RHYTHM: Content to CTA Gap */
  flex-wrap: wrap;
}

.brand-hero__cta .mo-btn {
  border-radius: var(--radius-pill); /* 3. COMPONENT DIMENSIONS */
  height: 56px; /* Large Button for Hero */
  padding: 0 32px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.brand-hero__visual {
  flex: 0 0 50%;
  max-width: 50%;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
}

.brand-hero__visual img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  box-shadow: none;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent, black 15%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%);
}

@media (max-width: 1100px) {
  .brand-hero {
    flex-direction: column;
    border-radius: 0;
    padding-bottom: 60px;
    min-height: auto;
  }

  .brand-hero__content,
  .brand-hero__visual {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .brand-hero__content {
    padding: 40px 20px;
  }

  .brand-hero__visual {
    margin-top: 0;
    position: relative;
    height: auto;
    aspect-ratio: 16/9;
    right: auto;
    top: auto;
    bottom: auto;
  }

  .brand-hero__visual img {
    border-radius: var(--radius);
    mask-image: none;
    -webkit-mask-image: none;
  }

  .brand-hero__content h1 {
    font-size: clamp(32px, 8vw, 50px);
    text-align: center;
  }

  .brand-hero__cta {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .brand-hero {
    padding-bottom: 0;
  }

  .brand-hero__visual {
    order: 2;
    position: relative;
  }

  .brand-hero__content {
    padding: 28px 20px 16px;
  }

  .brand-hero__cta {
    position: absolute;
    left: 50%;
    bottom: 48px;
    transform: translateX(-50%);
    width: min(300px, calc(100% - 48px));
    margin: 0;
    display: grid;
    gap: 12px;
    z-index: 3;
    align-items: center;
    justify-items: center;
    text-align: center;
  }

  .brand-hero__cta .mo-btn {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 12px 24px rgba(27, 29, 33, 0.12);
  }

  .brand-hero__cta .mo-btn--ghost {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(27, 29, 33, 0.25);
  }

  .brand-hero__visual::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent);
    pointer-events: none;
  }
}

.visual-categories,
.best-sellers,
.usp,
.gift-sets,
.farm-story {
  width: 100%;
  padding: 16px;
}

.toja-reel {
  width: 100%;
  padding: 16px;
}

.toja-reel__frame {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.toja-reel__frame iframe {
  width: min(320px, 100%);
  height: 570px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 640px) {
  .toja-reel__frame iframe {
    width: 100%;
    height: 520px;
  }
}

.mo-section-heading {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto 24px; /* 4. VERTICAL RHYTHM: Heading to Content Gap */
}

.mo-section-heading p {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 14px; /* Small Text */
  margin: 0;
  color: rgba(27, 29, 33, 0.6);
}

.mo-section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(32px, 4vw, 40px); /* 5. TYPOGRAPHY SCALING: H2 */
  line-height: 1.3; /* H2 Line-height */
  font-weight: var(--font-bold);
}

.visual-categories__grid,
.best-sellers__grid,
.usp__grid,
.gift-sets__content,
.farm-story__inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.visual-categories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .visual-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .visual-categories__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.visual-category-card {
  background: var(--color-paper);
  border-radius: var(--radius); /* 3. COMPONENT DIMENSIONS */
  padding: 0;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  text-align: center;
  overflow: hidden;
}

.visual-category-card__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/3;
  margin-bottom: 0;
  display: block;
}

.visual-category-card h3 {
  margin: 16px 24px 0;
  font-size: 24px; /* H3 */
  line-height: 1.4;
}

.visual-category-card p {
  margin: 0 24px 32px;
}

.best-sellers__grid {
  width: 100%;
}

.page-template-page-kham-pha .best-sellers__grid,
.page-template-page-kham-pha-php .best-sellers__grid,
.page-template-page-kien-thuc .best-sellers__grid,
.page-template-page-kien-thuc-php .best-sellers__grid,
.wl-archive .best-sellers__grid,
.blog .best-sellers__grid,
.category .best-sellers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 961px) {
  .page-template-page-kham-pha .best-sellers__grid,
  .page-template-page-kham-pha-php .best-sellers__grid,
  .page-template-page-kien-thuc .best-sellers__grid,
  .page-template-page-kien-thuc-php .best-sellers__grid,
  .wl-archive .best-sellers__grid,
  .blog .best-sellers__grid,
  .category .best-sellers__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .page-template-page-kham-pha .best-sellers__grid,
  .page-template-page-kham-pha-php .best-sellers__grid,
  .page-template-page-kien-thuc .best-sellers__grid,
  .page-template-page-kien-thuc-php .best-sellers__grid,
  .wl-archive .best-sellers__grid,
  .blog .best-sellers__grid,
  .category .best-sellers__grid {
    grid-template-columns: 1fr;
  }
}

.mo-card {
  background: var(--color-paper);
  border-radius: var(--radius); /* 3. COMPONENT DIMENSIONS */
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  min-height: 380px;
  transition: var(--transition);
}

.mo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.mo-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.mo-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mo-card__body {
  padding: 24px; /* 3. COMPONENT DIMENSIONS: Card Content Padding */
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  flex: 1;
  justify-content: space-between;
}

.mo-card__body h3 {
  margin: 0;
  font-size: 20px; /* Slightly smaller than H3 for card titles usually */
  line-height: 1.4;
}

.mo-card__body h3 a {
  text-decoration: none;
  color: inherit;
}

.mo-card__taste {
  margin: 0;
  font-style: italic;
  color: var(--color-ink);
}

.mo-card__price {
  margin: 0;
  font-weight: 700;
  color: var(--color-berry);
}

.koi-infinite-status {
  margin: 32px auto 0;
  text-align: center;
  color: var(--muted);
  min-height: 24px;
}

.koi-pagination.is-hidden {
  display: none;
}

.usp__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .usp__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .usp__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.usp-card {
  background: var(--color-paper);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  text-align: center;
  overflow: hidden;
}

.usp-card__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
}

.gift-sets__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.usp-card h3 {
  margin: 16px 24px 0;
  font-size: 24px; /* H3 */
  line-height: 1.4;
}

.usp-card p {
  margin: 0 24px 32px;
}

.gift-sets__copy h2,
.farm-story__text h2 {
  margin: 12px 0 24px;
  font-size: clamp(32px, 4vw, 40px); /* H2 */
  line-height: 1.3;
}

.gift-sets__actions,
.farm-story__actions {
  margin-top: 32px;
}

.gift-sets__copy p {
  max-width: 520px;
}

.gift-sets__visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: block;
}

.toja-gallery {
  width: 100%;
  padding: var(--section-gap) 16px;
}

.toja-gallery__grid {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  column-count: 4;
  column-gap: 16px;
}

.toja-gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-paper);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 16px;
}

.toja-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1200px) {
  .toja-gallery__grid {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .toja-gallery__grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .toja-gallery__grid {
    column-count: 1;
  }
}

.mo-section-heading__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 14px;
  margin: 0;
  color: rgba(27, 29, 33, 0.6);
}

.mo-btn {
  border: none;
  height: 48px; /* Medium (Default) */
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: var(--font-medium);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 48px; /* 1. Tiêu chuẩn Touch Target */
}

.mo-btn--primary {
  background: var(--color-purple);
  color: var(--color-cream);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 4. Loại bỏ hiệu ứng Hover trên Mobile */
@media (hover: hover) {
  .mo-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 47, 91, 0.3);
    filter: brightness(1.1);
  }
}

.mo-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.mo-btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(27, 29, 33, 0.35);
  color: var(--color-ink);
  box-shadow: none;
}

@media (hover: hover) {
  .mo-btn--ghost:hover {
    border-color: var(--color-purple);
    color: var(--color-purple);
    background: rgba(63, 47, 91, 0.05);
    transform: translateY(-2px);
  }
}

@media (min-width: 960px) {
  /* Sync Gift Sets & Farm Story with Brand Hero */
  .gift-sets,
  .farm-story {
    padding: 0;
  }

  .gift-sets__content,
  .farm-story__inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: stretch;
    min-height: 600px;
  }

  .gift-sets__copy,
  .farm-story__text {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
  }

  .gift-sets__visual,
  .farm-story__visual {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    height: auto;
    min-height: 600px;
    order: 0;
  }

  .gift-sets__visual img,
  .farm-story__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: none;
    position: absolute;
    top: 0;
    left: 0;
  }

  /* Gift Sets: Image Left, Text Right */
  .gift-sets__visual {
    order: -1;
  }
  .gift-sets__copy {
    padding: 0 8% 0 40px;
  }
  .gift-sets__visual img {
    mask-image: linear-gradient(to left, transparent, black 15%);
    -webkit-mask-image: linear-gradient(to left, transparent, black 15%);
  }

  /* Farm Story: Text Left, Image Right */
  .farm-story__text {
    padding: 0 40px 0 8%;
  }
  .farm-story__visual img {
    mask-image: linear-gradient(to right, transparent, black 15%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%);
  }
}

.farm-story__visual .toja-magazine img {
  position: static;
  mask-image: none;
  -webkit-mask-image: none;
}

@media (max-width: 960px) {
  .visual-categories__grid,
  .best-sellers__grid,
  .usp__grid,
  .gift-sets__content,
  .farm-story__inner,
  .mo-section-heading {
    width: auto;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* --- Header & Navigation --- */
.wl-header {
  position: relative;
  z-index: 500;
  width: 100%;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(31, 29, 25, 0.06);
}

.wl-shell--header {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .wl-shell--header {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .wl-shell--header {
    padding: 0 32px;
  }
}

.wl-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.wl-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
}

.wl-logo a {
  display: flex;
  align-items: center;
  height: 100%;
}

.wl-logo img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

.wl-header__right {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.wl-nav {
  display: none; /* Hidden on mobile by default */
}

@media (min-width: 961px) {
  .wl-nav {
    display: flex;
    align-items: center;
  }
}

.wl-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wl-menu > li {
  position: relative;
}

.wl-menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-weight: var(--font-medium);
  color: var(--color-ink);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.wl-menu a:hover {
  border-color: transparent;
  color: var(--color-purple);
}

/* --- Mega Menu Styles --- */
.wl-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: max-content;
  min-width: 260px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
}

.wl-has-mega-menu:hover .wl-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.wl-mega-menu__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.wl-has-mega-menu > .sub-menu {
  position: absolute;
  top: calc(100% + 32px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 520px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0px;
  padding-left: 32px;
  pointer-events: none;
}

.wl-has-mega-menu > .sub-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -32px;
  height: 32px;
}

.wl-has-mega-menu:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%);
  pointer-events: auto;
}

.wl-has-mega-menu > .sub-menu > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wl-has-mega-menu > .sub-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-ink);
  text-decoration: none;
}

.wl-has-mega-menu > .sub-menu > li > .sub-menu {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  padding: 0 0 0 8px;
  box-shadow: none;
  border: 0;
  list-style: none;
}

.wl-has-mega-menu > .sub-menu > li > .sub-menu a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.wl-has-mega-menu > .sub-menu > li > .sub-menu a:hover {
  color: var(--color-purple);
}

.wl-mega-menu__container--groups {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
}

.wl-mega-group {
  border-radius: 12px;
  padding: 4px 0;
}

.wl-mega-group__title {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-ink);
  cursor: pointer;
}

.wl-mega-group__title::-webkit-details-marker {
  display: none;
}

.wl-mega-group__title::marker {
  content: '';
}

.wl-mega-group__icon {
  font-size: 18px;
  color: var(--muted);
}

.wl-mega-group__children {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 8px 8px;
}

.wl-mega-child {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.wl-mega-child:hover {
  color: var(--color-purple);
}

.wl-mega-child--all {
  color: var(--color-ink);
  font-weight: 600;
}

.wl-mega-item {
  display: flex !important;
  flex-direction: column;
  gap: 12px !important;
  text-decoration: none;
  padding: 12px !important;
  border-radius: 12px !important;
  height: auto !important;
  transition: background 0.2s;
  align-items: flex-start !important;
}

.wl-mega-item:hover {
  background: var(--color-sand);
  color: var(--color-ink) !important;
}

.wl-mega-item__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wl-mega-item__title {
  font-weight: 700;
  color: var(--color-ink);
  font-size: 15px;
}

.wl-mega-item__count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.wl-mega-toggle {
  display: none;
}

.wl-mega-parent-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--color-ink);
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
}

@media (max-width: 960px) {
  .wl-mega-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    color: var(--color-ink);
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
    margin-left: auto;
  }

  .wl-menu li.wl-has-mega-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .wl-menu li.wl-has-mega-menu > a {
    flex: 1;
    width: auto;
    padding-right: 8px;
  }

  .wl-mega-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    background: transparent;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0 !important;
    transform: translateY(-6px) !important;
    transition: max-height 0.4s ease-out, padding 0.4s ease, opacity 0.25s ease, transform 0.3s ease;
  }

  .wl-has-mega-menu.is-active .wl-mega-menu {
    max-height: 1000px;
    padding: 0 0 16px 16px;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  .wl-has-mega-menu.is-active .wl-mega-toggle {
    transform: rotate(180deg);
  }

  .wl-has-mega-menu > .sub-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    background: transparent;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0 !important;
    transform: translateY(-6px) !important;
    transition: max-height 0.4s ease-out, padding 0.4s ease, opacity 0.25s ease, transform 0.3s ease;
    pointer-events: auto;
  }

  .wl-has-mega-menu.is-active > .sub-menu {
    max-height: 1000px;
    padding: 0 0 16px 16px;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .wl-has-mega-menu > .sub-menu > li > .sub-menu {
    display: flex;
    padding-left: 16px;
  }

  .wl-has-mega-menu > .sub-menu > li {
    position: relative;
  }

  .wl-has-mega-menu > .sub-menu > li > a {
    padding: 6px 0;
  }

  .wl-mega-menu__container--groups {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wl-mega-group {
    padding: 0;
  }

  .wl-mega-group__children {
    display: none;
    padding: 0 0 8px 16px;
  }

  .wl-mega-group[open] > .wl-mega-group__children {
    display: flex;
  }

  .wl-mega-group__icon {
    transition: transform 0.2s ease;
  }

  .wl-mega-group[open] .wl-mega-group__icon {
    transform: rotate(180deg);
  }
}

@media (min-width: 961px) {
  .wl-mega-parent-toggle {
    display: none;
  }

  .wl-mega-group__children {
    display: flex;
  }

  .wl-mega-group__icon {
    display: none;
  }

  .wl-mega-group__title {
    cursor: default;
  }
}

.wl-mobile-only {
  display: none !important;
}

.wl-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wl-header__actions-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wl-action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.wl-action-link:hover {
  color: var(--color-purple);
  background: rgba(63, 47, 91, 0.05);
}

.wl-cart-count {
  background: var(--color-berry);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  height: 20px;
  min-width: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.wl-search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 16px;
  width: 320px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wl-search-form:focus-within {
  border-color: var(--color-purple);
  box-shadow: 0 4px 12px rgba(63, 47, 91, 0.1);
}

.wl-search-field {
  border: none !important;
  background: transparent !important;
  height: 40px !important;
  flex: 1;
  font-size: 14px !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.wl-search-form .wl-btn {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wl-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1000;
}

.wl-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-ink);
  transition: all 0.3s ease;
  margin: 0 auto;
}

.wl-menu-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.wl-menu-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.wl-mobile-actions {
  display: none;
}

@media (max-width: 960px) {
  body.wl-menu-open .wl-header {
    border-bottom-color: transparent;
    box-shadow: none;
  }

  body.wl-menu-open .wl-header,
  body.wl-menu-open .wl-shell--header,
  body.wl-menu-open .wl-nav {
    background: var(--color-cream);
  }

  body.wl-menu-open .wl-nav.is-open {
    box-shadow: none;
  }

  .wl-mobile-only {
    display: block !important;
  }

  .wl-header__actions {
    display: none;
  }

  /* Fix: Ensure header right doesn't block clicks or mess up layout */
  .wl-header__right {
    display: contents;
  }

  .wl-header__inner {
    flex-wrap: wrap !important;
    gap: var(--s-16) !important;
    height: auto;
    min-height: var(--header-height);
    padding-left: 16px;
    padding-right: 16px;
  }

  .wl-menu-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .wl-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-cream);
    padding: 0 24px;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0; /* Remove gap so menus touch */
    display: flex;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
      max-height 0.4s ease,
      opacity 0.25s ease,
      padding 0.3s ease,
      box-shadow 0.3s ease,
      transform 0.3s ease,
      visibility 0s linear 0.4s;
    z-index: 999;
  }

  .wl-nav.is-open {
    padding: 24px;
    border-bottom-color: var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      max-height 0.4s ease,
      opacity 0.25s ease,
      padding 0.3s ease,
      box-shadow 0.3s ease,
      transform 0.3s ease,
      visibility 0s linear 0s;
  }

  .wl-menu {
    flex-direction: column;
    gap: 0;
  }

  .wl-menu li {
    border-bottom: none;
  }

  .wl-menu a {
    width: 100%;
    justify-content: flex-start;
    padding: 0;
    border-radius: 0;
  }

  .wl-menu a:hover {
    background: transparent;
  }

  .wl-mobile-search-box {
    padding-top: 16px;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .wl-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
  }
  
  .wl-search-form {
    width: 100%;
  }
  
  .wl-header__actions-top {
    justify-content: space-between;
  }
}

.wl-hero {
  padding: 60px 0 20px;
}

.wl-hero__eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.wl-hero__title {
  margin: 0 0 8px;
  font-size: clamp(48px, 5vw, 56px); /* H1 */
  line-height: 1.2;
  font-weight: var(--font-bold);
}

.wl-hero__subtitle {
  color: var(--muted);
  margin: 0;
  max-width: 640px;
}

.wl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 24px; /* Breadcrumb to Heading: 24px */
  font-size: 0.9rem;
  color: var(--muted);
}

.wl-breadcrumb a {
  color: var(--muted);
}

.wl-breadcrumb .sep {
  color: var(--muted);
  opacity: 0.3;
}

.wl-grid {
  display: grid;
  gap: 24px;
}

.wl-grid--blog {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 700px) {
  .wl-grid--blog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .wl-grid--blog {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.wl-blog-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius); /* 8px */
  background: var(--surface);
  transition: var(--transition);
  height: 100%;
}

@media (hover: hover) {
  .wl-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
  }
}

.wl-blog-card__thumb img,
.wl-blog-card__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius); /* 8px */
  background: #f5f5f5;
}

.wl-blog-card__meta {
  color: var(--muted);
  font-size: 13px;
}

.wl-blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.wl-blog-card__title {
  margin: 4px 0;
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2em;
}

.wl-blog-card__excerpt {
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2em;
}

.wl-blog-card__body .wl-link {
  margin-top: auto;
}

/* --- Buttons (Shared) --- */
.wl-btn,
.woocommerce .button,
.woocommerce button.button,
.comment-form input[type='submit'],
input#submit.submit,
.wpcf7 input[type='submit'],
.wpcf7 button,
.wpcf7 .wpcf7-submit {
  border: none;
  height: 48px; /* Medium */
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: var(--font-medium);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px; /* 1. Tiêu chuẩn Touch Target */
}

.wl-btn--primary,
.woocommerce .button.button-primary,
.woocommerce .button.alt,
.comment-form input[type='submit'],
input#submit.submit,
.wpcf7 input[type='submit'],
.wpcf7 button,
.wpcf7 .wpcf7-submit {
  background: var(--color-purple);
  color: var(--color-cream);
  box-shadow: 0 4px 12px rgba(63, 47, 91, 0.2);
}

.wl-btn--outline {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

.wl-featured-more .wl-btn {
  background: transparent;
  border: 0;
  box-shadow: none;
  width: 40px;
  height: 40px;
  padding: 0;
}

@media (hover: hover) {
  .wl-btn--primary:hover,
  .woocommerce .button.button-primary:hover,
  .woocommerce .button.alt:hover,
  .comment-form input[type='submit']:hover,
  input#submit.submit:hover,
  .wpcf7 input[type='submit']:hover,
  .wpcf7 button:hover,
  .wpcf7 .wpcf7-submit:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(63, 47, 91, 0.3);
    transform: translateY(-2px);
  }
}

@media (hover: hover) {
  .wl-btn--outline:hover {
    border-color: var(--color-purple);
    color: var(--color-purple);
  }
}

.wl-btn:active,
.woocommerce .button:active,
.comment-form input[type='submit']:active,
input#submit.submit:active,
.wpcf7 input[type='submit']:active,
.wpcf7 button:active,
.wpcf7 .wpcf7-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

.wl-section {
  padding: var(--section-gap) 16px;
}

.wl-page,
.wl-archive,
.wl-single,
.wl-404 {
  padding: var(--section-gap) 16px;
}

.wl-single {
  padding-left: 0;
  padding-right: 0;
}

.wl-single .wl-container,
.wl-single .wl-woo {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .wl-single .wl-container,
  .wl-single .wl-woo {
    max-width: 720px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .wl-single .wl-container,
  .wl-single .wl-woo {
    max-width: 960px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1440px) {
  .wl-single .wl-container,
  .wl-single .wl-woo {
    max-width: var(--container-width);
  }
}

.wl-archive__header h1 {
  margin: 0 0 4px;
}

.wl-archive__description {
  margin: 0 0 20px;
  color: var(--muted);
}

/* --- Search Results --- */
.wl-search {
  padding: var(--section-gap) 0;
}

.wl-search__hero {
  padding-bottom: 32px;
}

.wl-search__hero-inner {
  display: grid;
  gap: 24px;
  padding: 32px;
  border-radius: calc(var(--radius) * 2);
  border: 1px solid var(--border);
  background:
    radial-gradient(140px 140px at 85% 20%, rgba(63, 47, 91, 0.12), transparent 60%),
    radial-gradient(180px 180px at 0% 100%, rgba(45, 90, 39, 0.12), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.wl-search__eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--muted);
}

.wl-search__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.wl-search__subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 520px;
}

.wl-search__summary {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wl-search__count,
.wl-search__query {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--color-sand);
}

.wl-search__query {
  font-weight: var(--font-medium);
  color: var(--color-purple);
}

.wl-search__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wl-search__field {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wl-search__input {
  height: 56px;
  padding: 0 18px;
}

.wl-search__form .wl-btn {
  height: 56px;
  min-height: 56px;
  white-space: nowrap;
}

.wl-search__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.wl-search__chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--color-sand);
  color: var(--color-ink);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: var(--transition);
}

@media (hover: hover) {
  .wl-search__chip:hover {
    border-color: var(--color-purple);
    color: var(--color-purple);
    background: var(--surface);
  }
}

.wl-search__results {
  padding-top: 24px;
}

.wl-search__results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.wl-search__results-title {
  margin: 0;
  font-size: 20px;
}

.wl-search__results-meta {
  color: var(--muted);
  font-size: 14px;
}

.wl-search__empty {
  text-align: center;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: var(--color-sand);
}

.wl-search__empty h2 {
  margin-top: 0;
}

.wl-search__tips {
  list-style: disc;
  padding-left: 20px;
  margin: 16px auto 0;
  max-width: 520px;
  text-align: left;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.wl-search__actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 960px) {
  .wl-search__hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

@media (max-width: 720px) {
  .wl-search__hero-inner {
    padding: 24px;
  }

  .wl-search__field {
    flex-direction: column;
    align-items: stretch;
  }
}

.wl-pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}

.wl-pagination .page-link a,
.wl-pagination .page-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px; /* Touch Target: 48px */
  height: 48px;    /* Touch Target: 48px */
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.wl-pagination .page-link .current {
  background: var(--color-purple);
  color: var(--color-cream);
  border-color: var(--color-purple);
}

.wl-legal {
  padding: 40px 0 56px;
}

.wl-legal__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.wl-legal__header {
  text-align: center;
  margin-bottom: 20px;
}

.wl-legal__header h1 {
  margin: 12px 0 10px;
  font-size: clamp(32px, 4vw, 40px); /* H2 size for legal header */
  line-height: 1.3;
  font-weight: var(--font-bold);
}

.wl-legal__header p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 680px;
}

.wl-legal__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #1f2937;
}

.wl-legal__body h2 {
  margin: 6px 0 8px;
  font-size: 20px;
}

.wl-legal__body ul {
  padding-left: 20px;
  margin: 8px 0 12px;
  display: grid;
  gap: 6px;
}

.wl-legal__body ul ul {
  margin-top: 6px;
}

.wl-legal__meta {
  color: var(--muted);
  font-size: 14px;
}

.wl-legal__contact a {
  color: var(--black);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.wemeluxury-legal {
  padding: 40px 0 56px;
}

.wemeluxury-legal__container {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.wemeluxury-legal__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 18px;
}

.wemeluxury-legal__card > p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.wemeluxury-legal__content,
.wemeluxury-legal__sections {
  display: grid;
  gap: 16px;
  color: var(--black);
}

.wemeluxury-legal__content h2,
.wemeluxury-legal__sections h2 {
  margin: 0;
  font-size: 24px; /* H3 */
  line-height: 1.4;
}

.wemeluxury-legal__content p,
.wemeluxury-legal__sections p {
  margin: 0 0 10px;
  line-height: 1.7;
}

.wemeluxury-legal__content ul,
.wemeluxury-legal__sections ul {
  padding-left: 20px;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}

.wl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wl-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

@media (hover: hover) {
  .wl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }
}

.wl-single__title,
.wl-page__title {
  margin: 6px 0 12px;
  font-size: clamp(32px, 4vw, 40px); /* H2 */
  line-height: 1.3;
  font-weight: var(--font-bold);
}

.wl-single__meta {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wl-single__dot {
  opacity: 0.4;
}

.wl-single__categories {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.wl-single__categories a {
  color: inherit;
  text-decoration: none;
}

.wl-single__categories a:hover {
  color: var(--color-purple);
}

.wl-single__sep {
  margin: 0 8px;
  opacity: 0.4;
}

.wl-single__thumb img {
  width: 100%;
  border-radius: var(--radius);
}

.wl-single__article {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.wl-single__content p {
  color: var(--muted);
  line-height: 1.8;
}

.wl-single__content img,
.wl-single__content video,
.wl-single__content iframe {
  border-radius: var(--radius);
}

.wl-single__content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: clamp(22px, 2.2vw, 28px);
}

.wl-single__content h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 20px;
}

.wl-single__content ul,
.wl-single__content ol {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.wl-single__content a {
  color: var(--color-purple);
  text-decoration: none;
}

.wl-single__content a:hover {
  text-decoration: underline;
}

.wl-single__content blockquote {
  margin: 24px 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--border);
  background: none;
  color: var(--muted);
  border-radius: 0;
  font-style: italic;
}

/* --- Single Post Layout + TOC --- */
.wl-single__layout {
  display: grid;
  grid-template-columns: minmax(240px, 30%) minmax(0, 70%);
  gap: 32px;
  align-items: start;
}

@media (min-width: 961px) {
  body.single .wl-site {
    animation: none;
  }

  .wl-single.fade-in-up {
    transform: none;
  }

  .wl-single.fade-in-up.is-visible {
    transform: none;
  }
}

.wl-single__toc {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  height: fit-content;
  align-self: start;
}

.wl-single__toc-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  font-weight: var(--font-medium);
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}

.wl-single__toc-toggle::after {
  font-family: 'Material Symbols Outlined';
  content: 'expand_more';
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.wl-single__toc.is-open .wl-single__toc-toggle::after {
  transform: rotate(180deg);
}

@media (min-width: 1025px) {
  .wl-single__toc {
    position: sticky;
  }
}

.wl-single__toc-title {
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: var(--font-medium);
}

.wl-single__toc-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - var(--header-height) - 140px);
  overflow-y: auto;
  padding-right: 4px;
}

.wl-single__toc-link {
  display: block;
  text-decoration: none;
  color: var(--color-ink);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 14px;
  transition: var(--transition);
}

.wl-single__toc-link--h1 {
  font-weight: 700;
}

.wl-single__toc-link--h2 {
  padding-left: 18px;
  font-weight: 600;
}

.wl-single__toc-link--h3 {
  padding-left: 30px;
  font-size: 13px;
  color: var(--muted);
}

@media (hover: hover) {
  .wl-single__toc-link:hover {
    background: var(--color-sand);
    color: var(--color-purple);
  }
}

.wl-single__toc-link.is-active {
  background: rgba(63, 47, 91, 0.08);
  color: var(--color-purple);
}

.wl-single__content h1,
.wl-single__content h2,
.wl-single__content h3 {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

@media (max-width: 960px) {
  .wl-single__layout {
    grid-template-columns: 1fr;
  }

  .wl-single__toc {
    position: static;
    margin-bottom: 24px;
  }

  .wl-single__toc-title {
    display: none;
  }

  .wl-single__toc-toggle {
    display: inline-flex;
  }

  .wl-single__toc-nav {
    display: flex;
    margin-top: 0;
    max-height: 0;
    padding-top: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.4s ease-out, padding 0.4s ease, opacity 0.2s ease;
  }

  .wl-single__toc.is-open .wl-single__toc-nav {
    max-height: 60vh;
    padding-top: 12px;
    opacity: 1;
    pointer-events: auto;
  }
}

.wl-single__toc.is-empty {
  display: none;
}


.wl-related-posts {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.wl-related-posts__header h3 {
  margin: 0 0 20px;
  font-size: 20px;
}

@media (max-width: 640px) {
  .wl-single__article {
    padding: 0px;
  }
}

/* --- Contact Page --- */
.page-template-page-lien-he-php .best-sellers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.wl-contact-card .mo-card__body {
  justify-content: flex-start;
  gap: 16px;
}

.wl-contact-card h3 {
  margin: 0;
  font-size: 20px;
}

.wl-contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.wl-contact__list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--color-ink);
}

.wl-contact__list a {
  color: inherit;
  text-decoration: none;
}

.wl-contact__list a:hover {
  color: var(--color-purple);
}

.wl-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.wl-contact__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wl-contact__socials a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.wl-contact__socials a:hover {
  color: var(--color-purple);
}

.wl-contact__note {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .page-template-page-lien-he-php .best-sellers__grid {
    grid-template-columns: 1fr;
  }
}

.wl-404 {
  text-align: center;
  padding: 80px 20px;
}

.wl-404 h1 {
  font-size: clamp(60px, 10vw, 120px);
  color: var(--color-purple);
  line-height: 1;
  margin: 0 0 var(--space-24);
}

.wl-404 p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
}

html.no-scroll,
body.no-scroll {
  overflow: hidden;
}

@media (max-width: 640px) {
  .wl-header__actions {
    gap: 8px;
  }
}

/* --- About Page Styles --- */
.about-hero {
  background: var(--color-mustard);
  padding: 80px 0 60px;
  text-align: center;
}

.about-hero__content {
  max-width: 800px;
  margin: 0 auto;
}

.about-hero h1 {
  font-size: clamp(48px, 5vw, 56px); /* H1 */
  line-height: 1.2;
  margin: 12px 0 24px;
}

.about-hero__lead {
  font-size: 1.2rem;
  color: rgba(27, 29, 33, 0.8);
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-grid__visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.about-values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.value-card {
  background: var(--color-paper);
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

@media (hover: hover) {
  .value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
  }
}

.value-card span {
  font-size: 48px;
  color: var(--color-leaf);
  margin-bottom: 16px;
  display: block;
}

/* --- Animation Utilities --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes wlPageIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js-parallax {
  will-change: transform;
}

/* --- Footer --- */
.wl-footer {
  position: relative;
  background: var(--bg);
  color: var(--color-ink);
  padding: 64px 0 32px; /* Vertical Rhythm */
  border-top: none;
}

.wl-shell--footer {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .wl-shell--footer {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .wl-shell--footer {
    padding: 0 32px;
  }
}

.wl-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px; /* 8pt grid */
}

.wl-footer__grid h4 {
  color: var(--color-ink);
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: var(--font-bold);
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wl-footer__brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wl-footer__logo img {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
}

.wl-footer__brand-title {
  margin: 0;
  font-size: 18px;
  font-weight: var(--font-bold);
}

.wl-footer__description {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.wl-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wl-footer__menu a {
  color: var(--muted);
  font-weight: var(--font-medium);
  transition: var(--transition);
  text-decoration: none;
  font-size: 15px;
}

.wl-footer__menu a:hover {
  color: var(--color-purple);
}

.wl-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wl-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.wl-footer__contact-item .wl-icon,
.wl-footer__contact-item .material-symbols-outlined {
  font-size: 20px;
  color: var(--color-purple);
}

.wl-footer__bottom {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* --- Floating Contact Button (Zalo OA) --- */
.wl-floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: grid;
  gap: 12px;
}

.wl-floating-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.wl-floating-button img {
  width: 56px;
  height: 56px;
  display: block;
}

.wl-floating-button--zalo {
  animation: wlZaloPulse 4.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes wlZaloPulse {
  0%,
  70%,
  100% {
    transform: translateY(0) scale(1);
  }
  75% {
    transform: translateY(-2px) scale(1.03);
  }
  80% {
    transform: translateY(0) scale(1.01);
  }
  85% {
    transform: translateY(-1px) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wl-floating-button--zalo {
    animation: none;
  }
}

@media (max-width: 640px) {
  .wl-floating-buttons {
    right: 16px;
    bottom: 16px;
  }

  .wl-floating-button img {
    width: 52px;
    height: 52px;
  }
}

/* --- Contact Icons Utility --- */
.wl-contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.wl-contact-line .material-symbols-outlined {
  color: var(--color-purple);
  font-size: 20px;
  flex-shrink: 0;
}

/* --- Mobile Edge Spacing (Single 16px) --- */
@media (max-width: 960px) {
  /* Avoid double padding on nested containers */
  .wl-woo .wl-woo,
  .wl-woo .wl-container,
  .wl-container .wl-woo,
  .wl-container .wl-container {
    padding-left: 0;
    padding-right: 0;
  }

  /* Sections that already have edge padding should not re-add it on child wrappers */
  :is(.wl-woo, .wl-container, .best-sellers, .visual-categories, .usp, .gift-sets, .farm-story, .toja-reel, .toja-gallery)
  :is(.mo-section-heading, .visual-categories__grid, .best-sellers__grid, .usp__grid, .gift-sets__content, .farm-story__inner, .toja-gallery__grid) {
    padding-left: 0;
    padding-right: 0;
  }

  /* Header: rely on shell padding only */
  .wl-header__inner {
    padding-left: 0;
    padding-right: 0;
  }

  /* Mobile menu aligns with global 16px edge */
  .wl-nav {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
  }
}

@media (max-width: 640px) {
  .brand-hero__content {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
  }
}

/* --- Unified Corner Radius --- */
img,
video,
iframe {
  border-radius: 0;
}

/* Exception: hero parallax image stays square */
.brand-hero__visual img.js-parallax {
  border-radius: 0;
}
