/* ============================================================
   MAKAIRA COSMETICS - Luxury Black & Gold Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Cinzel:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --bg-deep: #0a0a0a;
  --bg-soft: #14110d;
  --bg-card: #1a1612;
  --bg-elevated: #221d17;
  --gold: #d4af37;
  --gold-bright: #f4d77a;
  --gold-soft: #b8932f;
  --gold-dim: #8a6e22;
  --cream: #e8d9a8;
  --text-primary: #e8d9a8;
  --text-muted: #8b8273;
  --text-subtle: #5a5345;
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-soft: rgba(212, 175, 55, 0.12);
  --shadow-gold: 0 10px 40px rgba(212, 175, 55, 0.15);
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.6);
  --serif-display: 'Cinzel', 'Cormorant Garamond', serif;
  --serif-body: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: var(--serif-display); font-weight: 500; letter-spacing: 0.05em; color: var(--gold); }
h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.4rem; }
.eyebrow {
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--text-muted); font-weight: 400;
}

/* HEADER & NAV */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.85) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  transition: all 0.3s ease;
}
.header-inner { max-width: 1400px; margin: 0 auto; padding: 1rem 2rem; }
.brand-row { display: flex; align-items: center; justify-content: center; padding: 0.5rem 0 1rem; }
.brand-logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.brand-mark { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; position: relative; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif-display); font-size: 1.6rem; letter-spacing: 0.25em; color: var(--gold); font-weight: 500; }
.brand-sub { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.35em; color: var(--gold-soft); text-transform: uppercase; margin-top: 2px; }
.brand-tag { font-family: var(--sans); font-size: 0.55rem; color: var(--text-muted); letter-spacing: 0.15em; margin-top: 4px; }

.nav { border-top: 1px solid var(--border-soft); padding-top: 0.8rem; }
.nav-list { list-style: none; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0; }
.nav-list li { position: relative; }
.nav-list li:not(:last-child)::after { content: '/'; color: var(--gold-dim); margin: 0 0.5rem; }
.nav-link {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-primary); text-decoration: none;
  padding: 0.5rem 1rem; transition: all 0.3s;
  cursor: pointer; background: none; border: none;
}
.nav-link:hover, .nav-link.active { color: var(--gold-bright); }
.nav-actions {
  position: absolute; right: 2rem; top: 50%; transform: translateY(-50%);
  display: flex; gap: 1rem; align-items: center;
}
.icon-btn {
  background: none; border: 1px solid var(--border-soft);
  color: var(--gold); width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s; position: relative;
}
.icon-btn:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.1); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--gold); color: var(--bg-deep);
  font-size: 0.65rem; font-weight: bold; font-family: var(--sans);
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* HERO */
.hero {
  min-height: 100vh; padding-top: 180px; padding-bottom: 4rem;
  position: relative; display: flex; align-items: center;
  background:
    linear-gradient(135deg, rgba(10,10,10,0.7) 0%, rgba(20,17,13,0.4) 50%, rgba(10,10,10,0.8) 100%),
    radial-gradient(ellipse at center, #2a2419 0%, #0a0a0a 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 80px, rgba(212,175,55,0.02) 80px, rgba(212,175,55,0.02) 81px);
  pointer-events: none;
}
.hero-grid {
  max-width: 1400px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center;
  position: relative; z-index: 2;
}
.hero-image { position: relative; aspect-ratio: 1; max-width: 480px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.hero-image-frame {
  width: 100%; height: 100%; position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(212,175,55,0.3) 0%, transparent 60%), linear-gradient(135deg, #1a1612 0%, #0a0a0a 100%);
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-image-frame::before { content: ''; position: absolute; inset: 20px; border: 1px solid var(--border-soft); pointer-events: none; }
.hero-bottle { width: 60%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8)); }
.hero-corner { position: absolute; width: 40px; height: 40px; border: 1px solid var(--gold); }
.hero-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hero-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.hero-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.hero-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.hero-content { animation: fadeInUp 1s ease 0.3s both; }
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.05; margin-bottom: 1.5rem;
  font-weight: 400; letter-spacing: 0.02em;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-soft) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-company { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.3em; color: var(--cream); text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-desc { font-size: 1.05rem; color: var(--text-primary); max-width: 540px; margin-bottom: 2.5rem; opacity: 0.85; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 2.5rem; font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: 0.3em; text-transform: uppercase; cursor: pointer;
  border: 1px solid var(--gold); color: var(--gold); background: transparent;
  text-decoration: none; transition: all 0.4s ease; position: relative; overflow: hidden; border-radius: 100px;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.2), transparent);
  transform: translateX(-100%); transition: transform 0.6s;
}
.btn:hover::before { transform: translateX(100%); }
.btn:hover { background: rgba(212,175,55,0.1); color: var(--gold-bright); box-shadow: 0 0 30px rgba(212,175,55,0.3); }
.btn-primary { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%); color: var(--bg-deep); border-color: var(--gold); }
.btn-primary:hover { color: var(--bg-deep); background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%); }
.btn-sm { padding: 0.6rem 1.5rem; font-size: 0.7rem; }
.btn-block { width: 100%; }

/* SECTIONS */
.section { padding: 6rem 2rem; max-width: 1400px; margin: 0 auto; position: relative; z-index: 2; }
.section-header { margin-bottom: 4rem; text-align: center; }
.section-header .eyebrow { display: block; margin-bottom: 1rem; }
.section-divider { width: 40px; height: 1px; background: var(--gold); margin: 1.5rem auto; position: relative; }
.section-divider::before, .section-divider::after { content: '◆'; position: absolute; color: var(--gold); font-size: 0.5rem; top: 50%; transform: translateY(-50%); }
.section-divider::before { left: -15px; }
.section-divider::after { right: -15px; }

/* OVERVIEW */
.overview {
  background: var(--bg-soft); margin: 0 auto; padding: 5rem 2rem; max-width: 1400px;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: center;
  position: relative; z-index: 2; border: 1px solid var(--border-soft);
}
.overview::before, .overview::after { content: ''; position: absolute; width: 80px; height: 80px; border: 1px solid var(--gold-dim); pointer-events: none; }
.overview::before { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.overview::after { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.overview-image { width: 100%; aspect-ratio: 3/4; overflow: hidden; position: relative; border-radius: 4px; }
.overview-products { width: 100%; height: 100%; overflow: hidden; border-radius: 4px; }
.overview-title { font-family: var(--serif-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; color: var(--cream); }

/* PRODUCT GRID */
.products-section { background: var(--bg-deep); padding: 6rem 2rem; position: relative; z-index: 2; }
.products-container { max-width: 1400px; margin: 0 auto; }
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 3rem; }
.filter-chip {
  padding: 0.5rem 1.5rem; font-family: var(--sans); font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer;
  border: 1px solid var(--border-gold); color: var(--text-primary);
  background: transparent; border-radius: 100px; transition: all 0.3s;
}
.filter-chip:hover, .filter-chip.active { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.product-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border-soft); padding: 1.5rem;
  position: relative; transition: all 0.4s ease; cursor: pointer; overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.product-card:hover { transform: translateY(-8px); border-color: var(--border-gold); box-shadow: var(--shadow-gold); }
.product-card:hover::before { opacity: 1; }
.product-image {
  width: 100%; aspect-ratio: 1; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #2a2419 0%, #14110d 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(212,175,55,0.2) 0%, transparent 50%); }
.product-image-icon { font-size: 4rem; opacity: 0.3; color: var(--gold); }
.product-category { font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.3em; color: var(--gold-soft); text-transform: uppercase; margin-bottom: 0.5rem; }
.product-name { font-family: var(--serif-display); font-size: 1.1rem; color: var(--cream); margin-bottom: 0.5rem; line-height: 1.3; }
.product-price { font-family: var(--sans); font-size: 1rem; color: var(--gold); font-weight: 500; letter-spacing: 0.02em; }
.product-stock { font-family: var(--sans); font-size: 0.7rem; color: var(--text-muted); margin-top: 0.3rem; letter-spacing: 0.1em; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px); z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 1rem; animation: fadeIn 0.3s;
}
.modal-overlay.active { display: flex; }
.modal {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border-gold); max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 2.5rem;
  position: relative; box-shadow: var(--shadow-deep); animation: slideUp 0.4s ease;
}
.modal-lg { max-width: 800px; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--gold); font-size: 1.5rem;
  cursor: pointer; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--gold-bright); }
.modal-title { font-family: var(--serif-display); font-size: 1.6rem; color: var(--gold); text-align: center; margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.modal-subtitle { text-align: center; color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 2rem; font-family: var(--sans); }

/* FORMS */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 0.5rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.85rem 1rem; background: var(--bg-deep);
  border: 1px solid var(--border-soft); color: var(--text-primary);
  font-family: var(--serif-body); font-size: 1rem; transition: all 0.3s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.form-textarea { resize: vertical; min-height: 80px; font-family: var(--sans); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-help { font-family: var(--sans); font-size: 0.7rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-tabs { display: flex; border-bottom: 1px solid var(--border-soft); margin-bottom: 1.5rem; }
.form-tab {
  flex: 1; padding: 0.8rem; background: none; border: none;
  color: var(--text-muted); font-family: var(--sans); font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.3s;
}
.form-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ALERTS */
.alert { padding: 0.8rem 1rem; margin-bottom: 1rem; font-size: 0.85rem; border: 1px solid; font-family: var(--sans); letter-spacing: 0.05em; }
.alert-success { border-color: #4a7c59; background: rgba(74,124,89,0.1); color: #8fc9a3; }
.alert-error   { border-color: #8b3a3a; background: rgba(139,58,58,0.1); color: #d49595; }
.alert-info    { border-color: var(--gold-dim); background: rgba(212,175,55,0.05); color: var(--cream); }

/* CART */
.cart-drawer {
  position: fixed; top: 0; right: -100%; width: 100%; max-width: 480px;
  height: 100vh; background: var(--bg-soft); border-left: 1px solid var(--border-gold);
  z-index: 999; transition: right 0.4s ease; overflow-y: auto; box-shadow: var(--shadow-deep);
}
.cart-drawer.open { right: 0; }
.cart-header { padding: 1.5rem 2rem; border-bottom: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--bg-soft); z-index: 2; }
.cart-body { padding: 1.5rem 2rem; }
.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border-soft); align-items: center; }
.cart-item-img { width: 60px; height: 60px; background: linear-gradient(135deg, #2a2419, #0a0a0a); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.5rem; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-family: var(--serif-display); font-size: 0.95rem; color: var(--cream); margin-bottom: 0.2rem; }
.cart-item-meta { font-family: var(--sans); font-size: 0.75rem; color: var(--text-muted); }
.qty-control { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border-soft); padding: 0.2rem; }
.qty-btn { background: none; border: none; color: var(--gold); width: 24px; height: 24px; cursor: pointer; font-size: 1rem; }
.qty-val { min-width: 24px; text-align: center; font-family: var(--sans); font-size: 0.85rem; }
.cart-summary { padding: 1.5rem 2rem; border-top: 1px solid var(--border-gold); position: sticky; bottom: 0; background: var(--bg-soft); }
.cart-row { display: flex; justify-content: space-between; padding: 0.4rem 0; font-family: var(--sans); font-size: 0.85rem; }
.cart-row.total { font-size: 1rem; color: var(--gold); border-top: 1px solid var(--border-soft); margin-top: 0.5rem; padding-top: 0.8rem; font-weight: 600; }
.cart-empty { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }

/* QRIS */
.qris-display { text-align: center; padding: 1rem; }
.qris-frame { display: inline-block; padding: 1.5rem; background: white; margin: 1.5rem 0; position: relative; }
.qris-frame::before { content: 'QRIS'; position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--gold); color: var(--bg-deep); padding: 0.2rem 1rem; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.3em; font-weight: 600; }
#qrisCanvas { display: block; }
.qris-amount { font-family: var(--serif-display); font-size: 2rem; color: var(--gold); margin: 1rem 0; letter-spacing: 0.05em; }
.qris-timer { font-family: var(--sans); color: var(--cream); letter-spacing: 0.2em; font-size: 0.85rem; margin: 0.5rem 0; }
.qris-instructions { text-align: left; margin: 1.5rem 0; background: var(--bg-deep); padding: 1rem 1.5rem; border-left: 2px solid var(--gold); }
.qris-instructions ol { padding-left: 1.2rem; font-size: 0.85rem; line-height: 1.8; }

/* CHATBOT */
.chat-fab {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 998;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: var(--bg-deep); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(212,175,55,0.4); transition: all 0.3s; font-size: 1.5rem;
  animation: pulse 3s infinite;
}
.chat-fab:hover { transform: scale(1.1); }
@keyframes pulse { 0%, 100% { box-shadow: 0 4px 24px rgba(212,175,55,0.4); } 50% { box-shadow: 0 4px 24px rgba(212,175,55,0.7), 0 0 0 8px rgba(212,175,55,0.1); } }
.chat-window {
  position: fixed; bottom: 6rem; right: 2rem; z-index: 999;
  width: 380px; max-width: calc(100vw - 2rem);
  height: 540px; max-height: calc(100vh - 8rem);
  background: var(--bg-soft); border: 1px solid var(--border-gold);
  display: none; flex-direction: column; box-shadow: var(--shadow-deep);
  border-radius: 4px; overflow: hidden;
}
.chat-window.open { display: flex; animation: slideUp 0.3s; }
.chat-header { padding: 1rem 1.5rem; background: var(--bg-deep); border-bottom: 1px solid var(--border-gold); display: flex; align-items: center; gap: 0.8rem; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: var(--bg-deep); display: flex; align-items: center; justify-content: center; font-family: var(--serif-display); font-weight: bold; }
.chat-info { flex: 1; }
.chat-title { font-family: var(--serif-display); color: var(--gold); font-size: 0.95rem; }
.chat-status { font-family: var(--sans); font-size: 0.7rem; color: #4a7c59; }
.chat-status::before { content: '●'; margin-right: 0.3rem; }
.chat-body { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.8rem; }
.chat-msg { max-width: 80%; padding: 0.7rem 1rem; font-size: 0.88rem; line-height: 1.5; word-wrap: break-word; white-space: pre-wrap; }
.chat-msg.bot { align-self: flex-start; background: var(--bg-card); color: var(--cream); border-left: 2px solid var(--gold); }
.chat-msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--gold-soft), var(--gold-dim)); color: var(--bg-deep); border-radius: 4px; }
.chat-input-row { padding: 0.8rem; border-top: 1px solid var(--border-soft); display: flex; gap: 0.5rem; }
.chat-input { flex: 1; padding: 0.7rem 1rem; background: var(--bg-deep); border: 1px solid var(--border-soft); color: var(--cream); font-family: var(--sans); font-size: 0.85rem; }
.chat-input:focus { outline: none; border-color: var(--gold); }
.chat-send { padding: 0 1.2rem; background: var(--gold); color: var(--bg-deep); border: none; cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; }
.chat-typing { display: flex; gap: 4px; align-items: center; padding: 0.7rem 1rem; align-self: flex-start; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: typing 1.4s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

/* FOOTER */
.footer { background: var(--bg-deep); border-top: 1px solid var(--border-soft); padding: 4rem 2rem 2rem; position: relative; z-index: 2; }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer h4 { font-size: 0.85rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--sans); color: var(--gold); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-primary); opacity: 0.8; }
.footer li a { color: inherit; text-decoration: none; transition: color 0.3s; }
.footer li a:hover { color: var(--gold); }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; font-family: var(--sans); font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.1em; }

/* UTILITIES */
.page { display: none; min-height: 100vh; padding-top: 180px; padding-bottom: 4rem; }
.page.active { display: block; animation: fadeIn 0.5s; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }

.spinner { width: 40px; height: 40px; border: 2px solid var(--border-soft); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 2rem auto; }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* ORDER LIST */
.order-card { background: var(--bg-card); border: 1px solid var(--border-soft); padding: 1.5rem; margin-bottom: 1rem; transition: all 0.3s; }
.order-card:hover { border-color: var(--border-gold); }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.order-id { font-family: var(--serif-display); color: var(--gold); font-size: 1rem; letter-spacing: 0.05em; }
.order-status { display: inline-block; padding: 0.3rem 0.8rem; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; border: 1px solid; border-radius: 100px; }
.status-pending_payment { color: #d49595; border-color: #8b3a3a; }
.status-paid, .status-payment_confirmed_pending_verification { color: #f4d77a; border-color: var(--gold); }
.status-processing, .status-shipped { color: #8fc9a3; border-color: #4a7c59; }
.status-delivered { color: var(--gold); border-color: var(--gold); }

/* PORTFOLIO */
.pf-hero { padding: 6rem 2rem 4rem; text-align: center; position: relative; background: linear-gradient(180deg, var(--bg-deep) 0%, transparent 100%); }
.pf-hero-inner { max-width: 800px; margin: 0 auto; }
.pf-hero-title { font-family: var(--serif-body); font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 400; color: var(--gold); margin: 1.5rem 0; letter-spacing: 0.02em; }
.pf-hero-quote { font-family: var(--serif-body); font-style: italic; font-size: 1.15rem; line-height: 1.9; color: var(--text-primary); opacity: 0.85; max-width: 700px; margin: 2rem auto; }
.pf-hero-attr { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; margin-top: 2rem; }
.pf-collections { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.pf-section-header { text-align: center; margin-bottom: 3rem; }
.pf-section-header h2 { font-family: var(--serif-body); font-size: clamp(2rem, 4vw, 3rem); color: var(--gold); margin-top: 1rem; }
.pf-collection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.pf-collection-card { background: var(--bg-card); border: 1px solid var(--border-soft); padding: 2.5rem 2rem; cursor: pointer; transition: all 0.4s ease; position: relative; overflow: hidden; }
.pf-collection-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15); }
.pf-collection-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.pf-collection-eyebrow { display: block; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.25em; color: var(--gold); text-transform: uppercase; margin-bottom: 0.8rem; }
.pf-collection-card h3 { font-family: var(--serif-body); font-size: 1.6rem; color: var(--text-primary); margin-bottom: 1rem; line-height: 1.3; }
.pf-collection-card p { font-family: var(--sans); font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 1.5rem; }
.pf-collection-cta { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; font-weight: 500; }
.pf-collection-featured { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212, 175, 55, 0.08) 100%); border-color: var(--gold); }

.pf-legacy { padding: 6rem 2rem; background: linear-gradient(135deg, #0a0a0a 0%, #1a1410 100%); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); position: relative; overflow: hidden; }
.pf-legacy::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 30%, rgba(212,175,55,0.08), transparent 40%), radial-gradient(circle at 80% 70%, rgba(212,175,55,0.05), transparent 40%); pointer-events: none; }
.pf-legacy-inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.pf-legacy-tag { display: inline-block; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.4em; color: var(--gold); border: 1px solid var(--gold); padding: 0.6rem 1.5rem; margin-bottom: 2rem; }
.pf-legacy-title { font-family: var(--serif-body); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; color: var(--gold); line-height: 1.2; margin-bottom: 1.5rem; }
.pf-legacy-desc { font-family: var(--serif-body); font-size: 1.1rem; line-height: 1.9; color: var(--text-primary); opacity: 0.9; max-width: 700px; margin: 1.5rem auto; }
.pf-legacy-meta { display: flex; justify-content: center; gap: 3rem; margin-top: 3rem; flex-wrap: wrap; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--text-muted); }
.pf-legacy-meta strong { color: var(--gold); display: block; margin-bottom: 0.3rem; letter-spacing: 0.2em; }

.pf-product-spotlight { margin: 3rem 0; padding: 3rem; background: var(--bg-card); border-left: 3px solid var(--gold); position: relative; transition: all 0.4s ease; }
.pf-product-spotlight:hover { background: linear-gradient(90deg, var(--bg-card) 0%, rgba(212, 175, 55, 0.04) 100%); }
.pf-spotlight-reverse { border-left: none; border-right: 3px solid var(--gold); }
.pf-spotlight-content { max-width: 800px; }
.pf-spotlight-reverse .pf-spotlight-content { margin-left: auto; }
.pf-spotlight-tag { display: inline-block; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; border: 1px solid var(--gold); padding: 0.4rem 1rem; margin-bottom: 1rem; }
.pf-product-spotlight h3 { font-family: var(--serif-body); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--text-primary); margin: 0.5rem 0; font-weight: 400; }
.pf-spotlight-tagline { font-family: var(--serif-body); font-style: italic; color: var(--gold); font-size: 1.05rem; margin-bottom: 1.5rem; }
.pf-spotlight-desc { font-family: var(--sans); font-size: 0.95rem; line-height: 1.9; color: var(--text-primary); opacity: 0.9; margin-bottom: 1rem; }
.pf-spotlight-desc strong { color: var(--gold); font-weight: 500; }
.pf-spotlight-desc em { color: var(--gold); font-style: italic; }
.pf-spotlight-meta { display: flex; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.15em; color: var(--text-muted); }

.pf-craft { padding: 6rem 2rem; background: var(--bg-deep); max-width: 100%; }
.pf-craft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 3rem auto 0; }
.pf-craft-card { text-align: center; padding: 2rem 1.5rem; background: var(--bg-card); border: 1px solid var(--border-soft); transition: border-color 0.3s ease; }
.pf-craft-card:hover { border-color: var(--gold); }
.pf-craft-icon { font-size: 2rem; margin-bottom: 1rem; }
.pf-craft-card h4 { font-family: var(--serif-body); font-size: 1.2rem; color: var(--gold); margin-bottom: 0.8rem; }
.pf-craft-card p { font-family: var(--sans); font-size: 0.85rem; line-height: 1.7; color: var(--text-muted); }

/* CONSULTATION CHAT */
.consult-chat { max-width: 800px; margin: 2rem auto 0; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; height: 560px; }
.consult-chat-header { display: flex; align-items: center; gap: 0.8rem; padding: 1.2rem 1.5rem; background: linear-gradient(135deg, #1a1410 0%, #0a0a0a 100%); border-bottom: 1px solid var(--gold); }
.consult-chat-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #f4d77a, #d4af37); color: #0a0a0a; display: flex; align-items: center; justify-content: center; font-family: var(--serif-body); font-size: 1.4rem; font-weight: 600; }
.consult-chat-title { font-family: var(--serif-body); font-size: 1.1rem; color: var(--gold); }
.consult-chat-status { font-family: var(--sans); font-size: 0.75rem; color: #7bc47b; letter-spacing: 0.05em; }
.consult-chat-body { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.consult-msg { max-width: 78%; padding: 0.9rem 1.2rem; border-radius: 14px; font-family: var(--sans); font-size: 0.95rem; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
.consult-msg.user { align-self: flex-end; background: linear-gradient(135deg, #d4af37, #b8941f); color: #0a0a0a; border-bottom-right-radius: 4px; }
.consult-msg.bot { align-self: flex-start; background: var(--bg-deep); color: var(--text-primary); border: 1px solid var(--border-soft); border-bottom-left-radius: 4px; }
.consult-typing { align-self: flex-start; display: flex; gap: 5px; padding: 1rem 1.2rem; background: var(--bg-deep); border: 1px solid var(--border-soft); border-radius: 14px; }
.consult-typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); opacity: 0.5; animation: consultBlink 1.4s infinite both; }
.consult-typing span:nth-child(2) { animation-delay: 0.2s; }
.consult-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes consultBlink { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }
.consult-chat-input-row { display: flex; gap: 0.8rem; padding: 1.2rem 1.5rem; border-top: 1px solid var(--border-soft); background: var(--bg-deep); }
.consult-chat-input { flex: 1; padding: 0.9rem 1.2rem; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 24px; color: var(--text-primary); font-family: var(--sans); font-size: 0.95rem; outline: none; }
.consult-chat-input:focus { border-color: var(--gold); }
.consult-chat-send { padding: 0.9rem 1.8rem; background: linear-gradient(135deg, #d4af37, #b8941f); color: #0a0a0a; border: none; border-radius: 24px; font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; cursor: pointer; transition: transform 0.2s; }
.consult-chat-send:hover { transform: scale(1.05); }

/* RESPONSIVE */
@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image { max-width: 320px; }
  .overview { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-actions { right: 1rem; }
  .nav-list li:not(:last-child)::after { display: none; }
  .nav-list { gap: 0.3rem; }
  .nav-link { padding: 0.4rem 0.6rem; font-size: 0.65rem; letter-spacing: 0.15em; }
}
@media (max-width: 768px) {
  .pf-hero, .pf-collections, .pf-craft { padding: 3rem 1.5rem; }
  .pf-legacy { padding: 4rem 1.5rem; }
  .pf-legacy-meta { gap: 1.5rem; }
  .pf-product-spotlight { padding: 2rem 1.5rem; }
  .consult-chat { height: 480px; }
  .consult-msg { max-width: 85%; }
  .consult-chat-send { padding: 0.9rem 1.2rem; }
}
@media (max-width: 640px) {
  .section { padding: 4rem 1rem; }
  .header-inner { padding: 0.8rem 1rem; }
  .brand-name { font-size: 1.2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .modal { padding: 1.5rem; }
  .chat-window { right: 1rem; bottom: 5.5rem; width: calc(100vw - 2rem); }
  .chat-fab { right: 1rem; bottom: 1rem; }
  .nav-actions { position: static; transform: none; justify-content: center; margin-top: 0.5rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
