/* ===== JARSKUY PARFUME — GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg:         #07070f;
  --surface:    #0e0e1c;
  --card:       #13132a;
  --border:     rgba(255,255,255,0.07);
  --gold:       #c9a84c;
  --gold-light: #f0d080;
  --purple:     #7c3aed;
  --pink:       #db2777;
  --cyan:       #06b6d4;
  --text:       #f0eee8;
  --muted:      #8b8ba0;
  --radius:     16px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', sans-serif;
  --glow-gold: 0 0 40px rgba(201,168,76,0.25);
  --glow-purple: 0 0 40px rgba(124,58,237,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===== HEADER ===== */
header {
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold);
  text-decoration: none;
}

.brand-name span {
  color: var(--text);
  font-weight: 300;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.cart-btn:hover {
  background: rgba(201,168,76,0.2);
  box-shadow: var(--glow-gold);
}

#cartCount {
  background: var(--gold);
  color: var(--bg);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124,58,237,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 50%, rgba(201,168,76,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== GRID PRODUK ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== CARD PRODUK ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), var(--glow-gold);
  border-color: rgba(201,168,76,0.3);
}

.card:hover::before { opacity: 1; }

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

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

.card-img-wrap {
  overflow: hidden;
  position: relative;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 6px;
  z-index: 2;
}

.card-body {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}

.card-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
}

.card-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

/* ===== BUTTONS ===== */
.btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a87c30);
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.45);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
}

.btn-success {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
}

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 200;
}

.cart-box {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 28px 24px;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 201;
  display: flex;
  flex-direction: column;
}

.cart-box.active { right: 0; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--gold);
}

.cart-close {
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-info { flex: 1; }

.cart-item-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}

.cart-item-price {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 4px 8px;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s;
}

.qty-btn:hover { background: rgba(255,255,255,0.1); }

.qty-num { font-size: 14px; font-weight: 600; min-width: 16px; text-align: center; }

.cart-total {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-total-label { font-size: 14px; color: var(--muted); }
.cart-total-value { font-size: 20px; font-weight: 700; color: var(--gold); }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}

.cart-empty-icon { font-size: 40px; opacity: 0.3; }

/* ===== TOAST ===== */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(14,14,28,0.95);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--text);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.toast-show {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* ===== FLY ANIMATION ===== */
.fly-img {
  position: fixed;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  z-index: 9999;
  pointer-events: none;
  transition: all 0.65s cubic-bezier(0.4,0,0.2,1);
}

/* ===== PAYMENT / SHIPPING GRIDS ===== */
.payment-grid,
.shipping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.pay-item,
.ship-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-item:hover,
.ship-item:hover {
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
}

.pay-item img, .ship-item img {
  width: 64px;
  max-height: 40px;
  object-fit: contain;
}

/* ===== CART BOUNCE ===== */
.cart-bounce {
  animation: bounce 0.4s;
}

@keyframes bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; padding: 0 16px 40px; }
  header { padding: 0 16px; }
  .cart-box { width: 100%; right: -100%; }
  .hero h1 { font-size: 36px; }
}
