/* Shared site styles for Resonae Boutique */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background-color: #B8924D; color: #fff; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #F9F7F2;
  z-index: 80;
  transform: translateX(100%);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #1A1A1A;
  padding: 18px 0;
  border-bottom: 1px solid #E5E5E5;
}
.mobile-menu a:hover { color: #B8924D; }

/* Underline link */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #B8924D;
  transition: width 0.35s ease;
}
.link-underline:hover::after,
.link-underline.active::after { width: 100%; }

/* Minimal input (for forms) */
.minimal-input-container { margin-bottom: 24px; }
.minimal-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.15em;
  font-weight: 600;
  text-transform: uppercase;
  color: #848480;
  transition: color 0.3s ease;
  margin-bottom: 8px;
}
.minimal-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #c4c7c7;
  padding: 8px 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #1A1A1A;
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
}
.minimal-input:focus {
  border-bottom: 2px solid #B8924D;
}
.minimal-input-container:focus-within .minimal-label { color: #B8924D; }

/* Radio option card */
.custom-radio-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid #c4c7c7;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}
.custom-radio-option.selected {
  border-color: #B8924D;
  background-color: rgba(184, 146, 77, 0.05);
}

/* Toggle */
.toggle-checkbox {
  transition: all 0.3s ease;
}
.toggle-checkbox:checked {
  right: 0;
  border-color: #B8924D;
  transform: translateX(24px);
}
.toggle-checkbox:checked + .toggle-label {
  background-color: #B8924D;
}

/* Filter line */
.filter-line { position: relative; }
.filter-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #B8924D;
  transition: width 0.3s ease;
}
.filter-line:hover::after,
.filter-line.active::after { width: 100%; }

/* Tab content */
.tab-content { display: none; opacity: 0; transition: opacity 0.3s ease; }
.tab-content.active { display: block; opacity: 1; }

/* Fade in on load */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-load { animation: fadeIn 0.7s ease-out both; }

/* Lock body scroll when menu open */
body.menu-open { overflow: hidden; }

/* ----- Search overlay ----- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 40px;
  overflow-y: auto;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay-inner {
  width: 100%;
  max-width: 720px;
  background: #F9F7F2;
  padding: 32px 40px 40px;
  border: 1px solid #E5E5E5;
  transform: translateY(-20px);
  transition: transform 0.4s ease;
}
.search-overlay.open .search-overlay-inner { transform: translateY(0); }
.search-results { display: flex; flex-direction: column; }
.search-result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #E5E5E5;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.search-result:hover { background: rgba(184, 146, 77, 0.05); }
.search-result-img {
  width: 56px;
  height: 70px;
  background-size: cover;
  background-position: center;
  background-color: #efeded;
  flex-shrink: 0;
}

/* ----- Toast ----- */
.toast-container {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: #1A1A1A;
  color: #fff;
  padding: 14px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid #1A1A1A;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  min-width: 220px;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-gold {
  background: #B8924D;
  border-color: #B8924D;
}

/* ----- Avatar ----- */
.avatar-initials {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  color: #B8924D;
  font-weight: 600;
  font-size: 18px;
  background: #F9F7F2;
}

/* ----- Modal overlay (booking) ----- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px 40px;
  overflow-y: auto;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-inner {
  width: 100%;
  max-width: 600px;
  background: #fff;
  padding: 40px;
  border: 1px solid #E5E5E5;
  transform: translateY(-20px);
  transition: transform 0.4s ease;
}
.modal-overlay.open .modal-inner { transform: translateY(0); }

/* ----- Sinpoce Pass branded button (matches sinpoce-official spec) ----- */
.pass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid rgba(35, 35, 35, 0.15);
  background: transparent;
  color: #232323;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease;
  cursor: pointer;
}
.pass-button:hover {
  border-color: #AC8D49;
  color: #AC8D49;
}
.pass-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.pass-button svg {
  width: 18px;
  height: 22px;
  flex-shrink: 0;
}

/* ----- Wishlist heart state ----- */
[data-wishlist-toggle].is-saved {
  color: #B8924D;
}
[data-wishlist-toggle].is-saved .material-symbols-outlined {
  color: #B8924D;
}
