/* NAP Shop — shared design tokens + site styles
   Design language: red / black / white (NAP merchandise red, agency-style layout).
   Typefaces: DB Heavent (display) + DB Helvethaica X (body), client-provided. */

@font-face {
  font-family: "DB Heavent";
  src: url("../fonts/heavent-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DB Heavent";
  src: url("../fonts/heavent-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "DB Heavent";
  src: url("../fonts/heavent-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "DB Heavent";
  src: url("../fonts/heavent-black.woff2") format("woff2");
  font-weight: 800 900;
  font-display: swap;
}
@font-face {
  font-family: "DB Helvethaica X";
  src: url("../fonts/helvethaica-light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "DB Helvethaica X";
  src: url("../fonts/helvethaica-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DB Helvethaica X";
  src: url("../fonts/helvethaica-medium.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: "DB Helvethaica X";
  src: url("../fonts/helvethaica-bold.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}

:root{
  --red: #E31E24;
  --red-dark: #B8141A;
  --black: #111111;
  --ink: #1A1A1A;
  --white: #FFFFFF;
  --paper: #F5F3F1;

  /* Context tokens — light by default, flipped inside dark sections (.on-dark) */
  --bg: var(--white);
  --bg-alt: var(--paper);
  --surface: var(--white);
  --surface-2: #FBFAF9;
  --line: #E6E2DE;
  --text: #161616;
  --text-muted: #5E5E5E;

  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-btn: 6px;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --font-display: "DB Heavent", "Kanit", "Noto Sans Thai", sans-serif;
  --font-body: "DB Helvethaica X", "Noto Sans Thai", sans-serif;
}

header, .hero, .alt-bg, footer, .admin-topbar{
  --bg: var(--black);
  --bg-alt: #0B0B0B;
  --surface: var(--ink);
  --surface-2: #222222;
  --line: rgba(255,255,255,0.12);
  --text: #FFFFFF;
  --text-muted: #B9B9B9;
  color: var(--text);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{ font-family:var(--font-display); text-wrap:balance; margin:0; }
a{color:inherit;}
img{max-width:100%;display:block;}
.wrap{max-width:1180px;margin:0 auto;padding-inline:24px;}
section{position:relative;}
:focus-visible{outline:2px solid var(--red); outline-offset:2px;}

/* ---------- Header ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(17,17,17,0.92);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:3px solid var(--red);
}
.header-row{ display:flex; align-items:center; justify-content:space-between; padding-block:14px; }
.logo{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-display); font-weight:800; font-size:27.3px; letter-spacing:0.02em;
  text-decoration:none;
}
.logo-badge{
  width:38px; height:38px; border-radius:50%;
  background:var(--red);
  display:flex; align-items:center; justify-content:center;
  font-size:22.1px; font-weight:800; color:var(--white);
  flex:none;
}
nav.primary-nav{ display:flex; gap:28px; align-items:center; }
nav.primary-nav a{ font-size:20.8px; font-weight:600; text-decoration:none; color:var(--text-muted); transition:color .18s ease; }
nav.primary-nav a:hover, nav.primary-nav a:focus-visible{color:var(--white);}

.call-pill{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--red); color:var(--white); font-weight:700; font-size:19.5px;
  padding:9px 16px; border-radius:var(--radius-btn); text-decoration:none; white-space:nowrap;
  transition:background .18s ease;
}
.call-pill:hover{background:var(--red-dark);}
.call-pill svg{width:16px;height:16px;flex:none;}

.menu-toggle{
  display:none; background:none; border:1px solid var(--line); border-radius:var(--radius-btn);
  width:42px; height:42px; color:var(--text); cursor:pointer;
}
.menu-toggle svg{width:20px;height:20px;}

/* ---------- Hero / slideshow ---------- */
.hero{ position:relative; min-height:min(640px, 92vh); display:flex; align-items:flex-end; overflow:hidden; isolation:isolate; background:var(--black); }
.slide{ position:absolute; inset:0; background:var(--black); opacity:0; transition:opacity 1s ease; display:flex; align-items:flex-end; }
.slide.is-active{opacity:1; z-index:1;}
.slide::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(circle at 85% 20%, rgba(227,30,36,0.45), transparent 45%),
    linear-gradient(120deg, #0E0E0E 40%, #1C0A0B 100%);
}
.slide-bg-img{ position:absolute; inset:0; z-index:0; width:100%; height:100%; object-fit:cover; }
/* Photos show at full clarity (Pop: no overlay); a soft shadow keeps the text readable instead */
.slide:has(.slide-bg-img) .slide-title,
.slide:has(.slide-bg-img) .slide-sub{ text-shadow:0 2px 14px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9); }
.slide:has(.slide-bg-img) .slide-sub{
  display:inline-block; color:#F2F2F2; text-shadow:none;
  background:rgba(17,17,17,0.78); border-left:3px solid var(--red); padding:10px 14px;
}
.slide:has(.slide-bg-img) .btn-outline{ background:rgba(17,17,17,0.78); border-color:var(--white); color:var(--white); }

.slide-content{ position:relative; z-index:2; width:100%; padding:0 24px 64px; max-width:1180px; margin:0 auto; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:18.2px; font-weight:700; letter-spacing:0.08em;
  color:var(--white); text-transform:uppercase;
  background:var(--red);
  padding:6px 12px; border-radius:2px; margin-bottom:18px;
}
.slide-title{
  font-size:clamp(3.12rem, 7.8vw, 5.98rem); font-weight:800; line-height:1.02;
  color:var(--white);
  max-width:14ch;
}
.slide-sub{ margin-top:16px; font-size:clamp(1.3rem,2.6vw,1.56rem); color:var(--text-muted); max-width:46ch; }
.slide-cta{ margin-top:28px; display:flex; gap:14px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:10px; font-weight:700; font-size:20.8px; text-decoration:none;
  padding:13px 26px; border-radius:var(--radius-btn); transition:transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  border:2px solid transparent; cursor:pointer; font-family:var(--font-body);
}
.btn:hover{transform:translateY(-2px);}
.btn-solid{background:var(--red); color:var(--white);}
.btn-solid:hover{background:var(--red-dark);}
.btn-outline{border-color:currentColor; color:var(--text); background:transparent;}
.btn-outline:hover{border-color:var(--red); color:var(--red);}
.btn-block{width:100%; justify-content:center;}

.hero-dots{ position:absolute; z-index:3; bottom:24px; right:24px; display:flex; gap:9px; }
.hero-dots button{
  width:9px; height:9px; border-radius:50%; border:none; padding:0;
  background:rgba(255,255,255,0.35); cursor:pointer; transition:background .2s ease, width .2s ease;
}
.hero-dots button.is-active{background:var(--red); width:26px; border-radius:5px;}

/* ---------- Category cards ---------- */
.cat-section{padding:56px 0 8px;}
.cat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:-84px; position:relative; z-index:5; }
.cat-card{
  background:var(--surface); border:1px solid var(--line); border-top:4px solid var(--red);
  border-radius:var(--radius-lg); padding:26px; box-shadow:var(--shadow-card);
  text-decoration:none; color:var(--text); display:flex; flex-direction:column; gap:14px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover{transform:translateY(-4px); box-shadow:0 14px 34px rgba(0,0,0,0.12);}
.cat-icon{ width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:31.2px; background:var(--red); }
.cat-icon svg{width:26px; height:26px; color:var(--white);}
.cat-card h3{font-size:26px; font-weight:700;}
.cat-card p{margin:0; font-size:20.15px; color:var(--text-muted);}
.cat-arrow{margin-top:auto; font-size:19.5px; font-weight:700; color:var(--red); display:flex; align-items:center; gap:6px;}

/* ---------- Trust strip (red band) ---------- */
.trust{ padding:52px 0; margin-top:64px; background:var(--red); color:var(--white); }
.trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; }
.trust-item{display:flex; flex-direction:column; align-items:center; gap:12px;}
.trust-item .ic{
  font-size:33.8px; width:60px; height:60px; border-radius:50%; background:var(--white);
  display:flex; align-items:center; justify-content:center;
}
.trust-item .ic svg{width:28px; height:28px; color:var(--red);}
.trust-item span{font-size:20.15px; font-weight:600; color:var(--white); max-width:16ch;}

/* ---------- Product sections ---------- */
.product-section{padding:80px 0; background:var(--bg);}
#souvenir{background:var(--paper);}
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:36px; flex-wrap:wrap; }
.section-kicker{ font-size:18.2px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--red); }
.section-head h2{font-size:clamp(2.21rem,4.42vw,3.12rem); margin-top:6px;}
.section-head h2::after{content:""; display:block; width:56px; height:4px; background:var(--red); margin-top:14px;}
.section-head p{color:var(--text-muted); max-width:52ch; margin-top:14px; font-size:21.45px;}

.product-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.product-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg);
  overflow:hidden; display:flex; flex-direction:column; box-shadow:var(--shadow-card);
  transition:transform .2s ease, box-shadow .2s ease;
}
.product-card:hover{transform:translateY(-3px); box-shadow:0 14px 34px rgba(0,0,0,0.12);}
.alt-bg .product-card{box-shadow:none;}
.product-card[hidden]{display:none;}
.product-visual{ aspect-ratio:1/1; position:relative; display:flex; align-items:center; justify-content:center; font-size:54.6px; overflow:hidden; background:var(--bg-alt); }
.product-visual img{ width:100%; height:100%; object-fit:cover; }
.product-visual span.tag{
  position:absolute; top:10px; left:10px; font-size:14.3px; font-weight:700; letter-spacing:0.03em;
  background:var(--black); padding:4px 9px; border-radius:2px; color:var(--white);
  z-index:2;
}
.product-body{padding:18px 20px 22px; display:flex; flex-direction:column; gap:8px; flex:1;}
.product-body h3{font-size:24.05px; font-weight:700;}
.product-body p{margin:0; font-size:20.15px; color:var(--text-muted); flex:1;}
.product-link{ margin-top:10px; font-size:19.5px; font-weight:700; color:var(--red); text-decoration:none; display:inline-flex; align-items:center; gap:6px; }
.product-link:hover{color:var(--red-dark);}
.alt-bg .product-link{color:#FF4A4F;}
.product-grid.is-compact{grid-template-columns:repeat(4,1fr); gap:16px;}
.product-grid.is-compact .product-body{padding:14px 16px 18px; gap:6px;}
.product-grid.is-compact .product-body h3{font-size:22.1px;}
.product-grid.is-compact .product-body p{font-size:19.5px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.grid-more{display:flex; justify-content:center; margin-top:28px;}

/* CTA band: black on light sections, red on the black section */
.cta-band{
  margin-top:40px; border-radius:var(--radius-lg); padding:28px 32px;
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  background:var(--black); color:var(--white);
}
.cta-band h4{font-size:26px; font-weight:700; margin:0;}
.cta-band p{margin:4px 0 0; color:#C9C9C9; font-size:20.15px;}
.alt-bg .cta-band{background:var(--red);}
.alt-bg .cta-band p{color:rgba(255,255,255,0.88);}
.alt-bg .cta-band .btn-solid{background:var(--black);}
.alt-bg .cta-band .btn-solid:hover{background:#2A2A2A;}

.alt-bg{background:var(--black);}
.empty-note{color:var(--text-muted); font-size:20.15px; padding:20px; border:1px dashed var(--line); border-radius:var(--radius-md);}

/* ---------- Footer ---------- */
footer{ padding:60px 0 28px; background:var(--black); border-top:4px solid var(--red); }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; }
.footer-brand p{color:var(--text-muted); font-size:20.15px; max-width:34ch; margin-top:12px;}
.footer-col h5{font-size:18.2px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--red); margin:0 0 14px;}
.footer-col a{display:block; font-size:20.8px; text-decoration:none; color:var(--text); margin-bottom:10px; opacity:0.9;}
.footer-col a:hover{color:var(--red); opacity:1;}
.footer-phone{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:22.1px; margin-bottom:6px; text-decoration:none; color:var(--text); }
.footer-phone svg{width:16px;height:16px; color:var(--red); flex:none;}
.footer-phone small{display:block; font-weight:500; font-size:17.55px; color:var(--text-muted);}
.social-row{display:flex; gap:10px; margin-top:16px;}
.social-row a{
  width:38px; height:38px; border-radius:50%; background:var(--red); color:var(--white);
  display:flex; align-items:center; justify-content:center; text-decoration:none; transition:background .18s ease;
}
.social-row a:hover{background:var(--red-dark);}
.social-row svg{width:16px; height:16px;}
.footer-bottom{
  margin-top:44px; padding-top:22px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:17.55px; color:var(--text-muted);
}
.footer-bottom a{text-decoration:none; color:var(--text-muted);}
.footer-bottom a:hover{color:var(--red);}

/* ---------- Admin (light, red accents) ---------- */
.admin-shell{min-height:100vh; display:flex; flex-direction:column; background:var(--paper);}
.admin-topbar{
  display:flex; align-items:center; justify-content:space-between; padding:16px 24px;
  background:var(--black); border-bottom:3px solid var(--red);
}
.admin-main{flex:1; padding:32px 24px; max-width:1040px; margin:0 auto; width:100%;}
.admin-login-wrap{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; background:var(--black); }
.admin-card{ background:var(--white); border-top:4px solid var(--red); border-radius:var(--radius-lg); padding:36px; width:100%; max-width:400px; color:#161616; }
.admin-card h1{font-size:31.2px; margin-bottom:6px;}
.admin-card p.hint{color:var(--text-muted); font-size:18.85px; margin-bottom:22px;}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:16px;}
.field label{font-size:18.85px; font-weight:600; color:#3A3A3A;}
.field input, .field select, .field textarea{
  background:var(--white); border:1.5px solid #D9D4CF; border-radius:var(--radius-btn); color:#161616;
  padding:11px 13px; font-size:20.8px; font-family:var(--font-body); width:100%;
  color-scheme:light;
}
.field input:focus, .field select:focus, .field textarea:focus{outline:none; border-color:var(--red);}
.field textarea{resize:vertical; min-height:72px;}
.field input::placeholder, .field textarea::placeholder{color:#8A8A8A; opacity:1;}
.field select option{background:var(--white); color:#161616;}
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus{
  -webkit-text-fill-color:#161616;
  -webkit-box-shadow:0 0 0px 1000px var(--white) inset;
  box-shadow:0 0 0px 1000px var(--white) inset;
  caret-color:#161616;
  transition:background-color 5000s ease-in-out 0s;
}
.form-error{color:var(--red); font-size:18.2px; min-height:18px; margin-bottom:10px;}
.form-success{color:#1E7A3C; font-size:18.2px; min-height:18px; margin-bottom:10px;}

.tabs{display:flex; gap:8px; margin-bottom:24px; flex-wrap:wrap;}
.tab-btn{
  background:var(--white); border:1.5px solid #D9D4CF; color:#3A3A3A; font-weight:600; font-size:19.5px;
  padding:9px 18px; border-radius:var(--radius-btn); cursor:pointer; font-family:var(--font-body);
}
.tab-btn.is-active{background:var(--red); color:var(--white); border-color:var(--red);}
.admin-panel{display:none;}
.admin-panel.is-active{display:block;}
.admin-main form{box-shadow:var(--shadow-card);}

.admin-item-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:18px; margin-bottom:14px; display:flex; gap:16px; align-items:flex-start;
}
.admin-item-thumb{
  width:84px; height:64px; border-radius:8px; background:var(--paper); flex:none; overflow:hidden;
  display:flex; align-items:center; justify-content:center; font-size:28.6px; color:var(--text-muted);
}
.admin-item-thumb img{width:100%; height:100%; object-fit:cover;}
.admin-item-body{flex:1; min-width:0;}
.admin-item-body h4{font-size:20.8px; margin:0 0 2px;}
.admin-item-body p{margin:0; font-size:18.2px; color:var(--text-muted);}
.admin-item-actions{display:flex; gap:8px; flex:none;}
.icon-btn{
  background:var(--white); border:1px solid #D9D4CF; color:#161616; width:36px; height:36px; border-radius:var(--radius-btn);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.icon-btn:hover{border-color:var(--red);}
.icon-btn svg{width:15px; height:15px;}

.admin-section-title{font-size:26px; font-weight:700; margin-bottom:4px; font-family:var(--font-display);}
.admin-section-sub{color:var(--text-muted); font-size:18.85px; margin-bottom:18px;}
.upload-row{display:flex; align-items:center; gap:12px;}
.upload-hint{margin:8px 0 0; font-size:18.2px; line-height:1.5; color:var(--text-muted);}
.upload-hint strong{color:var(--red); font-weight:700;}
.upload-preview{
  width:64px; height:64px; border-radius:8px; background:var(--paper); border:1px dashed #CFC9C3;
  display:flex; align-items:center; justify-content:center; overflow:hidden; flex:none; font-size:14.3px; color:var(--text-muted); text-align:center;
}
.upload-preview img{width:100%; height:100%; object-fit:cover;}
.progress-bar{height:4px; background:var(--paper); border-radius:4px; overflow:hidden; margin-top:8px;}
.progress-bar > span{display:block; height:100%; background:var(--red); width:0%; transition:width .2s ease;}

/* ---------- Mobile ---------- */
@media (max-width:960px){
  nav.primary-nav{
    position:fixed; inset:84px 16px auto 16px; background:var(--ink); border:1px solid var(--line); border-top:3px solid var(--red); border-radius:var(--radius-md);
    flex-direction:column; align-items:flex-start; gap:2px; padding:10px;
    transform:translateY(-12px); opacity:0; pointer-events:none; transition:opacity .18s ease, transform .18s ease;
  }
  nav.primary-nav.is-open{transform:translateY(0); opacity:1; pointer-events:auto;}
  nav.primary-nav a{padding:10px 12px; width:100%; border-radius:6px;}
  nav.primary-nav a:hover{background:rgba(255,255,255,0.06);}
  .menu-toggle{display:flex; align-items:center; justify-content:center;}
}
@media (max-width:860px){
  .cat-grid{grid-template-columns:1fr; margin-top:24px;}
  .hero{min-height:min(560px, 88vh);}
  .trust-grid{grid-template-columns:repeat(2,1fr);}
  .product-grid{grid-template-columns:1fr 1fr;}
  .product-grid.is-compact{grid-template-columns:repeat(3,1fr);}
  .footer-grid{grid-template-columns:1fr; gap:30px;}
}
@media (max-width:600px){
  .call-pill span{display:none;}
  .hero{min-height:650px;}
  .product-section{padding:64px 0;}
  .product-grid{grid-template-columns:1fr;}
  .product-grid.is-compact{grid-template-columns:1fr 1fr; gap:12px;}
  .product-grid.is-compact .product-body{padding:12px 12px 14px;}
  .product-grid.is-compact .product-body h3{font-size:20.8px;}
  .product-grid.is-compact .product-link{font-size:18.85px;}
  .cta-band{flex-direction:column; align-items:flex-start; padding:24px;}
  .slide-title{max-width:none;}
  .admin-item-card{flex-direction:column;}
}
