/* Material You (Material 3) Theme Tokens - Geisa Leite Semi-Joias
   Paleta extraída fielmente da identidade visual do Instagram @geisaleitesemijoias:
   Rosa Seco / Blush Nude (#D8B4B4 / #8A4E57 / #DCBDBA) com Ouro 18k (#C59A45) e Marrom Espresso (#362527)
*/
@import url('https://fonts.googleapis.com/css2?family=Allura&family=Birthstone&family=Great+Vibes&display=swap');

.font-brand-signature {
  font-family: 'Allura', 'Birthstone', 'Great Vibes', cursive;
  font-weight: 400;
  letter-spacing: 0.02em;
}

:root {
  /* Material You Primary - Rosa Seco Nobre */
  --md-sys-color-primary: #8A4E57;
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: #F8DCE0;
  --md-sys-color-on-primary-container: #391119;
  
  /* Material You Secondary - Ouro 18k Quente */
  --md-sys-color-secondary: #9E7429;
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-secondary-container: #FCE8C8;
  --md-sys-color-on-secondary-container: #332000;
  
  /* Material You Tertiary - Nude Terracota */
  --md-sys-color-tertiary: #7D524B;
  --md-sys-color-tertiary-container: #FFDAD4;
  --md-sys-color-on-tertiary-container: #32110D;

  /* Surfaces & Backgrounds - Tons suaves de Rosa Nude e Areia */
  --md-sys-color-surface: #FDF7F7;
  --md-sys-color-on-surface: #241A1B;
  --md-sys-color-surface-variant: #EEDADB;
  --md-sys-color-on-surface-variant: #514344;
  --md-sys-color-outline: #837375;
  --md-sys-color-outline-variant: #D5C2C4;

  --md-sys-color-surface-container-lowest: #FFFFFF;
  --md-sys-color-surface-container-low: #F8F1F1;
  --md-sys-color-surface-container: #F2EBEB;
  --md-sys-color-surface-container-high: #ECE5E5;
  --md-sys-color-surface-container-highest: #E6DFDF;

  /* Identidade Visual - Rosa Seco e Ouro */
  --gl-brand-blush: #D8B4B4;
  --gl-brand-espresso: #362527;
  --gl-brand-gold: #C59A45;
  --gl-brand-gold-gradient: linear-gradient(135deg, #ECC876 0%, #C59A45 50%, #8A4E57 100%);
  --gl-brand-rose-gradient: linear-gradient(135deg, #A86570 0%, #8A4E57 100%);
  --gl-brand-glow: rgba(138, 78, 87, 0.25);

  --md-shape-corner-small: 10px;
  --md-shape-corner-medium: 18px;
  --md-shape-corner-large: 26px;
  --md-shape-corner-full: 9999px;
  
  --md-elevation-1: 0 1px 3px rgba(54, 37, 39, 0.06), 0 1px 2px rgba(54, 37, 39, 0.04);
  --md-elevation-2: 0 4px 8px rgba(54, 37, 39, 0.08), 0 2px 4px rgba(54, 37, 39, 0.05);
  --md-elevation-3: 0 10px 22px rgba(54, 37, 39, 0.10), 0 4px 8px rgba(54, 37, 39, 0.06);
  --md-elevation-4: 0 18px 36px rgba(54, 37, 39, 0.14), 0 6px 14px rgba(54, 37, 39, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: 'Playfair Display', serif;
}

.font-signature {
  font-family: 'Alex Brush', cursive;
}

/* Material You Dynamic Glass & Surface Containers */
.m3-surface-low {
  background-color: var(--md-sys-color-surface-container-low);
}

.m3-surface {
  background-color: var(--md-sys-color-surface-container);
}

.m3-surface-high {
  background-color: var(--md-sys-color-surface-container-high);
}

.m3-card {
  background-color: var(--md-sys-color-surface-container-lowest);
  border-radius: var(--md-shape-corner-large);
  border: 1px solid var(--md-sys-color-outline-variant);
  transition: all 0.28s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.m3-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--md-elevation-3);
  border-color: var(--md-sys-color-primary);
}

/* Material You Pill Buttons */
.m3-btn-primary {
  background: var(--gl-brand-rose-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: var(--md-shape-corner-full);
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--gl-brand-glow);
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.m3-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(138, 78, 87, 0.35);
}

.m3-btn-primary:active {
  transform: scale(0.98);
}

.m3-btn-tonal {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border: none;
  border-radius: var(--md-shape-corner-full);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.m3-btn-tonal:hover {
  filter: brightness(0.96);
}

.m3-btn-outlined {
  background-color: transparent;
  color: var(--md-sys-color-primary);
  border: 1.5px solid var(--md-sys-color-primary);
  border-radius: var(--md-shape-corner-full);
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.m3-btn-outlined:hover {
  background-color: var(--md-sys-color-primary-container);
}

/* Fita Horizontal de Categorias (Horizontal Scroll Bar) */
.category-scroll-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0.2rem 0.5rem 0.2rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Material You Filter Chips (Pills Delicados) */
.m3-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #EBDDD4;
  background-color: #FFFFFF;
  color: #362527;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  user-select: none;
  box-shadow: 0 1px 2px rgba(54, 37, 39, 0.04);
}

.m3-chip:hover:not(.active) {
  background-color: #FAF4F4;
  border-color: #DCBDBA;
  transform: translateY(-1px);
}

.m3-chip.active {
  background-color: #8A4E57;
  color: #FFFFFF;
  border-color: #8A4E57;
  box-shadow: 0 3px 10px rgba(138, 78, 87, 0.25);
}

/* Chip em Destaque para Promoções (Material You High-Emphasis Chip) */
.m3-chip-promo {
  background: linear-gradient(135deg, #FFF0F2 0%, #FDE4E7 100%) !important;
  border: 1.5px solid #D44E65 !important;
  color: #8A2D3C !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(212, 78, 101, 0.22);
  position: relative;
  overflow: hidden;
}

.m3-chip-promo::after {
  content: "HOT";
  font-size: 8px;
  background-color: #D44E65;
  color: #FFFFFF;
  padding: 1px 4px;
  border-radius: 999px;
  margin-left: 4px;
  letter-spacing: 0.5px;
}

.m3-chip-promo.active {
  background: linear-gradient(135deg, #D44E65 0%, #A6243A 100%) !important;
  color: #FFFFFF !important;
  border-color: #A6243A !important;
  box-shadow: 0 4px 16px rgba(166, 36, 58, 0.4) !important;
}

.m3-chip-promo.active::after {
  background-color: #FFFFFF;
  color: #A6243A;
}

.m3-chip-promo:hover:not(.active) {
  background: linear-gradient(135deg, #FFE8EB 0%, #FCD5DA 100%) !important;
  transform: translateY(-1px);
}

/* Floating Action Button (FAB) */
.m3-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  background: var(--gl-brand-rose-gradient);
  color: #FFFFFF;
  border-radius: 22px;
  padding: 1rem 1.45rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(138, 78, 87, 0.4);
  cursor: pointer;
  border: none;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s;
}

.m3-fab:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(138, 78, 87, 0.5);
}

.m3-fab:active {
  transform: scale(0.96);
}

/* Bottom Sheet / Drawer for Cart */
.m3-bottomsheet-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(36, 26, 27, 0.55);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.3s;
}

.m3-bottomsheet-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.m3-bottomsheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 560px;
  margin: 0 auto;
  background-color: var(--md-sys-color-surface-container-lowest);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  z-index: 51;
  box-shadow: var(--md-elevation-4);
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.m3-bottomsheet.open {
  transform: translateY(0);
}

.m3-drag-handle {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background-color: var(--md-sys-color-outline-variant);
  margin: 12px auto 6px auto;
}

/* Badge */
.m3-badge {
  background-color: var(--md-sys-color-primary);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Toast Notification */
.m3-toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background-color: var(--gl-brand-espresso);
  color: #FAF4F4;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.m3-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* WhatsApp Icon & Action */
.whatsapp-green {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
}

.whatsapp-green:hover {
  filter: brightness(1.08);
}

/* Lightbox & Zoom Viewer */
#photo-zoom-viewport {
  touch-action: none;
  user-select: none;
}

#photo-zoom-img {
  will-change: transform;
  transform-origin: center center;
}

/* Material You (Material 3) Mobile Navigation Bar Tokens */
.m3-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 16px;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  -webkit-tap-highlight-color: transparent;
}

.m3-nav-indicator {
  width: 56px;
  height: 32px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  background-color: transparent;
}

.m3-nav-item.active .m3-nav-indicator {
  background-color: var(--md-sys-color-primary-container);
}

.m3-nav-item.active .m3-nav-indicator svg {
  color: var(--md-sys-color-on-primary-container);
  transform: scale(1.08);
}

.m3-nav-label {
  font-size: 11px;
  font-weight: 600;
  color: #514344;
  letter-spacing: 0.01em;
  margin-top: 2px;
  transition: color 0.2s ease;
}

.m3-nav-item.active .m3-nav-label {
  color: var(--md-sys-color-primary);
  font-weight: 700;
}

/* Material You (M3) Floating Snackbar */
.m3-snackbar {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px) scale(0.95);
  background-color: #241A1B;
  color: #FAF4F4;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 10px 28px rgba(36, 26, 27, 0.35);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 90vw;
}

.m3-snackbar.show {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
