/* ===================================================== */
/* 01. HEADER CHÍNH                                       */
/* Thiết lập thanh điều hướng cố định ở đầu trang         */
/* ===================================================== */

.business-notice {
  position: relative;
  z-index: 51;
  border-bottom: 1px solid rgba(91, 61, 44, 0.14);
  background: #5b2d1c;
  color: #fff8ec;
}

.business-notice[data-kind="special"] {
  background: #80602c;
}

.business-notice__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(1280px, calc(100% - 48px));
  min-height: 44px;
  margin: 0 auto;
  padding: 8px 0;
  text-align: center;
}

.business-notice__inner strong {
  flex: none;
  padding: 4px 9px;
  border: 1px solid rgba(255, 248, 236, 0.28);
  border-radius: 999px;
  color: #ffd19d;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.business-notice__inner span {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .business-notice__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    width: calc(100% - 28px);
    padding: 10px 0;
    text-align: left;
  }

  .business-notice__inner span {
    font-size: 12px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.7), rgba(255, 250, 242, 0.58)),
    url("../assets/images/header-paper-bg.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid rgba(91, 61, 44, 0.08);
  backdrop-filter: blur(18px);
  transition: height 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

/* Header khi cuộn xuống */

.site-header.is-scrolled {
  height: 84px;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.82), rgba(255, 250, 242, 0.74)),
    url("../assets/images/header-paper-bg.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 12px 28px rgba(54, 31, 19, 0.08);
}


/* ===================================================== */
/* 02. BỐ CỤC HEADER                                      */
/* Chia Header thành Logo - Menu - Action                */
/* ===================================================== */

.header-inner {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(1280px, calc(100% - 72px));
  height: 100%;
  margin: 0 auto;
}


/* ===================================================== */
/* 03. LOGO                                               */
/* Hiển thị logo của Seoul Soul                          */
/* ===================================================== */

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 155px;
  height: auto;
  max-height: 82px;
  object-fit: contain;
  display: block;
}

/* ===================================================== */
/* 04. MENU ĐIỀU HƯỚNG                                    */
/* Menu ngang trên màn hình Desktop                      */
/* ===================================================== */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.2vw, 64px);
}

.nav-link {
  position: relative;
  color: var(--color-ink-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Dấu chấm hiển thị khi Hover hoặc Active */

.nav-link::after {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-terracotta);
  opacity: 0;
  transform: translateX(-50%) scale(0.6);
  content: "";
  transition: opacity 220ms ease, transform 220ms ease;
}

.nav-link.is-active::after,
.nav-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}


/* ===================================================== */
/* 05. CÁC NÚT CHỨC NĂNG BÊN PHẢI                         */
/* Reservierung - Giỏ hàng - Menu Mobile                 */
/* ===================================================== */

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}


/* ===================================================== */
/* 06. NÚT GIỎ HÀNG                                       */
/* ===================================================== */

.cart-button {
  position: relative;
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: transparent;
  color: var(--color-brown);

  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.cart-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.cart-button:hover {
  background: rgba(91, 61, 44, 0.08);
}

.cart-button:hover .cart-icon {
  transform: scale(1.08);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;

  display: inline-grid;
  place-items: center;

  min-width: 18px;
  height: 18px;

  padding: 0 5px;
  border-radius: 999px;

  background: var(--color-terracotta);
  color: var(--color-white);

  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}


/* ===================================================== */
/* 07. NÚT HAMBURGER MENU                                 */
/* Hiển thị trên Tablet và Mobile                        */
/* ===================================================== */

.menu-toggle {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  color: var(--color-brown);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle span::before {
  transform: translateY(-8px);
}

.menu-toggle span::after {
  transform: translateY(6px);
}

/* Animation khi mở menu */

.menu-open .menu-toggle span {
  transform: rotate(45deg);
}

.menu-open .menu-toggle span::before {
  opacity: 0;
}

.menu-open .menu-toggle span::after {
  transform: translateY(-2px) rotate(-90deg);
}


/* ===================================================== */
/* 08. MENU MOBILE                                        */
/* Panel hiện khi nhấn Hamburger                         */
/* ===================================================== */

.mobile-menu {
  position: fixed;
  inset: var(--header-height) 18px auto 18px;
  z-index: 49;
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(91, 61, 44, 0.14);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.96);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
  transition: opacity 240ms ease, transform 240ms ease;
}

/* Trạng thái mở */

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu .nav-link {
  padding: 12px 6px;
}

/* Mobile dùng màu chữ để báo trang hiện tại, không dùng dấu chấm của menu desktop. */
.mobile-menu .nav-link::after {
  display: none;
}

.mobile-menu .nav-link.is-active {
  color: var(--color-terracotta);
}


/* ===================================================== */
/* 09. RESPONSIVE TABLET                                  */
/* Ẩn menu ngang và thu nhỏ Header                        */
/* ===================================================== */

@media (max-width: 1080px) {

  .header-inner {
    grid-template-columns: 190px 1fr auto;
    width: min(100%, calc(100% - 34px));
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

}


/* ===================================================== */
/* 10. RESPONSIVE MOBILE                                  */
/* Tối ưu giao diện cho điện thoại                        */
/* ===================================================== */

@media (max-width: 640px) {

  :root {
    --header-height: 88px;
  }

  .site-header,
  .site-header.is-scrolled {
    height: var(--header-height);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .logo-title {
    font-size: 27px;
  }

  .logo-mark {
    width: 58px;
    height: 20px;
    margin-bottom: 3px;
  }

  .header-actions .btn {
    display: none;
  }

  .cart-button,
  .menu-toggle {
    width: 42px;
    height: 42px;
  }

}
