/* Goldline Peptides — Design System Components */

:root {
  --ivory: #fdfcf0;
  --gold: #c89837;
  --gold-strong: #dca625;
  --gold-highlight: #f5d474;
  --gold-light: #fef5a2;
  --sand: #ead5ab;
  --bronze: #a47426;
  --muted-gold: #b6995c;
  --deep-brown: #876027;
  --ink: #2f220d;
  --border-neutral: #e0d5be;
}

/* Base Styles */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: var(--ivory); color: var(--ink); }
h1, h2, h3, h4, h5, h6 { font-family: 'Cormorant Garamond', serif; font-weight: 400; }

/* Gold Gradient */
.gold-gradient { background: linear-gradient(135deg, #fef5a2 0%, #dca625 22%, #c89837 55%, #a47426 78%, #f5d474 100%); }
.gold-gradient-text { background: linear-gradient(135deg, #fef5a2 0%, #dca625 22%, #c89837 55%, #a47426 78%, #f5d474 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Gold Border Frame */
.gold-frame { position: relative; padding: 2px; }
.gold-frame::before { content: ''; position: absolute; inset: 0; padding: 2px; background: linear-gradient(135deg, #fef5a2 0%, #dca625 22%, #c89837 55%, #a47426 78%, #f5d474 100%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* Hairline Dividers */
.hairline { height: 1px; background-color: var(--border-neutral); }
.hairline-gold { height: 1px; background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%); }

/* Button Styles */
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; background: linear-gradient(135deg, #fef5a2 0%, #dca625 22%, #c89837 55%, #a47426 78%, #f5d474 100%); color: var(--ink); border-radius: 2px; transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1); }
.btn-primary:hover { filter: brightness(1.1); transform: scale(1.02); }

.btn-secondary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; background: transparent; color: var(--gold); border: 1px solid var(--gold); border-radius: 2px; transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1); }
.btn-secondary:hover { background: var(--gold); color: var(--ink); }

/* Card Styles */
.card-luxury { background: white; border: 1px solid var(--border-neutral); border-radius: 4px; transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.card-luxury:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 4px 20px rgba(47, 34, 13, 0.08); }

/* Navigation Link */
.nav-link { position: relative; font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink); transition: color 0.2s ease; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.2s ease; }
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--gold); }
.nav-link.active::after { width: 100%; }

/* Input Styles */
.input-luxury { width: 100%; padding: 0.875rem 1rem; background: white; border: 1px solid var(--border-neutral); border-radius: 2px; font-size: 0.875rem; color: var(--ink); transition: all 0.2s ease; }
.input-luxury:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(200, 152, 55, 0.1); }
.input-luxury::placeholder { color: rgba(47, 34, 13, 0.4); }

/* Badge Styles */
.badge-purity { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; font-size: 0.75rem; font-weight: 500; background: var(--sand); color: var(--ink); border-radius: 2px; }
.badge-category { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; font-size: 0.75rem; font-weight: 500; background: transparent; color: var(--gold); border: 1px solid var(--gold); border-radius: 2px; }

/* COA Card */
.coa-card { background: white; border: 1px solid var(--border-neutral); border-left: 3px solid var(--gold); border-radius: 4px; padding: 1.25rem; transition: all 0.2s ease; }
.coa-card:hover { border-color: var(--gold); transform: translateY(-2px); }

/* Cart Drawer */
.cart-drawer { position: fixed; top: 0; right: 0; width: 100%; max-width: 420px; height: 100vh; background: var(--ivory); border-left: 1px solid var(--border-neutral); transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); z-index: 100; overflow-y: auto; }
.cart-drawer.open { transform: translateX(0); }

.cart-overlay { position: fixed; inset: 0; background: rgba(47, 34, 13, 0.5); opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 99; }
.cart-overlay.open { opacity: 1; visibility: visible; }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; right: 0; width: 300px; height: 100vh; background: var(--ivory); border-left: 1px solid var(--border-neutral); transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); z-index: 100; }
.mobile-menu.open { transform: translateX(0); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(47, 34, 13, 0.6); opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-content { background: white; border-radius: 4px; max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay.open .modal-content { transform: scale(1); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.animate-fade-in { animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.animate-slide-up { animation: slideUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.animate-scale-in { animation: scaleIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }

.stagger-1 { animation-delay: 100ms; }
.stagger-2 { animation-delay: 200ms; }
.stagger-3 { animation-delay: 300ms; }
.stagger-4 { animation-delay: 400ms; }
.stagger-5 { animation-delay: 500ms; }

/* Scroll reveal */
.reveal { opacity: 1; transform: translateY(0); transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.scroll-reveal-active .reveal { opacity: 0; transform: translateY(20px); }
.scroll-reveal-active .reveal.visible { opacity: 1; transform: translateY(0); }

/* Product image hover */
.product-image-container { overflow: hidden; }
.product-image-container img { transition: transform 0.5s ease; }
.product-image-container:hover img { transform: scale(1.05); }

/* Quick view overlay */
.quick-view-overlay { position: absolute; inset: 0; background: rgba(47, 34, 13, 0); display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.product-image-container:hover .quick-view-overlay { background: rgba(47, 34, 13, 0.2); }
.quick-view-btn { opacity: 0; transform: translateY(16px); transition: all 0.3s ease; }
.product-image-container:hover .quick-view-btn { opacity: 1; transform: translateY(0); }

/* Dropdown */
.dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 160px; background: white; border: 1px solid var(--border-neutral); border-radius: 4px; box-shadow: 0 4px 20px rgba(47, 34, 13, 0.08); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.2s ease; z-index: 50; }
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
