/* -------------------------------------------------------------
   口袋咖啡 Pocket Café Website Stylesheet
   Design System & Styling
   ------------------------------------------------------------- */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette */
  --primary-gold: #7a5c4e;
  --primary-gold-hover: #63493e;
  --primary-gold-light: #fcebd2;
  --bg-cream: #fffbf7;
  --bg-peach: #fcebd2;
  --text-dark: #4e3e37;
  --text-medium: #65544b;
  --text-light: #8c7a70;
  --white: #ffffff;
  --accent-rose: #d8a48f;
  --accent-red: #c85a53;
  --accent-orange: #d97d4b;
  --accent-gold: #d4a23b;
  --border-color: #efe2d3;
  --border-light: rgba(122, 92, 78, 0.15);
  --shadow-subtle: 0 4px 20px rgba(78, 62, 55, 0.04);
  --shadow-medium: 0 8px 30px rgba(78, 62, 55, 0.08);
  --shadow-premium: 0 15px 40px rgba(122, 92, 78, 0.12);

  /* Fonts */
  --font-heading-en: "Cinzel", serif;
  --font-heading-zh: "Noto Serif TC", serif;
  --font-body-en: "Montserrat", sans-serif;
  --font-body-zh: "Noto Sans TC", sans-serif;

  /* Transition speeds */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Reset & Global Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-medium);
  font-family: var(--font-body-zh), var(--font-body-en);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Scroll progress bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-gold), var(--accent-rose));
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-dark);
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-body-zh);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--bg-peach);
  color: var(--text-dark);
  border-color: var(--bg-peach);
  box-shadow: 0 5px 16px rgba(78, 62, 55, 0.15);
}

.btn-primary:hover {
  background-color: #fcdfa8;
  border-color: #fcdfa8;
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(78, 62, 55, 0.28);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--bg-peach);
  color: var(--text-dark);
}

.btn-outline:hover {
  background-color: var(--bg-peach);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
  backdrop-filter: blur(5px);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--text-medium);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--text-dark);
}

.btn-line {
  background-color: #06c755;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(6, 199, 85, 0.2);
}

.btn-line:hover {
  background-color: #05b04b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.3);
}

.btn-xs {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* --- Common Section Elements --- */
section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.text-center {
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-heading-en);
  font-size: 0.9rem;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading-zh);
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 2px;
  background-color: var(--primary-gold);
  margin: 0 auto 1.5rem auto;
}

.section-divider.align-left {
  margin-left: 0;
}

.section-description {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- Header / Navigation Styles --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  transition: var(--transition-normal);
  border-bottom: 1px solid transparent;
}

/* Header scrolled state */
.main-header.scrolled {
  background-color: rgba(253, 251, 249, 0.92);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.main-header.scrolled .logo-img-white {
  display: none;
}

.main-header.scrolled .logo-img-dark {
  display: block;
}

.main-header.scrolled .nav-link {
  color: var(--text-medium);
}

.main-header.scrolled .hamburger-menu span {
  background-color: var(--text-dark);
}

.hamburger-menu.active span {
  background-color: var(--text-dark) !important;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.main-header.scrolled .header-container {
  padding: 0.8rem 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
  transition: opacity var(--transition-fast);
}

.logo-img-white {
  display: block;
}

.logo-img-dark {
  display: none;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Menu */
.navbar {
  display: flex;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-body-zh);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--primary-gold);
  transition: var(--transition-normal);
}

.nav-link:hover {
  color: var(--primary-gold);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-header .nav-cta-btn {
  background-color: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
  box-shadow: none;
}

.main-header .nav-cta-btn:hover {
  background-color: var(--text-dark);
  color: var(--white);
  border-color: var(--text-dark);
  box-shadow: none;
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  position: absolute;
  left: 0;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast),
    background-color var(--transition-fast);
}

.hamburger-menu span:nth-child(1) {
  top: 0;
}
.hamburger-menu span:nth-child(2) {
  top: 9px;
}
.hamburger-menu span:nth-child(3) {
  top: 18px;
}

/* Hamburger active */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- Hero Section Styles --- */
.hero-section {
  position: relative;
  height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("images/hero.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
  padding: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(42, 36, 30, 0.45) 0%,
    rgba(42, 36, 30, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1.5rem;
  animation: fadeIn var(--transition-slow);
}

.hero-subtitle {
  font-family: var(--font-body-zh);
  font-size: 1rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  display: inline-block;
  color: var(--primary-gold-light);
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-title {
  font-family: var(--font-heading-zh);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 4px;
  line-height: 1.3;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-family: var(--font-body-zh);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.hero-btns .btn-primary {
  background-color: var(--bg-peach);
  color: var(--text-dark);
  border-color: var(--bg-peach);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.35),
    0 4px 12px rgba(252, 235, 210, 0.25);
}

.hero-btns .btn-primary:hover {
  background-color: #fcdfa8;
  border-color: #fcdfa8;
  color: var(--text-dark);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.45),
    0 6px 16px rgba(252, 235, 210, 0.35);
}

.hero-btns .btn-outline-white {
  border-color: var(--bg-peach);
  color: var(--bg-peach);
  background-color: transparent;
}

.hero-btns .btn-outline-white:hover {
  background-color: var(--bg-peach);
  color: var(--text-dark);
  border-color: var(--bg-peach);
}

/* Scroll down indicator */
.scroll-down-arrow {
  position: absolute;
  bottom: clamp(70px, 8vw + 15px, 145px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
  animation: bounce 2s infinite;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Brush Transition Border */
.hero-brush-border {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 8vw;
  min-height: 50px;
  max-height: 120px;
  background-image: url("images/hero_bottom.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom center;
  z-index: 3;
  pointer-events: none;
}

@supports (mask-image: url("images/hero_bottom.webp")) or
  (-webkit-mask-image: url("images/hero_bottom.webp")) {
  .hero-brush-border {
    background-image: none;
    background-color: var(--bg-cream);
    -webkit-mask-image: url("images/hero_bottom.webp");
    mask-image: url("images/hero_bottom.webp");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: bottom center;
    mask-position: bottom center;
  }
}

.scroll-down-arrow:hover {
  color: var(--white);
}

.arrow-text {
  font-family: var(--font-heading-en);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.scroll-down-arrow i {
  font-size: 1.2rem;
}

/* --- Latest News Section --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(197, 160, 105, 0.08);
  transition: var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-premium);
  border-color: var(--border-color);
}

.news-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.news-card:hover .news-img-wrapper img {
  transform: scale(1.1);
}

.news-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
}

.category-seasonal {
  background-color: var(--accent-red);
}
.category-event {
  background-color: var(--accent-gold);
}
.category-new {
  background-color: var(--accent-orange);
}

.news-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 220px);
  min-height: 250px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.news-date i {
  margin-right: 5px;
}

.news-card-title {
  font-family: var(--font-heading-zh);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 1rem;
  /* Limit to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  /* Limit to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-more-btn {
  background: none;
  border: none;
  font-family: var(--font-body-zh);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: fit-content;
  padding: 0;
  transition: var(--transition-fast);
}

.news-more-btn i {
  transition: transform var(--transition-fast);
}

.news-more-btn:hover {
  color: var(--primary-gold-hover);
}

.news-more-btn:hover i {
  transform: translateX(5px);
}

/* --- Product Section --- */
.products-section {
  position: relative;
  background-color: var(--bg-peach);
}

/* Brush Transition Border Top */
.products-brush-border {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 8vw;
  min-height: 50px;
  max-height: 120px;
  background-image: url("images/bg-header-overlay.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: top center;
  z-index: 3;
  pointer-events: none;
}

@supports (mask-image: url("images/bg-header-overlay.webp")) or
  (-webkit-mask-image: url("images/bg-header-overlay.webp")) {
  .products-brush-border {
    background-image: none;
    background-color: var(--bg-cream);
    -webkit-mask-image: url("images/bg-header-overlay.webp");
    mask-image: url("images/bg-header-overlay.webp");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: top center;
    mask-position: top center;
  }
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.filter-tab {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-medium);
  padding: 0.6rem 1rem;
  border-radius: 30px;
  font-family: var(--font-body-zh);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.filter-tab:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.filter-tab.active {
  background-color: var(--primary-gold);
  border-color: var(--primary-gold);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(197, 160, 105, 0.2);
}

/* Product grid & cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
  opacity: 1;
  transform: scale(1);
  /* Handle show/hide animations */
  animation: cardEntrance 0.5s ease-out;
}

.product-card.hidden {
  display: none;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-gold);
}

.product-img-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.08);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 36, 30, 0.4);
  backdrop-filter: blur(3px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 5;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-info {
  padding: 1rem 1.5rem;
}

.product-category-name {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-gold);
  display: block;
  margin-bottom: 0.4rem;
}

.product-title {
  font-family: var(--font-heading-zh);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border-light);
  padding-top: 0.75rem;
}

.product-price {
  font-family: var(--font-body-en), var(--font-body-zh);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.product-price small {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
}

.product-view-btn {
  background-color: var(--bg-cream);
  border: 1px solid var(--border-color);
  color: var(--text-medium);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.product-view-btn:hover {
  background-color: var(--primary-gold);
  border-color: var(--primary-gold);
  color: var(--white);
}

/* --- About Us Section --- */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-content {
  position: relative;
  z-index: 1;
  padding-right: 1.5rem;
}

.about-left-decor {
  position: absolute;
  top: -80px;
  left: -90px;
  width: 320px;
  height: auto;
  opacity: 1;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

.about-title {
  font-family: var(--font-heading-zh);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.about-paragraph {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.about-paragraph b {
  color: var(--text-dark);
}

.about-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.badge-item {
  text-align: center;
  padding: 1.2rem 0.5rem;
  background-color: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-light);
}

.badge-icon {
  font-size: 1.5rem;
  color: var(--primary-gold);
  margin-bottom: 0.6rem;
}

.badge-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.badge-item p {
  font-size: 0.75rem;
  color: var(--text-light);
}

.about-img-container {
  display: flex;
  justify-content: center;
}

.about-img-box {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  position: relative;
  width: 100%;
  max-width: 450px;
}

.about-img-wrapper-item {
  position: relative;
  width: 100%;
}

.about-main-img,
.about-sub-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
  z-index: 2;
  position: relative;
  display: block;
  transition: var(--transition-normal);
}

.about-main-img:hover,
.about-sub-img:hover {
  transform: scale(1.02) translateY(-5px);
}

.img-decor-border {
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(122, 92, 78, 0.3);
  border-radius: 8px;
  z-index: 1;
}

.img-decor-border-tr {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(122, 92, 78, 0.3);
  border-radius: 8px;
  z-index: 1;
}

.img-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--text-dark);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.badge-years {
  font-family: var(--font-heading-en);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-red);
  line-height: 1;
}

.badge-txt {
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  margin-top: 3px;
  line-height: 1.2;
}

/* --- Stores & Reservation Section --- */
.stores-section {
  position: relative;
  background-color: var(--bg-peach);
  z-index: 1;
  overflow: hidden;
}

.stores-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/findus_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  mix-blend-mode: multiply;
  z-index: -1;
  pointer-events: none;
}

.stores-container {
  width: 100%;
  margin: 0 auto;
}

/* Embedded Google Map with Floating Info Card */
.stores-map-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(78, 62, 55, 0.12);
  border: 1px solid var(--border-light);
  background-color: #f4f0eb;
}

.stores-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Floating White Info Box (營業白底框) */
.stores-info-card {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 360px;
  max-width: calc(100% - 48px);
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 5;
}

.store-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.store-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-body-zh);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

.store-tab:hover {
  color: var(--primary-gold);
}

.store-tab.active {
  color: var(--primary-gold);
  border-bottom-color: var(--primary-gold);
}

.store-details-list {
  flex-grow: 1;
}

.store-location-item {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.store-location-item.active-store {
  display: block;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.store-location-item.active-store:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.store-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.store-header h3 {
  font-family: var(--font-heading-zh);
  font-size: 1.35rem;
  color: var(--text-dark);
}

.status-open {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background-color: rgba(6, 199, 85, 0.1);
  color: #05b04b;
  border-radius: 4px;
  font-weight: 600;
}

.status-closed {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-radius: 4px;
  font-weight: 600;
}

.status-rest {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background-color: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  border-radius: 4px;
  font-weight: 600;
}

.hour-row.current-day {
  font-weight: 700;
  color: var(--accent-orange);
  display: inline-block;
  position: relative;
}

.hour-row.current-day::after {
  content: " (今天)";
  font-size: 0.8rem;
  color: var(--accent-orange);
  margin-left: 5px;
  font-weight: 600;
}

.store-meta-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.store-meta-list li {
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.store-meta-list li strong {
  font-weight: 500;
}

.store-meta-list li i {
  color: var(--primary-gold);
  margin-right: 12px;
  margin-top: 5px;
  width: 16px;
  text-align: center;
}

.store-links {
  display: flex;
  gap: 0.8rem;
}

.store-links .btn {
  box-shadow: none;
}

.store-links .btn:hover {
  box-shadow: none;
}

/* Right side: Reservation Inquiry Form */
.reservation-form-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-light);
}

.card-header {
  margin-bottom: 2.2rem;
}

.card-header h3 {
  font-family: var(--font-heading-zh);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-header p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-medium);
  margin-bottom: 0.5rem;
}

.required {
  color: var(--accent-rose);
}

input[type="text"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-cream);
  border-radius: 4px;
  font-family: var(--font-body-zh);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(197, 160, 105, 0.15);
}

textarea {
  resize: vertical;
}

/* --- Footer Styles --- */
.site-footer {
  position: relative;
  background-color: var(--text-dark);
  color: #dfd7ce;
  padding: 5rem 0 2rem 0;
  font-size: 0.9rem;
  border-top: 2px solid var(--primary-gold);
  overflow: hidden;
  z-index: 1;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/pattern.webp");
  background-repeat: repeat;
  background-position: center;
  background-size: 878px auto;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 3.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand .logo-en {
  color: var(--white);
}

.footer-brand .logo-zh {
  color: #efe5db;
}

.brand-slogan {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
}

.social-links a:hover {
  background-color: var(--accent-rose);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-heading-zh);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

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

.footer-nav ul li {
  margin-bottom: 0.8rem;
}

.footer-nav ul li a:hover {
  color: var(--accent-rose);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  color: var(--accent-rose);
  margin-right: 12px;
  font-size: 1rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: #a89b90;
}

/* --- Modal Overlay & Cards (Common) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 36, 30, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--white);
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  transform: translateY(30px) scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--text-light);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--accent-rose);
}

/* --- Product Details Modal Specifics --- */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}

.modal-img-container {
  height: 100%;
  min-height: 450px;
  background-color: #f9f9f9;
}

.modal-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-details {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.modal-category {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-family: var(--font-heading-zh);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.modal-divider {
  height: 1px;
  background-color: var(--border-color);
  margin-bottom: 1.5rem;
}

.modal-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-medium);
  margin-bottom: 2rem;
}

.modal-meta-box {
  background-color: var(--bg-peach);
  border-radius: 6px;
  padding: 1.2rem;
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.meta-row {
  display: flex;
  font-size: 0.9rem;
}

.meta-label {
  font-weight: 600;
  color: var(--text-dark);
  width: 100px;
  flex-shrink: 0;
}

.meta-val {
  color: var(--text-medium);
}

.size-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.size-option-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.3rem;
}

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

.option-size {
  font-weight: 500;
}

.option-price {
  font-weight: 700;
  color: var(--text-dark);
}

.modal-action-box {
  margin-top: auto;
}

.modal-notice {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-notice i {
  color: var(--primary-gold);
}

.modal-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

/* --- News Modal Specifics --- */
.news-modal-card {
  max-width: 750px;
}

.news-modal-content {
  padding: 3rem;
}

.news-modal-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.news-modal-header .news-tag {
  position: static;
  display: inline-block;
  margin-right: 1rem;
}

.news-modal-header .news-date {
  font-size: 0.85rem;
}

.modal-news-title {
  font-family: var(--font-heading-zh);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-top: 1rem;
  line-height: 1.4;
}

.news-modal-img {
  height: 350px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.news-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-modal-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 2.5rem;
}

.news-modal-body p {
  margin-bottom: 1.2rem;
}

.news-modal-body h4 {
  font-family: var(--font-heading-zh);
  font-size: 1.2rem;
  margin: 2rem 0 1rem 0;
  color: var(--text-dark);
}

.news-modal-footer {
  display: flex;
  justify-content: flex-end;
}

/* --- Animations & Effects --- */
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Entrance classes triggers */
.fade-in-left.animated {
  animation: fadeInLeft 1s forwards;
}

.fade-in-right.animated {
  animation: fadeInRight 1s forwards;
}

.fade-in-up.animated {
  animation: fadeInUp 0.8s forwards;
}

/* Initially hidden for scroll reveal */
.fade-in-left,
.fade-in-right,
.fade-in-up {
  opacity: 0;
}

/* --- Responsive Web Design (Media Queries) --- */

/* Desktop: every main section fills at least one viewport. */
@media (min-width: 993px) {
  section {
    min-height: 100vh;
  }
}

/* Tablet & Large Mobile Devices (992px) */
@media (max-width: 992px) {
  section {
    padding: 4.5rem 0;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-content {
    padding-right: 0;
  }

  .about-img-container {
    order: -1;
  }

  .stores-container {
    max-width: 100%;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-img-container {
    min-height: 300px;
    height: 300px;
  }

  .modal-details {
    padding: 2rem 1.8rem;
  }
}

/* Small Screens & Mobile (768px) */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .hero-section {
    background-image: url("images/hero_m.webp");
    background-attachment: scroll;
  }

  .stores-section::before {
    background-image: url("images/findus_bg_m.webp");
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-btns .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Navigation Mobile View */
  .hamburger-menu {
    display: block;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: right var(--transition-normal);
    padding: 6rem 2rem 2rem 2rem;
  }

  .navbar.active {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 2rem;
  }

  .nav-link {
    font-size: 1.15rem;
    display: block;
    color: var(--text-medium);
  }

  .nav-cta-btn {
    display: none; /* Hide top CTA in mobile header to save space */
  }

  /* News and Product lists grid */
  .news-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .filter-tabs {
    margin-bottom: 2rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .about-badges {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .badge-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 1rem 1.5rem;
    gap: 1.5rem;
  }

  .badge-icon {
    margin-bottom: 0;
  }

  .badge-item h4 {
    margin-bottom: 0.1rem;
  }

  .stores-map-wrapper {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .stores-map-iframe {
    height: 280px;
    width: 100%;
  }

  .stores-info-card {
    position: static;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 1.6rem;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border-light);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modal-btns {
    grid-template-columns: 1fr;
  }
}
