/* ==========================================================================
   DESIGN SYSTEM: ZEN WABI-SABI & HAUTE COUTURE TEA GALLERY (MẪU 6)
   Triết lý: Tĩnh lặng tuyệt đối, Gốm mộc Bizen, Vòng tròn Enso, Trà đạo đương đại
   Khoảng thở rộng (Negative space), Bảng màu mộc mạc cao cấp, Không bóng bẩy AI
   ========================================================================== */
:root {
  --zen-charcoal: #1C1D1F;     /* Xám than đá cuội */
  --zen-sumi: #0F1011;         /* Đen mực tàu sâu */
  --zen-sand: #F7F5F0;         /* Cát Zen ngà tinh khiết */
  --zen-stone: #EAE6DF;        /* Đá vôi mài nhẵn */
  
  --ceramic-bizen: #8C6D53;    /* Gốm thô Bizen */
  --celadon-green: #5C7667;    /* Men ngọc Celadon */
  --autumn-leaf: #A85A32;      /* Đất nung mùa thu */

  --text-main: #141517;        /* Chữ đen mun chuẩn mực */
  --text-body: #2B2D30;        /* Xám đậm dễ đọc */
  --text-muted: #595D62;       /* Xám trung tính */
  --text-light: #878C93;

  --border-hairline: #DDD8CE;  /* Viền tóc mỏng manh */
  --border-focus: #5C7667;

  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --font-gallery: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--zen-sand);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-gallery);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select {
  font-family: inherit;
}

.zen-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Subtle Line */
.zen-top-notice {
  background-color: var(--zen-sumi);
  color: #D5D8DC;
  font-size: 0.8rem;
  padding: 8px 0;
  text-align: center;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Zen Header */
.zen-header {
  background-color: var(--zen-sand);
  border-bottom: 1px solid var(--border-hairline);
  position: sticky;
  top: 0;
  z-index: 100;
}
.zen-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 16px;
}
.zen-brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.enso-symbol {
  width: 38px;
  height: 38px;
}
.zen-brand-title {
  font-family: var(--font-gallery);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--zen-sumi);
  text-transform: uppercase;
}

.zen-menu-list {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.zen-menu-list a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.zen-menu-list a:hover, .zen-menu-list a.active {
  color: var(--celadon-green);
}

.zen-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-zen-room {
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-zen-tray {
  background-color: var(--zen-sumi);
  color: white;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
}
.tray-counter {
  background-color: var(--celadon-green);
  color: white;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 2px;
}

/* ==========================================================================
   HERO: SALON GALLERY EXHIBITION
   ========================================================================== */
.zen-hero-salon {
  padding: 80px 0 90px;
  border-bottom: 1px solid var(--border-hairline);
}
.salon-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.zen-eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--celadon-green);
  font-weight: 700;
  margin-bottom: 20px;
}
.salon-h1 {
  font-size: 3.4rem;
  line-height: 1.18;
  color: var(--zen-sumi);
  margin-bottom: 24px;
  font-weight: 700;
}
.salon-h1 em {
  font-style: normal;
  color: var(--ceramic-bizen);
}
.salon-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}
.salon-cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-zen-primary {
  background-color: var(--zen-sumi);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background 0.2s;
}
.btn-zen-primary:hover {
  background-color: var(--celadon-green);
}
.btn-zen-outline {
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-main);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

/* Artwork Exhibition Stand */
.zen-artwork-stand {
  background-color: var(--zen-stone);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.ceramic-cup-svg {
  width: 220px;
  height: 250px;
  margin: 10px 0 20px;
  filter: drop-shadow(0 16px 20px rgba(28, 29, 31, 0.12));
}
.zen-cup-caption {
  width: 100%;
  border-top: 1px solid var(--border-hairline);
  padding-top: 18px;
  text-align: center;
}
.zen-cup-caption h4 {
  font-size: 1.25rem;
  color: var(--zen-sumi);
  margin-bottom: 4px;
}
.zen-price-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ceramic-bizen);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   SECTION: PRIVATE RESERVE GALLERY (BỘ SƯU TẬP ĐỘC BẢN)
   ========================================================================== */
.reserve-section {
  padding: 80px 0;
}
.sec-center-zen {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.sec-kicker-zen {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ceramic-bizen);
  font-weight: 700;
  margin-bottom: 10px;
}
.sec-title-zen {
  font-size: 2.3rem;
  color: var(--zen-sumi);
  margin-bottom: 12px;
}

.reserve-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.reserve-card {
  background-color: white;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.reserve-card:hover {
  border-color: var(--celadon-green);
}
.reserve-media {
  height: 180px;
  background-color: var(--zen-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-hairline);
}
.reserve-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.reserve-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--zen-sumi);
  margin-bottom: 6px;
}
.reserve-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}
.reserve-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-hairline);
  padding-top: 14px;
}
.reserve-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ceramic-bizen);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.btn-zen-select {
  background-color: var(--zen-stone);
  border: 1px solid var(--border-hairline);
  color: var(--zen-sumi);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-zen-select:hover {
  background-color: var(--zen-sumi);
  color: white;
}

/* Tea Rooms Section */
.rooms-section {
  background-color: white;
  padding: 80px 0;
  border-top: 1px solid var(--border-hairline);
}
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.room-card {
  background-color: var(--zen-sand);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.room-card.active {
  border-color: var(--celadon-green);
  background-color: #F2F5F3;
}
.room-card h4 {
  color: var(--zen-sumi);
  margin-bottom: 6px;
}
.room-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
}
.btn-select-room {
  width: 100%;
  background: white;
  border: 1px solid var(--border-hairline);
  color: var(--zen-sumi);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.room-card.active .btn-select-room {
  background-color: var(--zen-sumi);
  color: white;
  border-color: var(--zen-sumi);
}

/* Footer */
.zen-footer {
  background-color: var(--zen-sumi);
  color: #9A9DA2;
  padding: 60px 0 30px;
  font-size: 0.88rem;
}
.footer-zen-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid #2B2D30;
  margin-bottom: 24px;
}

/* Cart Drawer */
.zen-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 16, 17, 0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.zen-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.zen-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background-color: white;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.1);
}
.zen-drawer.open {
  transform: translateX(0);
}
.zen-drawer-top {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--zen-sand);
}
.zen-drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.zen-drawer-pay {
  padding: 24px;
  background-color: var(--zen-sand);
  border-top: 1px solid var(--border-hairline);
}

/* Modal Customizer */
.zen-modal-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 16, 17, 0.6);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.zen-modal-wrap.open {
  display: flex;
}
.zen-modal-card {
  background-color: white;
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid var(--border-hairline);
}
.zen-modal-head {
  padding: 18px 24px;
  background-color: var(--zen-sand);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.zen-modal-body {
  padding: 24px;
}
.zen-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.zen-chip-item {
  padding: 6px 14px;
  border: 1px solid var(--border-hairline);
  background: var(--zen-sand);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.zen-chip-item.active {
  background-color: var(--zen-sumi);
  color: white;
  border-color: var(--zen-sumi);
}
.zen-modal-foot {
  padding: 16px 24px;
  background-color: var(--zen-sand);
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 992px) {
  .salon-grid {
    grid-template-columns: 1fr;
  }
  .reserve-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rooms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .salon-h1 {
    font-size: 2.3rem;
  }
  .reserve-grid {
    grid-template-columns: 1fr;
  }
  .rooms-grid {
    grid-template-columns: 1fr;
  }
  .zen-menu-list {
    display: none;
  }
}

/*
   AUTH PAGES — Login & Register
*/

.auth-section {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--bg-cream);
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--zen-sumi);
  margin: 12px 0 4px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.auth-alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  font-weight: 500;
}

.auth-alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-alert-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--zen-sumi);
  letter-spacing: 0.02em;
}

.auth-input {
  padding: 11px 14px;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg-cream);
  transition: border-color 0.2s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--ceramic-bizen);
  box-shadow: 0 0 0 3px rgba(140,109,83,0.1);
}

.auth-error {
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 500;
}

.auth-submit {
  margin-top: 6px;
}

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--ceramic-bizen);
  font-weight: 600;
  text-decoration: none;
}

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

.auth-forgot-link {
  font-size: 0.78rem;
  color: var(--ceramic-bizen);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-forgot-link:hover {
  text-decoration: underline;
  color: var(--zen-sumi);
}