/* ===== HotelXcademy — Black & Gold (Warm) ===== */
* { font-family: 'Sarabun', 'Inter', sans-serif; }
body { font-weight: 400; line-height: 1.7; font-size: 16px; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; }
strong, b { font-weight: 700; }

:root {
  --yellow: #feba00;
  --yellow-light: #ffc21c;
  --yellow-dark: #d7a212;
  --black: #000000;
  --black-soft: #0a0a0a;
  --black-card: #111111;
  --orange: #f97316;
  --orange-dark: #ea580c;
}

.text-navy { color: var(--black); }
.bg-navy { background-color: var(--black); }
.text-gold { color: var(--yellow); }
.bg-gold { background-color: var(--yellow); }

/* Hero */
.hero-gradient {
  position: relative;
  overflow: hidden;
  background: var(--black);
}
@keyframes hero-zoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-light) 100%);
  color: var(--black);
  font-weight: 800;
  padding: 0.625rem 2rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(254,186,0,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--yellow-light) 0%, #ffd54f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(254,186,0,0.5);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--yellow);
  font-weight: 600;
  padding: 0.5rem 2rem;
  border-radius: 2rem;
  border: 2px solid var(--yellow);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--yellow); color: var(--black); }

.btn-white {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  color: white;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-white:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }

/* Input */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #333;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.3s;
  outline: none;
  background: #1a1a1a;
  color: #e5e5e5;
}
.input-field::placeholder { color: #666; }
.input-field:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(254,186,0,0.18); background: #222; }

/* ===== DEPARTMENT FILTERS ===== */
.dept-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.25s;
}
.dept-btn:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(254,186,0,0.08);
}
.dept-btn.active {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(254,186,0,0.4);
}
/* recolor the emoji icons to match CI (gold silhouette → dark when button is gold) */
.dept-ico {
  color: transparent;
  text-shadow: 0 0 0 #fff;
}
.dept-btn:hover .dept-ico { text-shadow: 0 0 0 var(--yellow); }
.dept-btn.active .dept-ico { text-shadow: 0 0 0 #1a1208; }
/* feature card emoji icons → gold silhouette to match CI */
.feat-ico { color: transparent; text-shadow: 0 0 0 var(--yellow); }

/* ===== E-BOOK CARDS ===== */
.ebook-card {
  background: #141414;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  border: 1px solid #222;
}
.ebook-card:hover {
  box-shadow: 0 20px 40px rgba(254,186,0,0.1);
  transform: translateY(-8px);
  border-color: rgba(254,186,0,0.3);
}

.ebook-cover {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0a0a0a;
  position: relative;
}
.ebook-cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0a0a;
  transition: transform 0.5s ease;
}
.ebook-card:hover .ebook-cover-img {
  transform: scale(1.03);
}

/* Sale badge — orange */
.sale-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(249,115,22,0.4);
  letter-spacing: -0.02em;
}

/* Best Seller badge — orange */
.bestseller-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--orange), #fb923c);
  color: #fff;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(249,115,22,0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(249,115,22,0.5); }
  50% { box-shadow: 0 4px 16px rgba(249,115,22,0.8); }
}

/* Free bonus book — flag + corner thumbnail */
.bonus-flag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 7;
  background: linear-gradient(135deg, #feba00, #f97316);
  color: #1a1208;
  font-weight: 800;
  font-size: 0.62rem;
  padding: 3px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(249,115,22,0.55);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
  white-space: nowrap;
  animation: bonus-pulse 1.8s ease-in-out infinite;
}
@keyframes bonus-pulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 3px 14px rgba(249,115,22,0.55); }
  50% { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(249,115,22,0.9); }
}
.bonus-thumb {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 6;
  width: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2.5px solid #feba00;
  box-shadow: 0 6px 18px rgba(0,0,0,0.65), 0 0 0 2px rgba(254,186,0,0.3);
  transform: rotate(5deg);
  transition: transform 0.3s ease;
  background: #0a0a0a;
}
.ebook-card:hover .bonus-thumb { transform: rotate(0deg) scale(1.08); }
.bonus-thumb img { display: block; width: 100%; height: auto; }
.bonus-thumb-label {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: rgba(254,186,0,0.95);
  color: #111;
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
  padding: 2px 0;
  letter-spacing: 0.05em;
}
.ebook-card.is-bestseller {
  border: 2px solid rgba(249,115,22,0.3);
}
.ebook-card.is-bestseller:hover {
  border-color: rgba(249,115,22,0.6);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
  filter: brightness(0.25) saturate(0.8);
}
.hero-slide.active { opacity: 1; }

.hero-slide-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 15;
}
.hero-slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.hero-slide-dot.active {
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(254,186,0,0.7);
}

/* Floating latest-book columns flanking the hero text */
.hero-books {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 130px;
  pointer-events: none;
}
.hero-books-left { left: 3%; }
.hero-books-right { right: 3%; }
.hero-book {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(254,186,0,0.15);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-book.in { opacity: 1; transform: translateY(0); }
.hero-book img { display: block; width: 100%; height: auto; }
.hero-book:hover { animation-play-state: paused; }
.hero-book:hover img { filter: brightness(1.08); }
/* stagger the floating motion + entrance */
.hero-books-left  .hero-book:nth-child(1) { animation-delay: 0s;   transition-delay: .05s; }
.hero-books-left  .hero-book:nth-child(2) { animation-delay: 1.2s; transition-delay: .15s; margin-left: 26px; }
.hero-books-left  .hero-book:nth-child(3) { animation-delay: 2.4s; transition-delay: .25s; }
.hero-books-right .hero-book:nth-child(1) { animation-delay: .6s;  transition-delay: .1s; }
.hero-books-right .hero-book:nth-child(2) { animation-delay: 1.8s; transition-delay: .2s; margin-right: 26px; }
.hero-books-right .hero-book:nth-child(3) { animation-delay: 3s;   transition-delay: .3s; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-14px) rotate(1.5deg); }
}
/* Hide the floating books on narrower screens (keep hero clean on tablet/mobile) */
@media (max-width: 1100px) { .hero-books { display: none; } }

/* Floating top-16 best-sellers in two side clusters (8 left / 8 right),
   staggered 2-deep, bigger covers, drifting noticeably up/down + a little
   left/right, while keeping the centre text completely clear. No rank badges. */
.hero-bestsellers {
  position: absolute;
  top: 1%; left: 0; right: 0; bottom: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.hero-bestseller {
  position: absolute;
  width: 116px;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 1.2s ease;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.6));
  will-change: transform;
}
.hero-bestseller.in { opacity: 0.95; }
.hero-bestseller img {
  display: block; width: 100%; height: auto;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(254,186,0,0.4);
}
.hero-bestseller:hover { animation-play-state: paused; opacity: 1; z-index: 6; }
.hero-bestseller:hover img { box-shadow: 0 0 0 2px rgba(254,186,0,0.9); }

/* LEFT cluster (odd ranks) — outer col ~2%, inner col ~14%, 4 rows each,
   rows spaced wide so the strong up/down drift doesn't make them collide */
.hero-bs-1  { left: 2%;  top: 2%;  width: 124px; animation: heroDrift1 13s ease-in-out infinite; }
.hero-bs-3  { left: 14%; top: 15%; width: 108px; animation: heroDrift2 16s ease-in-out infinite; }
.hero-bs-5  { left: 3%;  top: 30%; width: 122px; animation: heroDrift3 14s ease-in-out infinite; }
.hero-bs-7  { left: 14%; top: 43%; width: 106px; animation: heroDrift4 17s ease-in-out infinite; }
.hero-bs-9  { left: 2%;  top: 58%; width: 120px; animation: heroDrift2 15s ease-in-out infinite; }
.hero-bs-11 { left: 14%; top: 71%; width: 104px; animation: heroDrift1 18s ease-in-out infinite; }
.hero-bs-13 { left: 3%;  top: 84%; width: 118px; animation: heroDrift4 14s ease-in-out infinite; }
.hero-bs-15 { left: 14%; top: 90%; width: 102px; animation: heroDrift3 16s ease-in-out infinite; }
/* RIGHT cluster (even ranks) — mirror of the left */
.hero-bs-2  { right: 2%;  left: auto; top: 3%;  width: 124px; animation: heroDrift3 15s ease-in-out infinite; }
.hero-bs-4  { right: 14%; left: auto; top: 16%; width: 108px; animation: heroDrift1 18s ease-in-out infinite; }
.hero-bs-6  { right: 3%;  left: auto; top: 31%; width: 122px; animation: heroDrift2 14s ease-in-out infinite; }
.hero-bs-8  { right: 14%; left: auto; top: 44%; width: 106px; animation: heroDrift4 17s ease-in-out infinite; }
.hero-bs-10 { right: 2%;  left: auto; top: 59%; width: 120px; animation: heroDrift3 13s ease-in-out infinite; }
.hero-bs-12 { right: 14%; left: auto; top: 72%; width: 104px; animation: heroDrift2 16s ease-in-out infinite; }
.hero-bs-14 { right: 3%;  left: auto; top: 85%; width: 118px; animation: heroDrift1 15s ease-in-out infinite; }
.hero-bs-16 { right: 14%; left: auto; top: 91%; width: 102px; animation: heroDrift4 18s ease-in-out infinite; }

/* drift — strong up/down + a little left/right, kept within the side zones */
@keyframes heroDrift1 { 0%,100% { transform: translate(0,0) rotate(-2deg); }   50% { transform: translate(15px,-40px) rotate(2deg); } }
@keyframes heroDrift2 { 0%,100% { transform: translate(0,0) rotate(2deg); }    50% { transform: translate(-14px,38px) rotate(-2deg); } }
@keyframes heroDrift3 { 0%,100% { transform: translate(0,0) rotate(-1deg); }   50% { transform: translate(13px,42px) rotate(3deg); } }
@keyframes heroDrift4 { 0%,100% { transform: translate(0,0) rotate(2deg); }    50% { transform: translate(-12px,-38px) rotate(-2deg); } }
@media (max-width: 1100px) { .hero-bestsellers { display: none; } }

/* The #1 best-seller roaming the WHOLE hero — bigger than the side books,
   travels left/right + up/down across the area (passes behind the headline text) */
.hero-roamer-wrap {
  position: absolute;
  inset: 0;
  z-index: 4;             /* above side books (z3), below the headline text (z5) */
  pointer-events: none;
  overflow: hidden;
}
.hero-roamer {
  position: absolute;
  left: 42%; top: 34%;
  width: 152px;           /* a bit bigger than the side books */
  pointer-events: auto;
  opacity: 0;
  transition: opacity 1.2s ease;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,0.65));
  will-change: transform;
  animation: heroRoamBig 26s ease-in-out infinite;
}
.hero-roamer.in { opacity: 0.95; }
.hero-roamer img {
  display: block; width: 100%; height: auto;
  border-radius: 11px;
  box-shadow: 0 0 0 2px rgba(254,186,0,0.55);
}
.hero-roamer:hover { animation-play-state: paused; opacity: 1; }
@keyframes heroRoamBig {
  0%   { transform: translate(-360px, -120px) rotate(-6deg); }  /* upper-left */
  17%  { transform: translate(110px, 70px)    rotate(4deg); }   /* centre */
  34%  { transform: translate(410px, -90px)   rotate(6deg); }   /* upper-right */
  52%  { transform: translate(150px, 165px)   rotate(-4deg); }  /* lower-centre */
  70%  { transform: translate(-350px, 120px)  rotate(-5deg); }  /* lower-left */
  86%  { transform: translate(-70px, -150px)  rotate(3deg); }   /* upper-centre */
  100% { transform: translate(-360px, -120px) rotate(-6deg); }
}
@media (max-width: 1100px) { .hero-roamer-wrap { display: none; } }

/* Hover overlay */
.ebook-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.ebook-card:hover .ebook-overlay { opacity: 1; }
.overlay-btn {
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  transform: translateY(10px);
  transition: transform 0.3s;
  box-shadow: 0 4px 16px rgba(254,186,0,0.4);
}
.ebook-card:hover .overlay-btn { transform: translateY(0); }

/* Department tag */
.dept-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--black);
  background: linear-gradient(135deg, var(--yellow), var(--yellow-light));
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Price styling */
.price-area {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-original {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 400;
}
.price-sale {
  color: var(--yellow-dark);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ===== DEPARTMENT COVER COLORS ===== */
.dept-cover, .dept-cover-sm {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dept-cover { height: 140px; }
.dept-cover-sm { height: 100px; }

.dept-front-office { background: linear-gradient(135deg, #0a0a0a, #1a1a1a); }
.dept-housekeeping { background: linear-gradient(135deg, #0a1a0a, #1a2a1a); }
.dept-gm { background: linear-gradient(135deg, #1a0a1a, #2a1a2a); }
.dept-revenue { background: linear-gradient(135deg, #1a0a0a, #2a1a1a); }
.dept-sale { background: linear-gradient(135deg, #1a1a0a, #2a2a1a); }
[class*="dept-front-office"] { background: linear-gradient(135deg, #0a0a0a, #1a1a1a); }
[class*="dept-housekeeping"] { background: linear-gradient(135deg, #0a1a0a, #1a2a1a); }
[class*="dept-f&b"] { background: linear-gradient(135deg, #1a0a00, #3a1a0a); }
[class*="dept-kitchen"] { background: linear-gradient(135deg, #2a0a00, #4a1a0a); }
[class*="dept-reservation"] { background: linear-gradient(135deg, #000a1a, #0a1a3a); }
[class*="dept-spa"] { background: linear-gradient(135deg, #1a0a1a, #3a1a3a); }
[class*="dept-hr"] { background: linear-gradient(135deg, #0a1a1a, #1a2a2a); }
[class*="dept-marketing"] { background: linear-gradient(135deg, #1a1a00, #3a3a0a); }
[class*="dept-sales"] { background: linear-gradient(135deg, #1a1a0a, #2a2a1a); }
[class*="dept-revenue"] { background: linear-gradient(135deg, #1a0a0a, #2a1a1a); }
[class*="dept-accounting"] { background: linear-gradient(135deg, #0a0a1a, #1a1a3a); }
[class*="dept-engineering"] { background: linear-gradient(135deg, #1a1a1a, #2a2a2a); }
[class*="dept-security"] { background: linear-gradient(135deg, #0a0a1a, #1a1a2a); }
[class*="dept-general-manager"] { background: linear-gradient(135deg, #1a0a1a, #2a1a2a); }
[class*="dept-fitness"] { background: linear-gradient(135deg, #001a0a, #0a3a1a); }
[class*="dept-hotel-owner"] { background: linear-gradient(135deg, #2a1a00, #4a2a0a); }

/* ===== SALE BANNER — ORANGE ===== */
.sale-banner {
  background: linear-gradient(90deg, #d4a843, #feba00, #ffd24d, #feba00, #d4a843);
  background-size: 200% 100%;
  animation: gradient-slide 3s ease infinite;
  color: #1a1208;
  text-align: center;
  padding: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}
/* Promo pill shown inside the navbar (merged single row) */
.nav-promo {
  align-items: center;
  background: linear-gradient(90deg, #d4a843, #feba00, #ffd24d, #feba00, #d4a843);
  background-size: 200% 100%;
  animation: gradient-slide 3s ease infinite;
  color: #1a1208;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(254,186,0,0.25);
}
@keyframes gradient-slide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Featured slider */
.featured-section {
  background: var(--black);
  position: relative;
}
.featured-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, #111827, transparent);
}

/* Urgency text — orange */
.urgency-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.75rem;
  animation: pulse-text 2s ease-in-out infinite;
}
@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ===== NEW ARRIVALS SECTION ===== */
.new-arrivals-section {
  background: #000;
  position: relative;
}
.new-arrivals-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(254,186,0,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 20% 100%, rgba(254,186,0,0.04) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 80% 100%, rgba(254,186,0,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.new-arrivals-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(254,186,0,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(254,186,0,0); }
}

.new-arrivals-scroll-wrap { position: relative; }
.new-arrivals-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.new-arrivals-scroll::-webkit-scrollbar { display: none; }

.new-arrivals-fade-l,
.new-arrivals-fade-r {
  position: absolute; top: 0; bottom: 0; width: 60px;
  pointer-events: none; z-index: 5;
}
.new-arrivals-fade-l { left: 0; background: linear-gradient(to right, #000, transparent); }
.new-arrivals-fade-r { right: 0; background: linear-gradient(to left, #000, transparent); }

.na-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: linear-gradient(160deg, #141414 0%, #0d0d0d 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #222;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
}
.na-card:hover {
  transform: translateY(-6px);
  border-color: rgba(254,186,0,0.4);
  box-shadow: 0 16px 40px rgba(254,186,0,0.12), 0 0 0 1px rgba(254,186,0,0.15);
}
.na-card .na-cover {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
}
.na-card .na-cover img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.na-card:hover .na-cover img { transform: scale(1.05); }

.na-new-badge {
  position: absolute; top: 10px; left: 10px; z-index: 5;
  background: linear-gradient(135deg, var(--yellow), #ffcd38);
  color: #000; font-weight: 900; font-size: 0.65rem;
  padding: 3px 10px; border-radius: 20px;
  letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(254,186,0,0.4);
}
.na-discount-badge {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff; font-weight: 800; font-size: 0.7rem;
  padding: 3px 8px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}
.na-card .na-body { padding: 14px 16px 18px; }
.na-card .na-dept {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  color: var(--yellow); letter-spacing: 0.04em; opacity: 0.85;
}
.na-card .na-title {
  color: #f3f4f6; font-weight: 700; font-size: 0.82rem;
  line-height: 1.35; margin-top: 6px; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.na-card .na-price-old {
  font-size: 0.75rem; color: #6b7280;
  text-decoration: line-through; margin-right: 6px;
}
.na-card .na-price-now {
  font-size: 1rem; font-weight: 900; color: var(--yellow);
}

@media (min-width: 768px) {
  .na-card { flex: 0 0 240px; }
}
@media (min-width: 1280px) {
  .na-card { flex: 0 0 260px; }
}

/* ===== TRUST BADGES ===== */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.trust-badge .icon {
  width: 48px;
  height: 48px;
  background: rgba(254,186,0,0.1);
  border: 1px solid rgba(254,186,0,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.trust-badge .label {
  font-size: 0.75rem;
  color: #ccc;
  font-weight: 600;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.modal.hidden { display: none; }
.modal-content {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  color: #e5e5e5;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
}

/* Admin tabs (overridden in admin.ejs but keep fallback) */
.admin-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: none;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.admin-tab.active { color: var(--black); border-bottom-color: var(--yellow); }

/* ===== PROSE (blog) ===== */
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: #fff; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: #e5e5e5; }
.prose p { margin: 0.75rem 0; color: #bbb; line-height: 1.75; }
.prose ul, .prose ol { margin: 0.75rem 0; padding-left: 1.5rem; color: #bbb; }
.prose li { margin: 0.25rem 0; line-height: 1.75; }
.prose strong { color: #fff; }
.prose code { background: #0a0a0a; padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875rem; color: var(--yellow); }

/* Logo */
.site-logo { height: 32px; width: auto; }
.site-logo-lg { height: 48px; width: auto; }

/* Line clamp */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Section headings */
.section-heading {
  position: relative;
  display: inline-block;
}
.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--yellow);
  margin-top: 8px;
  border-radius: 2px;
}
.section-heading-center::after {
  margin-left: auto;
  margin-right: auto;
}

/* Stat counter — bold yellow gradient */
.stat-number {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass card */
.glass-card {
  background: rgba(254,186,0,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(254,186,0,0.15);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-gradient { padding-top: 6rem; }
  .price-sale { font-size: 1.2rem; }
}
