:root {
  --forest: #123c2e;
  --forest-dark: #08271d;
  --cream: #f6f0df;
  --paper: #fbf8ee;
  --lime: #d9f08b;
  --ink: #142019;
  --muted: #657067;
  --line: rgba(18, 60, 46, 0.16);
}

[hidden] { display: none !important; }
body.admin-bar .site-header { top: 32px; }
[data-products-empty] { grid-column: 1 / -1; padding: 36px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; color: var(--muted); }
.category-closed-notice { margin-top: 42px; padding: 38px 26px; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); background: rgba(255,255,255,.45); text-align: center; font-size: 17px; line-height: 1.6; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, "Noto Sans Thai", sans-serif; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shell { min-height: 100vh; overflow: hidden; }

.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4; height: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 max(6vw, calc((100vw - 1420px)/2)); color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 22px Georgia, serif; letter-spacing: .02em; }
.brand img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; }
.site-header .brand > span { display: none; }
.header-account-links { display: flex; align-items: center; gap: 8px; }
.header-account-links a,
.header-account-links button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: rgba(255,255,255,.9); background: rgba(5,28,20,.2); font-family: inherit; font-size: 11px; font-weight: 800; line-height: 1; cursor: pointer; backdrop-filter: blur(5px); appearance: none; }
.header-account-links a.tracking-link { border-color: transparent; color: var(--forest-dark); background: var(--lime); }
.language-toggle { margin-left:auto; display:inline-flex; align-items:center; gap:0; padding:4px; border:1px solid rgba(255,255,255,.42); border-radius:999px; color:#fff; background:rgba(5,28,20,.82); box-shadow:0 8px 24px rgba(0,0,0,.2); backdrop-filter:blur(8px); }
.language-toggle span { display:none; }
.language-toggle button { min-width:44px; min-height:34px; display:grid; place-items:center; border:0; border-radius:999px; padding:0 10px; color:#fff; background:transparent; cursor:pointer; font-size:12px; font-weight:900; line-height:1; transition:background .2s ease,color .2s ease; }
.language-toggle button:hover { background:rgba(255,255,255,.12); }
.language-toggle button.active { color:var(--forest-dark); background:var(--lime); box-shadow:0 3px 10px rgba(0,0,0,.18); }

.hero { position: relative; min-height: 680px; display: flex; align-items: center; color: white; background: var(--forest-dark); }
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; }
.hero-overlay { background: linear-gradient(90deg, rgba(5,28,20,.94) 0%, rgba(5,28,20,.74) 43%, rgba(5,28,20,.17) 100%), linear-gradient(0deg, rgba(5,28,20,.58) 0%, transparent 34%); }
.hero-content { position: relative; z-index: 2; width: min(760px, 88vw); margin-left: max(6vw, calc((100vw - 1420px)/2)); padding: 154px 0 175px; }
.eyebrow, .kicker { margin: 0 0 18px; font-size: 12px; line-height: 1.3; letter-spacing: .2em; font-weight: 700; text-transform: uppercase; }
.eyebrow { color: var(--lime); }
.hero h1, .section-heading h2, .feature-heading h2, .contact-section h2, .age-card h2 { margin: 0; font-family: Georgia, "Noto Serif Thai", serif; font-weight: 500; }
.hero h1 { font-size: clamp(60px, 8.5vw, 132px); line-height: .91; letter-spacing: -.045em; }
.hero h1 span { display: block; }
.hero-copy { max-width: 560px; margin: 30px 0 0; color: rgba(255,255,255,.76); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--lime); color: var(--forest-dark); }
.button.glass { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: white; }
.button.light { background: var(--cream); color: var(--forest-dark); }

.trust-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 6vw; color: white; background: rgba(5,28,20,.12); backdrop-filter: blur(3px); }
.trust-strip div { min-height: 92px; display: flex; align-items: center; justify-content: center; padding: 22px 7%; font-weight: 700; }
.products-section { padding: 42px max(6vw, calc((100vw - 1420px)/2)) 120px; scroll-margin-top: 18px; }
.section-heading { display: block; }
.section-heading h2, .feature-heading h2, .contact-section h2 { font-size: clamp(42px, 5vw, 74px); line-height: 1.04; letter-spacing: -.035em; }
.section-heading > p { margin: 0 0 4px; max-width: 550px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.kicker { color: #6a774e; }
.category-tabs { display: flex; gap: 10px; margin: 28px 0 30px; padding-bottom: 14px; overflow-x: auto; }
.category-tabs button { flex: 0 0 auto; min-width: 160px; border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 14px 22px; cursor: pointer; font-weight: 700; }
.category-tabs button.active { background: var(--forest); color: white; border-color: var(--forest); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.product-image-wrap { position: relative; aspect-ratio: 1.25; overflow: hidden; background: #ecece7; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-image-wrap img { transform: scale(1.025); }
.product-media-button { width:100%; height:100%; display:block; border:0; margin:0; padding:0; color:inherit; background:transparent; cursor:pointer; }
.product-media-button:focus-visible { outline:4px solid var(--lime); outline-offset:-4px; }
.product-image-placeholder { width:100%; height:100%; display:grid; place-items:center; padding:24px; color:var(--muted); background:linear-gradient(135deg,#f1f2ec,#e4e8df); text-align:center; font-weight:700; }
.product-video-indicator { position:absolute; right:16px; bottom:16px; display:inline-flex; align-items:center; gap:8px; padding:9px 12px; border-radius:999px; color:#fff; background:rgba(8,39,29,.88); box-shadow:0 8px 24px rgba(0,0,0,.18); font-size:12px; font-weight:800; pointer-events:none; }
.product-video-indicator b { width:23px; height:23px; display:grid; place-items:center; border-radius:50%; color:var(--forest-dark); background:var(--lime); font-size:9px; }
.product-badge { position: absolute; top: 16px; left: 16px; padding: 8px 12px; border-radius: 999px; color: white; background: rgba(8,39,29,.88); font-size: 12px; font-weight: 700; }
.product-body { min-height: 180px; display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: stretch; gap: 20px; padding: 24px; }
.product-body h3 { margin: 0 0 8px; font: 500 29px Georgia, serif; }
.product-body p { margin: 0; color: var(--muted); line-height: 1.55; }
.product-copy { min-width: 0; padding-right: 8px; }
.product-specs { display:flex; flex-wrap:wrap; gap:8px; margin:2px 0 13px; }
.product-specs span { min-height:36px; display:inline-flex; align-items:center; justify-content:center; padding:7px 13px; border:1px solid transparent; border-radius:10px; font-size:14px; font-weight:900; line-height:1; letter-spacing:.01em; box-shadow:0 4px 12px rgba(8,39,29,.08); }
.product-specs .product-strain-type { color:#fff; border-color:var(--forest); background:var(--forest); }
.product-specs .product-thc-value { color:var(--forest-dark); border-color:#bfd75f; background:var(--lime); }
.product-side { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 16px; }
.product-rate-list { display: grid; grid-template-columns: 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f7f8f3; }
.product-rate-list div { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.product-rate-list div:last-child { border-bottom: 0; }
.product-rate-list span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
.product-rate-list strong { display: block; overflow: hidden; color: var(--forest); font-size: 13px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.product-order-chat { align-self: flex-end; border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 0 0 5px; color: var(--forest); cursor: pointer; font-size: 14px; font-weight: 700; }
.product-video-open { overflow:hidden; }
.product-video-modal { position:fixed; inset:0; z-index:120; display:grid; place-items:center; padding:24px; }
.product-video-backdrop { position:absolute; inset:0; width:100%; height:100%; border:0; background:rgba(3,22,15,.88); backdrop-filter:blur(10px); cursor:pointer; }
.product-video-dialog { position:relative; z-index:1; width:min(920px,100%); overflow:hidden; border:1px solid rgba(255,255,255,.18); border-radius:22px; color:#fff; background:var(--forest-dark); box-shadow:0 32px 100px rgba(0,0,0,.45); }
.product-video-dialog header { min-height:66px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px 18px 14px 22px; }
.product-video-dialog h2 { margin:0; overflow:hidden; font:500 24px Georgia,"Noto Serif Thai",serif; text-overflow:ellipsis; white-space:nowrap; }
.product-video-dialog header button { width:38px; height:38px; flex:0 0 auto; border:1px solid rgba(255,255,255,.25); border-radius:50%; color:#fff; background:rgba(255,255,255,.08); cursor:pointer; font-size:25px; line-height:1; }
.product-video-dialog video { width:100%; max-height:calc(100vh - 150px); display:block; background:#000; }

.contact-section { padding: 64px max(6vw, calc((100vw - 1420px)/2)); color: white; background: var(--forest-dark); scroll-margin-top: 78px; }
.contact-top { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.contact-actions .button { white-space: nowrap; }
.contact-section h2 { font-size: clamp(38px, 4vw, 58px); }
.contact-copy > p:last-child { max-width: 650px; margin: 14px 0 0; color: rgba(255,255,255,.72); line-height: 1.6; }
.contact-section .kicker { color: var(--lime); }
.contact-highlights { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); align-items: start; gap: 52px; margin-top: 48px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.16); }
.contact-feature-heading h3 { max-width: 340px; margin: 0; font: 500 31px/1.2 Georgia, "Noto Serif Thai", serif; }
.contact-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contact-feature-grid article { min-width: 0; padding: 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.045); }
.contact-feature-grid h3 { margin: 0 0 9px; font: 500 20px Georgia, "Noto Serif Thai", serif; }
.contact-feature-grid p { margin: 0; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.6; }
.site-footer { display: grid; grid-template-columns: 230px 1fr; gap: 42px; align-items: center; padding: 28px max(6vw, calc((100vw - 1420px)/2)); color: rgba(255,255,255,.82); background: #78923f; font-size: 12px; line-height: 1.6; }
.site-footer p { margin: 2px 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: white; font: 600 20px Georgia, serif; }
.footer-brand img { width: 76px; height: 76px; border-radius: 9px; object-fit: cover; }
.contact-floats { position: fixed; right: 24px; bottom: 24px; z-index: 25; display: flex; align-items: center; gap: 10px; }
.floating-chat, .live-chat-button { min-height: 56px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 999px; padding: 11px 15px 11px 19px; box-shadow: 0 15px 45px rgba(0,0,0,.22); cursor: pointer; font-size: 13px; font-weight: 800; }
.floating-chat { color: #102418; background: var(--lime); }
.floating-chat b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--forest); }
.live-chat-button { color: white; background: var(--forest); }
.live-chat-button b { color: var(--lime); font-size: 13px; }
.live-chat-panel { position: fixed; right: 24px; bottom: 92px; z-index: 26; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border: 1px solid rgba(18,60,46,.18); border-radius: 22px; background: white; box-shadow: 0 28px 80px rgba(3,22,15,.3); }
.live-chat-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 16px; color: white; background: var(--forest-dark); }
.live-chat-panel > header div { display: grid; gap: 4px; }
.live-chat-panel > header strong { font: 600 19px Georgia, "Noto Serif Thai", serif; }
.live-chat-panel > header span { color: rgba(255,255,255,.6); font-size: 11px; }
.live-chat-panel > header button { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: white; background: rgba(255,255,255,.08); cursor: pointer; font-size: 22px; }
.live-chat-header-actions { display: flex !important; grid-auto-flow: column; align-items: center; gap: 7px !important; }
.live-chat-panel > header .live-chat-logout { width: auto; height: 30px; padding: 0 9px; border-radius: 999px; color: rgba(255,255,255,.76); font-size: 10px; }
.live-chat-auth-loading { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.live-chat-auth { overflow-y: auto; padding: 22px; background: #f7f8f3; }
.live-chat-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: #e8ece4; }
.live-chat-auth-tabs button { min-height: 40px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.live-chat-auth-tabs button.active { color: white; background: var(--forest); }
.live-chat-auth > p { margin: 16px 2px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.55; }
.live-chat-auth form { display: grid; gap: 13px; }
.live-chat-auth label { display: grid; gap: 6px; }
.live-chat-auth label span { font-size: 11px; font-weight: 800; }
.live-chat-auth input { width: 100%; border: 1px solid #d8ddd8; border-radius: 11px; outline: none; background: white; padding: 12px; color: var(--ink); }
.live-chat-auth input:focus { border-color: #78923f; box-shadow: 0 0 0 3px rgba(120,146,63,.12); }
.live-chat-auth form > button { min-height: 46px; border: 0; border-radius: 999px; color: white; background: var(--forest); cursor: pointer; font-weight: 800; }
.live-chat-auth form > button:disabled { opacity: .55; cursor: wait; }
.live-chat-messages { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #f4f5ef; }
.live-chat-empty { margin: auto; max-width: 250px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.6; }
.live-chat-message { max-width: 82%; display: grid; gap: 4px; }
.live-chat-message p { margin: 0; padding: 11px 13px; border-radius: 15px; white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.45; }
.live-chat-message time { color: #8a928c; font-size: 10px; }
.live-chat-message.visitor { align-self: flex-end; justify-items: end; }
.live-chat-message.visitor p { color: white; background: var(--forest); border-bottom-right-radius: 4px; }
.live-chat-message.admin { align-self: flex-start; }
.live-chat-message.admin p { border: 1px solid var(--line); background: white; border-bottom-left-radius: 4px; }
.live-chat-message > a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.live-chat-message > a img { display: block; width: min(230px, 100%); max-height: 250px; object-fit: cover; }
.live-chat-form { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 9px; padding: 13px; border-top: 1px solid var(--line); background: white; }
.live-chat-form label { display: grid; gap: 5px; grid-column: 1 / -1; }
.live-chat-form label > span:not(.sr-only) { color: var(--muted); font-size: 11px; font-weight: 700; }
.live-chat-form input, .live-chat-form textarea { width: 100%; resize: none; border: 1px solid #d8ddd8; border-radius: 11px; outline: none; background: #fbfcf9; padding: 10px 11px; color: var(--ink); }
.live-chat-form input:focus, .live-chat-form textarea:focus { border-color: #78923f; box-shadow: 0 0 0 3px rgba(120,146,63,.12); }
.live-chat-form .live-chat-attach { grid-column: 1; display: grid; place-items: center; border: 1px solid #d8ddd8; border-radius: 11px; background: #f5f7f2; cursor: pointer; font-size: 18px; }
.live-chat-form .live-chat-attach input { display: none; }
.live-chat-form .live-chat-text { grid-column: 2; }
.live-chat-image-preview { position: relative; grid-column: 1 / -1; width: 100px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.live-chat-image-preview img { width: 100px; height: 78px; object-fit: cover; }
.live-chat-image-preview button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; color: white; background: rgba(5,28,20,.82); cursor: pointer; }
.live-chat-form > button { align-self: end; min-width: 64px; min-height: 45px; border: 0; border-radius: 999px; color: white; background: var(--forest); cursor: pointer; font-weight: 800; }
.live-chat-form > button:disabled { opacity: .55; cursor: wait; }
.live-chat-error { grid-column: 1 / -1; margin: 0; color: #a13d35; font-size: 11px; }

.age-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(3,22,15,.9); backdrop-filter: blur(12px); }
.age-card { width: min(520px, 100%); padding: 54px; border: 1px solid rgba(255,255,255,.18); border-radius: 26px; text-align: center; color: white; background: var(--forest-dark); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.age-card > img { width: 116px; height: 116px; margin: 0 auto 24px; border-radius: 12px; object-fit: cover; }
.age-card .kicker { color: var(--lime); }
.age-card h2 { font-size: clamp(34px, 6vw, 48px); line-height: 1.12; }
.age-card > p:not(.kicker) { margin: 18px auto 28px; color: rgba(255,255,255,.68); line-height: 1.6; }
.age-card .button { width: 100%; }
.text-button { border: 0; padding: 13px; background: transparent; color: rgba(255,255,255,.65); cursor: pointer; text-decoration: underline; }
.age-language { display: flex; justify-content: center; gap: 7px; margin-top: 22px; color: rgba(255,255,255,.35); }
.age-language button { border: 0; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; }

@media (max-width: 1000px) {
  .site-header { gap: 12px; padding: 0 6vw; }
  .hero { min-height: 680px; }
  .hero-content { margin-left: 6vw; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .hero-content { padding-top: 148px; }
  .site-header { height: 72px; padding: 0 24px; }
  .header-account-links { gap: 5px; }
  .header-account-links a,
  .header-account-links button { min-height: 31px; padding: 0 8px; font-size: 9px; }
  .language-toggle { padding:3px; }
  .language-toggle button { min-width:38px; min-height:30px; padding:0 7px; font-size:10px; }
  .brand { font-size: 0; }
  .brand img { width: 50px; height: 50px; }
  .hero { min-height: 0; align-items: flex-start; }
  .hero-overlay { background: linear-gradient(90deg, rgba(5,28,20,.91), rgba(5,28,20,.52)); }
  .hero-content { width: 100%; margin: 0; padding: 102px 24px 52px; }
  .hero .eyebrow { margin-bottom: 12px; font-size: 9px; letter-spacing: .16em; }
  .hero h1 { max-width: 100%; font-size: clamp(42px, 12.5vw, 54px); line-height: .93; letter-spacing: -.035em; }
  .hero-copy { width: 100%; max-width: none; margin-top: 12px; font-size: 14px; line-height: 1.5; text-wrap: balance; }
  .hero-actions { flex-wrap: nowrap; gap: 8px; margin-top: 16px; }
  .hero-actions .button { min-width: 154px; min-height: 42px; flex: 0 0 auto; padding: 0 18px; font-size: 11.5px; white-space: nowrap; }
  .trust-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 8px; overflow: visible; }
  .trust-strip div { min-height: 52px; justify-content: center; padding: 7px 5px; text-align: center; font-size: 10px; line-height: 1.3; }
  .products-section { padding: 22px 24px 70px; }
  .section-heading { gap: 0; }
  .section-heading .kicker,
  .section-heading > p { display: none; }
  .section-heading h2, .contact-section h2 { font-size: 43px; }
  .category-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:18px 0 28px; padding-bottom:0; overflow:visible; }
  .category-tabs button { width:100%; min-width:0; min-height:48px; padding:10px 8px; white-space:normal; }
  .product-grid { grid-template-columns: 1fr; }
  .product-body { min-height: 0; grid-template-columns: minmax(0, 1fr) 116px; gap: 14px; padding: 20px; }
  .product-copy { padding-right: 0; }
  .product-body h3 { font-size: 25px; }
  .product-rate-list div { grid-template-columns: 34px minmax(0, 1fr); gap: 5px; padding: 9px 8px; }
  .product-order-chat { align-self: flex-start; font-size: 11px; line-height: 1.35; }
  .product-video-modal { padding:12px; }
  .product-video-dialog { border-radius:16px; }
  .product-video-dialog header { min-height:58px; padding:11px 13px 11px 16px; }
  .product-video-dialog h2 { font-size:19px; }
  .product-video-indicator { right:11px; bottom:11px; }
  .contact-section h2 { font-size: 38px; }
  .contact-section { padding: 50px 24px; }
  .contact-top { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 8px; }
  .contact-actions .button { min-width: 0; padding: 0 12px; font-size: 11px; }
  .contact-highlights { grid-template-columns: 1fr; gap: 24px; margin-top: 38px; padding-top: 28px; }
  .contact-feature-heading h3 { font-size: 27px; }
  .contact-feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .contact-feature-grid article { padding: 17px; }
  .site-footer { grid-template-columns: 1fr; gap: 16px; padding: 28px 24px 90px; }
  .contact-floats { right: 16px; bottom: 16px; }
  .floating-chat, .live-chat-button { min-height: 50px; padding: 9px 12px 9px 15px; }
  .live-chat-panel { right: 16px; bottom: 78px; height: min(520px, calc(100vh - 100px)); }
  .age-card { padding: 38px 24px; }
}

@media (max-width: 430px) {
  .site-header { padding: 0 15px; }
  .brand img { width: 44px; height: 44px; }
  .header-account-links a,
  .header-account-links button { padding: 0 7px; font-size: 8px; }
  .language-toggle button { min-width:34px; padding:0 5px; }
  .category-tabs { gap:8px; }
  .category-tabs button { min-height:45px; padding:8px 6px; font-size:13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Product manager */
.admin-shell { min-height: 100vh; background: #f2f2ec; color: var(--ink); }
.admin-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px max(3vw, 24px); color: white; background: var(--forest-dark); }
.admin-brand { display: flex; align-items: center; gap: 10px; font: 600 20px Georgia, serif; }
.admin-brand img { width: 48px; height: 48px; border-radius: 7px; object-fit: cover; }
.admin-brand b { margin-left: 7px; padding: 6px 10px; border-radius: 999px; color: var(--forest-dark); background: var(--lime); font: 700 11px Arial, sans-serif; }
.admin-menu { display: none; margin-left: auto; }
.admin-user { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 11px 18px; font-size: 13px; }
.admin-user > span { color: rgba(255,255,255,.6); }
.admin-user a { padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.38); }
.admin-user a.active { padding: 7px 10px; border: 0; border-radius: 999px; color: var(--forest-dark); background: var(--lime); font-weight: 800; }
.admin-user a.sign-out { color: #efb8ad; border-color: rgba(239,184,173,.45); }
.admin-layout { width: min(1480px, 94vw); margin: 0 auto; padding: 46px 0 80px; display: grid; grid-template-columns: minmax(360px, .75fr) minmax(520px, 1.25fr); gap: 24px; align-items: start; }
.admin-form-card, .admin-products-card, .admin-access-card { border: 1px solid rgba(18,60,46,.13); border-radius: 24px; background: white; box-shadow: 0 12px 40px rgba(13,44,32,.06); }
.admin-form-card { position: sticky; top: 24px; padding: 32px; }
.admin-products-card { padding: 32px; }
.admin-kicker { margin: 0 0 10px; color: #748447; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.admin-form-card h1, .admin-section-title h2, .admin-access-card h1 { margin: 0; font: 500 40px/1.08 Georgia, "Noto Serif Thai", serif; }
.admin-help { margin: 14px 0 28px; color: var(--muted); line-height: 1.65; }
.admin-form { display: grid; gap: 18px; }
.admin-form label { display: grid; gap: 8px; }
.admin-form label > span { font-size: 13px; font-weight: 700; }
.admin-form input:not([type="checkbox"]), .admin-form select, .admin-form textarea { width: 100%; border: 1px solid #d9ded9; border-radius: 12px; outline: none; background: #fbfcf9; padding: 13px 14px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.admin-form textarea { resize: vertical; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: #78923f; box-shadow: 0 0 0 3px rgba(120,146,63,.13); }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-price-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 15px; border-radius: 14px; background: #f5f7f0; }
.admin-checkbox { align-content: center; grid-template-columns: 20px 1fr; align-items: center; padding-top: 24px; cursor: pointer; }
.admin-checkbox input { width: 18px; height: 18px; accent-color: var(--forest); }
.admin-upload { padding: 16px; border: 1px dashed #b9c2ba; border-radius: 14px; background: #f8faf5; }
.admin-upload input { font-size: 13px; }
.admin-upload small { color: #748447; }
.admin-message { margin: 0; padding: 12px 14px; border-radius: 10px; color: var(--forest-dark); background: #eef5d0; font-size: 13px; font-weight: 700; }
.admin-form-actions { display: flex; gap: 10px; }
.admin-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: 0 22px; cursor: pointer; font-weight: 700; }
.admin-button.primary { color: white; background: var(--forest); }
.admin-button.secondary { color: var(--forest); border-color: rgba(18,60,46,.25); background: transparent; }
.admin-button:disabled { opacity: .55; cursor: wait; }
.admin-section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.admin-section-title h2 { font-size: 36px; }
.admin-section-title > span { padding: 7px 11px; border-radius: 999px; color: var(--forest); background: #eef1e9; font-size: 12px; font-weight: 700; }
.admin-product-list { display: grid; }
.admin-product-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.admin-product-row:last-child { border-bottom: 0; }
.admin-product-row.inactive { opacity: .48; }
.admin-product-row > img { width: 88px; height: 76px; border-radius: 12px; object-fit: cover; background: #e8ebe5; }
.admin-product-info { min-width: 0; }
.admin-product-info > span { color: #748447; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.admin-product-info h3 { margin: 5px 0; overflow: hidden; text-overflow: ellipsis; font: 500 22px Georgia, serif; white-space: nowrap; }
.admin-product-info p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-product-actions { display: flex; gap: 6px; }
.admin-product-actions button { border: 1px solid #d9ded9; border-radius: 999px; background: white; padding: 8px 11px; cursor: pointer; font-size: 12px; font-weight: 700; }
.admin-product-actions button:hover { border-color: var(--forest); }
.admin-product-actions button.danger { color: #a13d35; }
.admin-empty { padding: 50px 0; text-align: center; color: var(--muted); }
.admin-center { display: grid; place-items: center; padding: 24px; background: var(--forest-dark); }
.admin-access-card { width: min(520px, 100%); padding: 48px; text-align: center; }
.admin-access-card > img { width: 108px; height: 108px; margin: 0 auto 22px; border-radius: 12px; object-fit: cover; }
.admin-access-card > p:not(.admin-kicker) { margin: 18px 0 28px; color: var(--muted); line-height: 1.6; }

/* Customer account and parcel tracking */
.account-shell { min-height: 100vh; color: var(--ink); background: linear-gradient(135deg, #f9f6eb 0%, #edf2df 100%); }
.account-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px max(6vw, calc((100vw - 1420px)/2)); color: white; background: var(--forest-dark); }
.account-brand { display: flex; align-items: center; gap: 12px; font: 600 22px Georgia, serif; }
.account-brand img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.account-back { padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.35); font-size: 12px; font-weight: 700; }
.account-layout { width: min(1120px, 88vw); margin: 0 auto; padding: 70px 0 90px; display: grid; grid-template-columns: minmax(280px, .72fr) minmax(420px, 1.28fr); gap: 55px; align-items: start; }
.account-intro { padding-top: 22px; }
.account-intro h1 { margin: 0; font: 500 clamp(43px, 5vw, 68px)/1.02 Georgia, "Noto Serif Thai", serif; letter-spacing: -.035em; }
.account-intro > p:last-child { max-width: 470px; margin: 24px 0 0; color: var(--muted); line-height: 1.75; }
.account-card { overflow: hidden; border: 1px solid rgba(18,60,46,.14); border-radius: 24px; background: white; box-shadow: 0 18px 60px rgba(13,44,32,.1); }
.account-loading { min-height: 300px; display: grid; place-items: center; color: var(--muted); }
.account-auth-card { padding: 32px; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 26px; padding: 4px; border-radius: 999px; background: #ebeee5; }
.account-tabs button { min-height: 43px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.account-tabs button.active { color: white; background: var(--forest); }
.account-auth-card form { display: grid; gap: 16px; }
.account-auth-card label { display: grid; gap: 7px; }
.account-auth-card label span { font-size: 11px; font-weight: 800; }
.account-auth-card input { width: 100%; border: 1px solid #d7dcd7; border-radius: 12px; outline: none; padding: 13px 14px; }
.account-auth-card input:focus { border-color: #78923f; box-shadow: 0 0 0 3px rgba(120,146,63,.12); }
.account-submit { min-height: 48px; border: 0; border-radius: 999px; color: white; background: var(--forest); cursor: pointer; font-weight: 800; }
.account-error { margin: 0; color: #a13d35; font-size: 12px; }
.account-customer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 28px; color: white; background: var(--forest); }
.account-customer p { margin: 0 0 5px; color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.account-customer h2 { margin: 0 0 4px; font: 500 28px Georgia, "Noto Serif Thai", serif; }
.account-customer span { color: rgba(255,255,255,.7); font-size: 12px; }
.account-customer button { border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 8px 11px; color: white; background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.account-shipments-heading { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 15px; }
.account-shipments-heading h2 { margin: 0; font: 500 30px Georgia, "Noto Serif Thai", serif; }
.account-shipments-heading span { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: #78923f; font-size: 11px; font-weight: 800; }
.account-empty { margin: 0; padding: 30px 28px 48px; color: var(--muted); line-height: 1.65; }
.account-shipment-list { display: grid; gap: 12px; padding: 0 28px 28px; }
.account-shipment { padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcf7; }
.account-shipment-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-shipment time { color: #8a928c; font-size: 9px; }
.account-shipment > p { margin: 18px 0 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
.account-shipment > strong { display: block; overflow-wrap: anywhere; color: var(--forest); font: 600 24px/1.2 Georgia, serif; letter-spacing: .03em; }
.account-shipment-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 13px; }
.account-shipment-meta span { color: var(--muted); font-size: 11px; }
.account-shipment-meta button { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color: var(--forest); background: white; cursor: pointer; font-size: 10px; font-weight: 800; }
.account-shipment > small { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.5; }
.shipment-status { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 999px; color: #6b744f; background: #edf0e5; font-size: 9px; font-weight: 800; }
.shipment-status.shipped { color: #335a1f; background: #e1efc6; }
.shipment-status.delivered { color: white; background: #548537; }

/* Tracking manager */
.tracking-admin-layout { width: min(1480px, 94vw); margin: 0 auto; padding: 46px 0 80px; display: grid; grid-template-columns: minmax(360px, .72fr) minmax(520px, 1.28fr); gap: 24px; align-items: start; }
.tracking-form-card { position: sticky; top: 24px; }
.tracking-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 24px 0 12px; }
.tracking-search input { width: 100%; border: 1px solid #d6dcd6; border-radius: 12px; outline: none; padding: 12px 13px; }
.tracking-search button { border: 0; border-radius: 999px; padding: 0 17px; color: white; background: var(--forest); cursor: pointer; font-weight: 800; }
.tracking-customer-results { display: grid; gap: 6px; margin-bottom: 12px; }
.tracking-customer-results button { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; text-align: left; background: #f8faf4; cursor: pointer; }
.tracking-customer-results span { color: #78923f; font-size: 11px; font-weight: 800; }
.tracking-selected-customer { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 12px 0 22px; padding: 14px; border-radius: 13px; color: white; background: var(--forest); }
.tracking-selected-customer span { grid-column: 1 / -1; color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.tracking-selected-customer b { color: rgba(255,255,255,.72); font-size: 11px; }
.tracking-admin-list { display: grid; gap: 12px; margin-top: 24px; }
.tracking-admin-list article { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcf8; }
.tracking-admin-list article > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tracking-admin-list time { color: #8a928c; font-size: 9px; }
.tracking-admin-list h3 { margin: 15px 0 5px; overflow-wrap: anywhere; color: var(--forest); font: 600 24px Georgia, serif; }
.tracking-admin-list p { margin: 0; color: var(--muted); font-size: 12px; }
.tracking-admin-list small { display: block; margin-top: 8px; color: #78923f; font-weight: 800; }
.tracking-admin-list blockquote { margin: 13px 0 0; padding: 10px 12px; border-left: 3px solid #b9cc7b; color: var(--muted); background: #f1f4e7; font-size: 11px; }
.tracking-admin-list footer { display: flex; justify-content: flex-end; gap: 7px; margin-top: 14px; }
.tracking-admin-list footer button { border: 1px solid #d9ded9; border-radius: 999px; padding: 7px 10px; background: white; cursor: pointer; font-size: 10px; font-weight: 800; }
.tracking-admin-list footer button.danger { color: #a13d35; }

/* Live chat manager */
.admin-chat-shell { height: 100vh; overflow: hidden; }
.admin-chat-layout { height: calc(100vh - 76px); display: grid; grid-template-columns: 360px minmax(0, 1fr); background: #e9ede7; }
.admin-chat-list { min-width: 0; overflow-y: auto; border-right: 1px solid #d5dbd5; background: white; }
.admin-chat-list-title { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 25px 22px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.admin-chat-list-title h1 { margin: 0; font: 500 30px Georgia, "Noto Serif Thai", serif; }
.admin-chat-list-title > span { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--forest); font-size: 12px; font-weight: 800; }
.admin-chat-item { width: 100%; display: grid; gap: 8px; padding: 17px 20px; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: white; cursor: pointer; }
.admin-chat-item:hover, .admin-chat-item.active { background: #f2f5e9; }
.admin-chat-item.active { box-shadow: inset 4px 0 var(--forest); }
.admin-chat-item > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-chat-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-pin-mark { margin-right: 5px; font-size: 11px; }
.admin-chat-item time { flex: 0 0 auto; color: #8b938c; font-size: 10px; }
.admin-chat-item > small { color: #78923f; font-size: 10px; font-weight: 700; }
.admin-chat-item > small.admin-real-name { color: #657067; font-weight: 600; }
.admin-chat-tags { display: flex !important; align-items: center !important; justify-content: flex-start !important; flex-wrap: wrap; gap: 5px !important; }
.admin-chat-tags span { max-width: 150px; overflow: hidden; padding: 3px 7px; border-radius: 999px; color: #496023; background: #e9f0d4; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.admin-chat-item > p { margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-chat-item footer { display: flex; align-items: center; justify-content: space-between; }
.admin-chat-item footer span { padding: 4px 7px; border-radius: 999px; color: #6b744f; background: #edf0e5; font-size: 9px; font-weight: 800; }
.admin-chat-item footer span.closed { color: #7b817d; background: #eceeed; }
.admin-chat-item footer b { min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: white; background: #78923f; font-size: 10px; }
.admin-chat-thread { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; background: #f4f5ef; }
.admin-chat-thread > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 28px; border-bottom: 1px solid #d5dbd5; background: white; }
.admin-chat-thread > header h2 { margin: 0; font: 500 28px Georgia, "Noto Serif Thai", serif; }
.admin-chat-thread > header a { display: inline-block; margin-top: 4px; color: #78923f; font-size: 12px; font-weight: 700; }
.admin-thread-real-name { display: block; margin-top: 3px; color: #657067; font-size: 11px; }
.admin-chat-thread > header .admin-chat-tags { margin-top: 7px; }
.admin-thread-actions { display: flex; align-items: center; gap: 8px; }
.admin-chat-thread > header button { border: 1px solid #d9ded9; border-radius: 999px; background: white; padding: 9px 13px; cursor: pointer; font-size: 11px; font-weight: 700; }
.admin-chat-thread > header button.pinned { border-color: #b8ca7c; color: #3f5518; background: #eef5d5; }
.admin-private-details { display: grid; grid-template-columns: minmax(155px, .45fr) minmax(180px, .65fr) minmax(260px, 1fr) minmax(320px, 1.25fr); align-items: end; gap: 12px; padding: 12px 28px; border-bottom: 1px solid #d5dbd5; background: #fbfcf7; }
.admin-private-heading { align-self: center; display: grid; gap: 3px; }
.admin-private-heading strong { font-size: 12px; }
.admin-private-heading span, .admin-private-details label > span { color: var(--muted); font-size: 9px; }
.admin-private-details label { min-width: 0; display: grid; gap: 5px; }
.admin-private-details label > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 6px; }
.admin-private-details input, .admin-private-details textarea { width: 100%; min-width: 0; resize: vertical; border: 1px solid #d7dcd7; border-radius: 10px; outline: none; padding: 8px 10px; font: inherit; font-size: 11px; }
.admin-private-details input:focus, .admin-private-details textarea:focus { border-color: #78923f; box-shadow: 0 0 0 3px rgba(120,146,63,.12); }
.admin-private-details button { min-height: 34px; border: 0; border-radius: 999px; padding: 0 11px; color: white; background: var(--forest); cursor: pointer; font-size: 10px; font-weight: 800; }
.admin-private-details button:disabled { opacity: .45; cursor: not-allowed; }
.admin-customer-note { display: grid; grid-template-columns: minmax(150px, .45fr) minmax(260px, 1fr) auto; align-items: center; gap: 12px; padding: 12px 28px; border-bottom: 1px solid #d5dbd5; background: #fbfcf7; }
.admin-customer-note > div { display: grid; gap: 3px; }
.admin-customer-note strong { font-size: 12px; }
.admin-customer-note span { color: var(--muted); font-size: 9px; }
.admin-customer-note textarea { width: 100%; resize: vertical; border: 1px solid #d7dcd7; border-radius: 11px; outline: none; padding: 9px 11px; font-size: 12px; }
.admin-customer-note textarea:focus { border-color: #78923f; box-shadow: 0 0 0 3px rgba(120,146,63,.12); }
.admin-customer-note button { min-height: 38px; border: 0; border-radius: 999px; padding: 0 14px; color: white; background: var(--forest); cursor: pointer; font-size: 11px; font-weight: 800; }
.admin-customer-note button:disabled { opacity: .45; cursor: not-allowed; }
.admin-thread-messages { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 28px max(5vw, 28px); }
.admin-thread-message { max-width: min(620px, 75%); display: grid; gap: 5px; }
.admin-thread-message p { margin: 0; padding: 13px 15px; border-radius: 16px; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.admin-thread-message time { color: #89918b; font-size: 10px; }
.admin-thread-message.visitor { align-self: flex-start; }
.admin-thread-message.visitor p { border: 1px solid var(--line); background: white; border-bottom-left-radius: 4px; }
.admin-thread-message.admin { align-self: flex-end; justify-items: end; }
.admin-thread-message.admin p { color: white; background: var(--forest); border-bottom-right-radius: 4px; }
.admin-thread-message > a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; }
.admin-thread-message > a img { display: block; width: min(420px, 100%); max-height: 420px; object-fit: contain; }
.admin-reply-area { position: relative; min-width: 0; }
.admin-reply-form { display: grid; grid-template-columns: 46px 46px minmax(0, 1fr) auto; gap: 10px; padding: 16px max(5vw, 28px); border-top: 1px solid #d5dbd5; background: white; }
.admin-reply-form textarea { width: 100%; resize: none; border: 1px solid #d7dcd7; border-radius: 13px; outline: none; padding: 12px 14px; }
.admin-reply-form textarea:focus { border-color: #78923f; box-shadow: 0 0 0 3px rgba(120,146,63,.12); }
.admin-reply-form > button:not(.admin-reply-template-toggle) { min-width: 120px; border: 0; border-radius: 999px; color: white; background: var(--forest); cursor: pointer; font-weight: 800; }
.admin-reply-form button:disabled { opacity: .55; cursor: wait; }
.admin-reply-form > p { grid-column: 1 / -1; margin: 0; color: #a13d35; font-size: 11px; }
.admin-reply-template-toggle { display: grid; place-items: center; border: 1px solid #cfd6cf; border-radius: 12px; color: var(--forest); background: #f5f7f2; cursor: pointer; font-size: 28px; font-weight: 400; line-height: 1; }
.admin-reply-template-toggle.active { color: white; border-color: var(--forest); background: var(--forest); }
.admin-chat-attach { display: grid; place-items: center; border: 1px solid #d7dcd7; border-radius: 12px; background: #f5f7f2; cursor: pointer; font-size: 18px; }
.admin-chat-attach input { display: none; }
.admin-reply-picker { position: absolute; z-index: 12; left: max(5vw, 28px); bottom: calc(100% + 9px); width: min(560px, calc(100% - 56px)); max-height: min(620px, calc(100vh - 150px)); overflow-y: auto; border: 1px solid #ccd5cc; border-radius: 18px; background: white; box-shadow: 0 22px 65px rgba(5,28,20,.24); }
.admin-reply-picker > header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 17px 13px; border-bottom: 1px solid var(--line); color: white; background: var(--forest-dark); }
.admin-reply-picker > header > div { display: grid; gap: 4px; }
.admin-reply-picker > header strong { font-size: 14px; }
.admin-reply-picker > header span { color: rgba(255,255,255,.65); font-size: 9px; }
.admin-reply-picker > header button { width: 28px; height: 28px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: white; background: rgba(255,255,255,.08); cursor: pointer; font-size: 18px; }
.admin-reply-empty { margin: 0; padding: 24px 18px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.admin-reply-template-list { display: grid; }
.admin-reply-template-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.admin-reply-template-use { min-width: 0; display: grid; gap: 5px; border: 0; padding: 7px; text-align: left; background: transparent; cursor: pointer; }
.admin-reply-template-use:hover { border-radius: 9px; background: #f1f5e6; }
.admin-reply-template-use strong { color: var(--forest); font-size: 12px; }
.admin-reply-template-use span { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.admin-reply-template-list article > div { display: flex; gap: 4px; }
.admin-reply-template-list article > div button { border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px; background: white; cursor: pointer; font-size: 9px; font-weight: 800; }
.admin-reply-template-list article > div button.danger { color: #a13d35; }
.admin-reply-manage-toggle { margin: 12px 16px 14px; border: 1px solid var(--forest); border-radius: 999px; padding: 8px 12px; color: var(--forest); background: white; cursor: pointer; font-size: 10px; font-weight: 800; }
.admin-reply-manager { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 10px; padding: 16px; border-top: 1px solid var(--line); background: #f8faf4; }
.admin-reply-manager label { display: grid; gap: 5px; }
.admin-reply-manager label:first-child, .admin-reply-manager label:nth-child(2) { grid-column: 1 / -1; }
.admin-reply-manager label > span { color: var(--muted); font-size: 9px; font-weight: 800; }
.admin-reply-manager input, .admin-reply-manager textarea { width: 100%; resize: vertical; border: 1px solid #d5dcd5; border-radius: 10px; outline: none; padding: 9px 10px; font: inherit; font-size: 11px; }
.admin-reply-manager input:focus, .admin-reply-manager textarea:focus { border-color: #78923f; box-shadow: 0 0 0 3px rgba(120,146,63,.12); }
.admin-reply-manager > p { grid-column: 1 / -1; margin: 0; color: #a13d35; font-size: 10px; }
.admin-reply-manager > div { grid-column: 1 / -1; display: flex; gap: 7px; }
.admin-reply-manager > div button { border: 0; border-radius: 999px; padding: 9px 12px; color: white; background: var(--forest); cursor: pointer; font-size: 10px; font-weight: 800; }
.admin-reply-manager > div button.secondary { color: var(--forest); border: 1px solid var(--line); background: white; }
.admin-chat-image-preview { position: relative; grid-column: 1 / -1; width: 110px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.admin-chat-image-preview img { width: 110px; height: 84px; object-fit: cover; }
.admin-chat-image-preview button { position: absolute; top: 4px; right: 4px; min-width: 24px !important; width: 24px; height: 24px; border: 0; border-radius: 50%; padding: 0; color: white; background: rgba(5,28,20,.82); cursor: pointer; }
.admin-chat-placeholder { place-self: center; max-width: 420px; padding: 30px; text-align: center; color: var(--muted); }
.admin-chat-placeholder img { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 11px; object-fit: cover; opacity: .62; }
.admin-chat-placeholder h2 { margin: 0 0 10px; color: var(--ink); font: 500 32px Georgia, "Noto Serif Thai", serif; }
.admin-chat-placeholder p { margin: 0; line-height: 1.6; }

/* LINE group notifications */
.line-notification-layout { width: min(1400px, 94vw); margin: 0 auto; padding: 46px 0 80px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr); gap: 24px; align-items: start; }
.line-status-card, .line-setup-card { border: 1px solid rgba(18,60,46,.13); border-radius: 24px; background: white; box-shadow: 0 12px 40px rgba(13,44,32,.06); }
.line-status-card { padding: 34px; }
.line-setup-card { padding: 32px; }
.line-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.line-title-row h1, .line-setup-card h2 { margin: 0; font: 500 40px/1.08 Georgia, "Noto Serif Thai", serif; }
.line-title-row p, .line-setup-intro { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.line-ready-badge { flex: 0 0 auto; min-height: 31px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 999px; color: #7b614b; background: #f1e8dc; font-size: 10px; font-weight: 800; }
.line-ready-badge.ready { color: #335a1f; background: #e1efc6; }
.line-status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.line-status-grid > div { min-width: 0; display: grid; gap: 7px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #f8faf4; }
.line-status-grid span { color: var(--muted); font-size: 10px; font-weight: 800; }
.line-status-grid strong { overflow-wrap: anywhere; font-size: 13px; }
.line-status-grid strong.ok { color: #53752c; }
.line-status-grid strong.missing { color: #9d5b4f; }
.line-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.line-actions .admin-button { min-height: 41px; padding: 0 15px; }
.line-actions .danger-outline { color: #9b4038; border: 1px solid #e1c4c0; background: white; }
.line-message { margin: 18px 0 0; padding: 12px 14px; border-radius: 11px; color: #476320; background: #edf4da; font-size: 11px; line-height: 1.5; }
.line-message.error { color: #943f37; background: #f7e8e6; }
.line-setup-card h2 { font-size: 34px; }
.line-steps { display: grid; gap: 0; margin: 25px 0 0; padding: 0; list-style: none; }
.line-steps > li { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.line-steps > li > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--forest); font-size: 10px; font-weight: 800; }
.line-steps strong { display: block; color: var(--forest); font-size: 13px; }
.line-steps p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.line-webhook-box { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 9px; }
.line-webhook-box code { min-width: 0; overflow-x: auto; padding: 10px; border-radius: 9px; color: var(--forest); background: #edf1e7; font-size: 9px; white-space: nowrap; }
.line-webhook-box button { border: 0; border-radius: 999px; padding: 0 12px; color: white; background: var(--forest); cursor: pointer; font-size: 9px; font-weight: 800; }
.line-security-note { margin: 8px 0 0; padding: 14px; border-radius: 12px; color: #4c5b50; background: #edf1e9; font-size: 11px; line-height: 1.6; }

/* Meta Pixel manager */
.pixel-admin-layout { width: min(1400px, 94vw); margin: 0 auto; padding: 46px 0 80px; display: grid; grid-template-columns: minmax(360px, .72fr) minmax(520px, 1.28fr); gap: 24px; align-items: start; }
.pixel-form-card, .pixel-list-card { border: 1px solid rgba(18,60,46,.13); border-radius: 24px; background: white; box-shadow: 0 12px 40px rgba(13,44,32,.06); }
.pixel-form-card { position: sticky; top: 24px; padding: 32px; }
.pixel-list-card { padding: 32px; }
.pixel-form-card h1, .pixel-list-heading h2 { margin: 0; font: 500 40px/1.08 Georgia, "Noto Serif Thai", serif; }
.pixel-help { margin: 14px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.pixel-form { display: grid; gap: 17px; }
.pixel-form label { display: grid; gap: 7px; }
.pixel-form label > span { font-size: 12px; font-weight: 800; }
.pixel-form input:not([type="checkbox"]) { width: 100%; border: 1px solid #d9ded9; border-radius: 12px; outline: none; background: #fbfcf9; padding: 13px 14px; color: var(--ink); }
.pixel-form input:not([type="checkbox"]):focus { border-color: #78923f; box-shadow: 0 0 0 3px rgba(120,146,63,.13); }
.pixel-enabled { grid-template-columns: 20px 1fr; align-items: center; padding: 4px 0; cursor: pointer; }
.pixel-enabled input { width: 18px; height: 18px; accent-color: var(--forest); }
.pixel-note { display: grid; gap: 7px; margin-top: 25px; padding: 16px; border-radius: 14px; color: var(--forest); background: #eef2e7; }
.pixel-note strong { font-size: 12px; }
.pixel-note span { font-size: 11px; }
.pixel-note small { color: var(--muted); line-height: 1.5; }
.pixel-list-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.pixel-list-heading h2 { font-size: 36px; }
.pixel-list-heading > span { padding: 7px 10px; border-radius: 999px; color: #3e611e; background: #e5efce; font-size: 10px; font-weight: 800; }
.pixel-list { display: grid; }
.pixel-list article { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pixel-list article:last-child { border-bottom: 0; }
.pixel-list article.inactive { opacity: .5; }
.pixel-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: white; background: #1877f2; font: 700 30px Georgia, serif; }
.pixel-info { min-width: 0; display: grid; gap: 5px; }
.pixel-info > span { color: #708a43; font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.pixel-info h3 { margin: 0; overflow: hidden; font: 500 22px Georgia, "Noto Serif Thai", serif; text-overflow: ellipsis; white-space: nowrap; }
.pixel-info code { color: var(--muted); font-size: 12px; }
.pixel-actions { display: flex; gap: 6px; }
.pixel-actions button { border: 1px solid #d9ded9; border-radius: 999px; padding: 8px 10px; background: white; cursor: pointer; font-size: 10px; font-weight: 800; }
.pixel-actions button.danger { color: #a13d35; }
.pixel-empty { padding: 60px 20px; text-align: center; }
.pixel-empty strong { font: 500 26px Georgia, "Noto Serif Thai", serif; }
.pixel-empty p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }

/* Marketing consent */
.marketing-consent { position: fixed; z-index: 80; left: 50%; bottom: 18px; width: min(760px, calc(100vw - 28px)); display: flex; align-items: center; justify-content: space-between; gap: 24px; transform: translateX(-50%); padding: 17px 18px 17px 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; color: white; background: rgba(8,39,29,.97); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.marketing-consent > div:first-child { min-width: 0; display: grid; gap: 4px; }
.marketing-consent strong { color: var(--lime); font-size: 13px; }
.marketing-consent p { margin: 0; color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.5; }
.marketing-consent small { color: rgba(255,255,255,.5); font-size: 9px; }
.marketing-consent-actions { flex: 0 0 auto; display: flex; gap: 7px; }
.marketing-consent button { min-height: 38px; border-radius: 999px; padding: 0 14px; cursor: pointer; font-size: 10px; font-weight: 800; }
.marketing-consent button.decline { border: 1px solid rgba(255,255,255,.3); color: white; background: transparent; }
.marketing-consent button.accept { border: 0; color: var(--forest-dark); background: var(--lime); }
.marketing-consent-settings { position: fixed; z-index: 70; left: 13px; bottom: 13px; min-height: 32px; border: 1px solid rgba(18,60,46,.2); border-radius: 999px; padding: 0 11px; color: var(--forest); background: rgba(255,255,255,.92); box-shadow: 0 8px 24px rgba(0,0,0,.1); cursor: pointer; font-size: 9px; font-weight: 800; }

@media (max-width: 1180px) {
  .admin-header { min-height: 68px; align-items: center; gap: 12px; padding: 9px 14px; }
  .admin-brand { min-width: 0; gap: 8px; font-size: 18px; }
  .admin-brand img { width: 44px; height: 44px; }
  .admin-brand b { margin-left: 2px; padding: 6px 8px; font-size: 9px; }
  .admin-user-desktop { display: none; }
  .admin-menu { position: relative; flex: 0 0 auto; display: block; }
  .admin-menu summary { min-height: 42px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 0 13px; color: white; background: rgba(255,255,255,.07); cursor: pointer; list-style: none; font-size: 10px; font-weight: 800; }
  .admin-menu summary::-webkit-details-marker { display: none; }
  .admin-menu summary b { color: var(--lime); font-size: 18px; line-height: 1; }
  .admin-menu[open] summary { color: var(--forest-dark); background: var(--lime); }
  .admin-menu[open] summary b { font-size: 0; }
  .admin-menu[open] summary b::after { content: "×"; color: var(--forest-dark); font-size: 21px; }
  .admin-menu:not([open]) > .admin-user-mobile { display: none; }
  .admin-menu[open] > .admin-user-mobile { position: fixed; z-index: 90; top: 76px; left: 14px; right: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; color: white; background: rgba(8,39,29,.98); box-shadow: 0 22px 60px rgba(0,0,0,.34); }
  .admin-user-mobile > span { grid-column: 1 / -1; display: block; padding: 3px 4px 7px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .admin-user-mobile a { min-height: 43px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; padding: 7px 8px; text-align: center; background: rgba(255,255,255,.045); font-size: 11px; font-weight: 800; }
  .admin-user-mobile a.active { padding: 7px 8px; border: 1px solid var(--lime); }
  .admin-user-mobile a.sign-out { grid-column: 1 / -1; color: #efb8ad; border-color: rgba(239,184,173,.25); background: rgba(123,35,24,.18); }
}

@media (max-width: 980px) {
  .account-layout { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; }
  .account-intro { padding-top: 0; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-form-card { position: static; }
  .tracking-admin-layout { grid-template-columns: 1fr; }
  .tracking-form-card { position: static; }
  .admin-chat-layout { grid-template-columns: 300px minmax(0, 1fr); }
  .admin-private-details { grid-template-columns: 1fr 1fr; }
  .admin-private-heading { grid-column: 1 / -1; }
  .line-notification-layout { grid-template-columns: 1fr; }
  .pixel-admin-layout { grid-template-columns: 1fr; }
  .pixel-form-card { position: static; }
}

@media (max-width: 650px) {
  .account-header { min-height: 70px; padding: 9px 16px; }
  .account-brand { font-size: 17px; }
  .account-brand img { width: 48px; height: 48px; }
  .account-layout { width: auto; padding: 36px 15px 65px; }
  .account-intro h1 { font-size: 42px; }
  .account-auth-card { padding: 22px 18px; }
  .account-customer { padding: 20px; }
  .account-shipments-heading { padding: 21px 20px 13px; }
  .account-shipment-list { padding: 0 20px 20px; }
  .admin-header { min-height: 68px; align-items: center; gap: 12px; padding: 9px 14px; }
  .admin-brand { min-width: 0; gap: 8px; font-size: 18px; }
  .admin-brand img { width: 44px; height: 44px; }
  .admin-brand b { margin-left: 2px; padding: 6px 8px; font-size: 9px; }
  .admin-menu { position: relative; flex: 0 0 auto; }
  .admin-menu summary { min-height: 42px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 0 13px; color: white; background: rgba(255,255,255,.07); cursor: pointer; list-style: none; font-size: 10px; font-weight: 800; }
  .admin-menu summary::-webkit-details-marker { display: none; }
  .admin-menu summary b { color: var(--lime); font-size: 18px; line-height: 1; }
  .admin-menu[open] summary { color: var(--forest-dark); background: var(--lime); }
  .admin-menu[open] summary b { font-size: 0; }
  .admin-menu[open] summary b::after { content: "×"; color: var(--forest-dark); font-size: 21px; }
  .admin-menu:not([open]) > .admin-user { display: none; }
  .admin-menu[open] > .admin-user { position: fixed; z-index: 90; top: 76px; left: 14px; right: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; color: white; background: rgba(8,39,29,.98); box-shadow: 0 22px 60px rgba(0,0,0,.34); }
  .admin-user > span { grid-column: 1 / -1; display: block; padding: 3px 4px 7px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .admin-user a { min-height: 43px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; padding: 7px 8px; text-align: center; background: rgba(255,255,255,.045); font-size: 11px; font-weight: 800; }
  .admin-user a.active { padding: 7px 8px; border: 1px solid var(--lime); }
  .admin-user a.sign-out { grid-column: 1 / -1; color: #efb8ad; border-color: rgba(239,184,173,.25); background: rgba(123,35,24,.18); }
  .admin-layout { width: auto; padding: 22px 14px 60px; }
  .tracking-admin-layout { width: auto; padding: 22px 14px 60px; }
  .admin-form-card, .admin-products-card { padding: 22px 18px; border-radius: 18px; }
  .admin-form-row { grid-template-columns: 1fr; }
  .admin-price-row { grid-template-columns: 1fr; }
  .admin-checkbox { padding-top: 0; }
  .admin-product-row { grid-template-columns: 66px minmax(0, 1fr); }
  .admin-product-row > img { width: 66px; height: 66px; }
  .admin-product-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .admin-section-title h2 { font-size: 30px; }
  .admin-chat-shell { height: auto; min-height: 100vh; overflow: visible; }
  .admin-chat-layout { height: auto; min-height: calc(100vh - 76px); grid-template-columns: 1fr; grid-template-rows: auto minmax(560px, 1fr); }
  .admin-chat-list { max-height: 290px; border-right: 0; border-bottom: 1px solid #d5dbd5; }
  .admin-chat-list-title { padding: 18px; }
  .admin-chat-list-title h1 { font-size: 26px; }
  .admin-chat-thread { min-height: 560px; }
  .admin-chat-thread > header { padding: 14px 16px; }
  .admin-chat-thread > header h2 { font-size: 24px; }
  .admin-thread-actions { align-items: flex-end; flex-direction: column; gap: 6px; }
  .admin-private-details { grid-template-columns: 1fr; padding: 12px 16px; }
  .admin-private-heading { grid-column: auto; }
  .admin-customer-note { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .admin-customer-note > div { grid-column: 1 / -1; }
  .admin-thread-messages { padding: 20px 16px; }
  .admin-thread-message { max-width: 86%; }
  .admin-reply-form { grid-template-columns: 42px 42px minmax(0, 1fr) auto; gap: 7px; padding: 12px; }
  .admin-reply-form > button:not(.admin-reply-template-toggle) { min-width: 78px; font-size: 11px; }
  .admin-reply-picker { left: 12px; width: calc(100% - 24px); max-height: min(560px, calc(100vh - 125px)); }
  .admin-reply-template-list article { grid-template-columns: 1fr; }
  .admin-reply-template-list article > div { justify-content: flex-end; }
  .line-notification-layout { width: auto; padding: 22px 14px 60px; }
  .line-status-card, .line-setup-card { padding: 22px 18px; border-radius: 18px; }
  .line-title-row { display: grid; gap: 14px; }
  .line-title-row h1 { font-size: 34px; }
  .line-status-grid { grid-template-columns: 1fr; }
  .line-actions .admin-button { width: 100%; }
  .pixel-admin-layout { width: auto; padding: 22px 14px 60px; }
  .pixel-form-card, .pixel-list-card { padding: 22px 18px; border-radius: 18px; }
  .pixel-list article { grid-template-columns: 42px minmax(0, 1fr); }
  .pixel-icon { width: 40px; height: 40px; }
  .pixel-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .marketing-consent { align-items: stretch; flex-direction: column; gap: 13px; }
  .marketing-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 390px) {
  .admin-menu summary { width: 42px; justify-content: center; padding: 0; }
  .admin-menu summary span { display: none; }
  .admin-brand { font-size: 17px; }
}
