/* ==========================================================================
   AMAYÉ - Cosmética Natural & Botánica
   Custom Botanical Styles & Luxe Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --bg-parchment: #FBF9F4;
  --bg-parchment-subtle: #F5EFE6;
  --bg-card: #FFFFFF;
  
  --color-forest: #204133;
  --color-forest-dark: #142920;
  --color-forest-light: #2D5845;
  --color-sage: #5D8068;
  --color-sage-light: #EBF2ED;
  
  --color-gold: #C5A059;
  --color-gold-light: #F7F1E3;
  --color-gold-dark: #9A7730;
  
  --color-terracotta: #C86D51;
  --color-terracotta-light: #FAEEEA;
  
  --text-main: #272320;
  --text-muted: #6B635B;
  --border-color: #E8DFD3;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-parchment);
  color: var(--text-main);
  background-image: radial-gradient(#E8DFC9 0.75px, transparent 0.75px), radial-gradient(#E8DFC9 0.75px, var(--bg-parchment) 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  -webkit-font-smoothing: antialiased;
}

.font-serif-botanical {
  font-family: var(--font-serif);
  letter-spacing: 0.03em;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-parchment-subtle);
}
::-webkit-scrollbar-thumb {
  background: #D4C7B5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Elegant Cards */
.card-botanical {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px -2px rgba(32, 65, 51, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  border-radius: 1rem;
  transition: all 0.2s ease-in-out;
}

.card-botanical:hover {
  border-color: #D3C2A5;
  box-shadow: 0 10px 25px -4px rgba(32, 65, 51, 0.08);
}

/* Botanical Gold Gradient Border */
.border-botanical-gold {
  border-image: linear-gradient(to right, #C5A059, #E3CAA1, #C5A059) 1;
}

/* Botanical Button Styles */
.btn-forest {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(32, 65, 51, 0.2);
  transition: all 0.2s ease;
}

.btn-forest:hover {
  background: linear-gradient(135deg, var(--color-forest-light) 0%, var(--color-forest) 100%);
  box-shadow: 0 6px 16px rgba(32, 65, 51, 0.3);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25);
  transition: all 0.2s ease;
}

.btn-gold:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(197, 160, 89, 0.35);
  transform: translateY(-1px);
}

/* Nav Item Active State */
.nav-item.active {
  background-color: var(--color-forest);
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(32, 65, 51, 0.18);
}

.nav-item.active .nav-icon {
  color: var(--color-gold) !important;
}

/* Subtle gold badge */
.badge-gold {
  background-color: var(--color-gold-light);
  color: var(--color-gold-dark);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.badge-forest {
  background-color: var(--color-sage-light);
  color: var(--color-forest);
  border: 1px solid rgba(45, 88, 69, 0.2);
}

.badge-terracotta {
  background-color: var(--color-terracotta-light);
  color: var(--color-terracotta);
  border: 1px solid rgba(200, 109, 81, 0.25);
}

/* Modal Overlay Animation */
.modal-overlay {
  background-color: rgba(20, 41, 32, 0.55);
  backdrop-filter: blur(4px);
  transition: opacity 0.25s ease;
}

/* Product & Formula Cards */
.formula-card-img {
  height: 140px;
  object-fit: cover;
  border-radius: 0.75rem 0.75rem 0 0;
  transition: transform 0.3s ease;
}

.formula-card:hover .formula-card-img {
  transform: scale(1.03);
}

/* Table styling */
.amaye-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.amaye-table th {
  background-color: #F7F3EB;
  color: var(--color-forest);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 0.5rem;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.amaye-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid #EFEAE1;
  font-size: 0.75rem;
  vertical-align: middle;
}

.amaye-table tr:hover td {
  background-color: #FCFAF6;
}

/* Print Friendly Styles */
@media print {
  aside, header, #toast-container, .no-print {
    display: none !important;
  }
  main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .card-botanical {
    box-shadow: none !important;
    border: 1px solid #CCC !important;
  }
}
/* Quick Edit Mode Styles */
.quick-edit-toolbar {
  background: linear-gradient(135deg, #FAF7F2 0%, #F5EFE6 100%);
  border: 1px solid #E3CAA1;
  border-radius: 0.875rem;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.12);
}

.quick-edit-input {
  background-color: #FFFFFF;
  border: 1.5px solid #D8C7AF;
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  transition: all 0.15s ease;
  width: 100%;
}

.quick-edit-input:focus {
  outline: none;
  border-color: #204133;
  box-shadow: 0 0 0 3px rgba(32, 65, 51, 0.15);
  background-color: #FAFDFB;
}

.quick-edit-cell-active {
  background-color: #F8F5EE !important;
}

.keyboard-shortcut-tag {
  background: #E8DFD3;
  color: #4A423D;
  font-family: monospace;
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid #D4C7B5;
}

/* ==========================================================================
   AMAYÉ RESPONSIVE TABLE & STICKY HORIZONTAL SCROLLBAR STANDARDS
   ========================================================================== */

/* Universal table wrapper that supports top and bottom sticky bars */
.amaye-table-card {
  position: relative;
}

/* Clean Responsive Table Styling */
.amaye-table-top-bar,
.amaye-table-sticky-bar {
  display: none !important;
}

/* Action Column (Acciones) - cleanly aligned without covering adjacent columns */
.amaye-table th.col-sticky-action,
.amaye-table td.col-sticky-action {
  white-space: nowrap;
  text-align: center;
}

/* Compact preview container for items lists in tables */
.amaye-items-preview-box {
  max-height: 9rem;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: #C5A059 #FAF7F2;
}

.amaye-items-preview-box::-webkit-scrollbar {
  width: 4px;
}

.amaye-items-preview-box::-webkit-scrollbar-thumb {
  background: #C5A059;
  border-radius: 2px;
}

/* ==========================================================================
   AMAYÉ BOTANICAL SECTION (BELOW HERO BANNER)
   Fondo estático, claro y minimalista con texturas botánicas sutiles
   ========================================================================== */
.amaye-botanical-section {
  background-color: #FAF7F2;
  background-image: radial-gradient(#E8DFC9 0.6px, transparent 0.6px);
  background-size: 26px 26px;
  background-attachment: scroll;
  position: relative;
  overflow: hidden;
}

.botanical-texture-item {
  position: absolute;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;
  filter: contrast(0.92) brightness(1.02);
  z-index: 1;
}