/* ------------------------------
   Variables
------------------------------ */
:root {
  --blue-dark: #002244;
  --blue-mid: #004080;
  --gold: #d4af37;
  --gray-bg: #f8f9fa;
}

/* ------------------------------
   Global
------------------------------ */
body {
  font-family: 'Sarabun', sans-serif;
  background-color: #fff;
  scroll-behavior: smooth;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 40px;
  position: relative;
}

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

.bg-light {
  background-color: var(--gray-bg) !important;
}

/* ------------------------------
   Navbar
------------------------------ */
.navbar {
  background: var(--blue-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  margin-right: 10px;
  transition: 0.3s;
}

.navbar .nav-link:hover,
.navbar .dropdown-item:hover {
  color: var(--gold) !important;
}

.navbar-brand {
  font-size: 1.3rem;
}

/* ------------------------------
   Hero Slider
------------------------------ */
.swiper {
  width: 100%;
  height: 100vh;
}

.swiper-slide {
  position: relative;
  background: #000;
}

.swiper-slide img,
.swiper-slide video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: brightness(70%);
}

.hero-caption {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  background: rgba(0,0,0,0.4);
  padding: 1rem 2rem;
  border-radius: 10px;
  z-index: 5;
  max-width: 600px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.hero-caption h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.hero-caption p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0.2rem 0;
}

/* ------------------------------
   Sidebar Popup
------------------------------ */
.sidebar-quick {
  position: fixed;
  right: 0;
  top: 30%;
  background: var(--blue-dark);
  color: white;
  width: 230px;
  border-radius: 12px 0 0 12px;
  box-shadow: -2px 3px 8px rgba(0,0,0,0.3);
  z-index: 2000;
  padding: 15px;
}

.sidebar-quick .sb-item {
  display: block;
  color: white;
  text-decoration: none;
  padding: 8px 0;
  transition: 0.3s;
}

.sidebar-quick .sb-item:hover {
  color: var(--gold);
}

.sidebar-quick .sb-close {
  background: var(--gold);
  border: none;
  color: #000;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  float: right;
  cursor: pointer;
}

/* ------------------------------
   Scroll to Top Button
------------------------------ */
.scroll-top-btn {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--gold);
  color: var(--blue-dark);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1500;
}

.scroll-top-btn:hover {
  background: var(--blue-mid);
  color: white;
}

/* ------------------------------
   Cards & Content
------------------------------ */
.card {
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-title {
  font-weight: 600;
  color: var(--blue-dark);
}

/* Shop Cards hover scale */
#productList .card { transition: transform 0.2s; }
#productList .card:hover { transform: scale(1.05); }

/* ------------------------------
   Shop Filter Buttons
------------------------------ */
.filter {
  border-radius: 30px;
  transition: all 0.3s;
}

.filter:hover,
.filter.active {
  background: var(--blue-dark);
  color: white;
}

/* ------------------------------
   TikTok Embed Responsive
------------------------------ */
.tiktok-card-wrap {
  width: 100%;
  height: 0;
  padding-bottom: 177.78%;
  position: relative;
  overflow: hidden;
}

.tiktok-card-wrap blockquote {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* ------------------------------
   Contact Form
------------------------------ */
#contactForm input,
#contactForm textarea {
  margin-bottom: 1rem;
}

/* ------------------------------
   Footer
------------------------------ */
.footer {
  background: var(--blue-dark);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 992px) {
  .hero-caption {
    left: 50%;
    bottom: 15%;
    width: 90%;
    transform: translateX(-50%);
  }
  .hero-caption h1 {
    font-size: 1.8rem;
  }
  .hero-caption p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  .swiper {
    height: 70vh;
  }
  .hero-caption h1 {
    font-size: 1.5rem;
  }
  .hero-caption p {
    font-size: 0.9rem;
  }
}
