/* =========================================================
   JOYSHOP ONLINE — กระเป๋าสาน หมวกสาน งานหัตถกรรมภูเขียว
   Design tokens
   ========================================================= */
:root{
  --sand:        #EFE6D2;   /* พื้นหลังหลัก โทนเส้นใยธรรมชาติ */
  --sand-deep:   #E3D3B4;   /* พื้นหลังรอง / การ์ด */
  --cream:       #FBF7EE;   /* พื้นหลังการ์ดสว่าง */
  --olive:       #40481F;   /* เขียวใบตองแห้ง / สีหลักแบรนด์ */
  --olive-dark:  #2B3116;   /* เขียวเข้ม สำหรับพื้นหลังเข้ม */
  --rust:        #A6532B;   /* สีดินเผา / ย้อมธรรมชาติ */
  --rust-dark:   #7E3E20;
  --ink:         #241F17;   /* ตัวอักษรหลัก */
  --ink-soft:    #55503F;   /* ตัวอักษรรอง */
  --line:        rgba(36,31,23,.14);
  --line-soft:   rgba(36,31,23,.08);
  --radius:      3px;
  --maxw:        1180px;
  --shadow:      0 14px 30px -18px rgba(36,31,23,.45);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--sand);
  color:var(--ink);
  font-family:'Noto Sans Thai','Sarabun',sans-serif;
  font-size:16px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:'Noto Serif Thai',serif;
  color:var(--ink);
  line-height:1.32;
  margin:0 0 .5em;
  font-weight:600;
}
h1{ font-size:clamp(2rem,4.6vw,3.2rem); }
h2{ font-size:clamp(1.5rem,3vw,2.15rem); }
h3{ font-size:1.25rem; }
p{ margin:0 0 1.1em; color:var(--ink-soft); max-width:70ch; }
a{ color:inherit; }
img{ max-width:100%; display:block; }
ul{ padding-left:1.2em; color:var(--ink-soft); }
li{ margin-bottom:.4em; }

.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.section{ padding:76px 0; }
.section--tight{ padding:52px 0; }
.section--deep{ background:var(--olive-dark); color:#EFE8D6; }
.section--deep h2, .section--deep h3{ color:#F6F1E0; }
.section--deep p{ color:#D8D2BC; }
.section--sandeep{ background:var(--sand-deep); }

.eyebrow{
  display:inline-flex; align-items:center; gap:.55em;
  color:var(--rust); font-weight:700; letter-spacing:.01em;
  margin-bottom:.9em; font-size:.98rem;
}
.eyebrow::before{
  content:""; width:22px; height:2px; background:var(--rust); display:inline-block;
}

/* weave-pattern divider — nod to the product craft */
.weave-rule{
  height:14px;
  background-image:repeating-linear-gradient(135deg, var(--rust) 0 8px, transparent 8px 16px),
                    repeating-linear-gradient(45deg, var(--olive) 0 8px, transparent 8px 16px);
  background-size:50% 100%;
  background-position:left top, right top;
  background-repeat:no-repeat;
  opacity:.85;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  padding:14px 30px;
  border-radius:var(--radius);
  font-weight:700; font-size:1rem;
  text-decoration:none; cursor:pointer;
  border:1px solid transparent;
  transition:transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--rust); color:#FBF7EE; }
.btn-primary:hover{ background:var(--rust-dark); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:var(--sand); }
.btn-light{ background:#FBF7EE; color:var(--olive-dark); }
.btn-light:hover{ background:#fff; }
.btn-ghost-light{ background:transparent; color:#F6F1E0; border-color:rgba(246,241,224,.55); }
.btn-ghost-light:hover{ background:rgba(246,241,224,.12); }

/* ---------- header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(239,230,210,.94);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 24px; max-width:var(--maxw); margin:0 auto;
}
.brand{
  display:flex; align-items:center; gap:12px;
  text-decoration:none; color:var(--ink);
}
.brand-mark{
  width:42px; height:42px; border-radius:50%;
  background:var(--olive); color:var(--sand);
  display:flex; align-items:center; justify-content:center;
  font-family:'Noto Serif Thai',serif; font-weight:700; font-size:1.05rem;
  flex:none;
}
.brand-text{ line-height:1.2; }
.brand-text strong{ font-family:'Noto Serif Thai',serif; font-size:1.12rem; display:block; }
.brand-text span{ font-size:.78rem; color:var(--ink-soft); letter-spacing:.02em; }

.nav-links{ display:flex; align-items:center; gap:30px; list-style:none; margin:0; padding:0; }
.nav-links a{
  text-decoration:none; font-weight:600; font-size:.97rem; color:var(--ink);
  padding:6px 2px; border-bottom:2px solid transparent;
  transition:border-color .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a.active{ border-color:var(--rust); color:var(--rust-dark); }

.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none; background:none; border:1px solid var(--line); border-radius:var(--radius);
  width:44px; height:40px; cursor:pointer; padding:0;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.nav-toggle span{ width:20px; height:2px; background:var(--ink); display:block; }

/* ---------- hero ---------- */
.hero{
  display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center;
  padding:64px 0 72px;
}
.hero-copy p.lede{ font-size:1.12rem; color:var(--ink-soft); }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top:22px; }
.hero-stats{ display:flex; gap:32px; margin-top:38px; flex-wrap:wrap; }
.hero-stats div strong{ display:block; font-family:'Noto Serif Thai',serif; font-size:1.6rem; color:var(--rust); }
.hero-stats div span{ font-size:.86rem; color:var(--ink-soft); }
.hero-media{ position:relative; }
.hero-media img{
  width:100%; height:460px; object-fit:cover; border-radius:6px; box-shadow:var(--shadow);
}
.hero-media .tag-card{
  position:absolute; left:-18px; bottom:-24px;
  background:var(--cream); border:1px solid var(--line);
  border-radius:var(--radius); padding:16px 20px; box-shadow:var(--shadow);
  max-width:230px;
}
.hero-media .tag-card strong{ display:block; font-family:'Noto Serif Thai',serif; color:var(--olive); font-size:1.05rem; margin-bottom:2px; }
.hero-media .tag-card span{ font-size:.85rem; color:var(--ink-soft); }

/* ---------- grids / cards ---------- */
.grid{ display:grid; gap:26px; }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }

.card{
  background:var(--cream); border:1px solid var(--line);
  border-radius:var(--radius); padding:28px 26px;
}
.card h3{ margin-bottom:.4em; }
.card p{ margin-bottom:0; font-size:.96rem; }
.card .icon{
  width:46px; height:46px; border-radius:50%;
  background:var(--sand-deep); color:var(--rust);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
  font-family:'Noto Serif Thai',serif; font-weight:700;
}

.product-card{
  background:var(--cream); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
}
.product-card .thumb{ height:230px; overflow:hidden; }
.product-card .thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.product-card:hover .thumb img{ transform:scale(1.045); }
.product-card .body{ padding:22px 22px 24px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-card .price{ color:var(--rust); font-weight:700; margin-top:auto; }
.badge{
  display:inline-block; align-self:flex-start;
  background:var(--olive); color:var(--sand);
  font-size:.74rem; font-weight:700; padding:4px 10px; border-radius:20px;
  letter-spacing:.02em;
}

/* process / steps */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; position:relative; }
.step{ position:relative; padding:0 20px; }
.step-num{
  width:54px; height:54px; border-radius:50%; background:var(--olive); color:var(--sand);
  display:flex; align-items:center; justify-content:center; font-family:'Noto Serif Thai',serif;
  font-size:1.2rem; margin-bottom:18px;
}
.step::after{
  content:""; position:absolute; top:27px; left:calc(100% - 8px); width:calc(100% - 34px);
  height:2px; background:var(--line);
}
.step:last-child::after{ display:none; }

/* testimonials */
.testi{
  background:var(--cream); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px; display:flex; flex-direction:column; gap:14px;
}
.testi p{ font-style:italic; color:var(--ink); margin-bottom:0; }
.testi .who{ display:flex; align-items:center; gap:12px; }
.testi .avatar{
  width:40px; height:40px; border-radius:50%; background:var(--rust); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:700; flex:none;
}
.testi .who strong{ display:block; font-size:.94rem; }
.testi .who span{ font-size:.8rem; color:var(--ink-soft); }
.stars{ color:var(--rust); letter-spacing:2px; font-size:.9rem; }

/* CTA band */
.cta-band{
  background:var(--olive); color:#F3EEDD; border-radius:6px;
  padding:52px 44px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-band h2{ color:#fff; margin-bottom:.3em; }
.cta-band p{ color:#D9D3BC; margin-bottom:0; }

/* breadcrumb / page header */
.page-hero{
  padding:56px 0 40px; border-bottom:1px solid var(--line); background:var(--sand-deep);
}
.page-hero .eyebrow{ margin-bottom:14px; }
.crumbs{ font-size:.85rem; color:var(--ink-soft); margin-bottom:18px; }
.crumbs a{ text-decoration:none; color:var(--ink-soft); }
.crumbs a:hover{ color:var(--rust); }

/* about page */
.about-media{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.about-media img{ border-radius:6px; height:100%; object-fit:cover; box-shadow:var(--shadow); }
.about-media .tall{ grid-row:span 2; height:100%; }
.values{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }

.company-box{
  background:var(--cream); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 32px;
}
.company-box dl{ display:grid; grid-template-columns:170px 1fr; gap:10px 18px; margin:0; }
.company-box dt{ color:var(--ink-soft); font-size:.92rem; }
.company-box dd{ margin:0; font-weight:600; }

/* contact page */
.contact-grid{ display:grid; grid-template-columns:1fr 1.15fr; gap:40px; align-items:start; }
.contact-list{ list-style:none; padding:0; margin:0 0 24px; display:flex; flex-direction:column; gap:18px; }
.contact-list li{ display:flex; gap:16px; align-items:flex-start; }
.contact-list .ic{
  width:44px; height:44px; border-radius:50%; background:var(--olive); color:var(--sand);
  display:flex; align-items:center; justify-content:center; flex:none; font-size:1.1rem;
}
.contact-list strong{ display:block; margin-bottom:2px; }
.contact-list span, .contact-list a{ color:var(--ink-soft); text-decoration:none; font-size:.95rem; }
.contact-list a:hover{ color:var(--rust); }
.map-frame{
  border:1px solid var(--line); border-radius:6px; overflow:hidden; box-shadow:var(--shadow);
}
.map-frame iframe{ width:100%; height:380px; border:0; display:block; }

/* policy page */
.policy h2{ margin-top:1.6em; }
.policy h2:first-child{ margin-top:0; }
.policy ol{ color:var(--ink-soft); padding-left:1.3em; }
.policy table{ width:100%; border-collapse:collapse; margin:1em 0 1.6em; font-size:.94rem; }
.policy th, .policy td{ border:1px solid var(--line); padding:10px 12px; text-align:right; vertical-align:top; }
.policy th{ background:var(--sand-deep); text-align:right; font-family:'Noto Serif Thai',serif; }
.policy td:first-child, .policy th:first-child{ text-align:right; }
.toc{
  background:var(--cream); border:1px solid var(--line); border-radius:var(--radius);
  padding:22px 26px; margin-bottom:36px;
}
.toc strong{ display:block; margin-bottom:10px; font-family:'Noto Serif Thai',serif; }
.toc ol{ margin:0; columns:2; column-gap:30px; }
.toc a{ text-decoration:none; color:var(--ink-soft); font-size:.94rem; }
.toc a:hover{ color:var(--rust); }

/* footer */
.site-footer{ background:var(--olive-dark); color:#D8D2BC; padding:64px 0 26px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:36px; margin-bottom:44px; }
.footer-brand strong{ font-family:'Noto Serif Thai',serif; color:#F6F1E0; font-size:1.15rem; display:block; margin-bottom:10px; }
.footer-brand p{ color:#B9B39C; font-size:.92rem; max-width:32ch; }
.footer-col h4{ color:#F0EBDA; font-family:'Noto Sans Thai',sans-serif; font-size:.96rem; margin-bottom:14px; }
.footer-col ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.footer-col a{ text-decoration:none; color:#B9B39C; font-size:.92rem; }
.footer-col a:hover{ color:#F0EBDA; }
.footer-col p{ color:#B9B39C; font-size:.92rem; margin-bottom:8px; }
.social-row{ display:flex; gap:10px; margin-top:6px; }
.social-row a{
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(216,210,188,.35);
  display:flex; align-items:center; justify-content:center; text-decoration:none; color:#F0EBDA;
}
.social-row a:hover{ background:rgba(216,210,188,.14); }
.footer-bottom{
  border-top:1px solid rgba(216,210,188,.18); padding-top:22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:.83rem; color:#9C9680;
}
.footer-bottom a{ text-decoration:none; color:#9C9680; }
.footer-bottom a:hover{ color:#F0EBDA; }

/* ---------- responsive ---------- */
@media (max-width:980px){
  .hero{ grid-template-columns:1fr; padding-top:36px; }
  .hero-media{ order:-1; }
  .hero-media img{ height:320px; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .values{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr; gap:28px; }
  .step::after{ display:none; }
  .about-media{ grid-template-columns:1fr; }
  .about-media .tall{ height:280px; }
  .contact-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .company-box dl{ grid-template-columns:140px 1fr; }
}
@media (max-width:720px){
  .nav-links{
    position:absolute; top:100%; left:0; right:0; background:var(--sand);
    flex-direction:column; align-items:flex-start; gap:4px; padding:14px 24px 22px;
    border-bottom:1px solid var(--line); display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:10px 0; width:100%; }
  .nav-toggle{ display:flex; }
  .nav-cta .btn{ display:none; }
  .grid-4, .grid-3, .grid-2{ grid-template-columns:1fr; }
  .cta-band{ flex-direction:column; align-items:flex-start; text-align:left; }
  .toc ol{ columns:1; }
  .footer-grid{ grid-template-columns:1fr; }
  .policy table{ font-size:.86rem; }
}
