/* ─── SISTEMA DE DISEÑO DE LUJO DE MARCOS ANDRADE PERFUMERÍA ─── */

:root {
  /* Paleta Dorada */
  --gold-50:  #fdf8ec;
  --gold-100: #faefd1;
  --gold-200: #f4dca0;
  --gold-300: #edc265;
  --gold-400: #e5a832;
  --gold-500: #c8891a;
  --gold-600: #a86d14;
  --gold-700: #875412;
  --gold-800: #6d4214;
  --gold-900: #5a3713;

  /* Paleta Oscura */
  --dark-950: #080808;
  --dark-900: #0d0d0d;
  --dark-800: #141414;
  --dark-700: #1a1a1a;
  --dark-600: #222222;
  --dark-500: #2e2e2e;
  --dark-400: #3d3d3d;
  --dark-300: #555555;
  --dark-200: #888888;
  --dark-100: #b0b0b0;

  /* Colores Globales */
  --background: var(--dark-950);
  --foreground: #f0ede8;
  --accent: var(--gold-400);
  --accent-light: var(--gold-300);
  --muted: var(--dark-200);

  /* Fuentes */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, -apple-system, sans-serif;
}

/* ─── Base Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button, input, select {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark-900);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-700);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-500);
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

/* ─── Selection ─── */
::selection {
  background: var(--gold-600);
  color: var(--dark-950);
}

/* ─── Layout & Utility Classes ─── */
.max-w-7xl { max-width: 80rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-md { max-width: 28rem; }
.max-w-xs { max-width: 20rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-24 { padding-top: 6rem; }
.pt-32 { padding-top: 8rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-6 { padding-bottom: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-24 { margin-bottom: 6rem; }
.mt-auto { margin-top: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-20 { gap: 5rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-3 { top: 0.75rem; right: 0.75rem; bottom: 0.75rem; left: 0.75rem; }
.top-0 { top: 0; }
.top-3 { top: 0.75rem; }
.top-4 { top: 1rem; }
.top-5 { top: 1.25rem; }
.right-0 { right: 0; }
.right-3 { right: 0.75rem; }
.right-4 { right: 1rem; }
.right-5 { right: 1.25rem; }
.bottom-0 { bottom: 0; }
.bottom-8 { bottom: 2rem; }
.left-0 { left: 0; }
.left-3 { left: 0.75rem; }
.left-1\/2 { left: 50%; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-px { height: 1px; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-24 { width: 6rem; }
.w-72 { width: 18rem; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-center { object-position: center; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.pointer-events-none { pointer-events: none; }
.hidden { display: none !important; }
.opacity-0 { opacity: 0; }
.opacity-80 { opacity: 0.8; }
.transition-all { transition-property: all; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.cursor-pointer { cursor: pointer; }
.rounded { border-radius: 0.25rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-full { border-radius: 9999px; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.border { border: 1px solid var(--dark-600); }
.border-t { border-top: 1px solid var(--dark-700); }
.border-b { border-bottom: 1px solid var(--dark-700); }
.border-l { border-left: 1px solid var(--dark-700); }

/* Colors & Fonts */
.bg-dark-950 { background-color: var(--dark-950); }
.bg-dark-900 { background-color: var(--dark-900); }
.bg-dark-800 { background-color: var(--dark-800); }
.bg-transparent { background-color: transparent; }
.text-foreground { color: var(--foreground); }
.text-gold-400 { color: var(--gold-400); }
.text-gold-500 { color: var(--gold-500); }
.text-gold-600 { color: var(--gold-600); }
.text-dark-100 { color: var(--dark-100); }
.text-dark-200 { color: var(--dark-200); }
.text-dark-300 { color: var(--dark-300); }
.text-dark-400 { color: var(--dark-400); }
.text-dark-500 { color: var(--dark-500); }
.text-red-400 { color: #f87171; }

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }
.text-8xl { font-size: 6rem; }
.text-9xl { font-size: 8rem; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.line-through { text-decoration: line-line-through; text-decoration: line-through; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

/* Responsive Grid / Flex System */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex { display: flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:text-left { text-align: left; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none !important; }
}

/* ─── Gold Gradient Text ─── */
.text-gold-gradient {
  background: linear-gradient(135deg, var(--gold-200) 0%, var(--gold-400) 50%, var(--gold-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Divider Lines ─── */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-700) 20%, var(--gold-400) 50%, var(--gold-700) 80%, transparent);
}

/* ─── Glass Card ─── */
.glass-card {
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 137, 26, 0.12);
}

/* ─── Shimmer Animation ─── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(229, 168, 50, 0.15) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 4s infinite linear;
}

/* ─── Glow Effect ─── */
.glow-gold {
  box-shadow: 0 0 30px rgba(200, 137, 26, 0.2), 0 0 60px rgba(200, 137, 26, 0.08);
}

/* ─── Product Card Hover ─── */
.product-card {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(200, 137, 26, 0.12);
}
.product-card img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover img {
  transform: scale(1.06);
}

/* ─── Button Base ─── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-400) 50%, var(--gold-600) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: var(--dark-950);
  font-family: var(--font-body), sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.3s ease;
  border-radius: 1px;
}
.btn-gold:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 137, 26, 0.45);
}
.btn-gold:active {
  transform: translateY(1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--gold-400);
  font-family: var(--font-body), sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--gold-700);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  border-radius: 1px;
}
.btn-outline:hover {
  border-color: var(--gold-400);
  color: var(--dark-950);
  background-color: var(--gold-400);
}

/* ─── Luxury Tag Badge ─── */
.badge-luxury {
  font-family: var(--font-body), sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--gold-600);
  color: var(--gold-400);
  background: rgba(200, 137, 26, 0.08);
  display: inline-block;
  line-height: 1;
}

/* ─── Navbar styles scrolled ─── */
header.header-scrolled {
  background-color: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 137, 26, 0.15);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Navigation Links */
.nav-link {
  position: relative;
  color: var(--dark-100);
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: var(--gold-400);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold-400);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.anim-fade-in-up {
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.anim-fade-in {
  animation: fadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.animate-bounce-slow {
  animation: float 2.5s ease-in-out infinite;
}

/* Marquee continuous scroll */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 25s linear infinite;
  display: flex;
  width: max-content;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 3rem;
  color: var(--dark-300);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.marquee-item span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold-600);
  display: inline-block;
  flex-shrink: 0;
}

/* ─── Drawer Styles (Cart & Wishlist) ─── */
#cart-drawer, #wishlist-drawer {
  transition: opacity 0.5s ease;
}
#cart-drawer.active, #wishlist-drawer.active {
  opacity: 1;
  pointer-events: auto;
}
#cart-panel, #wishlist-panel {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#cart-drawer.active #cart-panel, #wishlist-drawer.active #wishlist-panel {
  transform: translateX(0);
}
#cart-backdrop, #wishlist-backdrop {
  cursor: pointer;
}

/* ─── Drawer item cards ─── */
.drawer-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dark-700);
}
.drawer-item-img {
  width: 4.5rem;
  height: 5.5rem;
  object-fit: cover;
  background-color: var(--dark-800);
}
.drawer-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.25rem;
}
.drawer-item-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}
.drawer-item-price {
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.drawer-quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.drawer-quantity-btn {
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--dark-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.drawer-quantity-btn:hover {
  border-color: var(--gold-600);
  color: var(--gold-400);
}

/* ─── Modal styles ─── */
#quickview-modal, #search-modal {
  transition: opacity 0.4s ease;
}
#quickview-modal.active, #search-modal.active {
  opacity: 1;
  pointer-events: auto;
}
#quickview-card, #search-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
#quickview-modal.active #quickview-card, #search-modal.active #search-card {
  transform: scale(1);
  opacity: 1;
}

/* Quick View specific styling */
#qv-notes-top span, #qv-notes-heart span, #qv-notes-base span {
  display: block;
  padding: 0.1rem 0;
}

/* ─── Search Overlay Styles ─── */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  transition: background-color 0.2s ease;
  cursor: pointer;
}
.search-result-item:hover {
  background-color: var(--dark-800);
}
.search-result-img {
  width: 2.5rem;
  height: 3.25rem;
  object-fit: cover;
  background-color: var(--dark-700);
}

/* ─── Toast Notifications ─── */
.toast-msg {
  background-color: var(--dark-900);
  border: 1px solid var(--gold-600);
  padding: 0.75rem 1.25rem;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: slideInLeft 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards, fadeOut 0.4s 2.2s forwards;
  pointer-events: auto;
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-10px); }
}

/* ─── Mobile navigation styles ─── */
#mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}
#mobile-menu.active #mobile-menu-content {
  transform: translateX(0);
}
.mobile-nav-link {
  animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}
#mobile-menu.active .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-nav-link:nth-child(3) { animation-delay: 0.18s; }
#mobile-menu.active .mobile-nav-link:nth-child(4) { animation-delay: 0.26s; }
#mobile-menu.active .mobile-nav-link:nth-child(5) { animation-delay: 0.34s; }
#mobile-menu.active .mobile-nav-link:nth-child(6) { animation-delay: 0.42s; }

/* ─── Category pills ─── */
.pill-active {
  background-color: var(--gold-400);
  color: var(--dark-950);
  border-color: var(--gold-400);
}
.pill-active:hover {
  background-color: var(--gold-300);
  border-color: var(--gold-300);
  color: var(--dark-950);
}

/* ─── General Forms & Inputs ─── */
input:focus, select:focus {
  border-color: var(--gold-400);
}
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e5a832' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
