/* ============================================================
   SAVOR HAPPINESS — MASTER STYLESHEET (SLIDER FIXED!)
   ============================================================ */

@font-face {
  font-family: "NangKaiThot";
  src: url("fonts/MN-Nang-Kai-Thot-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --ci-green: #007a33;
  --ci-olive: #93a35a;
  --ci-orange: #ff8c00;
  --ci-yellow: #f4e105;
  --ci-soft-yellow: #fffbd3;
  --ci-cream: #f8f2e6;
  --ci-white: #ffffff;
  --bg-main: var(--ci-cream);
  --bg-nav: rgba(248, 242, 230, 0.85);
  --bg-card: var(--ci-white);
  --card-border: rgba(0, 122, 51, 0.15);
  --text-main: var(--ci-green);
  --text-muted: var(--ci-olive);
  --text-card-title: var(--ci-green);
  --shadow-light: rgba(0, 122, 51, 0.08);
  --shadow-dark: rgba(0, 122, 51, 0.15);
  --input-bg: var(--ci-white);
  --modal-bg: rgba(0, 122, 51, 0.85);
  --scrollbar-track: var(--bg-main);
  --scrollbar-thumb: var(--ci-green);
}

[data-theme="dark"] {
  --bg-main: var(--ci-green);
  --bg-nav: rgba(0, 122, 51, 0.85);
  --bg-card: var(--ci-olive);
  --card-border: rgba(244, 225, 5, 0.2);
  --text-main: var(--ci-white);
  --text-muted: var(--ci-soft-yellow);
  --text-card-title: var(--ci-yellow);
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-dark: rgba(0, 0, 0, 0.4);
  --input-bg: rgba(255, 255, 255, 0.1);
  --modal-bg: rgba(0, 0, 0, 0.95);
  --scrollbar-track: #004d21;
  --scrollbar-thumb: var(--ci-orange);
}

[data-theme="dark"] .logo-img {
  content: url("img/logo/savorhappiness-2.png");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "NangKaiThot", "Anuphan", sans-serif;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-padding-top: 180px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.8;
  padding-top: 180px;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  width: 100%;
}

img {
  object-fit: cover;
  -webkit-user-drag: none;
  display: block;
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ci-orange);
}

@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes luxuriousZoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes spin-slow {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.fadeInSlideUp {
  animation: fadeInSlideUp 0.6s ease forwards;
  opacity: 0;
}

.custom-modal-animation {
  animation: luxuriousZoomIn 0.4s ease forwards;
}

/* NAVIGATION */
.scroll-progress-container {
  position: fixed;
  top: 85px;
  left: 0;
  z-index: 10001;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ci-green), var(--ci-orange), var(--ci-yellow));
  width: 0%;
  transition: width 0.15s ease-out;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-nav);
  box-shadow: 0 4px 32px rgba(0, 122, 51, 0.05);
  z-index: 10000;
  transition: all 0.5s ease;
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0 5%;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  height: 88px;
  width: 100%;
}

.logo-img {
  height: 40px;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.logo-img:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 4px 12px rgba(255, 140, 0, 0.3));
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links li a {
  color: var(--text-main);
  font-weight: bold;
  text-decoration: none;
  position: relative;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
  padding: 8px 4px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--ci-orange);
  transition: all 0.4s ease;
  border-radius: 2px;
}

.nav-links li a:hover {
  color: var(--ci-orange);
}

.nav-links li a:hover::after {
  width: 100%;
  left: 0;
}

.lang-btn,
.theme-btn {
  background: transparent;
  border: 2px solid var(--ci-orange);
  color: var(--ci-orange);
  padding: 6px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  font-size: 0.85rem;
}

.lang-btn:hover,
.theme-btn:hover {
  background: var(--ci-orange);
  color: white;
}

[data-theme="dark"] .lang-btn,
[data-theme="dark"] .theme-btn {
  border-color: var(--ci-yellow);
  color: var(--ci-yellow);
}

[data-theme="dark"] .lang-btn:hover,
[data-theme="dark"] .theme-btn:hover {
  background: var(--ci-yellow);
  color: #004d21;
}

.hamburger-menu {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ci-orange);
}

.mobile-close-wrapper {
  display: none;
  list-style: none;
}

.nav-close-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-main);
  cursor: pointer;
}

.nav-controls-wrapper {
  display: flex;
  gap: 10px;
}

/* SEARCH BAR */
.search-wrapper {
  background: transparent;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.search-input-group {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  background: var(--input-bg);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow-light);
  border: 1px solid var(--card-border);
  transition: all 0.4s ease;
  margin: 0 auto;
}

.search-input-group:focus-within {
  border-color: var(--ci-orange);
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.15);
}

#shopSearchInput {
  flex: 1;
  padding: 16px 24px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-main);
  margin: 0;
}

#searchBtn {
  background: var(--ci-green);
  color: var(--ci-white);
  border: none;
  padding: 0 32px;
  cursor: pointer;
  transition: 0.4s;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#searchBtn:hover {
  background: var(--ci-orange);
}

#searchSuggestions {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: var(--bg-card);
  border-radius: 0 0 15px 15px;
  box-shadow: 0 15px 35px var(--shadow-dark);
  z-index: 9999;
  max-height: 350px;
  overflow-y: auto;
  display: none;
  border: 1px solid var(--card-border);
  border-top: none;
}

.suggestion-item {
  padding: 15px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: 0.2s;
  font-size: 1.1rem;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: rgba(0, 122, 51, 0.08);
  color: var(--ci-green);
  padding-left: 25px;
}

/* HERO SECTION */
#home {
  height: 70vh;
  min-height: 500px;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 1;
}

#home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 122, 51, 0.18) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  z-index: 1;
  will-change: transform;
}

.grid-item {
  overflow: hidden;
  position: relative;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) grayscale(10%);
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), filter 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  backface-visibility: hidden;
}

.grid-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.9) grayscale(0%);
}

.hero-content-overlay {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  max-width: 900px;
  width: 100%;
}

.subtitle {
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ci-orange);
  font-weight: 800;
  opacity: 0.95;
  margin: 0;
}

#home h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.subtitle-vibe {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: #fff4a8;
  opacity: 1;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-desc {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.5;
  opacity: 0.95;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.savor-cta-ring-wrapper {
  position: absolute;
  bottom: 30px;
  right: 5%;
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  z-index: 20;
  transition: 0.4s;
}

.savor-cta-ring-wrapper:hover {
  transform: scale(1.1);
  color: var(--ci-orange);
}

.savor-cta-ring-wrapper svg {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: spin-slow 15s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.savor-cta-arrow {
  font-size: 20px;
  background: var(--ci-orange);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

/* TICKER */
.shop-ticker-banner {
  background: var(--ci-green);
  color: white;
  padding: 15px 0;
  overflow: hidden;
  border-top: 3px solid var(--ci-orange);
  border-bottom: 3px solid var(--ci-orange);
  width: 100%;
}

.shop-ticker-wrapper {
  display: flex;
  width: max-content;
}

.shop-ticker-track {
  display: flex;
  gap: 40px;
  padding-right: 40px;
  animation: ticker 40s linear infinite;
}

.ticker-item {
  font-size: 1.3rem;
  font-weight: bold;
  white-space: nowrap;
}

.ticker-sep {
  color: var(--ci-yellow);
  font-size: 1rem;
  display: flex;
  align-items: center;
}

/* GLOBAL SECTIONS */
.section {
  padding: 80px 5%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  min-height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 50px;
  width: 100%;
}

.section>* {
  width: 100%;
}

.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ci-green);
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.4;
  transition: color 0.4s ease;
  display: block;
}

[data-theme="dark"] .section-title {
  color: var(--ci-white);
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--ci-orange);
  margin: 24px auto 0 auto;
  border-radius: 2px;
}

#minburi-section,
#nongchok-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.district-label {
  margin: 0 0 20px 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--ci-orange);
  text-align: center;
  letter-spacing: 4px;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #007a33 !important;
  color: #ffffff !important;
  padding: 14px 30px !important;
  border-radius: 10px;
  font-size: 1.1rem !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  white-space: nowrap;
  margin-top: 6px;
  border: 2px solid transparent !important;
  transform: scale(1);
  box-shadow: 0 10px 25px rgba(0, 122, 51, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary:hover {
  background: #005c26 !important;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 122, 51, 0.4);
}

[data-theme="dark"] .btn-primary {
  background: transparent !important;
  color: var(--ci-yellow) !important;
  border-color: var(--ci-yellow) !important;
  box-shadow: 0 5px 15px rgba(244, 225, 5, 0.1);
}

[data-theme="dark"] .btn-primary:hover {
  background: var(--ci-yellow) !important;
  color: #004d21 !important;
  box-shadow: 0 12px 30px rgba(244, 225, 5, 0.3);
  transform: scale(1.05) translateY(-2px);
}

/* CARD ARCHITECTURE */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.shop-card,
.merch-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px var(--shadow-light);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.shop-card:hover,
.merch-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px var(--shadow-dark);
  border-color: var(--ci-orange);
  z-index: 2;
}

.photo-gallery {
  height: 300px;
  width: 100%;
  position: relative;
  background: #000;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.photo-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease, transform 0.8s ease;
  z-index: 1;
  cursor: pointer;
}

.photo-item.active {
  opacity: 1;
  z-index: 2;
}

.photo-gallery:hover .photo-item.active {
  transform: scale(1.05);
}

.shop-info {
  padding: 24px;
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.4s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shop-name {
  font-size: 1.4rem;
  color: var(--text-card-title);
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.shop-tag {
  align-self: flex-start;
  font-size: 0.9rem;
  background: rgba(255, 140, 0, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
  color: var(--ci-orange);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 140, 0, 0.2);
}

.click-more-hint {
  color: var(--ci-orange);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(-15px);
  transition: 0.3s;
  margin-top: auto;
  padding-top: 10px;
}

.shop-card:hover .click-more-hint {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   MERCH SLIDER (FIXED FOR INFINITE SCROLL)
   ============================================================ */
.merch-slider-container {
  width: 100%;
  max-width: 1200px;
  margin: 50px auto 0;
}

.merch-category {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.merch-split-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto 0;
}

.merch-sub-title {
  color: var(--ci-orange);
  margin-bottom: 20px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  justify-content: center;
}

.merch-card {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 25px var(--shadow-light);
  transition: 0.3s;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.merch-card img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-bottom: 1px solid var(--card-border);
}

.merch-card p {
  padding: 15px;
  font-weight: bold;
  font-size: 1rem;
  color: var(--text-main);
}

.merch-slider-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* --- แก้ไข: ปลดล็อก Slider ให้เลื่อนได้ปกติ --- */
.merch-slider-track {
  display: inline-flex;
  gap: 20px;
  animation: scrollMerch 25s linear infinite;
  padding: 10px 0;
  width: max-content;
}

.merch-slider-track:hover {
  animation-play-state: paused;
}

/* --- แก้ไข: ปลดล็อกรูปใน Slider ไม่ให้โดน max-width บีบ --- */
.merch-slider-track img {
  height: 220px;
  width: auto;
  max-width: none;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 24px var(--shadow-light);
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--card-border);
}

.merch-slider-track img:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 12px 30px var(--shadow-dark);
  border-color: var(--ci-orange);
}

@keyframes scrollMerch {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 10px));
  }
}

/* FILTER SYSTEM */
.filter-container {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--ci-green);
  color: var(--ci-green);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--ci-green);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 122, 51, 0.25);
  transform: translateY(-3px);
}

[data-theme="dark"] .filter-btn {
  border-color: var(--ci-yellow);
  color: var(--ci-yellow);
}

[data-theme="dark"] .filter-btn.active,
[data-theme="dark"] .filter-btn:hover {
  background: var(--ci-yellow);
  color: #004d21;
  box-shadow: 0 6px 20px rgba(244, 225, 5, 0.25);
}

/* MODALS & LIGHTBOXES */
.modal-overlay,
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(255 255 255 / 85%);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 30000;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 24px;
  max-width: 550px;
  width: 90%;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 25px 60px var(--shadow-dark);
  position: relative;
}

[data-theme="dark"] .modal-content {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal,
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 36px;
  cursor: pointer;
  color: #888;
  transition: 0.2s;
  z-index: 10;
  line-height: 1;
}

.close-modal:hover,
.close-btn:hover {
  color: var(--ci-orange);
  transform: scale(1.15);
}

.nav-btn {
  position: absolute;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  z-index: 20001;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
  background: var(--ci-green);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 122, 51, 0.4);
}

.nav-btn.prev {
  left: 20px;
}

.nav-btn.next {
  right: 20px;
}

.modal-content img {
  width: 100%;
  border-radius: 12px;
  max-height: 45vh;
  object-fit: contain;
  margin-bottom: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#modalTitle {
  font-size: 1.5rem;
  color: var(--text-card-title);
  margin-bottom: 10px;
}

#modalDesc {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-muted);
}

/* THE GUIDEBOOK SECTION */
.book-grid-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.book-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.main-img-container {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 50px var(--shadow-light);
  border: 1px solid var(--card-border);
  text-align: center;
  position: relative;
  width: 100%;
}

.book-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  color: var(--ci-green);
  border: 1px solid var(--card-border);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.book-nav-btn:hover {
  background: var(--ci-green);
  color: #fff;
  border-color: var(--ci-green);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 122, 51, 0.3);
}

.book-nav-btn.prev {
  left: -20px;
}

.book-nav-btn.next {
  right: -20px;
}

.inner-mockup {
  width: 100%;
  height: auto;
  max-width: 320px;
  display: inline-block;
  border-radius: 10px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
  transition: 0.4s ease;
}

.book-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumb-item {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: 0.3s;
  opacity: 0.5;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumb-item:hover,
.thumb-item.active {
  opacity: 1;
  border-color: var(--ci-orange);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.book-text {
  flex: 1;
  width: 100%;
}

.book-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 20px;
}

.book-card .section-title {
  text-align: left;
}

.book-card .section-title::after {
  margin: 20px 0 0 0;
}

.book-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.badge {
  background: rgba(0, 122, 51, 0.1);
  color: var(--ci-green);
  padding: 6px 15px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 800;
  border: 1px solid rgba(0, 122, 51, 0.2);
}

[data-theme="dark"] .badge {
  background: rgba(244, 225, 5, 0.15);
  color: var(--ci-yellow);
  border-color: rgba(244, 225, 5, 0.3);
}

.book-spec-detail {
  font-weight: 800;
  color: var(--ci-orange);
  margin: 0;
  letter-spacing: 1px;
  font-size: 1rem;
}

.book-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
}

/* VIDEO EXPERIENCE */
.video-experience-v2 {
  background: var(--bg-card);
  padding: 60px 5%;
  margin: 40px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  width: 100%;
  overflow: hidden;
}

.video-flex-container {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.video-visual-side {
  flex: 1.3;
  position: relative;
  width: 100%;
}

.video-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow-dark);
  border: 4px solid var(--bg-main);
  background: #000;
  width: 100%;
}

video {
  width: 100%;
  display: block;
  opacity: 0.9;
}

.mute-control-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  backdrop-filter: blur(8px);
  font-size: 1.2rem;
  transition: 0.3s;
}

.mute-control-btn:hover {
  background: var(--ci-orange);
  transform: scale(1.15);
  border-color: transparent;
}

.video-text-side {
  flex: 1;
  width: 100%;
}

.video-content-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.video-tag {
  display: inline-block;
  padding: 6px 15px;
  background: rgba(255, 140, 0, 0.1);
  color: var(--ci-orange);
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.video-description {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* AUTHOR & SUPPORT SECTION */
.author-container {
  background: var(--bg-card);
  border-radius: 30px;
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px var(--shadow-light);
  transition: 0.4s;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--card-border);
}

.author-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px var(--shadow-dark);
  border-color: var(--ci-orange);
}

.author-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  box-shadow: -15px 15px 0px rgba(0, 122, 51, 0.1);
  border: 5px solid var(--bg-main);
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.author-info h3 {
  font-size: 1.6rem;
  color: var(--text-card-title);
  margin-bottom: 10px;
  font-weight: bold;
}

.author-role {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.author-logos {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.author-logos img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: center;
}

.social-btn {
  padding: 8px 20px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-btn:hover {
  background: var(--ci-orange);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
}

[data-theme="dark"] .social-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

[data-theme="dark"] .social-btn:hover {
  background: var(--ci-yellow);
  color: #333;
}

.support-glass-card {
  background: linear-gradient(135deg, var(--ci-green) 0%, #004d21 100%);
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 122, 51, 0.3);
  display: flex;
  color: white;
  transition: 0.4s;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.support-glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.support-text-side {
  padding: 40px;
  flex: 1.5;
  z-index: 1;
}

.support-heading {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.support-sub {
  color: var(--ci-yellow);
  font-weight: 800;
  margin-bottom: 20px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.support-creator-tag {
  display: flex;
  align-items: center;
}

.support-qr-side {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1;
  width: 100%;
  max-width: 350px;
}

.qr-wrapper {
  position: relative;
}

.qr-image {
  width: 150px;
  border-radius: 15px;
  border: 6px solid white;
  margin-bottom: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.small-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 10px;
  border: 2px solid white;
}

/* SPEED DIAL */
.speed-dial-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
}

.speed-dial-main-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--ci-white);
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.speed-dial-main-btn:hover {
  transform: scale(1.1);
}

.speed-dial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.4s ease;
}

.img-active {
  opacity: 0;
  transform: scale(0.5) rotate(-45deg);
}

.speed-dial-main-btn.active .img-normal {
  opacity: 0;
  transform: scale(1.5) rotate(45deg);
}

.speed-dial-main-btn.active .img-active {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.speed-dial-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px) scale(0.5);
  pointer-events: none;
  transition: 0.4s ease;
  transform-origin: bottom center;
}

.speed-dial-container.active .speed-dial-buttons {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.dial-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--ci-white);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.dial-btn:hover {
  background: var(--ci-orange);
  color: white;
  transform: scale(1.15) translateX(-5px);
}

/* FOOTER */
.footer {
  background: #0a0a0a;
  color: #ddd;
  padding: 80px 5% 30px;
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--ci-green);
  width: 100%;
}

.footer-watermark {
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 15vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  height: 60px;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.footer-tagline {
  color: var(--ci-orange);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.footer-col-title {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  font-weight: bold;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--ci-green);
  border-radius: 2px;
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li {
  margin-bottom: 10px;
}

.footer-nav-list a {
  color: #aaa;
  text-decoration: none;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.footer-nav-list a:hover {
  color: var(--ci-yellow);
  transform: translateX(5px);
}

/* ============================================================
   16. RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 992px) {
  .hero-content-overlay h1 {
    font-size: 3rem;
  }

  .book-grid-container {
    flex-direction: column;
    gap: 40px;
  }

  .book-card {
    align-items: center;
    text-align: center;
  }

  .book-card .section-title {
    text-align: center;
  }

  .book-card .section-title::after {
    margin: 20px auto 0 auto;
  }

  .video-flex-container,
  .support-glass-card,
  .author-container {
    flex-direction: column;
    text-align: center;
  }

  .support-qr-side {
    max-width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .author-info {
    align-items: center;
    text-align: center;
  }

  .support-creator-tag {
    justify-content: center;
  }

  .shop-grid {
    gap: 20px;
  }

  .photo-gallery {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 50px 5%;
    gap: 40px;
  }

  #home {
    height: 60vh;
    min-height: 450px;
  }

  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
  }

  .hero-content-overlay {
    padding: 80px 20px;
    gap: 12px;
  }

  #home h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    letter-spacing: 3px;
    font-size: 0.8rem;
  }

  .subtitle-vibe {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .logo-img {
    height: 30px;
  }

  .savor-cta-ring-wrapper {
    width: 70px;
    height: 70px;
    bottom: 20px;
    right: 20px;
  }

  .savor-cta-arrow {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .hamburger-menu {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    transition: 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    gap: 15px;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li a {
    font-size: 1.2rem;
  }

  .mobile-close-wrapper {
    display: flex;
    justify-content: flex-end;
    padding-right: 25px;
    position: absolute;
    top: 20px;
    right: 0;
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    opacity: 0;
    transition: 0.3s;
    backdrop-filter: blur(5px);
  }

  .nav-backdrop.active {
    display: block;
    opacity: 1;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .photo-gallery {
    height: 150px;
  }

  .shop-info {
    padding: 12px 15px;
  }

  .shop-name {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .shop-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    margin-bottom: 8px;
  }

  .click-more-hint {
    font-size: 0.85rem;
    padding-top: 5px;
  }

  .click-more-hint .read-more-text {
    display: none;
  }

  .main-img-container {
    padding: 20px;
  }

  .book-nav-btn.prev {
    left: -10px;
  }

  .book-nav-btn.next {
    right: -10px;
  }

  .merch-split-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .merch-sub-title {
    font-size: 1rem;
    margin-bottom: 15px;
    flex-direction: column;
    text-align: center;
  }

  .merch-card {
    border-radius: 12px;
  }

  .merch-card img {
    height: 130px;
    object-fit: cover;
    max-height: none;
    border-bottom: 1px solid var(--card-border);
  }

  .merch-card p {
    padding: 8px;
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .merch-slider-track img {
    height: 120px;
  }

  .author-container {
    padding: 30px 20px;
    gap: 20px;
    border-radius: 20px;
  }

  .author-img {
    width: 140px;
    height: 140px;
  }

  .author-info h3 {
    font-size: 1.3rem;
  }

  .author-role {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .author-logos {
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
    width: 100%;
  }

  .author-logos img {
    height: 35px;
    width: auto;
    object-fit: contain;
  }

  .author-socials {
    justify-content: center;
    gap: 8px;
  }

  .social-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .support-glass-card {
    border-radius: 20px;
  }

  .support-text-side {
    padding: 30px 20px 20px;
    text-align: center;
  }

  .support-heading {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .support-sub {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .support-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .support-creator-tag {
    justify-content: center;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
  }

  .support-qr-side {
    padding: 20px;
  }

  .qr-image {
    width: 120px;
    border-width: 4px;
    margin-bottom: 10px;
  }

  .qr-hint {
    font-size: 0.9rem;
  }

  .footer {
    padding: 60px 5% 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }

  .footer-col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-nav-list a {
    justify-content: center;
  }

  .modal-content {
    padding: 25px 15px;
  }

  .close-modal,
  .close-btn {
    top: 10px;
    right: 15px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  #home h1 {
    font-size: 1.8rem;
  }

  .shop-grid {
    gap: 10px;
  }

  .photo-gallery {
    height: 120px;
  }

  .shop-info {
    padding: 10px;
  }

  .shop-name {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .merch-split-row {
    gap: 10px;
  }

  .merch-card img {
    height: 100px;
  }

  .merch-card p {
    font-size: 0.75rem;
    padding: 6px;
  }

  .speed-dial-container {
    bottom: 15px;
    right: 15px;
  }
}