/* public/assets/css/app.css */


:root {
  --color-primary-light:    #e8a0a0;
  --color-primary: #c97878;
  --color-primary-bg:   #f9ede8;
  --color-secondary:    #8aad95;
  --color-white: #ffffff;
  --color-bg:   #ffffff;
  --color-bg-dark: #1a1a1a;
  --color-text:    #3d2c2c;
  --color-text-muted:   #8a7570;
  --color-border:  #ede5e0;
  --shadow:  0 2px 20px rgba(61,44,44,.07);
  --radius:  14px;
  --font-heading: "Noto Sans Thai", sans-serif;
  --font-body: "Sarabun", sans-serif;
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: clip;
  max-width: 100%;
}
h1,h2,h3,.display-font { font-family: var(--font-heading); }
p { font-family: var(--font-body); font-size: 1rem }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: .2s; }

/* ── Announcement Bar ─────────────────────────────────── */
.announce-bar {
  background: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 16px;
  text-align: center;
}
.announce-text { margin: 0; font-size: 13px; font-weight: 500; color: #998888; letter-spacing: .01em; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  z-index: 1030;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(61,44,44,.08); }

.header-main { padding: 0; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
  position: relative;
}

/* Left */
.header-left { display: flex; align-items: center; gap: 8px; flex: 1; }
.header-hamburger {
  background: none; border: none; color: var(--color-text);
  cursor: pointer; padding: 8px; display: flex; align-items: center;
  border-radius: 8px; transition: background .15s;
}
.header-hamburger:hover { background: var(--color-primary-bg); }

/* Desktop nav (centered absolutely) */
.header-nav {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 4px;
}
.header-nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 15px; font-weight: 500; color: var(--color-text);
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  transition: background .15s, color .15s;
}
.header-nav-link:hover { background: var(--color-primary-bg); color: var(--color-primary); }

/* Mega menu */
.header-nav-item { position: relative; }
.header-mega {
  position: absolute; top: calc(100% + 10px); left: 0;
  transform: translateY(-8px);
  background: #fff; border: 1px solid var(--color-border);
  border-radius: 18px; box-shadow: 0 20px 60px rgba(61,44,44,.15);
  min-width: 400px; z-index: 200; overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.header-nav-item.open .header-mega {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
/* Chevron rotates when open */
.mega-chevron { transition: transform .22s; }
.header-nav-item.open .mega-chevron { transform: rotate(180deg); }

/* Mega head */
.header-mega-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--color-border);
}
.header-mega-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--color-text-muted);
}
.header-mega-all {
  font-size: 13px; font-weight: 600; color: var(--color-primary);
  text-decoration: none; transition: opacity .15s;
}
.header-mega-all:hover { opacity: .7; }

/* Category grid */
.header-mega-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px; }
.header-mega-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; font-size: 14px; font-weight: 500;
  color: var(--color-text); text-decoration: none;
  border-radius: 8px; transition: background .15s, color .15s;
}
.header-mega-link:hover { background: var(--color-primary-bg); color: var(--color-primary); }
.header-mega-arrow {
  opacity: 0; color: var(--color-primary); flex-shrink: 0;
  transition: opacity .15s, transform .15s;
}
.header-mega-link:hover .header-mega-arrow { opacity: 1; transform: translateX(2px); }

/* Mega footer CTA */
.header-mega-foot {
  padding: 12px 18px 14px; border-top: 1px solid var(--color-border);
  background: #faf8f6;
}
.header-mega-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--color-text); color: #fff; border-radius: 10px;
  padding: 11px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background .2s;
}
.header-mega-cta:hover { background: var(--color-primary); color: #fff; }

/* Logo (left) */
.header-logo {
  text-decoration: none; display: flex; align-items: center;
}
.header-logo-text {
  font-family: var(--font-heading);
  font-size: 1.45rem; font-weight: 600; color: var(--color-text);
  letter-spacing: -.3px; white-space: nowrap;
}

/* Right actions */
.header-actions { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: flex-end; }
.header-action-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text); text-decoration: none;
  transition: background .15s, color .15s;
}
.header-action-btn:hover { background: var(--color-primary-bg); color: var(--color-primary); }
.header-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--color-primary); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 17px; height: 17px;
  border-radius: 99px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.header-badge:empty { display: none; }

/* User button */
.header-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--color-border);
  border-radius: 30px; padding: 6px 14px 6px 6px;
  cursor: pointer; transition: .15s;
  font-family: var(--font-body);
}
.header-user-btn:hover { border-color: var(--color-primary); background: var(--color-primary-bg); }
.header-user-btn::after { display: none !important; }
.header-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.header-avatar-init {
  width: 30px; height: 30px; border-radius: 50%; background: var(--color-primary);
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.header-user-name { font-size: 14px; font-weight: 500; color: var(--color-text); }
.header-login-btn {
  display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 600; color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: 30px;
  padding: 8px 18px; text-decoration: none; transition: .15s; white-space: nowrap;
}
.header-login-btn:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); }

/* Dropdown */
.header-dropdown { border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(61,44,44,.1); min-width: 230px; padding: 8px; }
.header-dropdown .dropdown-item { border-radius: 8px; font-size: 14px; padding: 10px 12px; display: flex; align-items: center; }
.header-dropdown .dropdown-item:hover { background: var(--color-primary-bg); color: var(--color-text); }
.header-dropdown-user { padding: 12px 12px 14px; }
.header-dropdown-name { font-weight: 600; font-size: 15px; color: var(--color-text); }
.header-dropdown-email { font-size: 13px; color: var(--color-text-muted); margin-top: 3px; }

/* Search bar slide-down */
.header-search-bar { overflow: hidden; max-height: 0; transition: max-height .3s ease, padding .3s ease; }
.header-search-bar.is-open { max-height: 76px; padding: 10px 0 14px; }
.header-search-form {
  display: flex; align-items: center; gap: 12px;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: 12px; padding: 11px 16px;
}
.header-search-form svg { color: var(--color-text-muted); flex-shrink: 0; }
.header-search-form input {
  flex: 1; border: none; background: none; outline: none;
  font-family: var(--font-body); font-size: 15px; color: var(--color-text);
}
.header-search-form button[type="submit"] {
  background: var(--color-text); border: none; border-radius: 8px;
  color: #fff; font-size: 14px; font-weight: 600; padding: 7px 18px;
  cursor: pointer; transition: background .15s; font-family: var(--font-body);
}
.header-search-form button[type="submit"]:hover { background: var(--color-primary); }
.header-search-close {
  background: none; border: none; color: var(--color-text-muted);
  cursor: pointer; padding: 6px; display: flex; align-items: center; transition: color .15s;
}
.header-search-close:hover { color: var(--color-text); }

/* Bootstrap overrides for dropdowns in header */
.dropdown-menu { border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.dropdown-item { font-size: 13px; padding: 8px 14px; }
.dropdown-item:hover { background: var(--color-primary-bg); }

/* ── Main & Footer ────────────────────────────────────── */
.main-content { min-height: 70vh; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--color-bg-dark); color: #b0a0a0; margin-top: 0; }

/* ── Background Color ───────────────────────────────────────────── */
.bg-white { background-color: var(--color-white)}

/* Trust strip */
.footer-trust-strip { background: var(--color-primary-bg); border-top: 1px solid var(--color-border); }
.footer-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; }
.footer-trust-item { display: flex; align-items: flex-start; gap: 14px; }
.footer-trust-icon { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-primary); flex-shrink: 0; }
.footer-trust-title { font-size: 13px; font-weight: 700; color: var(--color-text); margin-bottom: 2px; }
.footer-trust-sub { font-size: 12px; color: var(--color-text-muted); }
@media (max-width: 767px) {
  .footer-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 20px 0; }
}

/* Main footer area */
.footer-main { padding: 64px 0 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo-img { display: block; }

/* Payment badges */
.footer-pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-pay-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #998888; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 5px 10px; }

/* Upper (legacy) */
.footer-upper { padding: 64px 0 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { font-family: var(--font-heading); color: #fff; font-size: 1.25rem; }
.footer-desc { font-size: 13px; color: #998888; line-height: 1.8; margin-bottom: 20px; }
.footer-heading { font-family: var(--font-heading); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #998888; font-size: 13px; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--color-primary-light); }

/* Contact list */
.footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #998888; }
.footer-contact li i { flex-shrink: 0; margin-top: 2px; color: var(--color-primary-light); }

/* Newsletter */
.footer-subscribe {
  display: flex; align-items: center; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); border-radius: 30px;
  overflow: hidden; padding: 4px 4px 4px 16px;
}
.footer-subscribe input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: 13px; min-width: 0;
}
.footer-subscribe input::placeholder { color: #776666; }
.footer-subscribe button {
  background: var(--color-primary); border: none; border-radius: 24px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0; cursor: pointer; transition: background .2s;
}
.footer-subscribe button:hover { background: var(--color-primary-dark, #b06060); }

/* Social icons */
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: #998888; text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.footer-social:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* Bottom bar */
.footer-bottom { padding: 18px 0; background: rgba(0,0,0,.25); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: 12px; color: #665555; margin: 0; }
@media (max-width: 576px) {
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer-upper { padding: 48px 0 36px; }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f9ede8 0%, #f0e6f6 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(249,237,232,.92) 0%, rgba(240,230,246,.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 100px 0 80px;
}
.hero-tag {
  display: inline-block;
  background: var(--color-primary-light);
  color: #fff;
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; color: var(--color-text); }
.hero p { font-size: 1.1rem; color: var(--color-text-muted); max-width: 480px; }

@media (max-width: 991.98px) {
  .hero {
    min-height: 70vh;
    background-position: center top;
  }
  .hero-overlay {
    background: linear-gradient(160deg, rgba(249,237,232,.95) 0%, rgba(240,230,246,.88) 100%);
  }
  .hero-content {
    padding: 80px 0 60px;
  }
}

@media (max-width: 575.98px) {
  .hero {
    min-height: unset;
    background-position: center center;
  }
  .hero-content {
    padding: 70px 0 50px;
    text-align: center;
  }
  .hero p {
    max-width: 100%;
  }
  .hero .d-flex.gap-3 {
    justify-content: center;
  }
  .hero .d-flex.gap-4 {
    justify-content: center;
  }
}

/* ── Product Detail — Carousel ───────────────────────── */
.product-carousel .carousel-control-prev,
.product-carousel .carousel-control-next {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.85);
  border-radius: 50%;
  top: 50%; transform: translateY(-50%);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.product-carousel .carousel-control-prev { left: 10px; }
.product-carousel .carousel-control-next { right: 10px; }
.product-carousel .carousel-control-prev-icon,
.product-carousel .carousel-control-next-icon { filter: invert(1) brightness(0); width: 14px; height: 14px; }
.product-carousel .carousel-item > div { cursor: zoom-in; }

/* ── Product Detail — Thumbnails ─────────────────────── */
.product-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-thumbs .gallery-thumb {
  width: calc(25% - 6px);
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .15s;
}
.product-thumbs .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs .gallery-thumb:hover,
.product-thumbs .gallery-thumb.active { border-color: var(--color-primary); }

/* ── Lightbox ─────────────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  opacity: .8;
  transition: opacity .15s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  opacity: .7;
  transition: opacity .15s;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

/* ── Product Cards ────────────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(61,44,44,.12); }
.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-primary-bg);
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .4s; }
.product-img-hover { position: absolute; inset: 0; opacity: 0; }
/* มีภาพที่ 2: ซ่อนภาพหลัก แสดง hover */
.product-img-wrap.has-hover:hover .product-img-main { opacity: 0; transform: scale(1.03); }
.product-img-wrap.has-hover:hover .product-img-hover { opacity: 1; transform: scale(1.05); }
/* ไม่มีภาพที่ 2: scale ภาพหลักปกติ */
.product-card:hover .product-img-wrap:not(.has-hover) .product-img-main { transform: scale(1.05); }
.badge-sale {
  position: absolute; top: 10px; left: 10px;
  background: var(--color-primary); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
}
.badge-out {
  position: absolute; top: 10px; left: 10px;
  background: #888; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
}
.product-card-body { 
    padding: 20px; /* ลดลงนิดนึงเพื่อให้มีพื้นที่แสดงผลมากขึ้น */
    min-height: 180px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* ช่วยผลักเนื้อหากับปุ่มแยกจากกัน */
}
.product-category { font-size: 11px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.product-name { font-family: var(--font-heading); font-weight: 600; font-size: 15px; margin-bottom: 8px; color: var(--color-text); line-height: 1.3; }
.product-price { font-family: var(--font-body); font-size: 1.1rem; color: var(--color-primary); font-weight: 600; }
.product-price .original { font-size: .9rem; color: var(--color-text-muted); text-decoration: line-through; margin-left: 6px; font-family: var(--font-body); font-weight: 400; }
.btn-add-cart {
    width: 100%; /* เปลี่ยนจาก 36px เป็น 100% */
    height: 42px; /* เพิ่มความสูงให้กดง่ายขึ้น */
    border-radius: 8px; /* เปลี่ยนจาก 50% เป็นขอบมนแบบเหลี่ยม */
    background: #b08850; /* ใช้สี Accent ของ piuduudee */
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* เว้นระยะห่างระหว่าง Icon กับตัวหนังสือ */
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px; /* เว้นระยะจากราคา */
    transition: 0.3s;
    cursor: pointer;
}
.btn-add-cart:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); }

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
  background: var(--color-text) !important;
  border-color: var(--color-text) !important;
  color: #fff !important;
  border-radius: 30px;
  padding: 10px 28px;
  font-weight: 600;
  font-size: 14px;
  transition: .25s;
}
.btn-primary:hover { background: var(--color-primary) !important; border-color: var(--color-primary) !important; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(201,120,120,.35); }
.btn-outline-primary {
  border-color: var(--color-text) !important;
  color: var(--color-text) !important;
  border-radius: 30px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
}
.btn-outline-primary:hover { background: var(--color-text) !important; color: #fff !important; }
.btn-rose {
  background: var(--color-primary);
  border: none;
  color: #fff;
  border-radius: 30px;
  padding: 10px 28px;
  font-weight: 600;
  font-size: 14px;
}
.btn-rose:hover { background: #b36060; color: #fff; }

/* ── Section Titles ───────────────────────────────────── */
.section-title { font-family: var(--font-heading); font-size: 1.8rem; color: var(--color-text); }
.section-subtitle { color: var(--color-text-muted); font-size: 15px; }
.title-divider {
  display: block;
  width: 40px; height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 10px 0 20px;
}

/* ── Article Cards ────────────────────────────────────── */
.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: .25s;
  height: 100%;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-img { aspect-ratio: 16/9; overflow: hidden; background: var(--color-primary-bg); }
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.article-card:hover .article-img img { transform: scale(1.05); }
.article-body { padding: 20px; }
.article-tag-pill {
  display: inline-block;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.article-title { font-weight: 600; font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.article-excerpt { color: var(--color-text-muted); font-size: 14px; line-height: 1.6; }
.article-content img {
  margin-bottom: 1rem;
}

/* ── Cart ─────────────────────────────────────────────── */
.cart-page { padding: 40px 0 80px; }

/* Empty */
.cart-empty {
  text-align: center; padding: 80px 20px;
}
.cart-empty-icon {
  width: 96px; height: 96px; border-radius: 50%; background: var(--color-primary-bg);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-primary); margin-bottom: 24px;
}
.cart-empty h4 { font-family: var(--font-heading); margin-bottom: 10px; }
.cart-empty p  { color: var(--color-text-muted); margin-bottom: 24px; }

/* Table header */
.cart-table-head {
  display: grid;
  grid-template-columns: 1fr 100px 140px 100px 40px;
  gap: 16px; align-items: center;
  padding: 0 12px 14px;
  border-bottom: 2px solid var(--color-border);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--color-text-muted);
}

/* Cart list */
.cart-list { margin-bottom: 0; }

/* Cart item */
.cart-item {
  display: grid;
  grid-template-columns: 1fr 100px 140px 100px 40px;
  gap: 16px; align-items: center;
  padding: 20px 12px;
  border-bottom: 1px solid var(--color-border);
  transition: opacity .3s, transform .3s;
}
.cart-item.removing { opacity: 0; transform: translateX(16px); }

/* Product col */
.cart-item-product { display: flex; gap: 14px; align-items: center; min-width: 0; }
.cart-item-img-link { flex-shrink: 0; }
.cart-item-img-link img {
  width: 88px; height: 88px; object-fit: cover;
  border-radius: 10px; display: block;
  border: 1px solid var(--color-border);
}
.cart-item-meta { min-width: 0; }
.cart-item-name {
  font-size: 14px; font-weight: 600; color: var(--color-text);
  text-decoration: none; display: block;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.4; margin-bottom: 6px;
  transition: color .2s;
}
.cart-item-name:hover { color: var(--color-primary); }
.cart-item-unit { font-size: 12px; color: var(--color-text-muted); }

/* Price col */
.cart-item-col-price { font-size: 14px; color: var(--color-text); justify-content: center; }

/* Qty col */
.cart-item-col-qty { display: flex; justify-content: center; }
.qty-ctrl {
  display: flex; align-items: center;
  border: 1px solid var(--color-border); border-radius: 8px;
  overflow: hidden; background: #fff;
}
.qty-btn {
  width: 32px; height: 36px; background: none; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--color-text-muted); transition: .15s;
}
.qty-btn:hover { background: var(--color-primary-bg); color: var(--color-text); }
.qty-input {
  width: 40px; height: 36px; text-align: center; border: none;
  border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border);
  outline: none; font-size: 14px; font-weight: 600; color: var(--color-text);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Total col */
.cart-item-col-total { display: flex; justify-content: flex-end; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--color-primary); }

/* Delete col */
.cart-item-col-del { display: flex; justify-content: center; }
.btn-remove-cart {
  width: 30px; height: 30px; border-radius: 6px;
  border: 1px solid var(--color-border); background: #fff;
  color: var(--color-text-muted); display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: .15s; flex-shrink: 0;
}
.btn-remove-cart:hover { background: #dc3545; border-color: #dc3545; color: #fff; }

/* Bottom bar */
.cart-bottom-bar { padding: 20px 12px 0; }
.cart-continue-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--color-text-muted); text-decoration: none;
  transition: color .2s;
}
.cart-continue-btn:hover { color: var(--color-primary); }

/* ── Summary card ──────────────────────────────────────── */
.cart-summary {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 28px;
  position: sticky; top: 88px;
}
.cart-summary-title {
  font-family: var(--font-heading); font-size: 1.15rem;
  color: var(--color-text); margin-bottom: 20px;
}

/* Free shipping bar */
.cart-free-bar { margin-bottom: 18px; }
.cart-free-bar-text {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--color-text-muted); margin-bottom: 8px;
}
.cart-free-bar-text i { color: var(--color-primary); flex-shrink: 0; }
.cart-free-bar-text strong { color: var(--color-text); }
.cart-free-bar-track {
  height: 5px; background: var(--color-border); border-radius: 99px; overflow: hidden;
}
.cart-free-bar-fill {
  height: 100%; background: var(--color-primary);
  border-radius: 99px; transition: width .4s ease;
}
.cart-free-achieved {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #198754; font-weight: 600;
  background: #d1e7dd; border-radius: 8px; padding: 8px 12px; margin-bottom: 18px;
}

/* Price rows */
.cart-summary-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.cart-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--color-text-muted);
}
.cart-summary-row span:last-child { color: var(--color-text); font-weight: 500; }
.fw-600 { font-weight: 600; }

.cart-summary-divider { height: 1px; background: var(--color-border); margin: 4px 0 16px; }

.cart-summary-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.cart-summary-total span:first-child { font-size: 15px; font-weight: 700; color: var(--color-text); }
.cart-summary-total span:last-child { font-size: 1.4rem; font-weight: 800; color: var(--color-primary); }

/* Checkout button */
.cart-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: var(--color-text); color: #fff;
  border: none; border-radius: 10px; padding: 14px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: background .2s, transform .15s; letter-spacing: .02em;
  margin-bottom: 20px;
}
.cart-checkout-btn:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }

/* Payment icons */
.cart-payment-icons { text-align: center; }
.cart-payment-label { font-size: 11px; color: var(--color-text-muted); display: block; margin-bottom: 8px; }
.cart-payment-list { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pay-icon {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--color-text-muted); background: #f8f8f8;
  border: 1px solid var(--color-border); border-radius: 6px; padding: 5px 10px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 767px) {
  .cart-item {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 16px 8px;
  }
  .cart-item-product   { grid-column: 1; grid-row: 1; }
  .cart-item-col-del   { grid-column: 2; grid-row: 1; align-self: start; }
  .cart-item-col-qty   { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .cart-item-col-total { grid-column: 2; grid-row: 2; }
  .cart-item-col-price { display: none !important; }
  .cart-item-img-link img { width: 72px; height: 72px; }
}
@media (max-width: 480px) {
  .cart-summary { border-radius: 0; margin: 0 -12px; padding: 24px 20px; }
}

/* ── Order Status Badges ──────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 3px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.status-pending   { background: #fff3cd; color: #856404; }
.status-confirmed { background: #cfe2ff; color: #084298; }
.status-packing   { background: #e2d9f3; color: #432874; }
.status-shipped   { background: #d1ecf1; color: #0c5460; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* ── Shop page ─────────────────────────────────────────── */

/* Page hero */
.shop-page-hero { background: var(--color-primary-bg); padding: 32px 0 24px; border-bottom: 1px solid var(--color-border); }
.shop-page-hero .breadcrumb { margin: 0; }
.shop-page-hero .breadcrumb-item a { color: var(--color-text-muted); font-size: 14px; text-decoration: none; }
.shop-page-hero .breadcrumb-item.active { color: var(--color-text); font-size: 14px; }
.shop-page-hero .breadcrumb-item + .breadcrumb-item::before { color: #bbb; }
.shop-page-title { font-family: var(--font-heading); font-size: 2.2rem; color: var(--color-text); margin: 10px 0 0; line-height: 1.2; }
@media (max-width: 576px) { .shop-page-title { font-size: 1.7rem; } }

/* Mobile filter bar */
.shop-mobile-bar { border-bottom: 1px solid var(--color-border); background: #fff; padding: 12px 0; }
.shop-mobile-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-filter-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--color-border); border-radius: 8px;
  background: #fff; padding: 10px 18px; font-size: 15px; font-weight: 600;
  color: var(--color-text); cursor: pointer; transition: .2s;
  min-height: 46px;
}
.shop-filter-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Sidebar */
.shop-sidebar { position: sticky; top: 80px; }
.sidebar-block { border-bottom: 1px solid var(--color-border); padding: 22px 0; }
.sidebar-block:first-child { padding-top: 0; }
.sidebar-block:last-of-type { border-bottom: none; }
.sidebar-block-title {
  font-family: var(--font-heading);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; color: var(--color-text);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}
.sidebar-collapse-btn {
  background: none; border: none; padding: 0; font-size: 20px; line-height: 1;
  color: var(--color-text-muted); cursor: pointer; min-width: 32px; min-height: 32px;
}
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-cat-link {
  display: block; font-size: 15px; color: var(--color-text-muted);
  text-decoration: none; padding: 7px 0; transition: color .2s;
}
.sidebar-cat-link:hover { color: var(--color-text); }
.sidebar-cat-link.is-active { color: var(--color-primary); font-weight: 600; }
.sidebar-highlight-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-highlight-list a { font-size: 15px; color: var(--color-text-muted); text-decoration: none; transition: color .2s; display: block; padding: 7px 0; }
.sidebar-highlight-list a:hover { color: var(--color-text); }
.sidebar-highlight-list a.is-active { color: var(--color-primary); font-weight: 600; }
.sidebar-search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 14px; background: #fff;
}
.sidebar-search input { flex: 1; border: none; outline: none; font-size: 15px; color: var(--color-text); min-width: 0; }
.sidebar-search button { background: none; border: none; padding: 0; cursor: pointer; color: var(--color-text-muted); display: flex; align-items: center; }
.sidebar-clear-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px;
  color: var(--color-text-muted); text-decoration: none; margin-top: 16px; transition: color .2s;
}
.sidebar-clear-btn:hover { color: var(--color-primary); }

/* Top bar */
.shop-topbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--color-border);
}
.shop-result-text { font-size: 15px; color: var(--color-text-muted); margin: 0; }
.shop-result-text strong { color: var(--color-text); }
.shop-sort-select {
  border: 1px solid var(--color-border); border-radius: 8px;
  padding: 10px 32px 10px 14px; font-size: 15px; color: var(--color-text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none; cursor: pointer; outline: none; min-height: 46px;
}
.shop-view-btns { display: flex; gap: 4px; }
.shop-view-btn {
  width: 38px; height: 38px; border: 1px solid var(--color-border); border-radius: 8px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--color-text-muted); transition: .2s;
}
.shop-view-btn.active,
.shop-view-btn:hover { background: var(--color-text); border-color: var(--color-text); color: #fff; }

/* Pagination */
.shop-pagination { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.btn-load-more {
  display: inline-block; border: 2px solid var(--color-primary); border-radius: 30px;
  padding: 14px 56px; font-size: 16px; font-weight: 600; color: var(--color-primary);
  text-decoration: none; transition: .2s; letter-spacing: .03em;
}
.btn-load-more:hover { background: var(--color-primary); color: #fff; }
.shop-page-nums { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.shop-page-num {
  width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--color-text-muted); text-decoration: none; transition: .2s;
}
.shop-page-num:hover,
.shop-page-num.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ── Product card ────────────────────────────────────────── */
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  position: relative; border: 1px solid var(--color-border);
  transition: box-shadow .25s, transform .25s;
}
.product-card:hover { box-shadow: 0 8px 32px rgba(61,44,44,.1); transform: translateY(-3px); }
.product-card-img-link { display: block; position: relative; }
.product-img-wrap {
  aspect-ratio: 1/1; overflow: hidden;
  background: var(--color-primary-bg); position: relative;
}
.product-img-main { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.product-card:hover .product-img-main { transform: scale(1.04); }
.product-img-hover {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.has-hover:hover .product-img-hover { opacity: 1; }
.has-hover:hover .product-img-main { opacity: 0; }

/* Badge */
.pc-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 12px; font-weight: 700; border-radius: 6px;
  padding: 4px 10px; letter-spacing: .03em;
}
.pc-badge--sale { background: var(--color-primary); color: #fff; }
.pc-badge--out  { background: #e0e0e0; color: #777; }

/* Overlay buttons (heart + eye) — visible on mobile, hover on desktop */
.pc-overlays {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s;
}
.product-card:hover .pc-overlays { opacity: 1; transform: translateX(0); }
.pc-overlay-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--color-text-muted); transition: .2s;
  text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.pc-overlay-btn:hover,
.pc-overlay-btn.is-wishlisted { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* Card body */
.product-card-body { padding: 14px 14px 14px; }
.product-category { font-size: 11px; color: var(--color-primary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; font-weight: 600; }
.product-name-link { text-decoration: none; }
.product-name { font-size: 15px; font-weight: 600; color: var(--color-text); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.product-price { font-size: 17px; font-weight: 700; color: var(--color-primary); }
.product-price-original { font-size: 13px; color: var(--color-text-muted); text-decoration: line-through; }

/* Add to cart button */
.pc-btn-cart {
  width: 100%; border: none; border-radius: 10px;
  padding: 12px 10px; font-size: 14px; font-weight: 600; color: #fff;
  background: var(--color-primary); cursor: pointer; transition: background .2s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 48px;
}
.pc-btn-cart:hover { background: #b86666; }
.pc-btn-cart--out { background: #e0e0e0; color: #999; cursor: not-allowed; }
.pc-btn-cart--out:hover { background: #e0e0e0; }

/* List view */
.shop-list-view .product-card { display: flex; flex-direction: row; gap: 0; border-radius: var(--radius); }
.shop-list-view .product-card-img-link { width: 160px; flex-shrink: 0; }
.shop-list-view .product-img-wrap { width: 160px; height: 100%; aspect-ratio: unset; border-radius: var(--radius) 0 0 var(--radius); }
.shop-list-view .pc-overlays { display: none; }
.shop-list-view .product-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.shop-list-view .product-name { font-size: 17px; -webkit-line-clamp: 3; }
.shop-list-view .pc-btn-cart { width: auto; padding: 12px 28px; }

/* Mobile: always show overlay buttons */
@media (max-width: 991px) {
  .pc-overlays { opacity: 1; transform: none; }
}

/* Misc (keep for other pages) */
.page-hero { background: linear-gradient(135deg, var(--color-primary-bg) 0%, #ede7f6 100%); padding: 50px 0 40px; }
.breadcrumb-item a { color: var(--color-text-muted); font-size: 13px; }
.breadcrumb-item.active { color: var(--color-text); font-size: 13px; }
.filter-sidebar { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--color-border); }
.filter-heading { font-weight: 600; font-size: 14px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--color-border); }
.pagination .page-link { color: var(--color-text); border-radius: 8px !important; margin: 0 2px; }
.pagination .page-item.active .page-link { background: var(--color-primary-bg); border-color: var(--color-primary); }

/* ── Wishlist ─────────────────────────────────────────── */
.wishlist-badge { background: #e8a0a0 !important; }
.pc-wishlist-btn.active { background: var(--color-primary) !important; border-color: var(--color-primary) !important; color: #fff !important; }
.pc-wishlist-btn.active i { fill: #fff; }
.pd-btn-wish.active { color: var(--color-primary); background: var(--color-primary-bg); border-color: var(--color-primary); }
/* .pd-btn-wish.active svg {
    fill: var(--pd-primary);
    stroke: var(--pd-primary);
} */


/* ── Mobile Drawer ──────────────────────────────────────── */
.mob-drawer-header { background: #fff; border-bottom: 1px solid var(--color-border); padding: 16px 20px; }
.mob-drawer-logo { text-decoration: none; display: flex; align-items: center; }
.mob-drawer-logo span { font-family: var(--font-heading); font-size: 1.25rem; color: var(--color-text); }

.mob-drawer-body { padding: 20px; }

/* User row */
.mob-user-row { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--color-primary-bg); border-radius: var(--radius); margin-bottom: 16px; }
.mob-user-row > div:nth-child(2) {
    min-width: 0; /* สำคัญมาก: เพื่อให้ flex item ยอมหดตัวและเกิด ellipsis */
    flex: 1;      /* ให้กินพื้นที่ที่เหลือทั้งหมด */
}
.mob-user-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mob-user-init { width: 48px; height: 48px; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mob-user-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text);
    
    /* Ellipsis 1 line */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mob-user-email {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 3px;

    /* Ellipsis 1 line */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Login button */
.mob-login-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--color-text); color: #fff; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 600; text-decoration: none; margin-bottom: 16px; transition: background .15s; }
.mob-login-btn:hover { background: var(--color-primary); color: #fff; }

/* Nav links */
.mob-nav { display: flex; flex-direction: column; gap: 2px; }
.mob-nav-link {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--color-text);
  text-decoration: none; background: none; border: none;
  width: 100%; text-align: left; cursor: pointer;
  font-family: var(--font-body); transition: background .15s;
}
.mob-nav-link:hover { background: var(--color-primary-bg); color: var(--color-text); }
.mob-nav-toggle { justify-content: space-between; }
.mob-chevron { transition: transform .2s; }
.mob-nav-toggle[aria-expanded="true"] .mob-chevron { transform: rotate(180deg); }
.mob-nav-sub { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 4px 38px; }
.mob-nav-sub-link { display: block; padding: 10px 12px; border-radius: 8px; font-size: 15px; color: var(--color-text-muted); text-decoration: none; transition: background .15s, color .15s; }
.mob-nav-sub-link:hover { background: var(--color-primary-bg); color: var(--color-text); }
.mob-nav-badge { margin-left: auto; background: var(--color-primary); color: #fff; font-size: 11px; font-weight: 700; min-width: 22px; height: 22px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.mob-nav-divider { height: 1px; background: var(--color-border); margin: 10px 0; }
.mob-nav-link--admin { color: var(--color-primary) !important; }
.mob-nav-link--logout { color: #dc3545 !important; }
.mob-nav-link--logout:hover { background: #fff5f5; }

/* ── Orders ───────────────────────────────────────────── */
.order-row { color: var(--color-text); transition: .15s; }
.order-row:hover { border-color: var(--color-primary-light); }

.btn-back-account {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 13px;
}

/* Order detail */
.order-section-label { color: var(--color-text); font-weight: 600; margin-bottom: 4px; }

.order-tracking-box {
  background: #f0f9f4;
  border: 1px solid #b8e0c8;
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
}
.order-tracking-label { color: #155724; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.order-tracking-number { font-size: 1.05rem; font-weight: 700; letter-spacing: .05em; color: #1a3a2a; }
.btn-copy-tracking {
  background: #155724;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  padding: 3px 10px;
  cursor: pointer;
}

.order-confirm-box {
  background: #fffbf0;
  border: 1px solid #f0e0a0;
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
}
.order-confirm-label { color: #856404; font-size: 13px; }
.btn-confirm-received {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: var(--color-text);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-confirm-received * { pointer-events: none; }

.order-delivered-box {
  background: #f0f9f4;
  border: 1px solid #b8e0c8;
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
  font-size: 13px;
  color: #155724;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-rounded { border-radius: 20px; border: none; overflow: hidden; }
.modal-icon-wrap {
  width: 64px; height: 64px;
  background: #f0f9f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.btn-modal-cancel {
  border-radius: 12px;
  padding: 11px;
  font-family: var(--font-body);
  font-size: 14px;
}
.btn-modal-confirm {
  background: var(--color-text);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 11px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   ACCOUNT PAGES — Shared styles (ma- prefix)
   Used across: account/index, orders, order_show
══════════════════════════════════════════════════════════════ */

/* ── Layout ─────────────────────────────────────────────────── */
.ma-container { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.ma-page      { background: #faf8f6; min-height: 60vh; padding: 40px 0 80px; }

/* ── Top bar ─────────────────────────────────────────────────── */
.ma-topbar {
  background: #fff;
  border-bottom: 2px solid #ede5de;
  padding: 20px 0 0;
}
.ma-profile-row {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 20px;
}
.ma-avatar-img  { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #ede5de; flex-shrink: 0; }
.ma-avatar-init {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-primary-bg); border: 2px solid #ede5de;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.4rem; color: var(--color-primary); font-weight: 700;
}
.ma-profile-text {
    min-width: 0; 
    flex: 1;      /* ถ้าใช้อยู่ใน Row ที่มีรูปภาพข้างๆ */
}
.ma-profile-name { 
    font-size: 17px; 
    font-weight: 700; 
    color: #2d2020; 
    line-height: 1.3;
    
    /* Ellipsis */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ma-profile-email { 
    font-size: 14px; 
    color: #8a7570; 
    margin-top: 2px;
    
    /* Ellipsis */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Tab nav ─────────────────────────────────────────────────── */
.ma-tabs {
  display: flex; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ma-tabs::-webkit-scrollbar { display: none; }
.ma-tab {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 14px 22px; font-size: 15px; font-weight: 600;
  color: #8a7570; text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.ma-tab:hover       { color: var(--color-primary); }
.ma-tab--active     { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.ma-tab--logout     { margin-left: auto; color: #c0736a; }
.ma-tab--logout:hover { color: #a03020; }

/* ── Section card ────────────────────────────────────────────── */
.ma-section {
  background: #fff;
  border: 1px solid #ede5de;
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
}
.ma-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0e8e4;
}
.ma-section-title { font-size: 18px; font-weight: 700; color: #2d2020; margin: 0; }

/* ── Buttons ─────────────────────────────────────────────────── */
.ma-btn-add {
  display: inline-flex; align-items: center; gap: 6px;
  background: #2d2020; color: #fff;
  border: none; border-radius: 10px; padding: 10px 20px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); transition: background .2s;
  white-space: nowrap;
}
.ma-btn-add:hover { background: var(--color-primary); }
.ma-btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #2d2020;
  border: 2px solid #ede5de; border-radius: 10px; padding: 10px 22px;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); transition: .2s;
}
.ma-btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.ma-btn-cancel {
  flex: 1; background: #fff; border: 2px solid #ede5de; border-radius: 12px;
  color: #5a4a46; font-size: 15px; font-weight: 600; padding: 13px;
  cursor: pointer; font-family: var(--font-body); transition: .15s;
}
.ma-btn-cancel:hover { border-color: var(--color-primary); color: var(--color-primary); }
.ma-btn-save {
  flex: 2; background: #2d2020; color: #fff; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; padding: 13px;
  cursor: pointer; font-family: var(--font-body); transition: background .2s;
}
.ma-btn-save:hover { background: var(--color-primary); }

/* ── Empty state ─────────────────────────────────────────────── */
.ma-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 24px; gap: 12px; text-align: center;
}
.ma-empty-icon { color: #d0c0b8; display: block; }
.ma-empty-text { font-size: 16px; color: #8a7570; margin: 0; }

/* ── Status badges ───────────────────────────────────────────── */
.ma-status { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.ma-status--pending   { background: #fff3cd; color: #7a5c00; }
.ma-status--confirmed { background: #dbeafe; color: #1e40af; }
.ma-status--packing   { background: #d4edda; color: #155724; }
.ma-status--shipped   { background: #d1ecf1; color: #0c5460; }
.ma-status--delivered { background: #d4edda; color: #155724; }
.ma-status--cancelled { background: #f8d7da; color: #721c24; }

/* ── Back link (shared) ──────────────────────────────────────── */
.mol-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; color: #8a7570; text-decoration: none; transition: color .2s;
}
.mol-back-link:hover { color: var(--color-primary); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ma-tab             { padding: 12px 16px; font-size: 14px; }
  .ma-section-header  { padding: 16px 18px; }
  .product-name { font-size: 0.85rem ; }
  .pc-btn-cart { min-height: 10px }
  .pc-btn-cart span { font-size: 0.85rem ;}
}

/* ══════════════════════════════════════════════════════════════
   HOME PAGE  (home.php)
   ══════════════════════════════════════════════════════════════ */

/* ── Shared ─────────────────────────────────────────────────── */
.h-sec { padding: 80px 0; }
.h-sec--tinted { background: #faf8f6; }
.h-sec--light-gray { background: #f4f2f0; }

.h-eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: var(--color-primary-light); margin-bottom: 12px;
}
.h-sec-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--color-text); margin: 0;
}
.h-sec-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 35px; }

/* ── Hero (full-screen image + overlay) ─────────────────────── */
.h-hero {
  position: relative;
  height: 80vh;
  min-height: 620px;
  overflow: hidden;
}
.h-hero-track { position: relative; height: 100%; }

/* Slides */
.h-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}
.h-hero-slide.is-active { opacity: 1; pointer-events: auto; }

/* Full-screen image */
.h-hero-media-panel { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.h-hero-img-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 10s ease;
}
.h-hero-slide.is-active .h-hero-img-bg { transform: scale(1.06); }
/* Left-side gradient for text readability */
.h-hero-media-panel::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0,0,0,.58) 0%,
    rgba(0,0,0,.28) 48%,
    rgba(0,0,0,.04) 72%,
    transparent 100%
  );
  z-index: 1;
}

/* Content overlaid on image */
.h-hero-content-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 40% 0 max(56px, 7vw);
}
.h-hero-content-panel::before { display: none; }
.h-hero-inner { width: 100%; max-width: 560px; }

/* Eyebrow */
.h-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; color: rgba(255,255,255,.78);
  margin-bottom: 18px;
}
.h-hero-eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.78); flex-shrink: 0;
}

/* Heading */
.h-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.0; font-weight: 700;
  color: #fff; margin-bottom: 20px;
}
.h-hero-title em { font-style: italic; font-weight: 400; color: rgba(255,255,255,.88); }

/* Sub text */
.h-hero-sub {
  font-size: 15px; color: rgba(255,255,255,.68);
  line-height: 1.75; margin-bottom: 38px;
}

/* Buttons */
.h-hero-btns { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.h-hero-cta {
  color: #fff; border: 1.5px solid rgba(255,255,255,.75);
  background: transparent; padding: 13px 38px;
  border-radius: 0; font-weight: 600; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; transition: .3s; display: inline-block;
}
.h-hero-cta:hover { background: #fff; color: var(--color-text); border-color: #fff; }
.h-hero-text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.78);
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 1px; transition: .2s;
}
.h-hero-text-link:hover { color: #fff; border-color: rgba(255,255,255,.8); }
.h-hero-text-link svg { transition: transform .2s; }
.h-hero-text-link:hover svg { transform: translateX(3px); }

/* Shared CTA reused outside hero (story section, etc.) */
.h-hero-btn {
  background: var(--color-primary); color: #fff; padding: 13px 34px;
  border-radius: 50px; font-weight: 700; text-decoration: none; transition: .3s; display: inline-block;
}
.h-hero-btn:hover { background: #b05e4a; transform: translateY(-2px); color: #fff; }

/* Content slide-in animation */
@keyframes hSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.h-hero-slide.is-active .h-hero-eyebrow { animation: hSlideIn .55s .12s both; }
.h-hero-slide.is-active .h-hero-title   { animation: hSlideIn .55s .22s both; }
.h-hero-slide.is-active .h-hero-sub     { animation: hSlideIn .55s .34s both; }
.h-hero-slide.is-active .h-hero-btns    { animation: hSlideIn .55s .44s both; }

/* Slide counter */
.h-hero-counter {
  position: absolute; top: 36px; right: 40px; z-index: 10;
  display: flex; align-items: baseline; gap: 5px;
  color: rgba(255,255,255,.85); text-shadow: 0 1px 6px rgba(0,0,0,.3);
  pointer-events: none;
}
.h-hero-counter b {
  font-size: 26px; font-family: var(--font-heading);
  font-style: italic; font-weight: 400; line-height: 1;
}
.h-hero-counter span { font-size: 11px; font-weight: 500; opacity: .6; letter-spacing: .05em; }

/* Prev / Dots / Next */
.h-hero-nav {
  position: absolute; bottom: 36px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; z-index: 10;
}
.h-hero-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; transition: .25s;
}
.h-hero-arrow:hover { background: var(--color-primary); border-color: var(--color-primary); }
.h-hero-dots { display: flex; align-items: center; gap: 7px; }
.h-hero-dot {
  width: 7px; height: 7px; border-radius: 50px; border: none;
  background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: .3s;
}
.h-hero-dot.is-active { width: 26px; background: #fff; }

/* Scroll hint */
.h-hero-scroll-hint {
  position: absolute; left: 30px; bottom: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.h-hero-scroll-hint > span:first-child {
  font-size: 9px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  writing-mode: vertical-rl;
}
.h-hero-scroll-bar {
  display: block; width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent);
  transform-origin: top;
  animation: hScrollDrop 2s ease-in-out infinite;
}
@keyframes hScrollDrop {
  0%   { opacity: 0; transform: scaleY(0); }
  20%  { opacity: 1; }
  70%  { transform: scaleY(1); opacity: .8; }
  100% { opacity: 0; transform: scaleY(1); }
}

/* ── Marquee ────────────────────────────────────────────────── */
.h-marquee { background: var(--color-primary); overflow: hidden; padding: 15px 0; }
.h-marquee-track { display: flex; animation: hMarquee 40s linear infinite; }
.h-marquee-item { display: flex; align-items: center; gap: 10px; padding: 0 40px; color: #fff; white-space: nowrap; border-right: 1px solid rgba(255,255,255,0.2); }
@keyframes hMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Categories ─────────────────────────────────────────────── */
.h-cats-sec { padding-block: 40px; }
.h-cats-slider-wrap { display: flex; align-items: center; gap: 8px; }
.h-cats-arrow { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #ddd; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--color-text); transition: background 0.2s, border-color 0.2s; }
.h-cats-arrow:hover { background: #f0ebe7; border-color: #bbb; }
.h-cats-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
}
.h-cats-viewport::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.h-cats-row { display: flex; gap: 28px; flex-wrap: nowrap; justify-content: flex-start; padding-block: 10px; }
.h-cat-item { text-decoration: none;
    transition: transform 0.25s;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; }
.h-cat-item:hover { transform: translateY(-4px); }
.h-cat-img { width: 120px; height: 120px; border-radius: 50%; background: #f2ece8; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.h-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.h-cat-img i { color: #aaa; }
.h-cat-name { font-weight: 500; color: var(--color-text); font-size: 14px; display: block; }

/* ── Featured Collections ───────────────────────────────────── */
.h-collections-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; height: 400px; }
.h-col-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 15px; }
.h-col-card { border-radius: 20px; overflow: hidden; position: relative; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.h-col-body { padding: 25px; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.5), transparent); color: #fff; }
.h-col-title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 15px; }
.h-col-tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; opacity: .8; display: block; margin-bottom: 8px; }
.h-col-btn { background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); border: 1px solid #fff; color: #fff; padding: 5px 20px; border-radius: 50px; text-decoration: none; font-size: 13px; }
.h-options-link { font-size: 13px; color: var(--color-text-muted); display: flex; align-items: center; gap: 4px; text-decoration: none; }
.h-options-link:hover { color: var(--color-primary); }

/* ── Brand Story ────────────────────────────────────────────── */
.h-story { padding: 80px 0; }
.h-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.h-story-img { border-radius: 20px; width: 100%; }
.h-story-title { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 20px; }
.h-story-desc { color: #666; line-height: 1.8; margin-bottom: 25px; }
.h-story-checks { list-style: none; padding: 0; margin-bottom: 30px; }
.h-story-checks li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 600; }
.h-story-checks i { color: var(--color-primary); }
.h-hero-btn.h-story-cta { display: inline-flex; }

/* ── Reviews ────────────────────────────────────────────────── */
.h-review { padding: 30px; border: 1px solid #eee; border-radius: 20px; }
.h-review-stars { color: #f5a623; margin-bottom: 15px; }
.h-review-text { font-style: italic; color: #555; margin-bottom: 20px; }
.h-review-foot { display: flex; align-items: center; gap: 15px; }
.h-review-av { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: #eee; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.h-review-name { font-weight: 600; font-size: 14px; }
.h-review-role { font-size: 12px; color: var(--color-text-muted); }
#reviewCarousel .carousel-item { transition: transform 1s ease-in-out; }

/* ── YouTube Cards (legacy) ─────────────────────────────────── */
.yt-card { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 15px; overflow: hidden; cursor: pointer; }
.yt-thumb { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; inset: 0; border: none; background: transparent; display: flex; align-items: center; justify-content: center; }

/* ── Video Cards (shared: home + videos page) ───────────────── */
.vp-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 540px) { .vp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .vp-grid { grid-template-columns: repeat(3, 1fr); } }

.vp-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1.5px solid #f0e6de; cursor: pointer; transition: box-shadow .25s, transform .25s; }
.vp-card:hover { box-shadow: 0 8px 28px rgba(44,31,31,.10); transform: translateY(-2px); }

.vp-thumb-wrap { position: relative; aspect-ratio: 16/9; background: #fdf0ea; overflow: hidden; }
.vp-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.vp-card:hover .vp-thumb { transform: scale(1.04); }

.vp-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(44,31,31,0); transition: background .25s; }
.vp-card:hover .vp-play-overlay { background: rgba(44,31,31,.12); }
.vp-play-btn { background: transparent; border: none; cursor: pointer; padding: 0; line-height: 0; }
.vp-play-icon { width: 56px; height: 40px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.25)); opacity: .82; transition: opacity .2s, transform .2s; }
.vp-card:hover .vp-play-icon { opacity: 1; transform: scale(1.08); }

.vp-card-body { padding: 16px 18px 20px; border-top: 1px solid #f5ece6; }
.vp-card-title { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #2c1f1f; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.vp-card:hover .vp-card-title { color: var(--color-primary); }
.vp-card-watch { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--color-primary); }

/* ── Articles ───────────────────────────────────────────────── */
.h-articles-sec { }
.h-articles-all-link { font-size: 13px; color: var(--color-text-muted); display: flex; align-items: center; gap: 4px; }
.h-articles-all-link:hover { color: var(--color-primary); }

/* 3-column equal layout */
.h-articles-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ab-card component */
.ab-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--color-border, #eee); transition: box-shadow .2s, transform .2s; }
.ab-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); transform: translateY(-3px); color: inherit; }
.ab-card-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #f5f5f5; }
.ab-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.ab-card:hover .ab-card-img img { transform: scale(1.04); }
.ab-card-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #ccc; }
.ab-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.ab-card-date { font-size: 11px; color: var(--color-text-muted, #999); letter-spacing: .4px; }
.ab-card-title { font-family: var(--font-heading); font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--color-text, #1a1a1a); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ab-card-excerpt { font-size: 13px; color: var(--color-text-muted, #777); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ab-card-footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--color-border, #f0f0f0); }
.ab-card-author, .ab-card-views { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--color-text-muted, #999); }
.ab-card-read { font-size: 12px; font-weight: 600; color: var(--color-primary, #c8956c); display: flex; align-items: center; gap: 4px; margin-top: 4px; }

/* ── Home Mobile Responsive ─────────────────────────────────── */
@media (max-width: 767px) {
  .h-hero { height: 60svh; min-height: 500px; }
  .h-hero-content-panel {
    padding: 0 24px 90px;
    align-items: flex-end;
  }
  .h-hero-title { font-size: clamp(2rem, 9vw, 2.8rem); margin-bottom: 14px; }
  .h-hero-sub { font-size: 14px; margin-bottom: 22px; }
  .h-hero-counter { display: none; }
  .h-hero-scroll-hint { display: none; }
}
@media (max-width: 768px) {
    .h-collections-grid { grid-template-columns: 1fr; height: auto; }
    .h-story-grid { grid-template-columns: 1fr; text-align: center; }
    .h-story-checks li { justify-content: center; }
    .h-articles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .h-articles-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   Videos Page — Warm Luxury Skincare Design
   ═══════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────── */
.vp-hero {
  background: #fdf7f3;
  border-bottom: 1px solid #f0e6de;
  padding: 48px 0 52px;
}

.vp-breadcrumb { margin: 0; }
.vp-breadcrumb .breadcrumb-item a {
  color: #b08070; font-size: 14px; text-decoration: none;
}
.vp-breadcrumb .breadcrumb-item a:hover { color: var(--color-primary); }
.vp-breadcrumb .breadcrumb-item.active { color: #c0a090; font-size: 14px; display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; vertical-align: middle;}
.vp-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #d4bfb5;}

.vp-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #2c1f1f;
  line-height: 1.2;
  margin: 20px 0 12px;
  font-weight: 600;
}
.vp-hero-title-em {
  color: var(--color-primary);
  margin-left: 10px;
}
.vp-hero-sub {
  color: #7a6060;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 500px;
}

/* ── Main ──────────────────────────────────────────────── */
.vp-main { padding: 48px 10px 80px; }

/* ── Section Header ─────────────────────────────────────── */
.vp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.vp-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b08070;
  margin: 0 0 6px;
}
.vp-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: #2c1f1f;
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
}
.vp-yt-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #7a6060;
  text-decoration: none;
  border: 1.5px solid #e8d8d0;
  border-radius: 10px;
  padding: 8px 18px;
  background: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s;
}
.vp-yt-link:hover {
  background: #2c1f1f;
  border-color: #2c1f1f;
  color: #fff;
}

/* ── Grid ───────────────────────────────────────────────── */
.vp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 540px) {
  .vp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .vp-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Card ───────────────────────────────────────────────── */
.vp-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #f0e6de;
  cursor: pointer;
  transition: box-shadow .25s, transform .25s;
}
.vp-card:hover {
  box-shadow: 0 8px 28px rgba(44, 31, 31, .10);
  transform: translateY(-2px);
}

/* ── Thumbnail ──────────────────────────────────────────── */
.vp-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #fdf0ea;
  overflow: hidden;
}
.vp-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.vp-card:hover .vp-thumb { transform: scale(1.04); }

/* ── Play Overlay ───────────────────────────────────────── */
.vp-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 31, 31, 0);
  transition: background .25s;
}
.vp-card:hover .vp-play-overlay {
  background: rgba(44, 31, 31, .12);
}
.vp-play-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 0;
}
.vp-play-icon {
  width: 56px;
  height: 40px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.25));
  opacity: .82;
  transition: opacity .2s, transform .2s;
}
.vp-card:hover .vp-play-icon {
  opacity: 1;
  transform: scale(1.08);
}

/* ── Card Body ──────────────────────────────────────────── */
.vp-card-body {
  padding: 16px 18px 20px;
  border-top: 1px solid #f5ece6;
}
.vp-card-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #2c1f1f;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.vp-card:hover .vp-card-title { color: var(--color-primary); }
.vp-card-watch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

/* ── Responsive Section Head ────────────────────────────── */
@media (max-width: 480px) {
  .vp-section-head { align-items: flex-start; flex-direction: column; }
  .vp-yt-link { align-self: flex-start; }
}

@media (min-width: 992px) {
  .vp-hero { padding: 64px 0 60px; }
  .vp-main { padding: 56px 0 96px; }
}

/* ─── Mos Modal ──────────────────────────────────────────────── */
.mos-modal            { border: none; border-radius: 20px; overflow: hidden; }
.mos-modal-body       { padding: 40px 32px 24px; text-align: center; }
.mos-modal-foot       { display: flex; gap: 12px; padding: 0 24px 28px; }
.mos-modal-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #f0fdf4; color: #22c55e;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.mos-modal-icon--danger { background: #fde8e8; color: #a02020; }
.mos-modal-title { font-family: var(--font-heading); font-size: 22px; color: #2d2020; margin-bottom: 10px; }
.mos-modal-sub   { font-size: 16px; color: #5a4a46; margin: 0; line-height: 1.7; }

/* ─── Review block in modal ──────────────────────────────────── */
.mos-review-block       { margin-top: 20px; text-align: left; }
.mos-review-block-title { font-size: 14px; font-weight: 700; color: #5a4a46; margin-bottom: 10px; }
.mos-review-opt         { font-weight: 400; color: #9a8070; }

/* ── Policy Pages (Terms / Privacy / Cookies) ───────────────── */

/* Hero */
.policy-hero { background: var(--color-primary-bg); padding: 64px 0 56px; text-align: center; border-bottom: 1px solid var(--color-border); }
.policy-hero-title { font-family: var(--font-heading); font-size: clamp(1.8rem,4vw,2.8rem); color: var(--color-text); margin: 0 0 8px; }
.policy-hero-sub { font-size: .875rem; color: var(--color-text-muted); margin: 0; }

/* Layout: sidebar + body */
.policy-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }

/* TOC Sidebar */
.policy-toc { position: sticky; top: 100px; }
.policy-toc-inner { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; }
.policy-toc-label { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 14px; }
.policy-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.policy-toc ul li a { display: block; font-size: .85rem; color: var(--color-text-muted); padding: 6px 10px; border-radius: 8px; transition: background .2s,color .2s; line-height: 1.4; }
.policy-toc ul li a:hover { background: var(--color-primary-bg); color: var(--color-primary); }

/* Body */
.policy-body { min-width: 0; }

/* Intro box */
.policy-intro { background: #fff; border: 1px solid var(--color-border); border-left: 4px solid var(--color-primary); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.policy-intro p { margin: 0; color: var(--color-text-muted); font-size: .9375rem; }

/* Sections */
.policy-section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--color-border); }
.policy-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.policy-section-title { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; color: var(--color-text); margin: 0 0 16px; }
.policy-section-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-width: 32px; background: var(--color-primary); color: #fff; border-radius: 50%; font-size: .8rem; font-weight: 700; font-family: var(--font-heading); }
.policy-section p { color: var(--color-text-muted); line-height: 1.8; margin-bottom: 14px; }
.policy-section p:last-child { margin-bottom: 0; }

/* Card grid */
.policy-card-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin: 20px 0; }
.policy-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px; transition: box-shadow .2s; }
.policy-card:hover { box-shadow: var(--shadow); }
.policy-card-icon { width: 40px; height: 40px; background: var(--color-primary-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--color-primary); margin-bottom: 12px; }
.policy-card h4 { font-size: .9375rem; color: var(--color-text); margin: 0 0 6px; }
.policy-card p { font-size: .85rem; color: var(--color-text-muted); margin: 0; line-height: 1.6; }

/* List with icons */
.policy-list { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.policy-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--color-text-muted); line-height: 1.7; }
.policy-list li i { color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }
.policy-list li i[data-lucide="alert-triangle"] { color: #d97706; }

/* Table */
.policy-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--color-border); margin: 20px 0; }
.policy-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.policy-table th { background: var(--color-primary-bg); padding: 12px 16px; text-align: left; font-weight: 600; color: var(--color-text); white-space: nowrap; }
.policy-table td { padding: 12px 16px; border-top: 1px solid var(--color-border); color: var(--color-text-muted); vertical-align: top; }
.policy-table tr:hover td { background: #fdfaf8; }

/* Contact box */
.policy-contact-box { background: var(--color-primary-bg); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.policy-contact-row { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; color: var(--color-text-muted); line-height: 1.6; }
.policy-contact-row i { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.policy-contact-row a { color: var(--color-primary); text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; }
}
@media (max-width: 600px) {
  .policy-card-grid { grid-template-columns: 1fr; }
  .policy-hero { padding: 48px 0 40px; }
}

/* ── YouTube Video Modal ───────────────────────────────── */
.yt-modal-content {
  background: #1a1a1a;
  border: none;
  border-radius: 16px;
  overflow: hidden;
}
.yt-modal-header {
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 14px 20px;
  flex-shrink: 0;
}
.yt-modal-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #f0e6de;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 40px);
}
.yt-modal-body { background: #000; }
.yt-modal-ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
.yt-modal-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
